/* Social (#agent/social). The so- pieces on top of the Money design system;
   colours come from its --m-* tokens so light, dark and the agent's brand
   colour all carry over. Network colours are the only fixed ones. */

/* The graphic maker draws with the portal's self-hosted faces (font-src 'self'). */
@font-face { font-family: "SoBarlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "SoBarlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "SoSerif"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }

.so-app .so-newbtn { width: 100%; justify-content: center; margin: 4px 0 2px; }
.so-navgap { height: 10px; }
.so-navright { margin-left: auto; font-size: 11.5px; font-weight: 600; color: #8A5F1F; background: #FBF0DC; border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.m-nav.active .so-navright { color: #6B4C17; }
.so-foot .tk-foot-note { font-size: 11.5px; line-height: 1.45; color: var(--m-muted); padding: 10px 10px 0; }
.so-grow { flex: 1 1 auto; }
.so-pad { padding: 14px 20px; }
.so-gapt { margin-top: 12px; }
.so-gapb { margin-bottom: 12px; }
.so-hint { font-size: 12px; line-height: 1.5; color: var(--m-muted); margin-top: 6px; }
.so-hint.center, .so-whenacts.center { text-align: center; justify-content: center; }
.so-h2 { font-size: 16px; font-weight: 600; margin: 34px 0 4px; color: var(--m-ink); }
.so-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.so-four { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 10px; }
.so-field { margin-bottom: 12px; }
.so-field:last-child { margin-bottom: 0; }
.so-area { width: 100%; box-sizing: border-box; font: inherit; font-size: 13.5px; line-height: 1.55; resize: vertical; padding: 10px 12px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); outline: none; }
.so-area:focus { border-color: var(--m-accent); box-shadow: 0 0 0 3px var(--m-accent-soft); }
.so-app .m-select, .so-app .m-input { min-height: 36px; }
.so-app select.m-select { width: auto; max-width: 100%; }
.so-field select.m-select, .so-two select.m-select { width: 100%; }
.so-app .m-main > .m-card + .m-card, .so-cols > div > .m-card + .m-card, .so-composer > div > .m-card + .m-card, .so-gfx > div > .m-card + .m-card { margin-top: 22px; }
body.clean-on .so-app .m-main .m-card + .m-card { margin-top: 30px; }

/* figures: one line between two hairlines */
.so-figs { display: flex; flex-wrap: wrap; border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line); margin: 4px 0 24px; }
.so-fig { flex: 1 1 130px; padding: 16px 18px 14px 0; }
.so-fig .v { font-size: 26px; line-height: 1.15; font-weight: 600; color: var(--m-ink); font-variant-numeric: tabular-nums; }
.so-fig .v small { font-size: 13px; font-weight: 500; color: var(--m-muted); margin-left: 5px; }
.so-fig .v.warn { color: #B45309; }
.so-fig .l { font-size: 12.5px; color: var(--m-muted); margin-top: 3px; }

.so-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.so-cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.so-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.so-toolbar .m-select { font-size: 12.5px; min-height: 32px; padding: 4px 8px; }

.so-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin: 0 0 20px; border: 1px solid #E8D9BE; background: #FBF5EA; color: #6B4C17; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.so-banner .i { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
[data-theme="dark"] .so-banner { border-color: #5a4a2a; background: #2e2716; color: #E9D3A4; }
.so-need { display: flex; gap: 10px; align-items: flex-start; padding: 10px 2px; border-top: 1px solid var(--m-line-soft); color: #8A5F1F; font-size: 13px; line-height: 1.45; }
.so-need:first-child { border-top: 0; padding-top: 2px; }
.so-need .i { flex: 0 0 16px; margin-top: 2px; }
[data-theme="dark"] .so-need { color: #E0B872; }

.so-dot { display: inline-block; width: 9px; height: 9px; border-radius: 999px; flex: 0 0 9px; vertical-align: baseline; }
.so-nets { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.so-net { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--m-muted); }
.so-label { font-size: 11px; color: var(--m-muted); background: var(--m-surface-2); border-radius: 999px; padding: 1px 8px; }

/* a post as one row */
.so-prow { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--m-line-soft); min-width: 0; }
.so-prow:first-child { border-top: 0; }
.so-prow:hover { background: var(--m-surface-2); }
body.clean-on .so-app .so-prow { padding-left: 4px; padding-right: 4px; }
.so-thumb { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--m-surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--m-faint); }
.so-prow-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.so-prow-text { font-size: 13.5px; color: var(--m-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-prow-sub { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.so-prow-when { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; text-align: right; }
.so-chline { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--m-line-soft); }
.so-chline:first-child { border-top: 0; }
.so-chline.pad { padding: 10px 20px; }
body.clean-on .so-app .so-chline.pad { padding-left: 2px; padding-right: 2px; }
.so-chname { flex: 1 1 auto; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-settags { display: block; font-size: 12px; color: var(--m-muted); white-space: normal; margin-top: 2px; }

/* ---- Ready to post ---- */
.so-ready { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.so-rcard { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.so-rhead { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.so-rnote { font-size: 12.5px; line-height: 1.45; color: #8B2F26; background: #FBEFED; border-radius: 8px; padding: 8px 10px; }
.so-rmedia { display: flex; gap: 8px; overflow-x: auto; }
.so-rmedia img { height: 96px; width: 96px; object-fit: cover; border-radius: 8px; display: block; }
.so-rtext { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 13.5px; line-height: 1.55; color: var(--m-ink); background: var(--m-surface-2); border-radius: 10px; padding: 12px 14px; max-height: 380px; overflow-y: auto; -webkit-user-select: text; user-select: text; }
.so-racts, .so-whenacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.so-whenacts { margin-top: 12px; }
.so-whenacts.quiet { margin-top: 8px; gap: 2px; }
.so-rdone { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--m-line-soft); padding-top: 12px; }
.so-rdone .m-input { flex: 1 1 100%; min-width: 0; }

/* ---- composer ---- */
.so-composer { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.so-gfx { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
.so-sticky { position: sticky; top: 76px; }
.so-savestate { margin-left: 8px; font-size: 12px; }
.so-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.so-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--m-line); border-radius: 999px; font-size: 13px; cursor: pointer; background: var(--m-surface); color: var(--m-muted); user-select: none; }
.so-chip input { position: absolute; opacity: 0; pointer-events: none; }
.so-chip i { font-style: normal; font-size: 11px; color: var(--m-faint); }
.so-chip.on { border-color: var(--m-accent); background: var(--m-accent-soft); color: var(--m-ink); font-weight: 600; }
.so-chip:focus-within { box-shadow: 0 0 0 3px var(--m-accent-soft); }
.so-caption { min-height: 170px; }
.so-setpick { font-size: 12.5px; min-height: 30px !important; padding: 3px 8px; }
.so-app select.m-select.so-setpick { max-width: 220px; }
.so-overrides { margin-top: 12px; border: 1px solid var(--m-line); border-radius: 10px; overflow: hidden; }
.so-ov { border-top: 1px solid var(--m-line-soft); }
.so-ov:first-child { border-top: 0; }
.so-ov summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; font-size: 13px; list-style: none; }
.so-ov summary::-webkit-details-marker { display: none; }
.so-ov summary:hover { background: var(--m-surface-2); }
.so-ov .so-area { border: 0; border-top: 1px solid var(--m-line-soft); border-radius: 0; box-shadow: none; background: var(--m-surface-2); }
.so-counter { margin-left: auto; display: inline-flex; gap: 10px; }
.so-ovhint { font-size: 11.5px; color: var(--m-faint); margin-left: 6px; }
.so-ov summary > svg.i { width: 14px; height: 14px; color: var(--m-faint); transition: transform .12s; }
.so-ov[open] summary > svg.i { transform: rotate(180deg); }
.so-count { font-size: 11.5px; color: var(--m-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.so-count.near { color: #B45309; }
.so-count.over { color: var(--m-neg); font-weight: 600; }
.so-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.so-pic { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--m-surface-2); }
.so-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-pic em { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 10px; font-weight: 600; background: rgba(0, 0, 0, .65); color: #fff; border-radius: 4px; padding: 1px 5px; }
.so-pic-acts { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 3px; }
.so-pic-acts .m-btn { min-height: 0 !important; width: 24px; height: 24px; padding: 0; background: rgba(255, 255, 255, .92); color: #16202b; border: 0; justify-content: center; }
.so-checks { display: flex; flex-direction: column; gap: 8px; }
.so-check { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: #6B4C17; background: #FBF5EA; border-radius: 8px; padding: 8px 10px; }
.so-check .i { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px; }
.so-check.bad { color: #8B2F26; background: #FBEFED; }
.so-check.fh { color: #3B3A7A; background: #EEEEFB; }
.so-okline { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--m-pos); }
[data-theme="dark"] .so-check { color: #E9D3A4; background: #2e2716; }
[data-theme="dark"] .so-check.bad { color: #F0B8B1; background: #321a17; }
[data-theme="dark"] .so-check.fh { color: #C9C8F5; background: #22213f; }
.so-terr { font-size: 12px; line-height: 1.4; color: var(--m-neg); margin-top: 4px; max-width: 420px; white-space: normal; }
.so-kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--m-line-soft); font-size: 13px; }
.so-kv:first-child { border-top: 0; }
.so-kv span { color: var(--m-muted); }
.so-kv b { font-weight: 500; text-align: right; word-break: break-word; }
.so-table .r { text-align: right; }
.so-acts { white-space: nowrap; }
.so-rowlink { cursor: pointer; }
.so-nowrap { white-space: nowrap; }

/* the preview: a plain sketch of a network's post */
.so-pv { border: 1px solid var(--m-line); border-radius: 12px; background: #fff; color: #16202b; overflow: hidden; font-size: 13.5px; line-height: 1.45; }
.so-pv-who { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.so-pv-av { width: 36px; height: 36px; border-radius: 999px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: 0 0 36px; }
.so-pv-who b { display: block; font-size: 13.5px; }
.so-pv-who i { display: block; font-style: normal; font-size: 11.5px; color: #6b7682; }
.so-pv-text { padding: 2px 14px 12px; white-space: pre-wrap; word-break: break-word; }
.so-pv-comment { padding-top: 0; color: #4a5561; }
.so-more { color: #6b7682; }
.so-tag { color: #1d5fbf; }
.so-pv-media { display: grid; gap: 2px; background: #e9ecef; }
.so-pv-media span { display: block; background-size: cover; background-position: center; aspect-ratio: 16 / 10; position: relative; }
.so-pv-media.square span, .so-pv-media.n2 span, .so-pv-media.n3 span, .so-pv-media.n4 span { aspect-ratio: 1 / 1; }
.so-pv-media.n2, .so-pv-media.n3, .so-pv-media.n4 { grid-template-columns: 1fr 1fr; }
.so-pv-media.n3 span:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.so-pv-media.square.n2, .so-pv-media.square.n3, .so-pv-media.square.n4 { grid-template-columns: 1fr; }
.so-pv-media.square span:not(:first-child) { display: none; }
.so-pv-media b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 22px; }
.so-pv-link { margin: 0 14px 14px; border: 1px solid #e4e7ea; border-radius: 8px; padding: 10px 12px; background: #f5f6f8; }
.so-pv-link span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b7682; }
.so-pv-link b { font-size: 13px; }
.so-pv-cta { margin: 0 14px 14px; display: inline-block; font-weight: 600; color: #1a73e8; }
.so-pv.net-instagram .so-pv-text { padding-top: 10px; }

/* ---- calendar ---- */
.so-caltitle { font-size: 15px; margin-left: 6px; }
.so-cal { border: 1px solid var(--m-line); border-radius: 12px; overflow: hidden; background: var(--m-surface); margin-bottom: 24px; }
.so-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--m-line); }
.so-dow span { padding: 8px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--m-faint); }
.so-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.so-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--m-line-soft); border-bottom: 1px solid var(--m-line-soft); cursor: pointer; min-width: 0; }
.so-day:nth-child(7n) { border-right: 0; }
.so-cal.week .so-day { min-height: 360px; border-bottom: 0; }
.so-day.out { background: var(--m-surface-2); }
.so-day.out .so-daynum span { color: var(--m-faint); }
.so-day.sel { box-shadow: inset 0 0 0 2px var(--m-accent); }
.so-day.drop { background: var(--m-accent-soft); }
.so-daynum { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--m-muted); padding: 2px 4px 6px; }
.so-daynum i { display: none; font-style: normal; font-size: 10.5px; font-weight: 600; background: var(--m-accent); color: #fff; border-radius: 999px; min-width: 17px; height: 17px; line-height: 17px; text-align: center; }
.so-day.today .so-daynum span { background: var(--m-accent); color: #fff; border-radius: 999px; padding: 1px 8px; font-weight: 600; }
[data-theme="dark"] .so-day.today .so-daynum span, [data-theme="dark"] .so-daynum i { color: #0d1117; }
.so-daylist { display: flex; flex-direction: column; gap: 4px; }
.so-cc { display: block; border-radius: 7px; padding: 5px 7px; background: var(--m-surface-2); border-left: 3px solid var(--m-faint); font-size: 11.5px; line-height: 1.35; min-width: 0; }
.so-cc:hover { filter: brightness(.97); }
.so-cc[draggable="true"] { cursor: grab; }
.so-cc-top { display: flex; align-items: center; gap: 4px; }
.so-cc-top b { font-weight: 600; margin-right: 2px; font-size: 11px; }
.so-cc-top .so-dot { width: 7px; height: 7px; flex-basis: 7px; }
.so-cc-text { display: block; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-cal.week .so-cc-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.so-cc.st-scheduled { border-left-color: var(--m-accent); }
.so-cc.st-published { border-left-color: var(--m-pos); }
.so-cc.st-failed { border-left-color: var(--m-neg); }
.so-cc.st-ready, .so-cc.st-needs_approval { border-left-color: var(--m-warn); }
.so-moreposts { font-size: 11px; color: var(--m-faint); padding-left: 4px; }

/* ---- templates ---- */
.so-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.so-tcard { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 0 0 14px; border: 1px solid var(--m-line); border-radius: 12px; background: var(--m-surface); color: var(--m-ink); cursor: pointer; overflow: hidden; font: inherit; }
.so-tcard:hover { border-color: var(--m-accent); }
.so-tcard b { font-size: 14px; padding: 6px 14px 0; }
.so-tcard > span:last-child { font-size: 12.5px; line-height: 1.45; color: var(--m-muted); padding: 0 14px; }
.so-tbanner { display: flex; align-items: center; justify-content: center; height: 84px; background: var(--brand, #1d2733); color: #fff; font-family: "SoSerif", Georgia, serif; font-size: 21px; letter-spacing: .04em; }
.so-tfields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; }
.so-tfields .so-field { grid-column: span 2; }
.so-tfields .so-field.short { grid-column: span 1; }
.so-tfields .so-field.long { grid-column: 1 / -1; }

/* ---- graphics ---- */
.so-stage { display: flex; justify-content: center; background: var(--m-surface-2); border-radius: 14px; padding: 20px; }
.so-canvas { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 6px 24px rgba(16, 24, 32, .18); }
.so-colorrow { display: flex; align-items: center; gap: 12px; }
.so-colorrow input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--m-line); border-radius: 6px; background: none; cursor: pointer; }
.so-colorrow .so-hint { margin: 0; }

/* ---- media ---- */
.so-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.so-mgrid.pick { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.so-mitem { margin: 0; border: 1px solid var(--m-line); border-radius: 12px; overflow: hidden; background: var(--m-surface); position: relative; padding: 0; font: inherit; color: inherit; }
.so-mitem img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--m-surface-2); }
button.so-mitem { cursor: pointer; }
button.so-mitem.on { border-color: var(--m-accent); box-shadow: 0 0 0 2px var(--m-accent); }
button.so-mitem em { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 999px; background: var(--m-accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.so-mitem figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 6px; padding: 8px 10px; font-size: 12.5px; align-items: center; }
.so-mitem figcaption > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-mitem figcaption i { grid-column: 1; font-style: normal; font-size: 11px; color: var(--m-faint); }
.so-macts { grid-column: 2; grid-row: 1 / span 2; display: flex; }

/* ---- reports ---- */
.so-best { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--m-line-soft); font-size: 13px; }
.so-best:first-child { border-top: 0; }
.so-best i { display: block; font-style: normal; font-size: 12px; color: var(--m-muted); }
.so-rank { width: 24px; height: 24px; border-radius: 999px; background: var(--m-accent-soft); color: var(--m-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: 0 0 24px; }

/* ---- channels ---- */
.so-chan { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--m-line-soft); }
.so-chan:first-child { border-top: 0; }
body.clean-on .so-app .so-chan { padding-left: 2px; padding-right: 2px; }
.so-chan-av { width: 38px; height: 38px; border-radius: 10px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; flex: 0 0 38px; }
.so-chan-main { flex: 1 1 auto; min-width: 0; font-size: 13.5px; }
.so-chan-sched { font-size: 12px; color: var(--m-muted); margin-top: 3px; }
.so-chan-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.so-setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.so-setcard { border: 1px solid var(--m-line); border-radius: 12px; padding: 16px; background: var(--m-surface); }
.so-sethead { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.so-steps { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--m-muted); }
.so-steps summary { cursor: pointer; color: var(--m-ink); font-weight: 600; font-size: 12.5px; }
.so-steps ol { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; word-break: break-word; }
.so-schedrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--m-muted); }

@media (max-width: 1100px) {
  .so-cols, .so-cols.even, .so-composer, .so-gfx { grid-template-columns: minmax(0, 1fr); }
  .so-sticky { position: static; }
}
@media (max-width: 700px) {
  .so-app .so-main { padding-left: 16px; padding-right: 16px; }
  .so-two, .so-four { grid-template-columns: 1fr 1fr; }
  .so-fig { flex-basis: 45%; padding-right: 8px; }
  .so-fig .v { font-size: 22px; }
  .so-ready { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .so-rcard { padding: 14px; }
  .so-racts .m-btn, .so-racts a.m-btn { flex: 1 1 46%; justify-content: center; min-height: 44px; }
  .so-rdone { flex-wrap: wrap; }
  .so-rdone .m-input { flex-basis: 100%; min-height: 44px; font-size: 16px; }
  .so-rdone .m-btn { flex: 1 1 40%; justify-content: center; min-height: 44px; }
  .so-area, .so-app .m-input, .so-app .m-select { font-size: 16px; }          /* no zoom on focus in iOS */
  .so-prow { padding: 12px 4px; gap: 10px; flex-wrap: wrap; }
  .so-prow-main { flex: 1 1 calc(100% - 60px); }
  .so-prow-when { flex-direction: row; align-items: center; flex-basis: 100%; justify-content: flex-start; padding-left: 56px; }
  .so-toolbar .m-seg { overflow-x: auto; max-width: 100%; }
  .so-ovhint { display: none; }
  .so-ov summary { flex-wrap: wrap; }
  .so-toolbar .m-select { flex: 1 1 30%; min-width: 0; }
  /* the month shrinks to counts; tapping a day lists it underneath */
  .so-cal.month .so-day { min-height: 52px; padding: 4px 2px; }
  .so-cal.month .so-daylist { display: none; }
  .so-cal.month .so-daynum { flex-direction: column; gap: 4px; padding: 2px 0; }
  .so-cal.month .so-daynum i { display: block; }
  .so-dow span { padding: 6px 2px; text-align: center; font-size: 9.5px; }
  .so-cal.week .so-grid { grid-template-columns: minmax(0, 1fr); }
  .so-cal.week .so-day { min-height: 0; border-right: 0; border-bottom: 1px solid var(--m-line-soft); }
  .so-chan { flex-wrap: wrap; }
  .so-chan-acts { flex-basis: 100%; justify-content: flex-start; padding-left: 52px; }
  .so-tfields { grid-template-columns: 1fr 1fr; }
  .so-tfields .so-field, .so-tfields .so-field.long { grid-column: 1 / -1; }
  .so-tgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .so-tbanner { height: 64px; font-size: 16px; }
  .so-mgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .so-stage { padding: 10px; }
  .so-setup { grid-template-columns: minmax(0, 1fr); }
}
