/* Strategy settings on the investing page. Terminal tokens, both themes. */

.chat-strategies {
    transition: width 0.16s ease, min-width 0.16s ease;
    overflow: hidden;
}
.chat-strategies::before,
html[data-theme="light"] .chat-strategies::before {
    content: none !important;
    display: none !important;
}
.chat-strategies:hover,
.chat-strategies:focus-within {
    width: 248px;
    min-width: 248px;
}
.st-rail {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 10px 8px 12px;
    box-sizing: border-box;
    font-family: var(--font-sans);
}
.st-add,
.st-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    text-align: left;
    cursor: pointer;
    padding: 6px 0;
    border-radius: 8px;
}
.st-label,
.chat-strategies .st-rail-switch { display: none; }
.chat-strategies:hover .st-add,
.chat-strategies:hover .st-row,
.chat-strategies:focus-within .st-add,
.chat-strategies:focus-within .st-row,
.chat-strategies.mobile-open .st-add,
.chat-strategies.mobile-open .st-row {
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 8px;
}
.chat-strategies:hover .st-label,
.chat-strategies:focus-within .st-label,
.chat-strategies.mobile-open .st-label { display: block; }
.chat-strategies:hover .st-rail-switch,
.chat-strategies:focus-within .st-rail-switch,
.chat-strategies.mobile-open .st-rail-switch { display: inline-flex; }
.st-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
}
.chat-strategies:hover .st-open,
.chat-strategies:focus-within .st-open,
.chat-strategies.mobile-open .st-open {
    flex: 1;
    justify-content: flex-start;
    gap: 10px;
}
.st-add:hover,
.st-row:hover,
.st-row.is-on-row {
    background: color-mix(in srgb, var(--accent-primary) 12%, transparent);
}
.st-mark[data-c="0"],
.st-mcirc[data-c="0"],
.st-card-mark[data-c="0"],
.st-nav-mark[data-c="0"] { --st-ink: var(--neon); }
.st-mark[data-c="1"],
.st-mcirc[data-c="1"],
.st-card-mark[data-c="1"],
.st-nav-mark[data-c="1"] { --st-ink: var(--neon-violet); }
.st-mark[data-c="2"],
.st-mcirc[data-c="2"],
.st-card-mark[data-c="2"],
.st-nav-mark[data-c="2"] { --st-ink: var(--blue); }
.st-mark[data-c="3"],
.st-mcirc[data-c="3"],
.st-card-mark[data-c="3"],
.st-nav-mark[data-c="3"] { --st-ink: var(--gain); }
.st-mark[data-c="4"],
.st-mcirc[data-c="4"],
.st-card-mark[data-c="4"],
.st-nav-mark[data-c="4"] { --st-ink: #fbbf24; }
html[data-theme="light"] .st-mark[data-c="4"],
html[data-theme="light"] .st-mcirc[data-c="4"],
html[data-theme="light"] .st-card-mark[data-c="4"],
html[data-theme="light"] .st-nav-mark[data-c="4"] { --st-ink: #b45309; }
.st-nav-mark {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 650;
    color: #fff;
    background: var(--st-ink, var(--accent-primary));
}
.nav-tree-item .st-nav-status,
.lib-card .st-status {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.nav-tree-item .st-nav-mark + .nav-tree-sub-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-tree-item .st-nav-status { margin-right: 8px; }
.nav-tree-item .st-nav-status.is-on,
.st-status.is-on { color: var(--gain); font-weight: 650; }
.lib-card.is-on { box-shadow: inset 2px 0 0 var(--gain); }
#investing-content:has(> .st-page) {
    height: auto;
    min-height: 100%;
}
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) {
    flex: none;
    height: auto;
    display: block;
    position: relative;
}
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) > .st-sheet {
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    border-radius: 14px;
    box-shadow: none;
}
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-mbody,
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-panel,
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-pcontent,
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-pick-body,
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-gear,
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-doc,
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-source {
    flex: none;
    height: auto;
    min-height: 0;
    overflow: visible;
}
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-sheet .st-panel {
    overflow: hidden;
}
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-note {
    flex: none;
    height: auto;
    min-height: 60vh;
    overflow: visible;
}
.inv-list-wrap--strategies .inv-day-head--status,
.inv-list-wrap--strategies .inv-day-col--status { width: 72px; }
.inv-list-wrap--strategies .inv-day-head--when,
.inv-list-wrap--strategies .inv-day-col--when { width: 128px; }
body.right-sidebar-open #investing-content > .lib-view:has(.inv-list-wrap--strategies) {
    padding-right: 200px;
    box-sizing: border-box;
}
.st-mark {
    position: relative;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 650;
    color: var(--bg-primary);
    background: var(--st-ink, var(--accent-primary));
}
.st-add .st-mark {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    background: transparent;
    color: var(--accent-primary);
    border: 1.5px dashed var(--accent-primary);
}
.st-add .st-mark svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
}
.st-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}
.st-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--loss);
    border: 2px solid var(--bg-primary);
    box-sizing: border-box;
}
.st-row.is-active .st-dot { background: var(--gain); }
.st-rail-switch {
    gap: 6px;
    padding: 0;
    font-size: 12px;
}
.st-rail-switch .st-track { width: 36px; height: 20px; }
.st-rail-switch .st-track::after { width: 14px; height: 14px; }
.st-empty-banner {
    display: none;
    position: absolute;
    top: 0;
    right: 18px;
    z-index: 3;
    transform: translateY(-50%);
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 1px 10px 1px 4px;
    border: 1px solid rgba(251, 191, 36, 0.55);
    border-radius: 999px;
    background: rgba(5, 10, 20, 0.96);
    color: #fbbf24;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    cursor: pointer;
}
.st-empty-banner .st-mark {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: transparent;
    color: currentColor;
    border: 1.5px dashed currentColor;
}
.st-empty-banner .st-mark svg {
    width: 9px;
    height: 9px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
}
.st-empty-banner.is-on { display: inline-flex; }
.st-empty-banner:hover { border-color: #fbbf24; }
html[data-theme="light"] .st-empty-banner {
    background: var(--bg-elevated);
    color: #b45309;
    border-color: #fbbf24;
}

.st-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: var(--overlay-scrim, rgba(0, 0, 0, 0.45));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-sizing: border-box;
}
.st-modal[hidden] { display: none; }
.st-sheet {
    width: min(1240px, 100%);
    height: 100%;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--glow-lg);
    font-family: var(--font-sans);
    padding: 0;
    box-sizing: border-box;
}
.st-sheet.st-picker {
    overflow: hidden;
    padding: 0;
}
.st-mhead { padding: 22px 28px 0; flex: none; }
.st-row1, .st-row2, .st-actions, .st-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.st-row2 { justify-content: space-between; margin-top: 14px; flex-wrap: wrap; }
.st-actions { flex-wrap: wrap; }
.st-mcirc {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--st-ink, var(--accent-primary));
    background: var(--bg-secondary);
    border: 2px solid var(--st-ink, var(--accent-primary));
}
.st-mdot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--loss);
    border: 2px solid var(--bg-primary);
}
.st-mdot.is-on { background: var(--gain); }
.st-name {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    font-family: var(--font-sans);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 750;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 4px 8px;
}
.st-name:hover { border-color: var(--border); }
.st-name:focus { outline: none; border-color: var(--accent-primary); background: var(--bg-secondary); }
.st-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 650;
    color: var(--text-secondary);
    flex: none;
    padding: 4px;
}
.st-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.st-track {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--border);
    position: relative;
}
.st-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}
.st-switch:has(input:checked) .st-track { background: var(--gain); }
.st-switch:has(input:checked) .st-track::after { transform: translateX(20px); }
.st-rail-switch:has(input:checked) .st-track::after { transform: translateX(16px); }
.st-slabel::before { content: "Off"; }
.st-switch:has(input:checked) .st-slabel { color: var(--gain); }
.st-switch:has(input:checked) .st-slabel::before { content: "On"; }
.st-switch:has(input:disabled) .st-track { opacity: 0.45; }
.st-switch:has(input:disabled) .st-slabel::after {
    content: " · settings needed";
    font-weight: 650;
    color: var(--accent-primary);
}
.st-iconbtn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: none;
    padding: 0;
}
.st-iconbtn:hover { background: color-mix(in srgb, var(--accent-primary) 14%, transparent); color: var(--text-primary); }
.st-iconbtn[aria-pressed="true"] {
    background: var(--accent-primary);
    color: var(--bg-primary);
}
.st-text-btn[hidden],
.st-iconbtn[hidden],
.st-mfoot[hidden],
#st-note-toggle[hidden] { display: none !important; }
.st-text-btn {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 650;
    padding: 8px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.st-text-btn:hover { border-color: var(--accent-primary); }
.st-ghost { border-color: transparent; background: transparent; color: var(--text-secondary); }
.st-ghost:hover { background: color-mix(in srgb, var(--accent-primary) 14%, transparent); color: var(--text-primary); }
.st-save {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}
.st-save:hover { filter: brightness(1.07); }
.st-save.is-saving {
    cursor: progress;
    opacity: 0.88;
}
.st-save.is-saving::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: st-spin 0.7s linear infinite;
}
.st-save:disabled { cursor: progress; }
#st-generate:disabled { opacity: 0.45; cursor: default; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-mhead { position: relative; z-index: 2; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; position: relative; z-index: 2; align-items: center; }
.st-chip-tools { display: flex; align-items: center; margin-left: auto; }
.st-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    font-family: var(--font-sans);
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    position: relative;
    pointer-events: auto;
}
.st-chip b { color: var(--text-primary); font-weight: 650; pointer-events: none; }
.st-chip span, .st-chip svg { pointer-events: none; }
button.st-chip { cursor: pointer; font-family: inherit; }
button.st-chip:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.st-versions button:disabled { opacity: 0.45; cursor: default; }
.st-discard,
.st-savebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 650;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--text-primary) 6%, transparent);
}
.st-savebar { font-weight: 500; }
.st-savebar[hidden] { display: none !important; }
.st-savebar-note {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.st-savebar .st-save-note {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    line-height: 22px;
    height: 22px;
}
.st-savebar .st-save-note::placeholder { color: var(--text-muted); }
.st-savebar .st-save-note:focus { outline: none; }
.st-savebar-line {
    display: block;
    height: 1px;
    border-radius: 1px;
    background: color-mix(in srgb, var(--text-primary) 28%, var(--border));
}
.st-savebar-note:focus-within .st-savebar-line { background: var(--accent-primary); }
.st-savebar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: none;
}
.st-savebar #st-cancel {
    background: color-mix(in srgb, var(--text-secondary) 72%, var(--bg-primary));
    border-color: transparent;
    color: var(--text-primary);
}
.st-savebar #st-cancel:hover,
.st-savebar #st-save:hover { filter: brightness(1.08); }
.st-discard-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.st-discard #st-keep {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
}
.st-discard #st-discard {
    background: var(--text-secondary);
    border-color: var(--text-secondary);
    color: var(--bg-primary);
}
.st-discard #st-keep:hover,
.st-discard #st-discard:hover { filter: brightness(1.08); }
:root .st-discard,
:root .st-savebar {
    background: color-mix(in srgb, var(--text-primary) 8%, var(--bg-primary));
}
:root .st-discard #st-keep {
    background: var(--bg-primary);
    border-color: var(--border);
    color: var(--text-primary);
}
:root .st-discard #st-discard {
    background: color-mix(in srgb, var(--text-secondary) 72%, var(--bg-primary));
    border-color: transparent;
    color: var(--text-primary);
}
html[data-theme="light"] .st-discard,
html[data-theme="light"] .st-savebar {
    background: var(--bg-secondary);
}
html[data-theme="light"] .st-discard #st-keep {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
}
html[data-theme="light"] .st-discard #st-discard,
html[data-theme="light"] .st-savebar #st-cancel {
    background: var(--text-secondary);
    border-color: var(--text-secondary);
    color: var(--bg-primary);
}
.st-chip.is-missing { color: var(--accent-primary); border-color: var(--accent-primary); }
.st-sheet.is-loading { pointer-events: none; }
.st-sheet.is-loading .st-iconbtn.st-close { pointer-events: auto; }
.st-loading-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.st-skel { display: block; border-radius: 8px; flex: none; }
.st-skel-mark { width: 44px; height: 44px; border-radius: 50%; }
.st-skel-name { flex: 1 1 auto; min-width: 120px; max-width: 280px; height: 34px; }
.st-skel-switch { width: 44px; height: 24px; border-radius: 12px; }
.st-skel-meta { width: 96px; height: 28px; }
.st-skel-actions { width: 168px; height: 28px; margin-left: auto; }
.st-skel-chip { display: inline-block; width: 132px; height: 34px; border-radius: 999px; }
.st-skel-pfile { width: 140px; height: 14px; }
.st-skel-seg { width: 72px; height: 28px; border-radius: 8px; }
.st-pcontent-skel {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}
.st-skel-line { width: 100%; height: 14px; }
.st-skel-line.is-short { width: 62%; }
.st-skel-line.is-wide { width: 88%; height: 18px; margin-top: 4px; }
.st-skel-block { width: 100%; height: 120px; border-radius: 12px; margin-top: 8px; }
.st-rule {
    height: 1px;
    margin-top: 16px;
    background: linear-gradient(90deg, transparent, var(--accent-primary) 50%, transparent);
    opacity: 0.45;
}
.st-mbody {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 28px 24px;
}
.st-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.st-sheet.is-editing .st-panel { border-color: var(--accent-primary); }
.st-pbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px 6px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    flex: none;
}
.st-pfile {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: none;
    max-width: 28%;
}
.st-file-size {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    flex: none;
    white-space: nowrap;
}
.st-pbar-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.st-pbar .st-text-btn { padding: 4px 10px; border-radius: 8px; font-size: 12px; }
.st-counts { display: flex; align-items: center; gap: 4px; }
.st-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    white-space: nowrap;
}
.st-count svg { display: block; flex: none; }
.st-count.is-e { background: #e7f6ec; color: #1f8a4c; }
.st-count.is-w { background: #f8f1d8; color: #8a6a12; }
.st-foldbtn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
}
.st-foldbtn:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.st-seg {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2px;
}
.st-seg button {
    width: 34px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
}
.st-seg button[aria-pressed="true"] {
    background: var(--accent-primary);
    color: var(--bg-primary);
}
.st-pcontent {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
}
.st-agent-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 28px 0;
    max-width: 760px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}
.st-agent-mark {
    flex: none;
    color: var(--accent-primary);
    display: grid;
    place-items: center;
}
.st-agent-copy { flex: 1; min-width: 0; }
.st-agent-hint strong {
    color: var(--text-primary);
    font-weight: 600;
}
.st-agent-hint button {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--accent-primary);
    font: inherit;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
}
.st-agent-face {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    display: grid;
    place-items: center;
}
.st-agent-hint button:hover .st-agent-face { border-color: var(--accent-primary); }
.st-agent-go { color: var(--text-secondary); white-space: nowrap; }
.st-doc {
    max-width: 760px;
    padding: 24px 28px 40px;
    line-height: 1.6;
    font-size: 15px;
    font-family: var(--font-sans);
}
.st-doc h1 { font-size: 24px; margin: 0 0 12px; }
.st-doc h2 { font-size: 18px; margin: 26px 0 8px; }
.st-doc h3 { font-size: 15px; margin: 20px 0 6px; }
.st-doc p { margin: 0 0 12px; }
.st-doc ul, .st-doc ol { margin: 0 0 12px; padding-left: 22px; }
.st-doc li { margin: 4px 0; }
.st-doc code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: color-mix(in srgb, var(--accent-primary) 14%, transparent);
    padding: 1px 5px;
    border-radius: 5px;
}
.st-doc pre {
    --st-code-fg: #c8cdd4;
    --st-code-tag: #e06c75;
    --st-code-str: #98c379;
    --st-code-prop: #61afef;
    --st-code-num: #d19a66;
    --st-code-cmt: #7d8590;
    position: relative;
    margin: 0 0 16px;
    padding: 34px 14px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1c2128;
    color: var(--st-code-fg);
    overflow-x: auto;
    overflow-wrap: normal;
}
html[data-theme="light"] .st-doc pre {
    --st-code-fg: #3d4450;
    --st-code-tag: #c2414d;
    --st-code-str: #1b7a36;
    --st-code-prop: #1d5aa8;
    --st-code-num: #9a5b12;
    --st-code-cmt: #6b7280;
    border-color: #d8dee6;
    background: #f7f8fa;
    color: var(--st-code-fg);
}
.st-doc pre code {
    display: block;
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 12.5px;
    line-height: 1.55;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
    color: inherit;
}
.st-doc pre .st-code-tag { color: var(--st-code-tag); }
.st-doc pre .st-code-str { color: var(--st-code-str); }
.st-doc pre .st-code-prop,
.st-doc pre .st-code-fn { color: var(--st-code-prop); }
.st-doc pre .st-code-num { color: var(--st-code-num); }
.st-doc pre .st-code-cmt { color: var(--st-code-cmt); font-style: italic; }
.st-doc pre code[data-lang]::before {
    content: attr(data-lang);
    position: absolute;
    top: 8px;
    left: 14px;
    font-size: 12px;
    font-style: normal;
    color: var(--st-code-cmt);
}
.st-doc .chat-md-scroll {
    overflow-x: auto;
    margin: 0 0 16px;
}
.st-doc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.st-doc th,
.st-doc td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
.st-doc th {
    font-weight: 650;
}
.st-diff-ins,
.st-diff-key .st-diff-ins {
    color: #15803d;
    background: color-mix(in srgb, #22c55e 18%, transparent);
}
.st-diff-del,
.st-diff-key .st-diff-del {
    color: #b91c1c;
    text-decoration: line-through;
    background: color-mix(in srgb, #ef4444 16%, transparent);
}
html[data-theme="dark"] .st-diff-ins,
html[data-theme="dark"] .st-diff-key .st-diff-ins {
    color: #86efac;
    background: color-mix(in srgb, #22c55e 22%, transparent);
}
html[data-theme="dark"] .st-diff-del,
html[data-theme="dark"] .st-diff-key .st-diff-del {
    color: #fca5a5;
    background: color-mix(in srgb, #ef4444 20%, transparent);
}
.st-doc.is-diff .st-diff-ins,
.st-doc.is-diff .st-diff-del {
    border-radius: 6px;
    padding: 2px 6px;
    margin: 0 -6px 8px;
}
.st-doc.is-diff .st-diff-ins p,
.st-doc.is-diff .st-diff-ins h1,
.st-doc.is-diff .st-diff-ins h2,
.st-doc.is-diff .st-diff-ins h3,
.st-doc.is-diff .st-diff-del p,
.st-doc.is-diff .st-diff-del h1,
.st-doc.is-diff .st-diff-del h2,
.st-doc.is-diff .st-diff-del h3 {
    margin-bottom: 0;
}
.st-doc.is-diff p .st-diff-ins,
.st-doc.is-diff p .st-diff-del {
    display: inline;
    margin: 0;
    padding: 1px 4px;
    border-radius: 4px;
}
.st-source.is-diff span.st-diff-ins,
.st-source.is-diff span.st-diff-del {
    display: inline;
    border-radius: 4px;
    padding: 0 2px;
}
.st-diff-key { font-weight: 400; opacity: 0.92; }
.st-note {
    display: block;
    width: 100%;
    flex: 1;
    min-height: 0;
    resize: none;
    box-sizing: border-box;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 22px 28px;
}
.st-note:focus { outline: none; }
.st-source {
    display: block;
    flex: 1;
    min-height: 0;
    margin: 0;
    overflow: auto;
    box-sizing: border-box;
    white-space: pre-wrap;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-primary);
    padding: 22px 28px;
}
.st-doc[hidden], .st-note[hidden], .st-source[hidden], .st-gear[hidden] { display: none !important; }
.st-gear {
    padding: 22px 24px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
}
.st-mbody > .st-split { flex: 1 1 auto; min-height: 0; }
.st-split { min-width: 0; }
.st-brief {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 16px;
}
.st-sheet.is-gear .st-ol-side { display: none; }
.st-sheet.is-gear .st-outline { grid-template-columns: minmax(0, 1fr); }
.st-sheet.is-gear .st-split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-sheet.is-gear .st-panel {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    width: auto;
}
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-sheet.is-gear .st-gear {
    flex: 1.25 1 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    position: static;
    align-self: flex-start;
    overflow: visible;
    container-type: inline-size;
    container-name: stgear;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 18px 18px 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-primary);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.st-sheet.is-gear.is-gear-wide .st-panel { display: none; }
.st-sheet.is-writing.is-gear .st-split { align-items: stretch; }
.st-sheet.is-writing .st-panel { min-height: 280px; }
:is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-sheet.is-gear.is-gear-wide .st-gear {
    flex: 1 1 100%;
    width: 100%;
    max-height: none;
    position: static;
    overflow: visible;
    grid-template-columns: 1fr 1fr;
    box-shadow: none;
}
@container stgear (max-width: 760px) {
    :is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-sheet.is-gear.is-gear-wide .st-gear {
        grid-template-columns: 1fr;
    }
}
@container stgear (min-width: 900px) {
    .st-gear .pf-rules-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container stgear (max-width: 899px) {
    .st-gear .pf-rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container stgear (max-width: 480px) {
    .st-gear .pf-rules-grid { grid-template-columns: 1fr; }
    .st-gear .pf-span-2 { grid-column: auto; }
}
.st-brief textarea {
    width: 100%;
    min-height: 7.5em;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
}
.st-brief-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}
.st-generate-status {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
}
.st-generate-status .st-status-face {
    width: 22px;
    height: 22px;
    flex: none;
}
.st-generate-status .st-status-face svg { width: 14px; height: 14px; }
.st-generate-status.is-ready {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 650;
}
.st-draft-tick {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0E6E86;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex: none;
}
.st-brief-confirm {
    margin: 8px 0 0;
    font-size: 13px;
}
.st-gear-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.st-sheet.is-gear-wide .st-gear-head { grid-column: 1 / -1; }
.st-gear-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.st-gear-name {
    margin-top: 2px;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.15;
    color: var(--text-primary);
}
.st-gear-id {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    font-family: var(--font-mono);
    user-select: text;
}
.st-gear-id span {
    margin-right: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.st-gear-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.st-mbody > .st-brief { margin: 0 0 8px; }
.st-block {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px 18px;
    background: var(--bg-primary);
    min-width: 0;
}
.st-block-wide { grid-column: 1 / -1; }
.st-block.is-aimed, .st-link.is-aimed select { border-color: var(--accent-primary); }
.st-block h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.st-runhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.st-runhead h4 { margin: 0; }
.st-tz {
    margin-left: auto;
    width: auto;
    max-width: 220px;
    min-width: 148px;
}
.st-run-x {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--loss) 16%, transparent);
    color: var(--loss);
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.st-run-x:hover { background: color-mix(in srgb, var(--loss) 28%, transparent); }
.st-run.is-confirm {
    justify-content: space-between;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--loss) 40%, var(--border));
    border-radius: 10px;
    background: color-mix(in srgb, var(--loss) 10%, var(--bg-primary));
}
.st-run-ask { font-size: 13px; font-weight: 650; color: var(--text-primary); }
.st-run .rs-confirm-actions { margin-left: 0; }
.st-run {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(6.6rem, 0.8fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.st-run:not(:has(select[data-day])) {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(6.6rem, 0.8fr) auto;
}
@container stgear (max-width: 460px) {
    .st-run,
    .st-run:not(:has(select[data-day])) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .st-run input[data-label] { grid-column: 1 / -1; }
    .st-run .st-run-x { justify-self: end; }
}
.st-link {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.st-link.is-bad select { border-color: var(--loss); }
.st-bm { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.st-bm-pill {
    display: inline-flex;
    align-items: center;
    background: #e7f6ec;
    color: #2f9e5a;
    font-size: 13px;
    font-weight: 750;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    flex: none;
}
.st-bm-search { position: relative; flex: 1 1 160px; max-width: 220px; }
.st-bm-search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    padding: 6px 0;
    outline: none;
}
.st-bm-search input::placeholder { color: var(--text-muted); }
.st-bm-drop {
    position: absolute;
    z-index: 6;
    top: calc(100% + 4px);
    right: 0;
    width: 260px;
    max-height: 280px;
    overflow: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}
.st-bm-drop[hidden] { display: none !important; }
.st-bm-item, .st-bm-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
    color: var(--text-primary);
}
.st-bm-item b { color: #2f9e5a; min-width: 52px; }
.st-bm-item span, .st-bm-empty { color: var(--text-muted); font-size: 12px; }
.st-bm-item:hover { background: color-mix(in srgb, #2f9e5a 8%, transparent); }
.st-bm-empty { cursor: default; }
.st-run input, .st-run select, .st-link select, .st-tz {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}
.st-run input, .st-run select { width: 100%; }
.st-mfoot { flex: none; margin-top: 12px; }
.st-mfoot.is-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border: 1px solid rgba(255, 80, 80, 0.35);
    border-radius: 12px;
    background: rgba(255, 80, 80, 0.08);
    font-weight: 650;
}
.st-error { color: var(--loss); font-size: 13px; font-weight: 650; min-height: 0; margin: 8px 0 0; }
.st-error:empty { display: none; }
.st-banner { margin: 8px 0 0; font-size: 13px; color: var(--text-secondary); }
.st-banner.st-discard { color: var(--text-primary); margin: 14px 0 4px; }
.st-versions {
    display: flex;
    align-items: center;
}
#st-versions-overlay { position: fixed; z-index: 80; inset: auto; }
#st-versions-overlay .lib-versions-panel { max-height: 70%; }
.st-picker-title { flex: 1; font-size: 28px; font-weight: 750; letter-spacing: -0.01em; }
.st-pick-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 18px 28px 28px;
}
.st-pick {
    margin-bottom: 22px;
}
.st-pick h2 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.st-pick p {
    margin: 6px 0 0;
    max-width: 640px;
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.45;
}
.st-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 920px;
}
.st-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 16px 16px 14px;
    cursor: pointer;
    font-family: var(--font-sans);
    min-width: 0;
}
.st-card.is-blank { border-style: dashed; }
.st-card:hover { border-color: var(--accent-primary); }
.st-card-top { display: flex; align-items: center; gap: 12px; }
.st-card-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--st-ink, var(--accent-primary));
    border: 1.5px solid var(--st-ink, var(--accent-primary));
    background: color-mix(in srgb, var(--st-ink, var(--accent-primary)) 16%, transparent);
}
.st-card-mark.is-blank {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px dashed var(--text-secondary);
}
.st-card-mark.is-blank svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
}
.st-card strong { font-size: 16px; font-weight: 700; margin: 0; }
.st-card-desc { color: var(--text-secondary); font-size: 13.5px; line-height: 1.45; }
.st-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.st-card-tags span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.st-sheet.is-locked .st-name,
.st-sheet.is-locked .st-note,
.st-sheet.is-locked .st-gear,
.st-sheet.is-locked .st-switch { pointer-events: none; opacity: 0.72; }
.st-sheet.is-locked .st-versions,
.st-sheet.is-locked .st-close,
.st-sheet.is-locked .st-download,
.st-sheet.is-locked .st-pbar .st-text-btn,
.st-sheet.is-locked #st-gear-x,
.st-sheet.is-locked #st-save { pointer-events: auto; opacity: 1; }

.st-doc.is-outline { max-width: none; padding: 8px 12px 24px; }
.st-outline { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.st-check { border: 1px solid var(--border); border-radius: 12px; margin: 10px 0 12px; background: var(--bg-elevated); }
.st-check-h { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 10px 12px; cursor: pointer; }
.st-check-b { padding: 0 14px 8px; }
.st-check.is-shut > .st-check-b { display: none; }
.st-check.is-shut > .st-check-h .st-chev { transform: none; }
.st-sheet.is-gear .st-check { display: none; }
.st-ol-side { position: sticky; top: 8px; max-height: calc(100vh - 120px); overflow: auto; }
.st-ol-panel { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: var(--bg-elevated); }
.st-ol-panel h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.st-ol-search {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font: inherit;
    font-size: 12.5px;
    padding: 6px 8px;
    outline: none;
}
.st-ol-search:focus { border-color: var(--accent-primary); }
.st-ol-search::placeholder { color: var(--text-muted); }
.st-ol-h.is-off,
.st-ol-panel button.is-off { display: none; }
.st-ol-empty { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }
.st-ol-empty[hidden] { display: none !important; }
.st-ol-note { margin: 8px 0; font-size: 12px; color: var(--text-muted); }
.st-ol-h { margin: 8px 0 2px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.st-ol-panel button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text-primary); padding: 3px 0; cursor: pointer; font: inherit; font-size: 12.5px; }
.st-lg { border: 1px solid var(--border); border-radius: 12px; margin: 10px 0; background: var(--bg-primary); }
.st-lg.is-untagged { border-style: dashed; }
.st-lg-h, .st-sg-h, .st-sec-h { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 4px 8px; align-items: start; padding: 10px 12px; cursor: pointer; }
.st-lg-h:hover, .st-sg-h:hover, .st-sec-h:hover { background: color-mix(in srgb, var(--accent-primary) 6%, transparent); }
.st-lg-name { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.st-chev { color: var(--text-muted); transform: rotate(90deg); line-height: 1; }
.st-lg.is-shut > .st-lg-h .st-chev, .st-sg.is-shut > .st-sg-h .st-chev, .st-sec.is-fold > .st-sec-h .st-chev { transform: none; }
.st-peek { display: none; grid-column: 2 / -1; flex-wrap: wrap; gap: 5px; }
.st-lg.is-shut > .st-lg-h .st-peek, .st-sg.is-shut > .st-sg-h .st-peek { display: flex; }
.st-peek span { font-size: 11.5px; background: color-mix(in srgb, var(--text-muted) 12%, transparent); border-radius: 6px; padding: 2px 7px; }
.st-lg.is-shut > .st-lg-b, .st-sg.is-shut > .st-sg-b, .st-sec.is-fold > .st-sec-b { display: none; }
.st-lg-b { padding: 0 12px 8px; }
.st-sg { border-top: 1px solid var(--border); }
.st-sg-b { margin: 0 0 8px 8px; padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--accent-primary) 35%, transparent); }
.st-sec { border-top: 1px solid var(--border); }
.st-sec-hd { min-width: 0; }
.st-sec-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-outline h3 { margin: 0; font-size: 15px; }
.st-sum { margin: 3px 0 0; color: var(--text-muted); font-size: 13px; }
.st-sec-size { margin-left: auto; font-size: 11px; color: var(--text-muted); }
.st-pill { font-size: 11px; border-radius: 999px; padding: 2px 8px; background: color-mix(in srgb, var(--accent-primary) 14%, transparent); color: var(--accent-primary); }
button.st-pill { border: 0; cursor: pointer; font: inherit; font-size: 11px; line-height: 1.4; }
.st-pill.is-bad { background: color-mix(in srgb, var(--loss) 16%, transparent); color: var(--loss); }
.st-pill.is-plain { background: color-mix(in srgb, var(--text-muted) 12%, transparent); color: var(--text-muted); }
.st-mini, .st-edit { border: 1px solid var(--border); background: var(--bg-primary); border-radius: 8px; padding: 3px 8px; font-size: 12px; cursor: pointer; color: var(--text-primary); }
.st-edit { opacity: 0; }
.st-edit.is-on, .st-sec-h:hover .st-edit, .st-sec-h:focus-within .st-edit { opacity: 1; }
.st-sec-b { padding: 2px 4px 12px 22px; font-size: 14px; line-height: 1.55; }
.st-sec-edit { width: 100%; min-height: 220px; box-sizing: border-box; font: 12.5px/1.5 var(--font-mono); border: 1px solid var(--accent-primary); border-radius: 8px; padding: 10px; background: var(--bg-primary); color: var(--text-primary); }
.st-edbar, .st-tagform, .st-offer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.st-parts { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 8px 0; }
.st-part { display: flex; gap: 8px; align-items: center; }
.st-part > span { margin-right: auto; font-weight: 650; }
.st-parts > span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.st-vchip { display: inline-block; margin: 0 2px; background: color-mix(in srgb, var(--accent-primary) 14%, transparent); color: var(--accent-primary); border: 1px solid color-mix(in srgb, var(--accent-primary) 35%, transparent); border-radius: 6px; padding: 0 6px; font-weight: 650; font-size: .92em; cursor: pointer; }
.st-vchip.is-bad { background: color-mix(in srgb, var(--loss) 14%, transparent); color: var(--loss); border-color: color-mix(in srgb, var(--loss) 40%, transparent); }
.st-vi { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--border); background: transparent; padding: 6px 0; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--text-primary); }
.st-vi span { font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.st-vi.e span { color: var(--loss); }
.st-vi.w span { color: var(--warn, #b7791f); }
.st-md-tag { background: color-mix(in srgb, var(--accent-primary) 16%, transparent); color: var(--accent-primary); border-radius: 3px; }
.st-md-val { background: color-mix(in srgb, var(--warn, #b7791f) 18%, transparent); border-radius: 3px; }
.st-save-note { width: 180px; max-width: 40vw; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; background: var(--bg-primary); color: var(--text-primary); font: inherit; font-size: 13px; }
.st-save-note[hidden] { display: none !important; }
.st-offer { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elevated); font-size: 13px; }

@media (max-width: 768px) {
    .chat-strategies:hover,
    .chat-strategies:focus-within {
        width: 0;
        min-width: 0;
    }
    .chat-strategies.mobile-open {
        overflow: auto;
    }
    .chat-strategies.mobile-open .st-rail {
        padding-top: 8px;
    }
    .st-name { flex: 1 1 0; }
    .st-switch:has(input:disabled) .st-slabel::after { content: none; }
    .st-modal { padding: 0; }
    .st-sheet, .st-sheet.st-picker { width: 100%; height: 100%; max-height: none; border-radius: 0; margin: 0; }
    .st-mhead, .st-mbody { padding-left: 16px; padding-right: 16px; }
    .st-sheet.is-gear .st-split { flex-direction: column; }
    :is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-sheet.is-gear .st-gear {
        width: 100%;
        flex-basis: auto;
        position: static;
        max-height: none;
    }
    .st-gear { grid-template-columns: 1fr; }
    :is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-sheet.is-gear .st-panel,
    :is(#investing-content > .st-page, #cold-open #co-strategy-host.st-page) .st-sheet.is-gear .st-gear { align-self: stretch; }
    .st-doc, .st-pcontent { min-width: 0; overflow-wrap: anywhere; }
    .st-outline { grid-template-columns: 1fr; }
    .st-ol-side { position: static; max-height: none; }
    .st-cards { grid-template-columns: 1fr; }
}
