@charset "utf-8";
@import url("https://cdn.jsdelivr.net/gh/MonadABXY/mona-font/web/mona.css");

@font-face {
    font-family: "Hiikr";
    src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/2607101609@hikr-extrabold/hikr-extrabold/HiKR-ExtraBold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'InkLiquid';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/InkLipquid.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KimJeongCheolHandwriting';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302_01@1.0/KimjungchulScript-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'KimJeongCheolHandwriting';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302_01@1.0/KimjungchulScript-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'KimJeongCheolHandwriting';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302_01@1.0/KimjungchulScript-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Stella';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/2608201622@stellar-serif/stellar-serif/Stellar_Serif_Bold_Condensed.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'GanaChocolate';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/ghanachoco.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

:root {
    --page: #251b4d;
    --surface: #f9f0ff;
    --surface-raised: #ead8fa;
    --surface-soft: #dec5f2;
    --text: #2b2051;
    --text-subtle: #6f5a91;
    --border: #6846c7;
    --brand: #5534c8;
    --brand-rgb: 85, 52, 200;
    --brand-contrast: #fffaff;
    --warning: #cf4b91;
    --warning-rgb: 207, 75, 145;
    --nav-bg: #d9c1ef;
    --nav-tab: #eee0fa;
    --nav-text: #48337c;
    --nav-active: #5534c8;
    --nav-active-bg: #f9f0ff;
    --header-bg: #d8b8ed;
    --header-text: #2b2051;
    --card-bg: #fffaff;
    --window-highlight: #fffaff;
    --window-shadow: #b49ad8;
    --window-button: #f5e8ff;
    --success: #39866b;
    --danger: #bd3f6f;
    --focus: rgba(var(--brand-rgb), .22);
    --shadow: rgba(42, 24, 91, .28);
    --overlay: rgba(34, 23, 70, .72);
    --radius: 4px;
    --radius-lg: 8px;

--accent: var(--brand);
    --accent-rgb: var(--brand-rgb);
    --accent-gold: var(--warning);
    --accent-red: var(--danger);
    --accent-pink: var(--danger);
    --bg-dark: var(--page);
    --bg-card: var(--surface);
    --bg-header: var(--header-bg);
    --bg-table-head: var(--surface-raised);
    --bg-input: var(--surface-soft);
    --nav-bg-inactive: var(--surface-soft);
    --text-primary: var(--text);
    --text-muted: var(--text-subtle);
    --text-btn-hover: var(--brand-contrast);
    --text-white: var(--header-text);
    --line: var(--border);
    --line-light: color-mix(in srgb, var(--border) 65%, transparent);
    --border-width: 1px;
    --border-radius: var(--radius);
    --border-radius-lg: var(--radius-lg);
}

* { box-sizing: border-box; }
html { background: var(--page); color-scheme: dark; }
html[data-theme="white"] {
    --page: #c8dcff;
    --surface: #f7fbff;
    --surface-raised: #dceaff;
    --surface-soft: #c7dcfa;
    --text: #172f59;
    --text-subtle: #536c94;
    --border: #4775c8;
    --brand: #315fbe;
    --brand-rgb: 49, 95, 190;
    --brand-contrast: #f8fbff;
    --warning: #b54d81;
    --warning-rgb: 181, 77, 129;
    --nav-bg: #b9d0f5;
    --nav-tab: #dceaff;
    --nav-text: #294c87;
    --nav-active: #315fbe;
    --nav-active-bg: #f7fbff;
    --header-bg: #bcd5fa;
    --header-text: #172f59;
    --card-bg: #fbfdff;
    --window-highlight: #ffffff;
    --window-shadow: #8eaddd;
    --window-button: #e9f2ff;
    --success: #28795e;
    --danger: #af3f67;
    --shadow: rgba(40, 76, 137, .24);
    --overlay: rgba(26, 53, 99, .62);
    color-scheme: light;
}
body {
    margin: 0;
    color: var(--text);
    font-family: "Mona12", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    line-height: 1.55;
}
#wrapper {
    align-content: safe center;
    padding-top: 0 !important;
}
#wrapper #container {
    height: auto;
    overflow: visible;
    margin-top: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.trpg-board-wrap { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; color: var(--text); display: flow-root; }
.unified-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: inset 1px 1px 0 var(--window-highlight), 7px 8px 0 color-mix(in srgb, var(--border) 30%, transparent), 0 18px 48px var(--shadow);
}

.trpg-nav-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 14px 140px 0 14px;
    background: var(--nav-bg);
    border-bottom: 2px solid var(--border);
    box-shadow: inset 0 1px 0 var(--window-highlight);
}
.trpg-nav-container::-webkit-scrollbar { display: none; }
.trpg-nav-item {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 17px 6px;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    background: var(--nav-tab);
    color: var(--nav-text);
    font-family: "Hiikr", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 750;
    white-space: nowrap;
    box-shadow: inset 1px 1px 0 var(--window-highlight), 0 3px 6px color-mix(in srgb, var(--border) 35%, transparent);
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.trpg-nav-label-mobile { display: none; }

.trpg-nav-item i {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -48%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 23px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--nav-tab);
    font-size: 16px;
    line-height: 1;
    color: var(--nav-text);
    box-shadow: inset 1px 1px 0 var(--window-highlight), 0 3px 5px color-mix(in srgb, var(--border) 40%, transparent);
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.trpg-nav-item:hover { color: var(--brand); background: var(--surface); transform: translateY(-1px); }
.trpg-nav-item i:not(.fa):not(.trpg-nav-icon-img) { filter: grayscale(1); }
.trpg-nav-item:hover i { color: var(--brand); border-color: var(--brand); background: var(--surface); }
.trpg-nav-item i.trpg-nav-icon-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-sizing: border-box;
}
.trpg-nav-set-check i.trpg-nav-icon-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
    box-sizing: border-box;
}
.trpg-nav-item i.trpg-nav-icon-img img,
.trpg-nav-set-check i.trpg-nav-icon-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trpg-nav-container .window-controls {
    position: absolute;
    top: 15px;
    right: 14px;
    align-self: unset;
    flex-shrink: 0;
    margin-left: 0;
    padding-bottom: 0;
    z-index: 2;
}
.trpg-nav-item.active i,
.trpg-nav-item.active:hover i {
    color: var(--nav-active) !important;
    border-color: var(--nav-active) !important;
    background: var(--nav-active-bg) !important;
}
.trpg-nav-item.active,
.trpg-nav-item.active:hover {
    border-color: var(--nav-active) !important;
    background: var(--nav-active-bg) !important;
    color: var(--nav-active) !important;
    box-shadow: inset 1px 1px 0 var(--window-highlight), 0 3px 6px color-mix(in srgb, var(--border) 35%, transparent) !important;
}

.sc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 45px;
    padding: 7px 9px 7px 15px;
    background: var(--header-bg);
    border-bottom: 2px solid var(--border);
    box-shadow: inset 1px 1px 0 var(--window-highlight);
}
.sc-header h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--header-text); font-family: "Mona12", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; letter-spacing: 0; }
.window-controls { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.window-control { position: relative; width: 25px; height: 25px; border: 1px solid var(--border); border-radius: 2px; background: var(--window-button); box-shadow: inset 1px 1px 0 var(--window-highlight), inset -1px -1px 0 var(--window-shadow); color: var(--brand); pointer-events: none; }
.window-control::before,
.window-control::after { content: ""; position: absolute; inset: auto; }
.window-control-min::before { left: 5px; right: 5px; bottom: 5px; height: 2px; background: currentColor; }
.window-control-max::before { inset: 5px; border: 2px solid currentColor; }
.window-control-close::before,
.window-control-close::after { top: 4px; left: 11px; width: 2px; height: 15px; background: currentColor; transform: rotate(45deg); }
.window-control-close::after { transform: rotate(-45deg); }

.ts-modal-head .window-controls { display: none; }

.trpg-nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    pointer-events: auto;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.trpg-nav-action:hover { background: var(--brand); color: var(--brand-contrast); border-color: var(--brand); transform: translateY(-1px); }

.trpg-nav-controls-capture-fallback { display: none; }

.trpg-tooltip {
    position: fixed;
    padding: 5px 10px;
    border-radius: var(--radius);
    background: var(--text);
    color: var(--card-bg);
    font-family: "Mona12", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px var(--shadow);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .12s ease, transform .12s ease;
    z-index: 3000;
}
.trpg-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.sc-header .footer-btn {
    border-color: color-mix(in srgb, var(--header-text) 26%, transparent);
    background: color-mix(in srgb, var(--header-bg) 82%, var(--brand));
    color: var(--header-text);
}
.sc-header .footer-btn:hover { border-color: var(--brand); background: var(--brand); color: var(--brand-contrast); }
.text-brand { color: var(--brand) !important; }
.text-subtle { color: var(--text-subtle) !important; }
.text-warning { color: var(--warning) !important; }

.sc-input, .sc-select, .sc-textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}
.sc-select { cursor: pointer; }

.sc-input.is-compact { max-width: 280px; }
.sc-input::placeholder, .sc-textarea::placeholder { color: var(--text-subtle); opacity: .78; }

.sc-input:focus, .sc-select:focus, .sc-textarea:focus {
    border-color: var(--brand);
    outline: none;
}

.ts-modal-body .sc-input,
.ts-modal-body .sc-select {
    min-height: 32px;
    padding: 5px 9px;
    background: var(--card-bg);
    font-size: 13px;
    box-shadow: none;
}

.sc-textarea { min-height: 110px; resize: vertical; }

.searchbar input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 32px 8px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    outline: none;
    transition: border-color .2s ease;
}
.searchbar input:focus { border-color: var(--brand); outline: 3px solid var(--focus); }
.searchbar input::placeholder { color: var(--text-subtle); }

.btn_write, .btn_action, .btn-header, .footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--text);
    font-family: "Mona12", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn_write, .btn_action, .btn-header { min-height: 38px; padding: 9px 16px; }
.btn-header { font-family: "Hiikr", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.footer-btn { min-height: 32px; padding: 6px 12px; font-family: "Mona12", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.btn_danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 9px 16px;
    background: var(--danger);
    border: 1px solid var(--danger);
    color: var(--brand-contrast);
    font-family: "Mona12", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}
.btn_danger:hover { filter: brightness(1.1); }
.btn_write, .btn-header { border-color: var(--brand); background: var(--brand); color: var(--brand-contrast); }
.btn_write:hover, .btn-header:hover { transform: translateY(-1px); }
.btn_action:hover, .footer-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--surface-raised); }

.ts-modal-card {
    display: flex;
    flex-direction: column;
    width: min(400px, calc(100vw - 24px));
    max-width: 100%;
    max-height: min(540px, calc(100vh - 24px));
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    box-shadow: 0 16px 40px var(--shadow);
}
.ts-modal-card form { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.ts-modal-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    background: var(--card-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 42%, transparent);
    box-shadow: none;
}
.ts-modal-head h3 {
    margin: 0;
    color: var(--text);
    font-family: "Mona12", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
}
.ts-modal-head h3 i { color: var(--brand); font-size: 13px; }

.ts-modal-body {
    flex: 1;
    min-height: 0;
    padding: 12px;
    overflow: auto;
}
.ts-modal-foot {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 12px 10px;
    background: var(--card-bg);
    border-top: 1px solid color-mix(in srgb, var(--border) 42%, transparent);
}
.ts-modal-foot button,
.ts-modal-foot .ts-save-btn {
    min-height: 30px;
    padding: 5px 11px;
    border-radius: var(--radius);
    font-size: 12px;
}
.ts-modal-close {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text-subtle);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.ts-modal-close:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.ts-text-input { width: 100%; margin-top: 6px; padding: 7px 10px; min-height: 32px; background: var(--card-bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; }
.ts-save-btn { padding: 10px 22px; border: 1px solid var(--brand); border-radius: var(--radius); background: var(--brand); color: var(--brand-contrast); font-weight: 800; cursor: pointer; }
.ts-save-btn:disabled { opacity: .6; cursor: wait; }
.ts-help { color: var(--text-subtle); font-size: 12px; line-height: 1.6; }

#trpg-loading { background: var(--overlay) !important; }

.trpg-icon-upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.trpg-icon-slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-subtle);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.trpg-icon-slot:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}
.trpg-icon-upload.is-portrait .trpg-icon-slot {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-lg);
}
.trpg-icon-upload.is-token .trpg-icon-slot {
    width: 72px;
    height: 96px;
    border-radius: var(--radius-lg);
}
.trpg-icon-upload:not(.is-empty) .trpg-icon-slot {
    border-style: solid;
    background: var(--surface-soft);
}
.trpg-icon-upload:not(.is-empty).is-token .trpg-icon-slot {
    width: auto;
    height: 132px;
    max-width: 120px;
    border: 0;
    background: transparent;
    border-radius: 0;
}
.trpg-icon-preview {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.trpg-icon-upload:not(.is-empty) .trpg-icon-preview { display: block; }
.trpg-icon-upload.is-token:not(.is-empty) .trpg-icon-preview {
    width: auto;
    height: 132px;
    max-width: 120px;
    object-fit: contain;
    object-position: center bottom;
}
.trpg-icon-slot-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}
.trpg-icon-upload.is-portrait .trpg-icon-slot-ph,
.trpg-icon-upload.is-token .trpg-icon-slot-ph { font-size: 22px; }
.trpg-icon-slot-ph-text {
    font-family: "Mona12", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 700;
}
.trpg-icon-upload:not(.is-empty) .trpg-icon-slot-ph { display: none; }
.trpg-icon-upload.is-empty .trpg-icon-clear-btn { display: none; }
.trpg-icon-upload.is-uploading .trpg-icon-slot { opacity: .65; pointer-events: none; }
.trpg-icon-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-subtle);
    font-family: "Mona12", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.trpg-icon-file-btn:hover { border-color: var(--brand); color: var(--brand); }
.trpg-icon-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-subtle);
    cursor: pointer;
}
.trpg-icon-clear-btn:hover { border-color: var(--danger); color: var(--danger); }
.img-upload-status { color: var(--text-subtle); font-size: 12px; }

.credit-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.credit-input-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-subtle);
    font-family: "Mona12", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.credit-input-wrap .credit-input {
    min-width: 0;
    flex: 1;
}

.trpg-content-frame {
    position: relative;
    height: 650px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    background-color: var(--surface-soft);
    background-image:
        linear-gradient(color-mix(in srgb, var(--border) 18%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--border) 18%, transparent) 1px, transparent 1px);
    background-size: 24px 24px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px);
    box-shadow: inset 1px 1px 0 var(--window-highlight);
}

@media (max-width: 768px) {
    * {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    *::-webkit-scrollbar {
        display: none;
    }

    .table-wrapper tr,
    .mo-card,
    .mo-play-card,
    .mo-supp-list li,
    .edit-trigger,
    .sc-subject {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    #wrapper { align-content: start; }
    #wrapper #container {
        min-height: 100svh;
        max-height: 100lvh;
        overflow-y: scroll;
        overscroll-behavior-y: contain;
        margin: 0;
    }
    
    .trpg-nav-container { padding: 12px 10px 0; }
    .trpg-nav-container .window-controls { display: none; }
    .trpg-nav-item { padding: 10px 12px 5px; font-size: 13px; }
    .trpg-nav-label-desktop { display: none; }
    .trpg-nav-label-mobile { display: inline; }
    .trpg-nav-item i { width: 36px; height: 19px; border-radius: 8px; font-size: 13px; }

.trpg-nav-item[data-mobile-href] {
        border-color: var(--warning);
        color: var(--warning);
    }
    .trpg-nav-item[data-mobile-href] i {
        border-color: var(--warning);
        color: var(--warning);
    }
    .trpg-nav-item[data-mobile-href]::after {
        content: '↗';
        position: absolute;
        top: 1px;
        right: 3px;
        width: 13px;
        height: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--warning);
        color: var(--brand-contrast);
        font-size: 9px;
        font-weight: 900;
        line-height: 1;
        box-shadow: 0 1px 2px color-mix(in srgb, var(--border) 40%, transparent);
    }
    .sc-header { padding: 12px 15px; }
    
    .unified-wrapper {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .trpg-content-frame {
        height: auto;
        padding: 16px;
        border: 0;
        border-radius: 0;
    }
}

@keyframes lp-charge {
    from { background-size: 0% 100%; }
    to { background-size: 100% 100%; }
}
.lp-charging {
    background-image: linear-gradient(color-mix(in srgb, var(--text-subtle) 45%, transparent), color-mix(in srgb, var(--text-subtle) 45%, transparent)) !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 0% 100%;
    animation: lp-charge 700ms linear forwards;
}

.write_div { margin-bottom: 0; }