























:root {
     
    --dv2-sidebar-w: 240px;
    --dv2-header-h:  60px;
    



    --dv2-rail-w:    280px;

    











    --dv2-gutter: 24px;

     
    --dv2-shadow-card:  0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(28,28,30,0.05);
    --dv2-shadow-pop:   0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    --dv2-shadow-drawer:0 0 40px rgba(0,0,0,0.28);
    --dv2-scrim:        rgba(28,28,30,0.42);
     
    --dv2-shadow-knob:  0 1px 3px rgba(0,0,0,0.15);
}












:root,
:root[data-theme="light"],
:root[data-theme="system"],
:root[data-theme="dark"] {
    --bg-primary:   var(--bg);
    --bg-secondary: var(--bg2);
    --bg-card:      var(--surface);
    --bg-hover:     var(--bg2);
    --bg-input:     var(--bg);

    --text-primary:   var(--ink1);
    --text-secondary: var(--ink3);
    --text-muted:     var(--ink4);

    --border-color:  var(--border);
    --border-accent: var(--gold-lt);

     
    --accent-primary:   var(--gold-dk);
    











    --accent-secondary: var(--gold-dk);
    --accent-glow:      var(--gold-bg2);
    --accent-soft:      var(--gold-bg);
    --accent-coral:     var(--red);

    --success:   var(--green);
    --danger:    var(--red);
    --danger-bg: var(--red-lt);
    --warning:   var(--gold-dk);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm:         var(--dv2-shadow-card);
    --shadow-md:         var(--dv2-shadow-card);
    --shadow-lg:         var(--dv2-shadow-pop);
    --shadow-card:       var(--dv2-shadow-card);
    --shadow-card-hover: var(--dv2-shadow-pop);

     
    color-scheme: light;
}




body {
    background: var(--bg);
    color: var(--ink1);
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

.v2-shell {
    display: flex;
    align-items: stretch;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

 
.v2-shell > .app {
    max-width: none;
    margin: 0;
    padding: 0;
    height: 100%;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}











.v2-ai-rail {
    display: none;
    flex: 0 0 var(--dv2-rail-w);
    width: var(--dv2-rail-w);
    height: 100%;
    flex-direction: column;
    background: var(--ink1);
    background: linear-gradient(160deg, var(--ink1) 0%, color-mix(in srgb, var(--ink1) 88%, var(--gold)) 100%);
    color: var(--surface);
    overflow: hidden;
}
@media (min-width: 1081px) {
    .v2-ai-rail { display: flex; }
     
    body .cj-fab { display: none; }
    




    body .cj-panel,
    body .cj-overlay { display: none; }
}
.v2-ai-rail__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: var(--dv2-header-h);
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.v2-ai-rail__avatar {
    width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold); color: var(--ink1);
    font-size: 10px; font-weight: 700; letter-spacing: .02em; flex-shrink: 0;
}
.v2-ai-rail__title { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; }
.v2-ai-rail__pts { font-size: 11px; color: var(--gold-lt); white-space: nowrap; }
.v2-ai-rail__body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; min-height: 0; }
.v2-ai-rail__body::-webkit-scrollbar { width: 6px; }
.v2-ai-rail__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 3px; }
.v2-ai-rail__label {
    font-size: 10px; font-weight: 700; letter-spacing: .06em;
    color: rgba(255, 255, 255, 0.5); margin: 0 0 8px;
}
.v2-ai-rail__label + * + .v2-ai-rail__label { margin-top: 16px; }
.v2-ai-rail__chat { display: flex; flex-direction: column; gap: 8px; }
.v2-ai-msg { display: flex; gap: 7px; align-items: flex-start; }
.v2-ai-msg--user { flex-direction: row-reverse; }
.v2-ai-msg__avatar {
    width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold); color: var(--ink1); font-size: 8px; font-weight: 700;
}


.v2-ai-msg__bubble,
.v2-ai-rail__chat .cj-msg,
.v2-ai-rail__chat .cj-typing {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px; padding: 7px 10px;
    font-size: 11.5px; line-height: 1.6; min-width: 0;
    font-feature-settings: "palt" 1; text-wrap: pretty;
}
.v2-ai-msg--user .v2-ai-msg__bubble,
.v2-ai-rail__chat .cj-msg--user { background: var(--gold-lt); color: var(--ink1); }
.v2-ai-rail__empty { font-size: 11.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.55); }










.v2-ai-rail__chat .cj-msg,
.v2-ai-rail__chat .cj-typing { max-width: 100%; box-shadow: none; align-self: stretch; }
.v2-ai-rail__chat .cj-msg--user { border-radius: 10px 10px 4px 10px; }


.v2-ai-rail__chat .cj-msg--bot,
.v2-ai-rail__chat .cj-typing {
    border-radius: 10px 10px 10px 4px;
    color: var(--surface);
}







.v2-ai-rail__chat .cj-msg--bot .cj-highlight,
.v2-ai-rail__chat .cj-msg--bot .cj-sub,
.v2-ai-rail__chat .cj-msg--bot .cj-item-label,
.v2-ai-rail__chat .cj-msg--bot .cj-item-label > span:not(.cj-item-sub),
.v2-ai-rail__chat .cj-msg--bot .cj-item-value,
.v2-ai-rail__chat .cj-msg--bot .cj-item-sub,
.v2-ai-rail__chat .cj-msg--bot .cj-note-title,
.v2-ai-rail__chat .cj-msg--bot .cj-note-body,
.v2-ai-rail__chat .cj-msg--bot .cj-confirm__title,
.v2-ai-rail__chat .cj-msg--bot .cj-confirm__detail,
.v2-ai-rail__chat .cj-msg--bot .cj-confirm__btn--cancel,
.v2-ai-rail__chat .cj-typing .cj-typing__label { color: inherit; }
.v2-ai-rail__chat .cj-msg--bot .cj-ai-label { color: var(--gold-lt); opacity: 1; }






.v2-ai-rail__chat .cj-msg--bot .cj-result-ok { color: var(--green-on-dark); }
.v2-ai-rail__chat .cj-msg--bot .cj-result-err { color: var(--red-on-dark); }



.v2-ai-rail__chat .cj-msg--bot .cj-item,
.v2-ai-rail__chat .cj-msg--bot .cj-note,
.v2-ai-rail__chat .cj-msg--bot .cj-confirm,
.v2-ai-rail__chat .cj-msg--bot .cj-confirm__btn--cancel,
.v2-ai-rail__chat .cj-msg--bot .cj-answer { background: transparent; }
.v2-ai-task {
    display: block; width: 100%; text-align: left;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px; padding: 9px 26px 9px 11px; margin-bottom: 8px;
    color: inherit; cursor: pointer; font: inherit;
    position: relative;
}
.v2-ai-task:hover { background: rgba(255, 255, 255, 0.11); }
.v2-ai-task__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.v2-ai-task__tag {
    font-size: 9.5px; font-weight: 700; padding: 1px 7px; border-radius: 4px;
    background: var(--gold-lt); color: var(--gold-dk); white-space: nowrap;
}
.v2-ai-task__tag--danger { background: var(--red-lt); color: var(--red); }
 
.v2-ai-task__arrow { color: rgba(255, 255, 255, 0.4); font-size: 13px; line-height: 1; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); }
.v2-ai-task__text { font-size: 11.5px; line-height: 1.55; font-feature-settings: "palt" 1; }
.v2-ai-task__sub { font-size: 10px; color: rgba(255, 255, 255, 0.5); margin-top: 2px; }
.v2-ai-rail__foot { flex: 0 0 auto; padding: 12px 16px 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.v2-ai-rail__inputbar {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px; padding: 5px 5px 5px 12px;
}
.v2-ai-rail__input {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
    color: var(--surface); font-size: 11.5px; font-family: inherit;
}
.v2-ai-rail__input::placeholder { color: rgba(255, 255, 255, 0.45); }







.v2-ai-rail__attach,
.v2-ai-rail__mic {
    width: 26px; height: 26px; border-radius: 50%; border: 0; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--gold-lt); cursor: pointer; padding: 0;
}
.v2-ai-rail__attach:hover,
.v2-ai-rail__mic:hover { background: var(--ink1); color: var(--gold); }


.v2-ai-rail__mic.cj-mic--active { color: var(--red-on-dark); }
 
.v2-ai-rail__preview { display: flex; gap: 6px; flex-wrap: wrap; }
.v2-ai-rail__preview:not(:empty) { margin-bottom: 8px; }
.v2-ai-rail__send {
    width: 26px; height: 26px; border-radius: 50%; border: 0; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold); color: var(--ink1); cursor: pointer;
}








 
.v2-sidebar {
    width: var(--dv2-sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.v2-sidebar__logo {
    height: var(--dv2-header-h);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 0 20px;
    border-bottom: 1px solid var(--border);
}



.v2-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink1);
    min-width: 0;
}

.v2-logo__mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ink1);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.v2-logo__text {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink1);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.v2-logo__text span { color: var(--gold); }

.v2-sidebar__close {
    margin-left: auto;
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--ink3);
    cursor: pointer;
}
.v2-sidebar__close:hover { background: var(--bg); color: var(--ink1); }

.v2-sidebar__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 0;
}

.v2-nav-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink4);
    letter-spacing: 0.08em;
    padding: 12px 20px 6px;
}

.v2-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 20px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink2);
    background: none;
    border: none;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: background 0.15s, color 0.15s;
}
.v2-nav-item:hover { background: var(--bg); }



.v2-nav-item.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: auto;
}
.v2-nav-item.is-disabled:hover { background: transparent; }

 
.v2-nav-item.active,
.v2-nav-item[aria-current="page"] {
    color: var(--gold-dk);
    background: var(--gold-bg);
}
.v2-nav-item.active::before,
.v2-nav-item[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    border-radius: 0 2px 2px 0;
}

.v2-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}
.v2-nav-item.active svg,
.v2-nav-item[aria-current="page"] svg { opacity: 1; }

.v2-nav-badge {
    margin-left: auto;
    background: var(--gold-bg2);
    color: var(--gold-dk);
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    white-space: nowrap;
}
.v2-nav-badge:empty { display: none; }

 
.v2-sidebar__footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    padding: 12px 14px;
}

.v2-points {
    display: block;
    background: var(--bg);
    border-radius: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--ink3);
}
.v2-points:hover { background: var(--bg2); }
.v2-points__label { font-size: 10px; color: var(--ink3); margin-bottom: 4px; }
.v2-points__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--ink3);
}
.v2-points__num { color: var(--gold-dk); font-weight: 600; font-size: 13px; }
.v2-points__buy { color: var(--gold-dk); font-weight: 500; white-space: nowrap; }

 
.v2-sidebar__footer .account-menu-wrapper { width: 100%; margin-top: 8px; }

.v2-sidebar__footer .account-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
    width: 100%;
    padding: 8px 6px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--ink2);
    cursor: pointer;
    font-family: inherit;
}
.v2-sidebar__footer .account-menu-trigger:hover { background: var(--bg); }
.v2-sidebar__footer .account-menu-trigger svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--ink3);
}
.v2-account-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

 
.v2-sidebar__footer .account-dropdown {
    top: auto;
    bottom: calc(100% + 8px);
    right: 0;
    left: 0;
    width: auto;
    min-width: 0;
}

 
.v2-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: var(--dv2-scrim);
    border: none;
    padding: 0;
}




.v2-shell .header {
    height: var(--dv2-header-h);
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.v2-shell .header__left {
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.v2-shell .header__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v2-shell .header__title-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--ink3);
    margin-left: 10px;
}

.v2-shell .header__right { gap: 10px; align-items: center; }

 
.v2-navtoggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink2);
    cursor: pointer;
}
.v2-navtoggle:hover { background: var(--bg); }
.v2-navtoggle svg { width: 18px; height: 18px; }



.v2-shell #dashboardReportBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ink1);
    color: var(--surface);
    border: 1px solid var(--ink1);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    min-height: 0;
    white-space: nowrap;
}
.v2-shell #dashboardReportBtn:hover { background: var(--ink2); border-color: var(--ink2); }




.v2-shell .dashboard-main {
    background: var(--bg);
    padding: 0;
}



.v2-shell .tab-content { padding: 20px var(--dv2-gutter) 104px; }
.v2-shell .tab-content.active { gap: 16px; }
.v2-shell .tab-content::-webkit-scrollbar { width: 6px; }
.v2-shell .tab-content::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

 
.v2-shell .summary-section { padding-top: 0 !important; padding-bottom: 0 !important; }
.v2-shell #summarySection { display: flex; flex-direction: column; gap: 16px; }

 
.v2-empty {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.v2-empty[hidden] { display: none; }
.v2-empty__card {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--dv2-shadow-card);
    padding: 32px 36px;
    text-align: center;
    max-width: 420px;
}
.v2-empty__title { font-size: 15px; font-weight: 700; color: var(--ink1); }
.v2-empty__text { font-size: 12.5px; color: var(--ink3); line-height: 1.7; margin: 8px 0 18px; }

 
.v2-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: var(--dv2-shadow-card);
}
.v2-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.v2-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink1);
}
.v2-card__note { font-size: 11px; color: var(--ink4); }


.v2-card__link {
    font-size: 12px;
    font-weight: 500;
    color: var(--gold-dk);
    text-decoration: none;
    white-space: nowrap;
}
.v2-card__link:hover { text-decoration: underline; }
 
button.v2-card__link {
    font-family: inherit;
    line-height: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}




.v2-chart__legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--ink3);
}
.v2-chart__legend-item { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.v2-chart__legend-dot { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }



.v2-chart__legend-dot--income {
    background: var(--gold-lt);
    border: 1px solid var(--gold-dk);
}
.v2-chart__legend-dot--cf {
    background: repeating-linear-gradient(45deg, var(--green-lt) 0 2px, var(--green) 2px 3.6px);
    border: 1px solid var(--green);
}
.v2-chart__legend-line { width: 18px; height: 2px; border-radius: 1px; flex-shrink: 0; }
.v2-chart__controls { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.v2-chart__canvas { position: relative; height: 260px; min-height: 0; }
@media (max-width: 768px) {
    .v2-chart__canvas { height: 220px; }
    .v2-card__header { flex-wrap: wrap; }
}










.v2-plist { display: flex; flex-direction: column; }
.v2-plist__head,
.v2-plist__row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 90px 110px 110px 80px 20px;
    gap: 0 12px;
    align-items: center;
}
.v2-plist__head {
    padding: 0 4px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    color: var(--ink3);
}
.v2-plist__c { text-align: center; }
.v2-plist__r { text-align: right; }
.v2-plist__body { max-height: 220px; overflow-y: auto; overflow-x: hidden; }
.v2-plist__body::-webkit-scrollbar { width: 6px; }
.v2-plist__body::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
.v2-plist__row {
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}
.v2-plist__row:last-child { border-bottom: 0; }
.v2-plist__row:hover { background: var(--gold-bg); }
 
.v2-plist__mark {
    width: 28px; height: 28px; border-radius: 7px;
    background: var(--gold-bg2); color: var(--gold-dk);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.v2-plist__name {
    font-size: 13px; font-weight: 600; color: var(--ink1);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.v2-plist__occ { font-size: 12px; font-weight: 700; color: var(--ink1); display: block; }
.v2-plist__bar { display: block; width: 100%; height: 3px; margin-top: 3px; }







.v2-plist__num { font-size: 13px; font-weight: 600; color: var(--ink1); font-family: 'Inter', sans-serif; white-space: nowrap; }
.v2-plist__num--neg { color: var(--red); }
.v2-plist__sub { font-size: 11px; color: var(--ink3); font-family: 'Inter', sans-serif; white-space: nowrap; }
.v2-plist__go { color: var(--ink4); display: flex; justify-content: center; }
.v2-plist__empty { font-size: 12px; color: var(--ink3); padding: 12px 4px; line-height: 1.7; }
@media (max-width: 768px) {
    .v2-plist__head,
    .v2-plist__row { grid-template-columns: 28px minmax(0, 1fr) 62px 88px 88px; gap: 0 8px; }
    .v2-plist__head > :nth-child(6),
    .v2-plist__row > :nth-child(6),
    .v2-plist__head > :nth-child(7),
    .v2-plist__row > :nth-child(7) { display: none; }
}




@media (max-width: 480px) {
    .v2-plist__head,
    .v2-plist__row { grid-template-columns: 28px minmax(0, 1fr) 52px 84px; }
    .v2-plist__head > :nth-child(4),
    .v2-plist__row > :nth-child(4) { display: none; }
}




























@media (min-width: 901px) and (max-width: 917px),
       (min-width: 1081px) and (max-width: 1229px) {
    .v2-plist__head,
    .v2-plist__row { grid-template-columns: 28px minmax(0, 1fr) 62px 92px 92px 20px; gap: 0 8px; }
    .v2-plist__head > :nth-child(6),
    .v2-plist__row > :nth-child(6) { display: none; }
}






@media (max-width: 367px) {
    .v2-plist__head,
    .v2-plist__row { grid-template-columns: minmax(0, 1fr) 44px 76px; gap: 0 6px; }
    .v2-plist__head > :nth-child(1),
    .v2-plist__row > :nth-child(1) { display: none; }
}




.v2-botrow {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
@media (max-width: 1080px) {
    .v2-botrow { grid-template-columns: minmax(0, 1fr); }
}
.v2-timeline { display: flex; flex-direction: column; }
.v2-tl__item { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 0 10px; }
.v2-tl__dotcol { display: flex; flex-direction: column; align-items: center; }
.v2-tl__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold); margin-top: 5px; flex-shrink: 0;
}
.v2-tl__line { width: 1px; flex: 1; background: var(--border); margin: 3px 0; }
.v2-tl__item:last-child .v2-tl__line { display: none; }
.v2-tl__body { padding-bottom: 12px; min-width: 0; }
.v2-tl__item:last-child .v2-tl__body { padding-bottom: 0; }
.v2-tl__head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.v2-tl__type {
    font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 4px;
    background: var(--gold-bg2); color: var(--gold-dk); white-space: nowrap;
}
.v2-tl__date { font-size: 10px; color: var(--ink3); }
.v2-tl__text {
    font-size: 12.5px; color: var(--ink1); line-height: 1.55;
    font-feature-settings: "palt" 1; text-wrap: pretty;
}
.v2-tl__empty { font-size: 12px; color: var(--ink3); line-height: 1.7; padding: 4px 0; }









.v2-fin__group {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink3);
    letter-spacing: .06em;
    margin-bottom: 6px;
}
.v2-fin__grid {
    








    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.v2-fin__grid:last-child { margin-bottom: 0; }







.v2-fin__tile {
    background: var(--bg);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.v2-fin__label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    

    color: var(--ink3);
    margin-bottom: 4px;
    line-height: 1.4;
    










    word-break: keep-all;
}
.v2-fin__label .info-tooltip { color: var(--ink4); flex-shrink: 0; }
.v2-fin__label .info-tooltip svg { display: block; }
.v2-fin__value {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink1);
    




    line-height: 21px;
    font-family: 'Inter', sans-serif;
}
.v2-fin__value--sm { font-size: 15px; }
.v2-fin__unit { font-size: 11px; font-weight: 500; margin-left: 1px; }





.v2-bento {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    grid-auto-rows: minmax(92px, auto);
    gap: 12px;
}





.v2-bento__hero.kpi-card,
.v2-bento__card.kpi-card {
    align-items: stretch;
    border: 0;
    min-height: 0;
    transition: none;
}
.v2-bento__hero.kpi-card:hover,
.v2-bento__card.kpi-card:hover {
    transform: none;
    box-shadow: var(--dv2-shadow-card);
}
.v2-bento__hero.kpi-card:hover { box-shadow: none; }

 
.v2-shell .cs-sample-badge {
    background: var(--gold-bg2) !important;
    color: var(--gold-dk) !important;
}

.v2-bento__hero {
    grid-column: 1;
    grid-row: span 2;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 20px 22px;
    

    background: var(--ink1);
    background: linear-gradient(145deg, var(--ink1) 0%, color-mix(in srgb, var(--ink1) 88%, var(--gold)) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.v2-bento__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.v2-bento__hero > * { position: relative; }

.v2-bento__hero-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.v2-bento__hero-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold-lt);
    letter-spacing: -1px;
    line-height: 1.05;
    word-break: break-all;
}
.v2-bento__hero .kpi-trend { color: rgba(255,255,255,0.55); }
.v2-bento__hero .kpi-trend--up   { color: var(--green-lt); }
.v2-bento__hero .kpi-trend--down { color: var(--red-lt); }
.v2-bento__hero .kpi-trend--flat { color: rgba(255,255,255,0.45); }
.v2-bento__hero .info-tooltip { color: rgba(255,255,255,0.45); }












.v2-bento__hero .info-tooltip:hover,
.v2-bento__hero .info-tooltip:focus,
.v2-bento__hero .info-tooltip:focus-within,
.v2-bento__hero .info-tooltip.is-open { color: var(--gold-lt); }
.v2-bento__hero .info-tooltip:focus-visible { outline-color: var(--gold-lt); }




.v2-bento__card {
    background: var(--surface);
    border-radius: 12px;
    padding: 13px 15px;
    box-shadow: var(--dv2-shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
}
.v2-bento__label {
    font-size: 10px;
    font-weight: 500;
    color: var(--ink4);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 14px;
    min-height: 14px;
}
.v2-bento__label .info-tooltip svg { display: block; }
.v2-bento__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink1);
    letter-spacing: -0.5px;
    line-height: 24px;
    min-height: 24px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v2-bento__value--neg { color: var(--red); }
.v2-bento__value--occ { color: var(--green); }
.v2-bento__card > .kpi-trend { margin-top: 2px; min-height: 16px; }
.v2-bento__sub {
    font-size: 10px;
    color: var(--ink4);
    line-height: 15px;
    margin-top: auto;
    padding-top: 4px;
}
.v2-bento__sub b { color: var(--ink2); font-weight: 600; }

 
.v2-bento__ring { display: flex; align-items: center; gap: 10px; }
.v2-bento__ring svg { flex-shrink: 0; }
.v2-bento__ring .v2-bento__value { margin: 0; }

 
.v2-spark { margin-top: 10px; }
.v2-spark svg { display: block; width: 100%; height: 34px; }
.v2-spark__months {
    display: flex; justify-content: space-between;
    font-size: 9px; color: rgba(255, 255, 255, 0.45); margin-top: 2px;
}

 
.kpi-trend { font-size: 11px; font-weight: 500; line-height: 16px; }
.kpi-trend--up   { color: var(--green); }
.kpi-trend--down { color: var(--red); }
.kpi-trend--flat { color: var(--ink4); }

 
#portfolioScoreCards {
    






    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}


#portfolioScoreCards > div { background: var(--bg) !important; border-color: transparent !important; }
.hs-score__ring--green  { background: var(--green); box-shadow: none; }
.hs-score__ring--yellow { background: var(--gold); box-shadow: none; }
.hs-score__ring--orange { background: var(--gold-dk); box-shadow: none; }
.hs-score__ring--red    { background: var(--red); box-shadow: none; }




 
.v2-shell .chart-card-idx {
    background: var(--surface);
    border: none !important;
    border-radius: 12px !important;
    box-shadow: var(--dv2-shadow-card) !important;
}
.v2-shell .chart-card-idx:hover { box-shadow: var(--dv2-shadow-card) !important; transform: none; }
.v2-shell .chart-card-idx__title span:first-child { color: var(--ink1); }

.v2-shell .chart-period-sel {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink2);
}
.v2-shell .chart-period-sel:hover { border-color: var(--border2); color: var(--ink1); }

.v2-shell .chart-legend-strip__dot { border-radius: 2px; }

 
.v2-shell #portfolioSummaryHeader { gap: 12px; }
.v2-shell .portfolio-metrics-grid { align-items: end; }

 
.v2-shell .pnl-section {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--dv2-shadow-card);
}
.v2-shell .pnl-section__title { color: var(--ink1); }
.v2-shell .pnl-table-wrap thead th { background: var(--bg); color: var(--ink3); }
.v2-shell .pnl-cell-negative { color: var(--red); }


.v2-shell .pnl-table-wrap tbody td.pnl-actual-col {
    border-left: 2px solid var(--green-lt);
    background: var(--green-lt);
}
 
.v2-shell .dt-forecast-badge { background: var(--gold-bg2); color: var(--gold-dk); }
 
.v2-shell .pnl-row-calc td.pnl-actual-col,
.v2-shell .pnl-row-total td.pnl-actual-col { border-left: 2px solid var(--green-lt); }

 
.v2-shell #overheadDetails {
    border-radius: 12px;
    box-shadow: var(--dv2-shadow-card);
}
 
.v2-shell #overheadDetails > summary { background: var(--surface) !important; }



.v2-shell .btn,
.v2-shell .detail-btn,
.v2-empty .btn,
.modal .btn { border-radius: 8px; }

.v2-shell .btn--primary,
.v2-empty .btn--primary,
.modal .btn--primary {
    background: var(--ink1);
    color: var(--surface);
}
.v2-shell .btn--primary:hover,
.v2-empty .btn--primary:hover,
.modal .btn--primary:hover { background: var(--ink2); transform: none; }
.v2-shell .btn--ghost,
.modal .btn--ghost { border-color: var(--border); color: var(--ink3); }
.v2-shell .btn--ghost:hover,
.modal .btn--ghost:hover { background: var(--bg); color: var(--ink1); }
 
.v2-shell a.btn,
.v2-empty a.btn { text-decoration: none; }

 
.modal { border-radius: 16px; }
.modal__title { color: var(--ink1); }
 
.v2-shell input, .v2-shell select, .v2-shell textarea,
.modal input, .modal select, .modal textarea { accent-color: var(--gold-dk); }

 
.chart-tooltip { border-radius: 10px; }





.v2-shell .info-tooltip__content {
    white-space: normal;
    












    word-break: normal;
    width: max-content;
    max-width: min(260px, calc(100vw - 32px));
    line-height: 1.55;
    text-align: left;
}







.v2-bento__card,
.v2-fin__tile { position: relative; }
.v2-bento__label > .info-tooltip,
.v2-bento__hero-label > .info-tooltip,
.v2-fin__label > .info-tooltip { position: static; }
.v2-bento__label > .info-tooltip > .info-tooltip__content,
.v2-bento__hero-label > .info-tooltip > .info-tooltip__content,
.v2-fin__label > .info-tooltip > .info-tooltip__content {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    transform: translateY(4px);
}





.v2-bento__label > .info-tooltip:hover > .info-tooltip__content,
.v2-bento__label > .info-tooltip:focus > .info-tooltip__content,
.v2-bento__label > .info-tooltip:focus-within > .info-tooltip__content,
.v2-bento__label > .info-tooltip.is-open > .info-tooltip__content,
.v2-bento__hero-label > .info-tooltip:hover > .info-tooltip__content,
.v2-bento__hero-label > .info-tooltip:focus > .info-tooltip__content,
.v2-bento__hero-label > .info-tooltip:focus-within > .info-tooltip__content,
.v2-bento__hero-label > .info-tooltip.is-open > .info-tooltip__content,
.v2-fin__label > .info-tooltip:hover > .info-tooltip__content,
.v2-fin__label > .info-tooltip:focus > .info-tooltip__content,
.v2-fin__label > .info-tooltip:focus-within > .info-tooltip__content,
.v2-fin__label > .info-tooltip.is-open > .info-tooltip__content {
    transform: translateY(0);
}
.v2-bento__label > .info-tooltip > .info-tooltip__content::after,
.v2-bento__hero-label > .info-tooltip > .info-tooltip__content::after,
.v2-fin__label > .info-tooltip > .info-tooltip__content::after {
    left: 22px;
    transform: none;
}












.v2-bento__hero-label > .info-tooltip > .info-tooltip__content {
    bottom: auto;
    top: calc(100% + 8px);
}





.v2-bento__hero-label > .info-tooltip > .info-tooltip__content::after {
    top: auto;
    bottom: 100%;
    transform: scaleY(-1);
}




body .cj-fab,
body .cj-fab:not(.open) {
    background: var(--ink1);
    box-shadow: 0 6px 24px rgba(28,28,30,0.28), 0 2px 8px rgba(0,0,0,0.1);
    animation: none;
}
body .cj-fab:hover {
    box-shadow: 0 8px 32px rgba(28,28,30,0.34), 0 0 18px rgba(201,168,76,0.28);
}
body .cj-fab { color: var(--gold); }
body .cj-fab svg { color: var(--gold); }



body.v2-nav-open .cj-fab { display: none; }






.v2-shell #overheadDetails > summary { padding: 14px 96px 14px 18px; }


.v2-shell .pf-card { padding: 16px 96px 16px 20px; }







































































@media (min-width: 1081px) and (max-width: 1365px) {
    :root { --dv2-gutter: 18px; }
    .v2-bento__card { padding: 13px 10px; }
    .v2-bento__value { font-size: 17px; line-height: 21px; min-height: 21px; }
    .v2-bento__hero-value { font-size: 26px; }
}

@media (max-width: 1240px) {
    .v2-bento { grid-template-columns: 1.6fr 1fr 1fr; }
    .v2-bento__hero { grid-row: span 2; }
}

@media (max-width: 1080px) {
    :root { --dv2-sidebar-w: 208px; --dv2-gutter: 18px; }
    .v2-shell .tab-content { padding: 16px var(--dv2-gutter) 24px; }
}

@media (max-width: 900px) {
     
    .v2-sidebar {
        position: fixed;
        top: 0; bottom: 0; left: 0;
        width: min(280px, 84vw);
        z-index: 1200;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }
    .v2-shell.is-nav-open .v2-sidebar {
        transform: translateX(0);
        box-shadow: var(--dv2-shadow-drawer);
    }
    .v2-shell.is-nav-open .v2-scrim { display: block; }
    .v2-sidebar__close { display: flex; }
    .v2-navtoggle { display: inline-flex; }

    .v2-bento { grid-template-columns: 1fr 1fr; }
    .v2-bento__hero { grid-column: 1 / -1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .v2-sidebar { transition: none; }
}

@media (max-width: 768px) {
    :root { --dv2-gutter: 12px; }
    .v2-shell {
        display: block;
        height: auto;
        overflow: visible;
    }
    .v2-shell > .app {
        height: auto;
        overflow: visible;
    }
    .v2-shell .header {
        position: sticky;
        top: 0;
        z-index: 60;
        padding: 0 12px;
        gap: 10px;
    }
    .v2-shell .header__title { font-size: 15px; }
    .v2-shell .header__title-sub { display: block; margin-left: 0; font-size: 10px; line-height: 1.2; }
    .v2-shell .header__left { flex-direction: row; align-items: center; }
    .v2-shell #dashboardReportBtn { padding: 6px 10px; font-size: 11px; }

    .v2-shell .dashboard-main { overflow: visible; }
    

    .v2-shell .tab-content {
        padding: 14px var(--dv2-gutter);
        padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px));
        overflow: visible;
    }
    .v2-shell .tab-content:not(.active) { display: none; }

    









    .v2-numeric-disclaimer {
        position: sticky;
        top: var(--dv2-header-h);
        z-index: 59;
    }
     
    .v2-empty {
        padding: 24px 12px;
        padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px));
    }

    .v2-bento {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: minmax(76px, auto);
        gap: 10px;
    }
    .v2-bento__card { padding: 12px 13px; }
    .v2-bento__hero { grid-column: 1 / -1; grid-row: auto; padding: 18px; }
    .v2-bento__hero-value { font-size: 26px; }
    .v2-bento__value { font-size: 17px; }

    .v2-card { padding: 14px; }
    #portfolioScoreCards { grid-template-columns: 1fr; }

     
    .v2-shell #tabCharts .chart-card-idx { min-height: 260px; }
     
    .v2-shell #tabCharts > .summary-section { height: auto !important; }

     
    .v2-shell #tabPortfolio { overflow: visible !important; }
    .v2-shell #tabPortfolio > .summary-section { height: auto !important; }
    .v2-shell #portfolioStatusListView { overflow: visible !important; }
    .v2-shell #portfolioSummaryHeader {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .v2-shell .header__title { font-size: 14px; }
    .v2-bento { grid-template-columns: 1fr; }
    .v2-bento__hero-value { font-size: 23px; }
    .v2-bento__value { font-size: 18px; }
}












 
body::before,
body::after,
html:root[data-theme="dark"] body::before,
html:root[data-theme="dark"] body::after,
html:root[data-theme="system"] body::before,
html:root[data-theme="system"] body::after {
    display: none;
    background: none;
}

 
html:root .bottom-nav,
html:root[data-theme="dark"] .bottom-nav,
html:root[data-theme="system"] .bottom-nav {
    background: var(--surface);
    border-top: 1px solid var(--border);
}
html:root .bottom-nav__item { color: var(--ink4); }
html:root .bottom-nav__item.active { color: var(--gold-dk); }
html:root .bottom-nav__notice { color: var(--ink3); background: var(--surface); }
html:root .bottom-nav__notice a { color: var(--ink3); }

 
 
html:root[data-theme="dark"] .pnl-row-calc td,
html:root[data-theme="system"] .pnl-row-calc td { background: var(--bg2) !important; color: var(--ink2); }
html:root[data-theme="dark"] .pnl-row-total td,
html:root[data-theme="system"] .pnl-row-total td { background: var(--gold-bg) !important; color: var(--gold-dk); }
html:root[data-theme="dark"] .pnl-table-wrap tbody td,
html:root[data-theme="system"] .pnl-table-wrap tbody td { color: var(--ink1); }
html:root[data-theme="dark"] .pnl-table-wrap tbody td:first-child,
html:root[data-theme="system"] .pnl-table-wrap tbody td:first-child { background: var(--surface); }

 
html:root[data-theme="dark"],
html:root[data-theme="system"] {
    --cj-bg:           var(--surface);
    --cj-bg-solid:     var(--surface);
    --cj-border:       var(--border);
    --cj-subtle-bg:    var(--bg);
    --cj-subtle-hover: var(--bg2);
    --cj-shadow:       var(--dv2-shadow-pop);
}








.v2-numeric-disclaimer {
    










    






    flex: 0 0 auto;
    margin: 0 var(--dv2-gutter) 10px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink2);
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    font-feature-settings: "palt" 1;
    text-wrap: pretty;
}
.v2-confidence-note {
    margin: -4px 0 12px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink3);
    font-feature-settings: "palt" 1;
    text-wrap: pretty;
}
