/* Status/Stories 2.0.0-piloto.3 — componentes isolados e geometria reservada no HTML. */
.sts-root, .sts-viewer {
    --sts-color: #1769e0; --sts-seen: #b8c0cc; --sts-background: #101827;
    --sts-circle: 72px; --sts-gap: 14px;
    --sts-ink: #fff; --sts-muted: #e1e6ef; --sts-subtle: #b6c0d0;
    --sts-surface: rgba(255,255,255,.07); --sts-line: rgba(255,255,255,.25); --sts-accent-ink: #fff;
    font-family: inherit; box-sizing: border-box; line-height: 1.45;
}
.sts-root *, .sts-viewer * { box-sizing: border-box; }
.sts-root[hidden], .sts-viewer [hidden] { display: none !important; }
.sts-root[data-sts-version="2"] {
    position: relative; display: block; width: min(1120px, 100%); margin: 0 auto; padding: 0;
    height: calc(var(--sts-reserved-circle, 72px) + 152px); overflow: hidden;
    color: #172335; background: transparent;
}
.sts-root[data-sts-version="2"] > .sts-content { position: absolute; inset: 0; padding: 20px 16px; }
.sts-root[data-sts-version="2"][data-sts-checking="1"] > .sts-content { visibility: hidden; }
.sts-empty { margin: 0; padding: 20px 0; color: #647084; font-size: 13px; }
.sts-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; height: 28px; overflow: hidden; margin-bottom: 12px; }
.sts-root .sts-heading { margin: 0; font-size: clamp(17px, 2.4vw, 21px); font-weight: 750; line-height: 1.3; letter-spacing: -.025em; }
.sts-root .sts-heading { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sts-hint { flex-shrink: 0; color: #647084; font-size: 11px; }
.sts-track {
    display: flex; gap: var(--sts-gap); overflow-x: auto; overscroll-behavior-x: contain;
    height: calc(var(--sts-circle) + 68px);
    scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #d5dce6 transparent;
    margin: 0 -5px; padding: 4px 5px 12px; -webkit-overflow-scrolling: touch;
}
.sts-cell { flex: 0 0 calc(var(--sts-circle) + 12px); min-width: 0; scroll-snap-align: start; }
.sts-root .sts-item {
    display: flex; width: 100%; flex-direction: column; align-items: center; gap: 8px;
    margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent;
    color: inherit; font: inherit; text-align: center; cursor: pointer; box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}
.sts-avatar {
    position: relative; display: block; flex: 0 0 auto; width: var(--sts-circle); height: var(--sts-circle);
    border: 2.5px solid var(--sts-color); border-radius: 50%; padding: 4px;
    background: #fff; transition: transform 160ms ease; overflow: hidden;
}
.sts-avatar-fallback {
    display: flex; position: absolute; inset: 4px; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--sts-accent-ink); background: var(--sts-color); font-size: 25px; font-weight: 750;
}
.sts-root .sts-thumb { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sts-is-seen .sts-avatar { border-color: var(--sts-seen); }
.sts-label { display: -webkit-box; width: 100%; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.35; min-height: 2.7em; overflow-wrap: anywhere; }
.sts-ad-label { color: #657085; font-size: 9px; margin-top: -6px; }
.sts-item:hover .sts-avatar { transform: translateY(-2px); }
.sts-item[aria-busy="true"] { opacity: .6; cursor: progress; }
.sts-root button:focus-visible, .sts-viewer button:focus-visible, .sts-viewer a:focus-visible { outline: 3px solid #61b2ff; outline-offset: 4px; }
.sts-viewer {
    position: fixed; inset: 0; padding: 0; margin: auto; width: min(440px, calc(100vw - 40px));
    height: min(820px, calc(100dvh - 40px)); max-width: none; max-height: none;
    border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: var(--sts-background);
    color: var(--sts-ink); box-shadow: 0 24px 100px rgba(0,0,0,.5); overflow: hidden;
}
.sts-viewer::backdrop { background: rgba(4,9,18,.88); backdrop-filter: blur(8px); }
.sts-story { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; color: var(--sts-ink); background: var(--sts-background); }
.sts-progress { position: relative; z-index: 2; display: flex; flex-shrink: 0; gap: 3px; padding: 14px 16px 0; }
.sts-progress-segment { flex: 1; min-width: 0; height: 3px; background: var(--sts-line); border-radius: 5px; overflow: hidden; }
.sts-progress-fill { display: block; width: 100%; height: 100%; background: var(--sts-ink); transform: scaleX(0); transform-origin: left; }
.sts-toolbar { position: relative; z-index: 2; display: flex; align-items: center; flex-shrink: 0; gap: 8px; min-height: 60px; padding: 8px 12px 8px 20px; }
.sts-source { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sts-sponsored { border: 1px solid var(--sts-line); padding: 3px 7px; border-radius: 5px; }
.sts-count { margin-left: auto; color: var(--sts-muted); font-size: 11px; white-space: nowrap; }
.sts-viewer .sts-control, .sts-viewer .sts-nav {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 44px; height: 44px; padding: 0; margin: 0; border: 1px solid var(--sts-line);
    border-radius: 50%; background: var(--sts-surface); color: var(--sts-ink);
    font: inherit; font-size: 18px; line-height: 1; box-shadow: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.sts-viewer .sts-close { font-size: 31px; border-color: transparent; background: transparent; }
.sts-viewer .sts-control:hover, .sts-viewer .sts-nav:hover { background: var(--sts-line); color: var(--sts-ink); }
.sts-media {
    position: relative; display: flex; align-items: center; justify-content: center; flex: 1 1 auto;
    min-height: 80px; width: 100%; overflow: hidden; touch-action: pan-y; user-select: none;
    background: linear-gradient(145deg, var(--sts-surface), transparent);
}
.sts-viewer .sts-image { width: 100%; height: 100%; max-height: 100%; display: block; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.sts-copy { flex-shrink: 0; max-height: 35%; overflow-y: auto; padding: 20px 24px 4px; scrollbar-width: thin; }
.sts-viewer .sts-story-title { margin: 0 0 9px; color: var(--sts-ink); font-size: clamp(22px, 5.7vw, 28px); font-weight: 750; letter-spacing: -.035em; line-height: 1.17; overflow-wrap: anywhere; }
.sts-viewer .sts-story-text { margin: 0; color: var(--sts-muted); font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.sts-text-only { background-image: radial-gradient(ellipse at 80% 20%, var(--sts-surface), transparent 70%); }
.sts-text-only .sts-media { display: none; }
.sts-text-only .sts-copy { margin: auto 0; max-height: 65%; padding: 28px; }
.sts-text-only .sts-story-title { font-size: clamp(27px, 7.4vw, 38px); }
.sts-bottom { flex-shrink: 0; padding: 16px 24px 2px; }
.sts-viewer .sts-link {
    display: flex; align-items: center; justify-content: center; min-height: 46px;
    padding: 12px 20px; border-radius: 12px; background: var(--sts-ink); color: var(--sts-background);
    font-size: 14px; line-height: 1.4; font-weight: 700; text-decoration: none; text-align: center;
    box-shadow: none; overflow-wrap: anywhere;
}
.sts-viewer .sts-link:hover { opacity: .9; color: var(--sts-background); }
.sts-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 14px 20px 18px; }
.sts-viewer .sts-nav { font-size: 32px; }
.sts-viewer .sts-nav:disabled { opacity: .25; cursor: default; }
.sts-gesture-hint { color: var(--sts-subtle); text-align: center; font-size: 10px; line-height: 1.4; }
.sts-checking .sts-media, .sts-checking .sts-copy, .sts-checking .sts-bottom { visibility: hidden; }
.sts-checking-message { position: absolute; inset: 80px 0 100px; display: flex; align-items: center; justify-content: center; z-index: 3; background: var(--sts-background); color: var(--sts-ink); font-size: 14px; }
.sts-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 767px) {
    .sts-root[data-sts-devices="desktop"] { display: none !important; }
    .sts-hint { font-size: 10px; }
    .sts-viewer { width: 100%; height: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
    .sts-progress { padding-top: max(12px, env(safe-area-inset-top)); }
    .sts-navigation { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) { .sts-root[data-sts-devices="mobile"] { display: none !important; } }
@media (max-height: 520px) and (orientation: landscape) {
    .sts-viewer { width: min(740px, calc(100vw - 24px)); height: calc(100dvh - 16px); margin: auto; border-radius: 14px; }
    .sts-story { display: grid; grid-template-columns: 47% 53%; grid-template-rows: 15px 50px minmax(0,1fr) auto 60px; }
    .sts-progress { grid-column: 1 / 3; padding-top: 10px; }
    .sts-toolbar { grid-column: 1 / 3; min-height: 0; }
    .sts-media { grid-row: 3 / 6; min-height: 0; }
    .sts-copy { grid-column: 2; max-height: none; min-height: 0; padding: 10px 20px 0; }
    .sts-bottom, .sts-navigation { grid-column: 2; padding: 8px 20px; }
    .sts-text-only .sts-copy { grid-column: 1 / 3; grid-row: 3; width: 100%; margin: 0; max-height: none; padding: 10px 24px; }
    .sts-text-only .sts-bottom, .sts-text-only .sts-navigation { grid-column: 1 / 3; }
    .sts-viewer .sts-story-title { font-size: 22px; }
    .sts-viewer .sts-story-text { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .sts-avatar { transition: none; }
    .sts-track { scroll-behavior: auto; }
}
