/* Chart Studio — the chart card (shared with view.html) and the editor */
.sv-card { background: var(--sv-bg, #fff); color: var(--sv-text, #1b2230); padding: 18px 16px 12px; border-radius: 10px; box-sizing: border-box; font-family: var(--sv-font, "Plus Jakarta Sans", system-ui, sans-serif); max-width: 100%; position: relative; }
.sv-card--dark { background: #141a26; color: #e8ecf3; }
.sv-title { font-family: var(--sv-title-font, inherit); font-size: calc(21px * var(--sv-scale, 1)); line-height: 1.25; margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
.sv-desc { font-size: calc(14px * var(--sv-scale, 1)); line-height: 1.45; margin: 0 0 10px; }
.sv-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: calc(12.5px * var(--sv-scale, 1)); margin: 0 0 8px; }
.sv-legend span { display: inline-flex; align-items: center; gap: 6px; } .sv-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.sv-body { width: 100%; min-height: 60px; }
.sv-empty { color: #8a94a6; font-size: 13px; padding: 30px 0; text-align: center; }
.sv-notes { font-size: calc(12px * var(--sv-scale, 1)); font-style: italic; color: var(--sv-muted, #5f6b80); margin: 8px 0 2px; line-height: 1.45; white-space: pre-line; }
.sv-card--dark .sv-notes, .sv-card--dark .sv-foot { color: #9aa6ba; }
.sv-foot { font-size: calc(11.5px * var(--sv-scale, 1)); color: var(--sv-muted, #5f6b80); margin-top: 6px; line-height: 1.5; }
.sv-foot a, .sv-notes a, .sv-desc a { color: var(--sv-link, #1f6fd1); text-decoration: none; } .sv-foot a:hover { text-decoration: underline; }
.sv-tabletools { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.sv-tabletools input { border: 1px solid #d5dbe5; border-radius: 6px; padding: 5px 9px; font: inherit; font-size: 12.5px; width: 180px; background: transparent; color: inherit; }
.sv-tablewrap { max-height: 520px; overflow: auto; }
.sv-table { width: 100%; border-collapse: collapse; font-size: calc(13px * var(--sv-scale, 1)); }
.sv-table th { text-align: left; font-size: calc(12px * var(--sv-scale, 1)); color: #5f6b80; font-weight: 600; padding: 7px 8px; border-bottom: 2px solid #d5dbe5; cursor: pointer; position: sticky; top: 0; background: inherit; white-space: nowrap; }
.sv-card .sv-table thead th { background: var(--sv-bg, #fff); } .sv-card--dark .sv-table th { background: #141a26; }
.sv-table td, .sv-table tbody th { padding: 6px 8px; border-bottom: 1px solid var(--sv-grid, #edf0f5); } .sv-card--dark .sv-table td { border-color: #2a3346; }
.sv-table .num { text-align: right; position: relative; min-width: 110px; } .sv-table td.num b { position: relative; font-weight: 600; }
.sv-table .sv-bar { position: absolute; left: 8px; top: 50%; height: 60%; transform: translateY(-50%); opacity: .18; border-radius: 3px; max-width: calc(100% - 16px); }

.sv-table tbody th { position: static; cursor: default; font-size: calc(13px * var(--sv-scale, 1)); color: inherit; font-weight: 400; text-align: left; white-space: normal; background: none; }
.sv-table .sv-heat { border-radius: 0; } .sv-table .sv-imgc img { height: 30px; width: auto; max-width: 90px; border-radius: 4px; display: block; object-fit: cover; }
.sv-spark { display: block; }
.sv-tbl--heatmap .sv-table .num, .sv-tbl--plain .sv-table .num { min-width: 0; white-space: nowrap; } .sv-tbl--heatmap .sv-table td, .sv-tbl--heatmap .sv-table tbody th { padding: 6px 6px; } .sv-tablewrap { overflow-x: auto; }
.sv-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 12px; color: var(--sv-muted, #5f6b80); margin-top: 6px; }
.sv-pager:empty { display: none; } .sv-pager button { border: 1px solid var(--sv-grid, #d5dbe5); background: transparent; color: inherit; border-radius: 6px; padding: 4px 9px; font: inherit; cursor: pointer; } .sv-pager button:disabled { opacity: .4; cursor: default; }
.sv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* the data story inside the card (Document step) */
.sv-story { font-size: calc(13.5px * var(--sv-scale, 1)); line-height: 1.55; margin: 0 0 10px; }
.sv-takeaways { font-size: 13px; line-height: 1.5; margin: 10px 0 4px; }
.sv-takeaways b { display: block; font-weight: 700; margin-bottom: 2px; }
.sv-takeaways ul { margin: 0; padding-left: 18px; }
.sv-story a { color: var(--sv-link, #1f6fd1); }
/* ── editor ── */
.st-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 2px 0 18px; }
.st-step { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--surface-1); border-radius: 12px; padding: 11px 14px; font: inherit; font-weight: 600; font-size: 14px; color: var(--text-secondary); cursor: pointer; text-align: left; position: relative; }
.st-step b { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; background: var(--surface-2); color: var(--text-secondary); flex: none; }
.st-step[aria-current="step"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text-primary); box-shadow: 0 0 0 3px var(--accent-soft); }
.st-step[aria-current="step"] b { background: var(--accent); color: #fff; } .st-step.is-done b { background: var(--good-bg, #e3f6ec); color: var(--good-text, #127a45); }
.st-step small { display: block; font-weight: 500; font-size: 11.5px; color: var(--text-muted); }
.st-wrap { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.st-wrap--wide { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
.st-panel { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.st-panel h3 { margin: 0 0 6px; font-size: 16px; } .st-panel p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin: 6px 0 12px; }
.st-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.st-tile { border: 1px solid var(--border); background: var(--surface-1); border-radius: 10px; padding: 12px 8px; font: inherit; font-size: 12px; font-weight: 600; color: var(--text-secondary); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.st-tile svg { width: 26px; height: 26px; color: var(--accent); } .st-tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text-primary); }
.st-area { width: 100%; min-height: 330px; resize: vertical; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--surface-1); color: var(--text-primary); box-sizing: border-box; }
.st-drop { border: 2px dashed var(--border); border-radius: 12px; padding: 34px 16px; text-align: center; color: var(--text-secondary); font-size: 13.5px; }
.st-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.st-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.st-input, .st-select { border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; background: var(--surface-1); color: var(--text-primary); min-width: 0; box-sizing: border-box; }
.st-input--full { width: 100%; } textarea.st-input { width: 100%; resize: vertical; min-height: 64px; line-height: 1.45; }
.st-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin: 12px 0 4px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.st-btn { border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.st-btn:hover { border-color: var(--accent); } .st-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; } .st-btn--primary:hover { filter: brightness(1.08); }
.st-btn--ai { background: linear-gradient(90deg, #7b5bd6, #1f6fd1); border: 0; color: #fff; } .st-btn--sm { padding: 4px 9px; font-size: 12px; }
.st-btn[disabled] { opacity: .5; cursor: default; }
.st-nav { display: flex; justify-content: space-between; margin-top: 16px; }
.st-grid { overflow: auto; max-height: 560px; border: 1px solid var(--border); border-radius: 10px; }
.st-grid table { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
.st-grid th, .st-grid td { border: 1px solid var(--grid); padding: 5px 8px; white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.st-grid thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; cursor: pointer; font-weight: 600; }
.st-grid thead tr.st-colname th { top: 29px; background: var(--surface-1); color: var(--text-primary); }
.st-grid td:first-child, .st-grid th:first-child { color: var(--text-muted); text-align: center; background: var(--surface-2); position: sticky; left: 0; cursor: default; }
.st-grid .t-number { color: #1f6fd1; text-align: right; font-variant-numeric: tabular-nums; } .st-grid .t-date { color: #12925f; } .st-grid .is-bad { background: #fde8e6; color: #b42318; }
.st-grid .is-empty { color: var(--text-muted); text-align: center; } .st-grid td[contenteditable="true"] { outline: 2px solid var(--accent); background: var(--surface-1); }
.st-grid th.is-sel { background: var(--accent-soft); }
.st-key span { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); font-family: ui-monospace, monospace; font-size: 12px; }
.st-health { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.st-health div { background: var(--surface-2); border-radius: 10px; padding: 9px 11px; font-size: 12px; color: var(--text-secondary); } .st-health b { display: block; font-size: 18px; color: var(--text-primary); }
.st-colpanel { border: 1px solid var(--accent); border-radius: 10px; padding: 12px; margin-top: 12px; background: var(--accent-soft); }
.st-subtabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; margin-bottom: 14px; }
.st-subtabs button { flex: 1; border: 0; background: transparent; padding: 7px 6px; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.st-subtabs button[aria-pressed="true"] { background: var(--surface-1); color: var(--text-primary); box-shadow: var(--shadow); }
.st-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.st-type { border: 1px solid var(--border); background: var(--surface-1); border-radius: 10px; padding: 9px 4px 7px; font: inherit; font-size: 11px; font-weight: 600; color: var(--text-secondary); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.2; text-align: center; }
.st-type svg { width: 34px; height: 26px; } .st-type[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text-primary); }
.st-type.is-off { opacity: .45; cursor: help; } .st-type { position: relative; }
.st-rectag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 600; letter-spacing: .02em; padding: 1px 7px; border-radius: 999px; background: #7b5bd6; color: #fff; }
.st-group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 12px 0 6px; }
.st-rec { display: flex; gap: 10px; align-items: flex-start; background: linear-gradient(90deg, rgba(123, 91, 214, .12), rgba(31, 111, 209, .10)); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px; line-height: 1.45; }
.st-rec b { color: #7b5bd6; }
.st-cmd { display: flex; gap: 6px; margin-bottom: 12px; } .st-cmd input { flex: 1; }
.st-doctor { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.st-doctor h4 { margin: 0 0 6px; font-size: 13px; } .st-doctor ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.st-doctor li { font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; color: var(--text-secondary); } .st-doctor li i { font-style: normal; }
.st-doctor li .st-btn { margin-left: auto; flex: none; }
.st-series { display: flex; flex-direction: column; gap: 5px; }
.st-series label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; } .st-series input[type="color"] { width: 26px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; }
.st-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 120px; overflow: auto; }
.st-chips button { border: 1px solid var(--border); background: var(--surface-1); border-radius: 999px; padding: 3px 9px; font: inherit; font-size: 11.5px; cursor: pointer; color: var(--text-secondary); }
.st-chips button[aria-pressed="true"] { background: #f2a516; border-color: #f2a516; color: #1b2230; }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .st-three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.st-insights { margin: 10px 0 0; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 12.5px; }
.st-insights li { margin: 4px 0; line-height: 1.45; } .st-ai-note { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.st-stage { background: repeating-conic-gradient(var(--surface-2) 0% 25%, transparent 0% 50%) 50% / 18px 18px; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; justify-content: center; overflow: auto; min-height: 420px; }
.st-stage .sv-card { box-shadow: 0 8px 30px rgba(10, 31, 92, .12); }
.st-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 12px; font-size: 12px; color: var(--text-secondary); }
.st-toolbar .grp { display: flex; gap: 4px; align-items: center; } .st-toolbar .st-input { width: 70px; padding: 5px 8px; }
.st-toolbar button { border: 1px solid var(--border); background: var(--surface-1); border-radius: 7px; padding: 5px 8px; font: inherit; font-size: 12px; cursor: pointer; color: var(--text-secondary); }
.st-toolbar button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text-primary); }
.st-pub { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 12px; padding: 14px; margin: 8px 0 14px; font-size: 13px; }
.st-copy { display: flex; gap: 6px; margin: 6px 0; } .st-copy input { flex: 1; font-family: ui-monospace, monospace; font-size: 12px; }
.st-radios { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; margin: 4px 0 10px; } .st-radios label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.st-exports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.st-exports button { border: 1px solid var(--border); background: var(--surface-1); border-radius: 10px; padding: 12px 6px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--text-primary); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.st-exports button small { font-weight: 500; color: var(--text-muted); font-size: 11px; } .st-exports button:hover { border-color: var(--accent); }
.st-archive { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; margin-top: 8px; }
.st-archive div { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; }
.st-archive div b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .st-archive small { color: var(--text-muted); }
.st-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1b2230; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 50; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; transition: opacity .2s; pointer-events: none; }
.st-toast.is-on { opacity: 1; }
.st-headtools { display: flex; gap: 8px; align-items: center; }
.st-headtools .st-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
@media (max-width: 1100px) { .st-wrap, .st-wrap--wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .st-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ngd-head__row > div:first-child { min-width: 0; } #doc-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-headtools { flex-shrink: 0; } .st-headtools .st-btn { white-space: nowrap; }
.st-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.st-themes button { border: 1px solid var(--border); border-radius: 10px; padding: 9px 8px; cursor: pointer; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 6px; text-align: left; font: inherit; font-size: 11.5px; }
.st-themes button b { font-size: 17px; line-height: 1; } .st-themes button i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; justify-self: start; }
.st-themes button span { grid-column: 1 / -1; font-weight: 600; } .st-themes button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.st-warn { font-size: 12px; color: #8a4b00; background: #fff4e0; border-radius: 8px; padding: 8px 10px; margin: 8px 0; line-height: 1.45; }
.st-h4 { font-size: 13px; margin: 18px 0 6px; }
.st-comments { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.st-cmt { border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; } .st-cmt small { color: var(--text-muted); margin-left: 6px; } .st-cmt p { margin: 4px 0 6px; line-height: 1.45; }
.st-cmt span { display: flex; gap: 6px; } .st-cmt.is-done { opacity: .55; } .st-cmt.is-done p { text-decoration: line-through; }
.st-versions { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.st-versions > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); padding: 5px 0; font-size: 12.5px; } .st-versions small { display: block; color: var(--text-muted); }
.st-archive select { max-width: 130px; }
.st-note { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-size: 12px; flex-wrap: wrap; } .st-note > b { min-width: 70px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-note input.st-input { flex: 1; min-width: 120px; } .st-note label { display: inline-flex; align-items: center; gap: 3px; color: var(--text-muted); }
.st-ovrow { display: flex; gap: 6px; align-items: center; margin: 4px 0; } .st-ovrow .st-input, .st-ovrow .st-select { flex: 1; min-width: 0; } .st-mini { font-size: 11.5px; color: var(--text-muted); display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.sv-legend span[data-k] { cursor: pointer; user-select: none; } .sv-legend span.is-off { opacity: .4; } .sv-legend span.is-off i { background: transparent !important; outline: 1.5px solid currentColor; outline-offset: -1.5px; }
.sv-body:focus-visible, .sv-legend span:focus-visible, .sv-table th:focus-visible { outline: 2px solid var(--sv-link, #1f6fd1); outline-offset: 2px; border-radius: 4px; }
.sv-tbl--sticky .sv-table tbody th[scope="row"] { position: sticky; left: 0; background: var(--sv-bg, #fff); z-index: 1; } .sv-tbl--sticky .sv-table thead th:first-child { left: 0; z-index: 3; }
.sv-tbl--cards .sv-table thead { display: none; } .sv-tbl--cards .sv-table, .sv-tbl--cards .sv-table tbody, .sv-tbl--cards .sv-table tr { display: block; width: 100%; }
.sv-tbl--cards .sv-table tr { border: 1px solid var(--sv-grid, #e6e9ef); border-radius: 8px; margin: 0 0 8px; padding: 4px 0; }
.sv-tbl--cards .sv-table tbody th[scope="row"] { display: block; position: static; font-weight: 700; border: 0; padding: 6px 10px 2px; }
.sv-tbl--cards .sv-table td { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; padding: 3px 10px; min-width: 0; text-align: right; }
.sv-tbl--cards .sv-table td::before { content: attr(data-h); color: var(--sv-muted, #5f6b80); font-size: 12px; text-align: left; } .sv-tbl--cards .sv-table td .sv-bar { display: none; }
.st-histo { display: flex; align-items: flex-end; gap: 2px; height: 38px; margin: 8px 0 2px; } .st-histo i { flex: 1; background: var(--accent); opacity: .55; border-radius: 2px 2px 0 0; }
.st-grid td.is-focus { outline: 2px solid #b42318; outline-offset: -2px; }
.sv-legend--bottom { margin: 8px 0 0; }
.sv-pill { display: inline-block; padding: 1px 7px; border-radius: 4px; } .sv-table tr.sv-pin th, .sv-table tr.sv-pin td { font-weight: 700; border-bottom: 2px solid var(--sv-grid, #d5dbe5); }
.sv-table .sv-rank { width: 28px; color: var(--sv-muted, #5f6b80); text-align: right; font-variant-numeric: tabular-nums; }
.sv-logo { float: right; margin-left: 10px; font-weight: 700; color: var(--sv-text, #1b2230); } .sv-logo img { height: 20px; width: auto; vertical-align: middle; } .sv-share a { margin-right: 4px; }
.sv-card[dir="rtl"] .sv-logo { float: left; margin: 0 10px 0 0; }
.st-expopts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12.5px; margin: 4px 0 8px; } .st-expopts label { display: inline-flex; gap: 6px; align-items: center; } .st-expopts .st-input { width: 150px; }
.st-bulk { display: flex; gap: 8px; align-items: center; font-size: 12.5px; margin: 0 0 8px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2, rgba(31,111,209,.08)); }
.st-archive > div > input[type="checkbox"] { margin-right: 4px; } .st-chips small { color: var(--text-muted); font-weight: 400; }
.sv-flag { height: .9em; width: auto; vertical-align: -0.08em; margin: 0 .2em 0 0; border-radius: 1px; box-shadow: 0 0 0 .5px rgba(0,0,0,.15); }
.sv-editable { cursor: text; border-radius: 4px; } .sv-editable:hover { outline: 1px dashed var(--sv-muted, #8a94a6); outline-offset: 2px; } .sv-editable[contenteditable="true"] { outline: 2px solid var(--sv-link, #1f6fd1); outline-offset: 2px; }
.sv-editable:empty::before { content: attr(data-ph); color: var(--sv-muted, #8a94a6); font-style: italic; font-weight: 400; }
/* plans and pricing page */
.pr-lead { font-size: 16px; color: var(--text-primary); margin: 0 0 8px; max-width: 760px; }
.pr-status { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 22px; max-width: 760px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 4px; }
.pr-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pr-plan { display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.pr-plan--main { border: 2px solid var(--accent); }
.pr-plan h2 { margin: 0 0 8px; font-size: 18px; color: var(--text-primary); }
.pr-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 40px; }
.pr-amt { font-size: 30px; font-weight: 700; color: var(--text-primary); } .pr-amt--sm { font-size: 20px; }
.pr-per { font-size: 13px; color: var(--text-muted); }
.pr-for { font-size: 13.5px; color: var(--text-secondary); margin: 4px 0 12px; }
.pr-plan ul { margin: 0 0 18px; padding: 0 0 0 18px; font-size: 13.5px; color: var(--text-primary); line-height: 1.55; flex: 1; }
.pr-btn { display: block; text-align: center; padding: 9px 12px; border-radius: 8px; font: 600 13.5px "Plus Jakarta Sans", sans-serif; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-secondary); text-decoration: none; }
.pr-btn[disabled] { cursor: default; }
.pr-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pr-h { font-size: 17px; margin: 32px 0 10px; color: var(--text-primary); }
.pr-tablewrap { overflow-x: auto; background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.pr-table th, .pr-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; color: var(--text-primary); }
.pr-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.pr-table tbody th { font-weight: 500; } .pr-table tbody tr:last-child > * { border-bottom: 0; }
/* box mode (canvas): a fixed-size card; the chart body takes the room left by the texts */
.sv-card--box { display: flex; flex-direction: column; overflow: hidden; border-radius: 0; }
.sv-card--box > * { flex: none; }
.sv-card--box > .sv-body { flex: 1 1 auto; min-height: 0; }
.sv-card--box > .sv-body.sv-tbl--bars, .sv-card--box > .sv-body.sv-tbl--heatmap, .sv-card--box > .sv-body.sv-tbl--plain { overflow: hidden; display: flex; flex-direction: column; }
.sv-card--box .sv-tablewrap { max-height: none; flex: 1 1 auto; min-height: 0; overflow: hidden; }
/* ── full-screen app (no site sidebar): slim top bar with the five steps ── */
body.st-body { margin: 0; background: var(--page-2, #f6f9fd); color: var(--text-primary); font-family: var(--font); }
.st-app { min-height: 100vh; display: flex; flex-direction: column; }
.st-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--surface-1); border-bottom: 1px solid var(--border); min-height: 52px; flex-wrap: wrap; }
.st-mark { display: inline-flex; align-items: center; gap: 5px; color: #0a1f5c; text-decoration: none; font-family: var(--font-brand); font-weight: 600; line-height: 1; letter-spacing: .02em; flex: none; }
:root[data-theme="dark"] .st-mark { color: #e6eaf2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-mark { color: #e6eaf2; } }
.st-mark__small { display: flex; flex-direction: column; font-size: 8.5px; text-align: right; } .st-mark__big { font-size: 19px; }
.st-top__app { font-weight: 600; font-size: 13px; color: var(--text-secondary); padding-left: 10px; border-left: 1px solid var(--border); flex: none; }
.st-top__doc { font-size: 13.5px; font-weight: 600; margin: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); flex: 0 1 auto; min-width: 60px; }
.st-top__sep { flex: 1 1 auto; }
.st-top .st-steps { display: inline-flex; gap: 0; margin: 0; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; flex: none; grid-template-columns: none; }
.st-top .st-steps button { border: 0; border-right: 1px solid var(--border); background: var(--surface-1); color: var(--text-secondary); font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.st-top .st-steps button:last-child { border-right: 0; }
.st-top .st-steps button b { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; background: var(--surface-3); color: var(--text-secondary); }
.st-top .st-steps button.is-done b { background: var(--good-bg, #e6f6ea); color: var(--good-text, #0b7a2e); }
.st-top .st-steps button[aria-current="step"] { background: #0a1f5c; color: #fff; } .st-top .st-steps button[aria-current="step"] b { background: #c99a2e; color: #fff; }
.st-top .st-headtools .st-btn { background: var(--surface-1); border-color: var(--border); color: var(--text-primary); }
.st-top .st-headtools .st-btn--primary { background: #0a1f5c; border-color: #0a1f5c; color: #fff; text-decoration: none; }
.st-dark { width: 30px; height: 30px; border: 1px solid var(--border); background: var(--surface-1); border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; color: var(--text-primary); }
.st-dark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; } .st-dark[aria-checked="true"] { background: var(--accent-soft); border-color: var(--accent); }
.st-main { flex: 1; padding: 18px 16px 24px; width: 100%; box-sizing: border-box; }
.st-intro { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary); }
.st-foot { font-size: 12px; color: var(--text-muted); margin: 22px 0 0; line-height: 1.5; }
.st-check li.is-ok i { color: var(--good-text, #0b7a2e); font-style: normal; font-weight: 700; } .st-check li.is-bad i { color: #b42323; font-style: normal; font-weight: 700; }
.st-check li.is-ok span { color: var(--text-secondary); }
.st-previews { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; align-items: start; }
.st-previews figure { margin: 0; min-width: 0; } .st-previews figcaption { font-size: 12px; color: var(--text-secondary); margin: 0 0 6px; font-weight: 600; }
.st-stage--fit { overflow: hidden; justify-content: flex-start; }
@media (max-width: 1280px) { .st-previews { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1560px) { .st-top__doc { display: none; } }
@media (max-width: 1300px) { .st-top__app { display: none; } }
.st-ib { width: 30px; height: 30px; border: 1px solid var(--border); background: var(--surface-1); border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; color: var(--text-primary); padding: 0; }
.st-ib svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .st-ib:disabled { opacity: .4; cursor: default; }
.st-top { flex-wrap: nowrap; } .st-headtools { flex-wrap: nowrap; }
/* EN | ES switch (shared with the canvas and the viewers) */
.i18n-toggle { display: inline-flex; border: 1px solid var(--border, #cdd4e1); border-radius: 8px; overflow: hidden; flex: none; }
.i18n-toggle button { border: 0; background: transparent; color: inherit; font: inherit; font-size: 12px; font-weight: 600; padding: 5px 9px; cursor: pointer; }
.i18n-toggle button[aria-pressed="true"] { background: #0a1f5c; color: #fff; }

/* table highlight (spec.highlight): chosen rows stand out, the others turn gray */
.sv-table tr.sv-dim td, .sv-table tr.sv-dim th { color: var(--sv-muted, #8a93a6); opacity: .62; }
.sv-table tr.sv-dim .sv-heat, .sv-table tr.sv-dim .sv-pill { filter: saturate(.25); }
.sv-table tr.sv-hl td, .sv-table tr.sv-hl th { font-weight: 600; background: var(--sv-hl, rgba(31, 111, 209, .09)); }
.sv-card--dark .sv-table tr.sv-hl td, .sv-card--dark .sv-table tr.sv-hl th { background: rgba(127, 176, 239, .18); }
