











 
body { background: var(--bg); min-height: 100vh; }

 
.toggle { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle__slider {
    position: absolute; inset: 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 26px; cursor: pointer;
    transition: all 0.3s;
}
.toggle__slider::before {
    content: ''; position: absolute;
    width: 20px; height: 20px;
    left: 3px; bottom: 3px;
    background: var(--surface); border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: var(--dv2-shadow-knob);
}
.toggle input:checked + .toggle__slider { background: var(--gold-dk); border-color: var(--gold-dk); }
.toggle input:checked + .toggle__slider::before { transform: translateX(18px); }

 
.help-modal {
    position: fixed; inset: 0; z-index: 12000;
    display: flex; align-items: flex-end; justify-content: center;
}
.help-modal__backdrop { position: absolute; inset: 0; background: var(--dv2-scrim); }
.help-modal__card {
    position: relative; z-index: 1;
    background: var(--surface); border-radius: 16px 16px 0 0;
    width: 100%; max-width: 600px;
    max-height: 92vh; display: flex; flex-direction: column;
    box-shadow: var(--dv2-shadow-pop);
}
@media (min-width: 600px) {
    .help-modal { align-items: center; }
    .help-modal__card { border-radius: 16px; max-height: 80vh; }
}
.help-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.help-modal__title { font-size: 16px; font-weight: 700; }
.help-modal__close {
    background: transparent; border: none; font-size: 22px; line-height: 1;
    color: var(--ink4); cursor: pointer; padding: 4px 8px;
}
.help-pane {
    flex: 1 1 auto; min-height: 0;
    padding: 16px 18px;
    display: flex; flex-direction: column; gap: 12px;
}
.help-send-btn {
    background: var(--ink1); color: var(--surface);
    border: none; border-radius: 10px;
    padding: 10px 16px; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; white-space: nowrap;
    width: 100%;
}
.help-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
 
.help-feedback-note {
    font-size: 12px; color: var(--ink3); line-height: 1.6;
    padding: 0; background: none; border-radius: 8px;
}
.help-feedback-textarea {
    width: 100%; min-height: 140px; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--ink1);
    font-size: 13px; font-family: inherit; resize: vertical;
    box-sizing: border-box;
}

 
.v2-shell > .st-app { display: flex; flex-direction: column; background: var(--bg); }
.v2-shell .st-header { display: flex; align-items: center; }
.v2-shell .st-header .header__left { display: flex; align-items: center; }
 
.st-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 var(--dv2-gutter) 104px;    
    scroll-behavior: smooth;
}
.st-scroll::-webkit-scrollbar { width: 6px; }
.st-scroll::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .st-scroll { scroll-behavior: auto; } }

 
.st-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 24px; }


.st-snav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; z-index: 5; }
.st-snav__item {
    font-size: 12.5px; font-weight: 500; color: var(--ink3);
    padding: 7px 12px; border-radius: 7px; text-decoration: none;
    transition: background .15s, color .15s; white-space: nowrap;
}
.st-snav__item:hover { background: var(--bg2); color: var(--ink1); }
.st-snav__item.is-active { background: var(--surface); color: var(--gold-dk); font-weight: 600; box-shadow: var(--dv2-shadow-card); }
.st-snav__item--danger { color: var(--red); }
.st-snav__item[hidden], .st-snav__sep[hidden] { display: none; }
.st-snav__sep { height: 1px; background: var(--border); margin: 8px 10px; }
.st-col { display: flex; flex-direction: column; gap: 16px; max-width: 720px; min-width: 0; }

 
@media (max-width: 1365px) {
    .st-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .st-snav {
        flex-direction: row; gap: 4px; padding: 4px 0 8px; top: 0;
        overflow-x: auto; overscroll-behavior-x: contain;
        background: var(--bg);
        margin: -4px 0 0;
    }
    .st-snav::-webkit-scrollbar { height: 0; }
    .st-snav__sep { width: 1px; height: auto; margin: 6px 4px; flex: 0 0 1px; }
    .st-snav__item { flex: 0 0 auto; }
    .st-col { max-width: none; }
}

 
.st-card {
    background: var(--surface); border-radius: 12px; padding: 18px 20px;
    box-shadow: var(--dv2-shadow-card);
    scroll-margin-top: 8px;
}
@media (max-width: 1365px) { .st-card { scroll-margin-top: 52px; } }   
.st-card--featured { border-left: 3px solid var(--gold); }
.st-card__title { font-size: 14px; font-weight: 700; color: var(--ink1); display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.st-card__desc { font-size: 11.5px; color: var(--ink3); line-height: 1.6; margin: 0 0 10px; font-feature-settings: "palt" 1; text-wrap: pretty; }
.st-badge { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: var(--red); color: var(--surface); }
.st-badge:empty { display: none; }
.st-card__title .st-tag:empty { display: none; }

 
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); }
.st-card__title + .st-row, .st-card__desc + .st-row { border-top: none; }
.st-row__main { min-width: 0; flex: 1; }
.st-row__label { font-size: 13px; font-weight: 500; color: var(--ink1); overflow-wrap: anywhere; }
.st-row__label--danger { color: var(--red); }
.st-row__sub { font-size: 11px; color: var(--ink3); margin-top: 2px; line-height: 1.5; }
span.st-row__sub { display: block; }
.st-row__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.st-row__actions--time { align-items: center; gap: 6px; }
.st-row__sep { font-size: 12px; color: var(--ink4); }
button.st-row, a.st-row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; cursor: pointer; text-decoration: none; color: inherit; }
button.st-row:hover .st-row__label, a.st-row:hover .st-row__label { color: var(--gold-dk); }
.st-row__arrow { color: var(--ink4); flex-shrink: 0; display: flex; }

 
.st-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: inherit; font-size: 12px; font-weight: 600;
    padding: 7px 16px; border-radius: 8px; border: 1px solid transparent;
    cursor: pointer; white-space: nowrap; transition: opacity .15s; text-decoration: none; min-height: 0;
}
.st-btn:hover { opacity: .88; }
.st-btn:focus-visible { outline: 2px solid var(--gold-dk); outline-offset: 2px; }
.st-btn--dark { background: var(--ink1); color: var(--surface); }
.st-btn--gold { background: var(--gold); color: var(--ink1); }
.st-btn--ghost { background: var(--surface); color: var(--ink2); border-color: var(--border2); }
.st-btn--red-ghost { background: var(--surface); color: var(--red); border-color: var(--red); }
.st-btn--sm { font-size: 11px; padding: 4px 10px; border-radius: 6px; }

 
.st-card .theme-toggle { display: inline-flex; gap: 2px; width: auto !important; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.st-card .theme-toggle__btn { flex: 0 0 auto; padding: 4px 14px; font-size: 11px; font-weight: 500; color: var(--ink4); border-radius: 6px; background: transparent; }
.st-card .theme-toggle__btn.active { background: var(--surface); color: var(--ink1); font-weight: 600; box-shadow: var(--dv2-shadow-card); }

 
.st-seg { position: relative; display: inline-flex; gap: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.st-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-seg label { padding: 4px 14px; font-size: 11px; font-weight: 500; color: var(--ink4); border-radius: 6px; cursor: pointer; white-space: nowrap; }
.st-seg input:checked + label { background: var(--surface); color: var(--ink1); font-weight: 600; box-shadow: var(--dv2-shadow-card); }
.st-seg input:focus-visible + label { outline: 2px solid var(--gold-dk); outline-offset: 1px; }

 
.st-card .toggle { width: 40px; height: 24px; }
.st-card .toggle__slider { background: var(--bg2); border-color: var(--border2); }
.st-card .toggle__slider::before { width: 18px; height: 18px; left: 2px; bottom: 2px; background: var(--surface); }
.st-card .toggle input:checked + .toggle__slider { background: var(--gold); border-color: var(--gold); }
.st-card .toggle input:checked + .toggle__slider::before { transform: translateX(16px); }
.st-card .toggle input:focus-visible + .toggle__slider { outline: 2px solid var(--gold-dk); outline-offset: 2px; }
.st-card .toggle input:disabled + .toggle__slider { opacity: .45; cursor: not-allowed; }

.st-field { font-family: inherit; font-size: 12.5px; color: var(--ink1); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; min-width: 0; }
.st-field:focus { outline: 1.5px solid var(--gold); border-color: var(--gold); }
.st-field--sm { font-size: 11px; padding: 4px 8px; }
.st-field--fixed { flex: 0 0 auto; }
.st-plan { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 5px; background: var(--bg2); color: var(--gold-dk); letter-spacing: .04em; margin-left: 6px; }
.st-tag { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 4px; white-space: nowrap; }
.st-tag--ok { background: var(--green-lt); color: var(--green); }
.st-tag--wait { background: var(--bg2); color: var(--gold-dk); }
.st-tag--warn { background: var(--red-lt); color: var(--red); }



.st-pill-slot { display: inline-flex; align-items: center; }
#pointsSection .pt-pill { background: none; border: 0; height: auto; padding: 0; gap: 3px; color: var(--gold-dk); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; box-shadow: none; align-items: baseline; }
#pointsSection .pt-pill__icon { display: none; }
#pointsSection .pt-pill__suffix { display: inline; font-size: 11px; color: var(--ink3); opacity: 1; font-weight: 400; letter-spacing: 0; }
#pointsSection .pt-pill[data-low="true"] { background: none; color: var(--red); }

 
.st-sub { font-size: 10px; font-weight: 700; color: var(--ink4); letter-spacing: .06em; margin: 14px 0 8px; }
.st-card__desc + .st-sub, .st-card__title + .st-sub, #sharingContent > .st-sub:first-child, #transferContent > .st-sub:first-child { margin-top: 10px; }
.st-item { background: var(--bg); border-radius: 9px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.st-item:last-child { margin-bottom: 0; }
.st-item--incoming { background: var(--surface); border: 1px solid var(--gold-lt); }
.st-item__info { flex: 1 1 200px; min-width: 0; }
.st-item__name { font-size: 12.5px; font-weight: 600; color: var(--ink1); overflow-wrap: anywhere; }
.st-item__meta { font-size: 11px; color: var(--ink3); margin-top: 1px; overflow-wrap: anywhere; }
.st-item__actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-empty { font-size: 12px; color: var(--ink3); line-height: 1.6; padding: 4px 0; }
.st-empty__sub { display: block; font-size: 11px; }
.st-formrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-formrow--spaced { margin-top: 8px; }
.st-formrow > .st-field { flex: 1 1 160px; }
.st-formrow > .st-field--fixed { flex: 0 0 auto; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.st-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--ink2); background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 4px 11px; }
.st-chip svg { flex-shrink: 0; color: var(--gold-dk); }
.st-form { background: var(--bg); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.st-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.st-form__label { font-size: 11px; font-weight: 600; color: var(--ink3); margin-bottom: 4px; display: block; }
.st-form__grid .st-field { width: 100%; }
.st-form__submit { display: flex; justify-content: flex-end; }
.st-note { display: flex; gap: 8px; align-items: flex-start; background: var(--bg2); border-radius: 8px; padding: 9px 11px; font-size: 11px; color: var(--ink2); line-height: 1.6; }
.st-note svg { flex-shrink: 0; margin-top: 1px; color: var(--ink3); }
.st-note p { margin: 0 0 4px; } .st-note p:last-child { margin-bottom: 0; }
.st-loading { text-align: center; padding: 16px; color: var(--ink3); font-size: 12px; }
 
.st-error { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.st-error .error-state { padding: 16px 16px 14px; }    

 
#v2AiRailTasks .v2-ai-task__text { display: block; overflow-wrap: anywhere; }

.st-version { text-align: center; font-size: 11px; color: var(--ink4); padding: 6px 0 14px; }

 
 

 
@media (max-width: 768px) {
    .st-layout { padding-top: 12px; }
    .st-scroll { overflow: visible; padding: 0 var(--dv2-gutter) calc(180px + env(safe-area-inset-bottom, 0px)); }
    .v2-shell .st-header + .st-scroll .st-snav { top: var(--dv2-header-h); }
    .st-card { padding: 14px; scroll-margin-top: calc(var(--dv2-header-h) + 52px); }
    .st-row { flex-wrap: wrap; }
    .st-row__main { flex: 1 1 180px; }    
    .st-row__actions { justify-content: flex-start; }
}
