/* ScreenShooter product page — local rules only.
 * Colors come from sc-extension-theme.css variables; they auto-invert in dark
 * mode via [data-theme="dark"]. Mirrors the SoftCreator product-page class system. */

/* ---------- Header brand ---------- */
.ss-brand {
    display: flex;
    align-items: center;
    height: 64px;
    padding-left: 16px;
    gap: 12px;
}
.ss-brand-logo { height: 36px; width: 36px; flex: 0 0 36px; }
.ss-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.ss-brand-product {
    font-size: 19px;
    font-weight: 700;
    color: var(--accent-success);
    letter-spacing: 0.2px;
}
.ss-brand-owner {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* ---------- Header status / platform pill ---------- */
.ss-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-input);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: var(--shadow);
}
.ss-pill-label { font-weight: 600; color: var(--text-primary); }
.ss-pill-meta  { color: var(--text-muted); }
.ss-pill-sep   { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }
.ss-pill .sci  { color: var(--accent-success); font-size: 14px; }

/* ---------- Sidebar ---------- */
.ss-menu-icon {
    display: inline-block;
    width: 24px;
    text-align: center;
    margin-right: 12px;
    color: var(--text-muted);
    font-size: 18px;
    vertical-align: middle;
    transition: color 0.15s ease;
}
.ss-menu-label {
    vertical-align: middle;
    font-size: 14px;
    color: var(--text-primary);
    transition: color 0.15s ease;
}
.ss-sub .ss-menu-label { font-size: 13px; color: var(--text-muted); }
.ss-sub .ss-menu-icon  { font-size: 15px; }
.ss-menu-row.ss-sub { padding-left: 18px; }

.ss-sidebar-list .webix_list_item { position: relative; }
.ss-sidebar-list .webix_list_item::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: transparent;
    transition: background 0.15s ease;
}
.ss-sidebar-list .webix_list_item:hover::before,
.ss-sidebar-list .webix_list_item.webix_selected::before {
    background: var(--sc-primary);
}
.ss-sidebar-list .webix_list_item:hover .ss-menu-icon,
.ss-sidebar-list .webix_list_item.webix_selected .ss-menu-icon {
    color: var(--sc-primary) !important;
}
.ss-sidebar-list .webix_list_item:hover .ss-menu-label,
.ss-sidebar-list .webix_list_item.webix_selected .ss-menu-label {
    color: var(--accent-success) !important;
    font-weight: 600;
}

/* ---------- Typography ---------- */
.ss-h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 8px 0 12px 0;
    color: var(--text-primary);
}
.ss-h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin: 4px 0 8px 0;
    color: var(--text-primary);
}
.ss-h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 18px 0 6px 0;
    color: var(--text-primary);
}
.ss-lead {
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 16px 0;
    color: var(--text-primary);
    max-width: 860px;
}
.ss-body {
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 12px 0;
    color: var(--text-primary);
    max-width: 860px;
}
.ss-body code, .ss-bullets code, .ss-li code {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: 'Roboto Mono', Consolas, monospace;
    font-size: 0.88em;
}
.ss-bullets {
    margin: 8px 0 16px 18px;
    padding: 0;
    line-height: 1.75;
    font-size: 14px;
    color: var(--text-primary);
    max-width: 860px;
}
.ss-bullets li { margin: 3px 0; }
.ss-section {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 22px 0 10px 0;
}
.ss-kbd {
    display: inline-block;
    padding: 2px 8px;
    font-family: 'Roboto Mono', Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    border-radius: 5px;
}

/* ---------- Home metric cards ---------- */
.ss-metric-card {
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    margin-right: 12px;
}
.ss-metric-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.ss-metric-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-success);
    line-height: 1.1;
    margin-bottom: 6px;
}
.ss-metric-unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}
.ss-metric-hint {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}

/* ---------- Home CTA cards ---------- */
.ss-cta-prompt {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}
.ss-cta-card {
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ss-cta-card .ss-cta-card-inner {
    height: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ss-cta-card:hover .ss-cta-card-inner {
    border-color: var(--accent-success);
    background: var(--bg-input);
    box-shadow: var(--shadow);
}
.ss-cta-card:hover { transform: translateY(-2px); }
.ss-cta-card:active { transform: translateY(0); }
.ss-cta-line1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}
.ss-cta-line1 .sci {
    color: var(--accent-success);
    font-size: 18px;
    margin-right: 6px;
    vertical-align: -2px;
}
.ss-cta-line2 {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ---------- Feature grid ---------- */
.ss-feature {
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-input);
    overflow: hidden;
}
.ss-feature-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}
.ss-feature-head .sci { color: var(--accent-success); font-size: 20px; }
.ss-feature-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.ss-feature-body { padding: 12px 16px 14px 16px; font-size: 13.5px; line-height: 1.6; color: var(--text-primary); }

/* ---------- Screenshot frame (faux window chrome) ---------- */
.ss-shot {
    margin: 14px 0 18px 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-secondary);
}
.ss-shot-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}
.ss-shot-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.ss-shot-dot.r { background: #ff5f57; }
.ss-shot-dot.y { background: #febc2e; }
.ss-shot-dot.g { background: #28c840; }
.ss-shot-title { margin-left: 8px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
/* Never upscale: an image smaller than the frame shows at native size, centered. */
.ss-shot img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.ss-shot-cap { padding: 8px 12px; font-size: 12px; color: var(--text-muted); line-height: 1.45; }

/* ---------- Spec table ---------- */
.ss-table {
    width: 100%;
    max-width: 860px;
    border-collapse: collapse;
    margin: 10px 0 16px 0;
    font-size: 13.5px;
}
.ss-table th, .ss-table td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: top;
}
.ss-table th { background: var(--bg-tertiary); font-weight: 700; }
.ss-table tr:nth-child(even) td { background: var(--bg-secondary); }
.ss-table code { font-family: 'Roboto Mono', Consolas, monospace; font-size: 0.9em; }

/* ---------- Callout ---------- */
.ss-callout {
    margin: 12px 0 16px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--accent-success);
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-primary);
    max-width: 860px;
}
.ss-callout.warn { border-left-color: var(--accent-danger); }
.ss-callout-title { font-weight: 700; margin-bottom: 4px; }
.ss-callout-title .sci { margin-right: 6px; color: var(--accent-success); }
.ss-callout.warn .ss-callout-title .sci { color: var(--accent-danger); }

/* ---------- Swatch chip (inline colour dot) ---------- */
.ss-swatch {
    display: inline-block;
    width: 11px; height: 11px;
    border-radius: 3px;
    vertical-align: -1px;
    margin-right: 4px;
    border: 1px solid rgba(0,0,0,0.2);
}

/* ---------- Pipeline diagram (Home / How it works) ---------- */
.ss-pipe {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 6px 0;
}
.ss-pipe-node {
    flex: 1 1 0;
    min-width: 120px;
    padding: 12px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-input);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ss-pipe-node .sci { font-size: 20px; color: var(--accent-success); }
.ss-pipe-step { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }
.ss-pipe-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.ss-pipe-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.ss-pipe-arrow { align-self: center; color: var(--text-muted); font-size: 18px; }

/* ---------- Steps (install) ---------- */
.ss-step {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    align-items: flex-start;
}
.ss-step-num {
    flex: 0 0 30px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--accent-success);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.ss-step-body { font-size: 14px; line-height: 1.6; color: var(--text-primary); }
.ss-step-body b { color: var(--text-primary); }

/* ---------- Tech stack (layered sections) ---------- */
.ss-stack {
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-input);
    overflow: hidden;
}
.ss-stack-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}
.ss-stack-head .sci { color: var(--accent-success); font-size: 19px; }
.ss-stack-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.ss-stack-meta  { margin-left: auto; font-size: 11px; font-weight: 600; text-transform: uppercase;
                   letter-spacing: 0.4px; color: var(--text-muted); }
.ss-stack-list {
    margin: 0;
    padding: 12px 18px 14px 34px;
    line-height: 1.7;
    font-size: 13.5px;
    color: var(--text-primary);
}
.ss-stack-list li { margin: 3px 0; }
.ss-stack-list code, .ss-stack-list b code {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: 'Roboto Mono', Consolas, monospace;
    font-size: 0.88em;
}

/* ---------- Mermaid diagram host ---------- */
.ss-graph-wrap {
    margin: 12px 0 18px 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    overflow: hidden;
}
.ss-graph-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-size: 12.5px; font-weight: 700; color: var(--text-primary);
}
.ss-graph-bar .sci { color: var(--accent-success); font-size: 16px; }
/* Host grows to the diagram's natural height — no inner scrollbar. Only the
 * whole Architecture page scrolls (the Webix scrollview around the content). */
.ss-graph {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    box-sizing: border-box;
    overflow-x: auto;
}
[data-theme="dark"] .ss-graph { background: #16231a; }
.ss-graph svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.ss-graph-loading { color: var(--text-muted); font-size: 13px; font-style: italic; padding: 8px; }

/* ---------- Footer ---------- */
.ss-foot {
    margin: 28px 0 8px 0;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}
.ss-foot a { color: var(--accent-success); text-decoration: none; }
.ss-foot a:hover { text-decoration: underline; }

/* ---------- Download button (Install page) ---------- */
.ss-download {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 520px;
    margin: 8px 0 22px 0;
    padding: 16px 22px;
    border-radius: 12px;
    background: var(--accent-success);
    color: #ffffff;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.ss-download:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.ss-download:active { transform: translateY(0); }
.ss-download-icon { font-size: 34px; color: #ffffff; flex: 0 0 auto; }
.ss-download-text { display: flex; flex-direction: column; line-height: 1.25; }
.ss-download-title { font-size: 19px; font-weight: 700; color: #ffffff; }
.ss-download-sub { font-size: 12.5px; color: rgba(255, 255, 255, 0.9); margin-top: 3px; }

/* ---------- Home: trust strip, hero loop, benefit cards ---------- */
.ss-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px 0;
    padding: 8px 14px;
    max-width: 860px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.ss-trust .sci { color: var(--accent-success); font-size: 16px; flex: 0 0 auto; }

.ss-hero {
    margin: 0 0 18px 0;
    max-width: 860px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-tertiary);
}
.ss-hero-media { display: block; max-width: 100%; height: auto; margin: 0 auto; }

.ss-benefit {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
}
.ss-benefit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ss-benefit-head .sci { color: var(--accent-success); font-size: 20px; }
.ss-benefit-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.ss-benefit-body { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }

/* ---------- Sync topology picture (History & sync) ---------- */
.ss-topo { margin: 12px 0 16px 0; max-width: 720px; }
.ss-topo-net {
    border: 2px dashed var(--accent-success);
    border-radius: 12px;
    padding: 12px 16px 16px;
    background: var(--bg-secondary);
}
.ss-topo-label {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 12px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    color: var(--text-muted);
}
.ss-topo-label .sci { color: var(--accent-success); font-size: 15px; }
.ss-topo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ss-topo-node {
    flex: 1; min-width: 150px;
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--border-color); border-radius: 10px;
    background: var(--bg-input);
}
.ss-topo-node.host { border: 1.5px solid var(--accent-success); }
.ss-topo-node .sci { font-size: 22px; color: var(--accent-success); }
.ss-topo-node b { font-size: 14px; color: var(--text-primary); }
.ss-topo-node span:last-child { font-size: 12px; color: var(--text-muted); }
.ss-topo-mid {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    flex: 0 0 auto; padding: 0 4px;
    font-size: 11px; color: var(--text-muted);
}
.ss-topo-mid .sci { font-size: 22px; color: var(--accent-success); }
.ss-topo-clients { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Progressive-disclosure "Technical details" block ---------- */
.ss-details {
    margin: 16px 0 18px 0;
    max-width: 860px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    overflow: hidden;
}
.ss-details-summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    user-select: none;
}
.ss-details-summary::-webkit-details-marker { display: none; }
.ss-details-summary .sci { color: var(--accent-success); font-size: 16px; }
.ss-details-label { flex: 1; }
.ss-details-mark { transition: transform 0.15s ease; color: var(--text-muted) !important; }
.ss-details[open] > .ss-details-summary { border-bottom: 1px solid var(--border-color); }
.ss-details[open] > .ss-details-summary .ss-details-mark { transform: rotate(90deg); }
.ss-details-body { padding: 12px 16px 4px 16px; }
.ss-details-body > :first-child { margin-top: 0; }
/* Tables/diagrams inside a details block keep the same look but never force width. */
.ss-details-body .ss-table { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .ss-cta-card, .ss-download, .ss-details-mark { transition: none; }
}
