










 
body { background: var(--bg); }
.v2-shell > .rp-app { display: flex; flex-direction: column; background: var(--bg); }
.v2-shell .rp-header { display: flex; align-items: center; justify-content: space-between; }
.v2-shell .rp-header .header__left { display: flex; align-items: center; }
.v2-shell .rp-header .header__right { display: flex; }




.rp-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 var(--dv2-gutter) 104px;    
}


.rp-app [hidden] { display: none; }
.rp-scroll::-webkit-scrollbar { width: 6px; }
.rp-scroll::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

 
 
.rp-tabs {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    margin: 0 calc(-1 * var(--dv2-gutter)) 20px;
    padding: 0 var(--dv2-gutter);
    overflow-x: auto;
}
.rp-tab {
    position: relative;
    padding: 12px 16px;
    font: inherit; font-size: 13.5px; font-weight: 500;
    color: var(--ink3);
    background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.rp-tab:hover { color: var(--ink1); }
.rp-tab[aria-selected="true"] { color: var(--ink1); font-weight: 600; }
.rp-tab[aria-selected="true"]::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--gold); border-radius: 2px 2px 0 0;
}
.rp-panel[hidden] { display: none; }

 
.rp-toolbar {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 10px 12px;
    margin: 0 auto 16px;
    max-width: 1100px;
}
.rp-field { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.rp-field[hidden] { display: none; }
.rp-label { font-size: 11px; font-weight: 600; color: var(--ink3); white-space: nowrap; }
.rp-select,
.rp-input,
.rp-target-btn {
    font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    min-height: 32px;
}
.rp-target-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; max-width: 260px; }
.rp-target-btn__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rp-target-static { font-size: 12.5px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.rp-select:focus-visible,
.rp-input:focus-visible,
.rp-target-btn:focus-visible,
.rp-pill:focus-visible,
.rp-tab:focus-visible,
.rp-btn:focus-visible { outline: 2px solid var(--gold-dk); outline-offset: 2px; }

 
.rp-pills {
    display: inline-flex; flex-wrap: wrap; gap: 2px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}
.rp-pill {
    font: inherit; font-size: 11.5px; font-weight: 500;
    color: var(--ink3);
    background: none; border: 0; border-radius: 6px;
    padding: 5px 12px; cursor: pointer; white-space: nowrap;
}
.rp-pill:hover:not([aria-checked="true"]) { color: var(--ink1); }
.rp-pill[aria-checked="true"] { background: var(--surface); color: var(--ink1); font-weight: 600; box-shadow: var(--dv2-shadow-card); }

 
.rp-target { position: relative; }
.rp-pop {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 300;
    width: 280px; max-width: calc(100vw - 24px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--dv2-shadow-pop);
    padding: 10px 12px;
}
.rp-pop[hidden] { display: none; }
.rp-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rp-pop__list { max-height: 220px; overflow-y: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px 0; }
.rp-pop__item { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 13px; color: var(--ink1); cursor: pointer; }
.rp-pop__item input { accent-color: var(--gold-dk); }
.rp-pop__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.rp-pop__note { font-size: 11.5px; color: var(--ink3); line-height: 1.6; }

 
.rp-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.rp-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font: inherit; font-size: 13px; font-weight: 500;
    border-radius: 8px; padding: 7px 14px; cursor: pointer; white-space: nowrap;
    min-height: 34px;
}
.rp-btn--ghost { background: var(--surface); color: var(--ink2); border: 1px solid var(--border); }
.rp-btn--ghost:hover { background: var(--bg); }
.rp-btn--dark { background: var(--ink1); color: var(--surface); border: 1px solid var(--ink1); }
.rp-btn--dark:hover { background: var(--ink2); }
.rp-btn--sm { font-size: 11.5px; padding: 4px 10px; min-height: 28px; }
.rp-btn:disabled { opacity: 0.5; cursor: not-allowed; }

 
.toolbar__export-wrap { position: relative; display: inline-block; }
.toolbar__export-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 300;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 0;
    min-width: 230px;
    box-shadow: var(--dv2-shadow-pop);
}
.toolbar__export-menu button {
    display: block; width: 100%;
    background: none; border: none;
    color: var(--ink1);
    padding: 10px 16px; font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.toolbar__export-menu button:hover { background: var(--gold-bg); }
.toolbar__export-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.toolbar__export-setting { padding: 8px 16px 10px; }
.toolbar__export-setting-label { font-size: 11px; color: var(--ink3); display: block; margin-bottom: 6px; }
.toolbar__export-toggle { display: flex; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.toolbar__export-menu .toolbar__export-toggle button {
    flex: 1; padding: 6px 8px; font-size: 11px; text-align: center;
    background: var(--surface); color: var(--ink3);
}
.toolbar__export-menu .toolbar__export-toggle button.active { background: var(--ink1); color: var(--surface); }
.toolbar__export-menu .toolbar__export-toggle button:hover:not(.active) { background: var(--bg); }

 
.rp-paper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--dv2-shadow-card);
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}
 
.rp-paper .report-header { font-feature-settings: "palt" 1; text-wrap: pretty; line-break: strict; }



.rp-dd-toolbar { max-width: 1100px; }
.rp-dd-toolbar .rp-field { max-width: 100%; }
.rp-dd-toolbar .rp-select { max-width: 100%; min-width: 0; }
.rp-dd-status {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 700;
    color: var(--ink2); background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px; padding: 4px 10px;
}
.rp-dd-status:empty { display: none; }
.rp-dd-status.is-ok { color: var(--green); background: var(--green-lt); border-color: var(--green-lt); }
.rp-dd-reason {
    max-width: 1100px; margin: 0 auto 16px;
    font-size: 12.5px; line-height: 1.7; color: var(--ink2);
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px;
    font-feature-settings: "palt" 1; text-wrap: pretty;
}
.rp-dd-reason p + p { margin-top: 6px; color: var(--ink3); }
.rp-dd__empty {
    max-width: 1100px; margin: 0 auto;
    font-size: 12.5px; color: var(--ink3); line-height: 1.7;
    font-feature-settings: "palt" 1; text-wrap: pretty;
}
.rp-dd__empty[hidden] { display: none; }
.rp-dd__next { margin-top: 8px; }
.rp-dd__next a { color: var(--gold-dk); font-weight: 600; }

.rp-dd-grid {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px;
    max-width: 1100px; margin: 0 auto;
}
.rp-dd-grid[aria-busy="true"] { opacity: 0.7; }
.rp-dd-main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rp-dd-side { flex: 1 1 280px; max-width: 100%; min-width: 0; }
@supports (width: min(1px, 2px)) { .rp-dd-side { flex-basis: min(320px, 100%); } }

.rp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--dv2-shadow-card);
    padding: 18px 20px;
    min-width: 0;
}
.rp-card__title { font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 14px; }
.rp-dd-small { font-size: 10.5px; color: var(--ink4); line-height: 1.6; margin-top: 12px; font-feature-settings: "palt" 1; text-wrap: pretty; }

 
.rp-dd-tier {
    list-style: none;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    position: relative; margin: 6px 0 4px;
    --rp-dd-fill: 0;
}
.rp-dd-tier::before,
.rp-dd-tier::after {
    content: ''; position: absolute; top: 13px; left: 12.5%; height: 2px;
}
.rp-dd-tier::before { right: 12.5%; background: var(--border); }
.rp-dd-tier::after { width: calc(75% * var(--rp-dd-fill)); background: var(--green); }
.rp-dd-tier__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.rp-dd-tier__badge {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; margin-bottom: 8px;
    border: 2px solid var(--surface);
}
.rp-dd-tier__step.is-done .rp-dd-tier__badge { background: var(--green-lt); color: var(--green); box-shadow: 0 0 0 1px var(--green-lt); }
.rp-dd-tier__step.is-cur .rp-dd-tier__badge { width: 30px; height: 30px; margin-top: -2px; margin-bottom: 6px; background: var(--green); color: var(--surface); box-shadow: 0 0 0 3px var(--green-lt); }
.rp-dd-tier__step.is-future .rp-dd-tier__badge { background: var(--bg); color: var(--ink4); box-shadow: 0 0 0 1px var(--border); }
.rp-dd-tier__range { font-size: 10px; color: var(--ink4); }
.rp-dd-tier__step.is-cur .rp-dd-tier__range { color: var(--green); font-weight: 600; }

.rp-dd-unlocks { list-style: none; margin-top: 14px; border-top: 1px solid var(--border); }
.rp-dd-unlocks__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.rp-dd-unlocks__name { font-size: 12px; color: var(--ink2); }
.rp-dd-unlocks__val { font-size: 12px; font-weight: 600; color: var(--ink1); }

 


.rp-dd-exports {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(max(calc((100% - 20px) / 3), min(100%, calc((3 * 128px + 20px - 100%) * 100000))), 1fr));
}
.rp-dd-export {
    position: relative;
    display: flex; flex-direction: column; gap: 6px;
    border: 1px solid var(--border); border-radius: 10px;
    padding: 14px; cursor: pointer; min-width: 0;
    transition: border-color .14s, box-shadow .14s;
}
.rp-dd-export:hover { border-color: var(--gold); }
.rp-dd-export input { position: absolute; top: 12px; right: 12px; accent-color: var(--gold-dk); }
.rp-dd-export:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.rp-dd-export:has(input:focus-visible) { outline: 2px solid var(--gold-dk); outline-offset: 2px; }
 
.rp-dd-exports.is-locked .rp-dd-export { opacity: .5; cursor: not-allowed; }
.rp-dd-exports.is-locked .rp-dd-export:hover,
.rp-dd-exports.is-locked .rp-dd-export:has(input:checked) { border-color: var(--border); box-shadow: none; }
.rp-dd-export__ico { width: 34px; height: 34px; border-radius: 8px; background: var(--green-lt); color: var(--green); display: flex; align-items: center; justify-content: center; }
.rp-dd-export__name { font-size: 13px; font-weight: 700; color: var(--ink1); }
.rp-dd-export__desc { font-size: 10.5px; color: var(--ink3); line-height: 1.5; font-feature-settings: "palt" 1; text-wrap: pretty; }

 
.rp-dd-chapters { list-style: none; display: flex; flex-direction: column; }
.rp-dd-chapter { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--ink3); min-width: 0; }
.rp-dd-chapter:last-child { border-bottom: none; }
.rp-dd-chapter.is-on { color: var(--ink2); }
.rp-dd-chapter__check {
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 11px;
    background: var(--bg); color: var(--ink4); border: 1px solid var(--border);
}
.rp-dd-chapter.is-on .rp-dd-chapter__check { background: var(--green-lt); color: var(--green); border-color: var(--green-lt); }
.rp-dd-chapter__name { min-width: 0; }
.rp-dd-chapter__tag { margin-left: auto; font-size: 9px; font-weight: 600; padding: 1px 7px; border-radius: 4px; background: var(--green-lt); color: var(--green); white-space: nowrap; flex-shrink: 0; }
.rp-dd-chapter__tag.is-detail { background: var(--gold-bg); color: var(--gold-dk); }

 
.rp-dd-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.rp-dd-stat:last-child { border-bottom: none; }
.rp-dd-stat__label { font-size: 11.5px; color: var(--ink3); min-width: 0; }
.rp-dd-stat__val { font-size: 13px; font-weight: 700; color: var(--ink1); text-align: right; }
.rp-dd-note {
    margin-top: 14px; padding: 10px 12px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    font-size: 10.5px; color: var(--ink2); line-height: 1.6;
    font-feature-settings: "palt" 1; text-wrap: pretty;
}
.rp-dd-note[hidden] { display: none; }
.rp-dd-note p + p { margin-top: 4px; }
.rp-dd-go { margin-top: 14px; width: 100%; justify-content: center; white-space: normal; }
.rp-dd-go[hidden] { display: none; }

 
@media (max-width: 768px) {
    

    .rp-scroll {
        overflow: visible;
        padding: 0 var(--dv2-gutter);
        padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px));
    }
    .rp-tabs { top: var(--dv2-header-h); z-index: 59; margin-bottom: 12px; }
    .rp-actions { margin-left: 0; width: 100%; }
    .rp-actions > * { flex: 1 1 0; }
    .rp-actions .rp-btn { width: 100%; justify-content: center; }
     
    .rp-field--type { width: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
    .rp-pills { width: 100%; }
    .rp-pill { flex: 1 1 auto; }
     
    .rp-paper .report-page { padding: 24px 16px; }
    .rp-paper { border-radius: 0; margin-left: calc(-1 * var(--dv2-gutter)); margin-right: calc(-1 * var(--dv2-gutter)); width: auto; border-left: 0; border-right: 0; }
    .rp-card { padding: 14px; }
}

 
@media print {
    .v2-sidebar,
    .v2-scrim,
    .v2-ai-rail,
    .rp-header,
    .rp-tabs,
    .rp-toolbar,
    .rp-panel--dd,
    #bottomNavPlaceholder,
    .bottom-nav,
    .cj-fab,
    .cj-panel,
    .cj-overlay,
    .toast { display: none !important; }
    html, body { background: var(--surface) !important; height: auto !important; overflow: visible !important; }
    .v2-shell,
    .v2-shell > .rp-app,
    .rp-scroll { display: block !important; height: auto !important; overflow: visible !important; padding: 0 !important; background: var(--surface) !important; }
    .rp-paper { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; max-width: none !important; margin: 0 !important; }
}
