/*
 Facebook and Instagram (social.js, 23 November 2026). The ds- pieces Sam
 approved on Search for the page's frame; hairlines, not boxes.
*/
.so-page { max-width: 1000px; }

/* Cards: the portal's card surface, a hairline, soft corners. */
.so-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.so-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; display: inline-block; }
.so-dot.ok { background: var(--ok); }
.so-dot.stop { background: var(--stop); }
.so-glyph { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-2); }

/* The two accounts: one slim row each (Sam: "Cards can be smaller as well"). */
.so-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 10px; }
.so-account { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: inherit; text-decoration: none; transition: border-color .15s; }
.so-account:hover { border-color: var(--accent); text-decoration: none; }
.so-account > .so-glyph { width: 24px; height: 24px; color: var(--accent); }
.so-account-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.so-account-handle { font-weight: 600; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-account-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); }
.so-hero { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
.so-hero-num { font-size: 24px; line-height: 1.1; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.so-hero-label { font-size: 12px; line-height: 1.35; color: var(--ink-2); white-space: nowrap; }

/* A tile per number, its month under it: six in a row on a computer. */
.so-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0 0 18px; }
.so-tile { padding: 10px 12px 8px; border-radius: 12px; min-width: 0; }
.so-tile-label { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-tile-label .so-glyph { width: 13px; height: 13px; }
.so-tile-num { margin-top: 4px; font-size: 20px; line-height: 1.15; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.so-tile-sub { font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.so-spark { position: relative; height: 30px; margin-top: 6px; touch-action: pan-y; cursor: crosshair; }
.so-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.so-spark-area { fill: var(--accent-soft); stroke: none; }
.so-spark-line { fill: none; stroke: var(--accent); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
circle.so-spark-line { fill: var(--accent); stroke: none; }
.so-spark-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); pointer-events: none; }
.so-spark-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); pointer-events: none; }
.so-spark-tip { position: absolute; bottom: calc(100% + 4px); white-space: nowrap; padding: 3px 8px; border-radius: 8px; background: var(--ink); color: var(--card); font-size: 12px; pointer-events: none; z-index: 2; }

/* Instagram's posts, as the posts. */
.so-section { margin: 4px 0 18px; }
.so-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; }
.so-section-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.so-section-note { font-size: 13px; color: var(--ink-2); }
.so-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.so-post { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--fill); color: #fff; text-decoration: none; }
.so-post:hover { text-decoration: none; }
.so-post-pic, .so-post-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.so-post-pic img { object-fit: cover; }
.so-post-pic.none { display: flex; align-items: center; justify-content: center; padding: 18px; background: var(--accent-soft); }
.so-post-cap { color: var(--ink); font-size: 13px; line-height: 1.4; text-align: center; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.so-post-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 6px; }
.so-post-chip { padding: 2px 8px; border-radius: 999px; background: rgba(20, 17, 22, .62); color: #fff; font-size: 11px; font-weight: 500; }
.so-post-stats { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 22px 10px 8px; background: linear-gradient(to top, rgba(20, 17, 22, .72), rgba(20, 17, 22, 0)); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.so-post-stat { display: inline-flex; align-items: center; gap: 4px; }
.so-ico { width: 13px; height: 13px; display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.so-ico.eye { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.so-ico.person { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E"); }
.so-ico.taps { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }}

/* Folded away underneath: the table and the connection's small print. */
.so-more { border-top: 1px solid var(--line); padding: 2px 0; }
.so-more:last-child { border-bottom: 1px solid var(--line); }
.so-more > summary { cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--ink-2); list-style: none; }
.so-more > summary::-webkit-details-marker { display: none; }
.so-more > summary::before { content: "›"; display: inline-block; width: 16px; transition: transform .15s; }
.so-more[open] > summary::before { transform: rotate(90deg); }
.so-line { margin: 4px 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.so-line.wait { color: var(--wait); }
.so-line.soft { color: var(--ink-2); }
.so-link { margin-left: 8px; color: var(--accent); font-weight: 500; text-decoration: none; white-space: nowrap; }
.so-link:hover { text-decoration: underline; }
.so-error { margin: 8px 0; font-size: 14px; line-height: 1.5; color: var(--stop); }
.so-note { margin: 6px 0 10px; font-size: 13px; line-height: 1.5; max-width: 640px; }
.so-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }

/* Not connected. */
.so-off { max-width: 720px; }
.so-off-head { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--ink); }
.so-off-sub { margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.so-steps { margin: 6px 0 8px; padding-left: 22px; }
.so-steps li { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.so-steps li::marker { color: var(--ink-2); }

.so-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 6px; }
.so-table td { white-space: nowrap; }
.so-table th { white-space: normal; vertical-align: bottom; min-width: 64px; line-height: 1.3; }
.so-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.so-table th.num { text-align: right; }

@media (max-width: 900px) { .so-tiles { grid-template-columns: repeat(3, 1fr); } .so-posts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .so-accounts { grid-template-columns: 1fr; gap: 8px; }
  .so-tiles { grid-template-columns: 1fr 1fr; }
  .so-posts { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* The preview. */
/* The whole photo, as it will go up: Facebook keeps its shape, and a square
   crop here would promise something the post does not do. */
.so-photo { display: flex; justify-content: center; margin: 0 auto 14px; }
.so-photo img { display: block; max-width: 100%; max-height: 360px; width: auto; height: auto; border-radius: var(--r-sm); background: var(--fill); }
.so-sheet textarea { min-height: 120px; line-height: 1.5; }
.so-under { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: -6px; }
.so-under .so-note { margin: 0 0 6px; }
.so-count { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.so-count.over { color: var(--stop); font-weight: 600; }
.so-where { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 6px 0 4px; }
.so-where .field.tick { margin-bottom: 0; }
.so-go { margin-top: 12px; }
.so-posted { margin: 14px 0 4px; border-top: 1px solid var(--line); }
.so-posted-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
