/* Social Marketing + Scheduler tabs of the overview (social/social.js). Colours and type follow STYLEGUIDE.md:
   #0095db / #00eaa9 on dark, Quicksand, surfaces instead of rules — no horizontal or vertical lines. */
.so-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.so-bar .sp { flex: 1; }
.so-info { font-size: 13px; color: var(--muted); }
.so-btn { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; color: #fff; text-decoration: none; cursor: pointer;
  padding: 10px 14px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); }
.so-btn:hover, .so-btn:focus-visible { border-color: var(--vioso); background: rgba(0,149,219,.16); outline: none; }
.so-btn.pri { background: var(--vioso); border-color: var(--vioso); } .so-btn.pri:hover, .so-btn.pri:focus-visible { background: #19a6e6; }
.so-btn.go { background: linear-gradient(135deg, #0095db, #00eaa9); border-color: transparent; color: #04212c; }
.so-btn.go:hover, .so-btn.go:focus-visible { filter: brightness(1.08); }
.so-btn.quiet { border-color: transparent; background: none; color: rgba(255,255,255,.7); } .so-btn.quiet:hover { color: #fff; background: rgba(255,255,255,.07); }
.so-btn[disabled] { opacity: .45; cursor: not-allowed; }
.so-note { font-size: 14px; color: #ffd28a; background: rgba(255,170,40,.08); border-radius: 10px; padding: 10px 14px; margin: 0 0 18px; }
.so-note.ok { color: #9af0d2; background: rgba(0,234,169,.08); }
.so-note button { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; margin-left: 6px; }

/* a proposal: the picture left, what to say right */
.so-list { display: grid; gap: 20px; }
.pr-archive { margin-top: 28px; }
.pr-archive > summary { cursor: pointer; color: rgba(255,255,255,.6); padding: 6px 0; }
.pr-archive > .so-list { margin-top: 14px; opacity: .8; }
.so-card { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; padding: 20px; border-radius: 16px; background: rgba(21,27,34,.85); border: 1px solid rgba(255,255,255,.1); }
.so-card[data-status="rejected"] { opacity: .6; }
.so-media { position: relative; align-self: start; border-radius: 12px; overflow: hidden; background: #0b0f14; }
.so-media img, .so-media video { display: block; width: 100%; height: auto; }
.so-media .fmt { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: rgba(4,10,16,.75); color: #fff; }
.so-thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.so-thumbs button { font: 700 12px inherit; font-family: inherit; color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); border: 1px solid transparent; border-radius: 7px; padding: 5px 9px; cursor: pointer; }
.so-thumbs button[aria-pressed="true"] { color: #fff; border-color: var(--vioso); background: rgba(0,149,219,.2); }
.so-thumbs a { font-size: 12px; font-weight: 700; color: #9fdcff; text-decoration: none; padding: 5px 4px; margin-left: auto; } .so-thumbs a:hover { color: #fff; }
.so-body { display: flex; flex-direction: column; min-width: 0; }
.so-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.so-tag { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.so-tag.kind { background: rgba(0,149,219,.22); color: #9fdcff; }
.so-tag.st-new { background: rgba(0,234,169,.16); color: #7df2d0; }
.so-tag.st-approved { background: rgba(0,149,219,.3); color: #fff; }
.so-tag.st-scheduled { background: linear-gradient(135deg, #0095db, #00eaa9); color: #04212c; }
.so-tag.st-posted { background: rgba(255,255,255,.14); color: #fff; }
.so-tag.st-revise { background: rgba(255,170,40,.16); color: #ffd28a; }
.so-tag.st-expired { background: rgba(255,255,255,.06); color: rgba(255,255,255,.55); }
.so-tag.st-rejected { background: rgba(255,255,255,.06); color: rgba(255,255,255,.55); }
.so-tag.st-failed, .so-tag.st-due { background: rgba(255,120,90,.2); color: #ffb6a3; }
.so-card h3 { margin: 0; font-size: 22px; font-weight: 700; }
.so-idea { color: var(--muted); margin: 4px 0 0; }
.so-src { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 8px; } .so-src a { color: #9fdcff; }
.so-clear { font-size: 13px; font-weight: 600; border-radius: 9px; padding: 8px 12px; margin-top: 10px; }
.so-clear.ok { color: #9af0d2; background: rgba(0,234,169,.08); } .so-clear.check { color: #ffd28a; background: rgba(255,170,40,.09); }
.so-plats { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 8px; }
.so-plats button { font: 700 13px inherit; font-family: inherit; color: rgba(255,255,255,.7); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.so-plats button[aria-pressed="true"] { color: #fff; border-color: var(--vioso); background: rgba(0,149,219,.2); }
.so-plats button:focus-visible { outline: 2px solid #33b4ef; outline-offset: 1px; }
.so-text { width: 100%; min-height: 150px; font: 15px/1.5 Quicksand, "Segoe UI", system-ui, sans-serif; color: #eef4fa; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px; resize: vertical; }
.so-text:focus { outline: none; border-color: var(--vioso); box-shadow: 0 0 0 3px rgba(0,149,219,.25); }
.so-count { display: flex; gap: 10px; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; } .so-count .over { color: #ffb6a3; font-weight: 700; } .so-count .ed { color: #7df2d0; }
.so-count button { font: inherit; color: #9fdcff; background: none; border: 0; cursor: pointer; padding: 0; text-decoration: underline; }
.so-hint { font-size: 12px; color: #ffd28a; min-height: 16px; margin-top: 2px; }
.so-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.so-when { font-size: 13px; color: var(--muted); margin-left: 4px; }
.so-ok { font-size: 13px; font-weight: 700; color: #3fdc9a; }

/* the scheduler: a month of days as surfaces (no grid lines), below it the list */
.sc-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.sc-head h2 { margin: 0 8px 0 0; font-size: 24px; font-weight: 700; min-width: 200px; }
.sc-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sc-dow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); padding: 0 8px 2px; }
.sc-day { min-height: 104px; border-radius: 10px; background: rgba(21,27,34,.85); padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.sc-day.out { background: rgba(21,27,34,.35); } .sc-day.out .d { color: rgba(255,255,255,.25); }
.sc-day.today { background: rgba(0,149,219,.16); } .sc-day.today .d { color: #fff; }
.sc-day.drop { background: rgba(0,234,169,.16); }
.sc-day .d { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.55); }
.sc-ev { display: block; width: 100%; text-align: left; font: 700 12px/1.3 Quicksand, "Segoe UI", system-ui, sans-serif; color: #fff; border: 0; border-radius: 6px; padding: 4px 7px; cursor: pointer;
  background: rgba(0,149,219,.35); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc-ev:hover, .sc-ev:focus-visible { filter: brightness(1.25); outline: none; }
.sc-ev.action { background: rgba(255,255,255,.14); } .sc-ev.posted { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.sc-ev.due, .sc-ev.failed { background: rgba(255,120,90,.35); }
.sc-ev .tm { font-weight: 500; opacity: .8; margin-right: 4px; }
.sc-sec { margin: 30px 0 12px; font-size: 20px; font-weight: 700; } .sc-sec span { font-size: 13px; color: rgba(255,255,255,.45); margin-left: 6px; }
.sc-rows { display: grid; gap: 8px; }
.sc-row { display: grid; grid-template-columns: 56px 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 12px; background: rgba(21,27,34,.85); cursor: pointer; border: 0; color: inherit; font: inherit; text-align: left; width: 100%; }
.sc-row:hover, .sc-row:focus-visible { background: rgba(0,149,219,.14); outline: none; }
.sc-row img, .sc-row .ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,.06); display: grid; place-items: center; font-size: 22px; }
.sc-row .when { font-weight: 700; font-size: 14px; } .sc-row .when small { display: block; font-weight: 500; color: var(--muted); }
.sc-row .tt { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sc-row .tt small { display: block; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.so-empty { color: var(--muted); padding: 18px 0; }
dialog .so-dmedia { float: right; width: 150px; margin: 0 0 12px 16px; border-radius: 10px; overflow: hidden; } dialog .so-dmedia img { width: 100%; display: block; }
dialog .so-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
dialog input[type=datetime-local], dialog input[type=date] { font: 600 15px inherit; font-family: inherit; color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 10px 12px; color-scheme: dark; }
dialog .so-dacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; clear: both; }
dialog .so-pt { margin-top: 14px; clear: both; } dialog .so-pt b { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
dialog .so-pt pre { margin: 0; white-space: pre-wrap; font: 14px/1.5 Quicksand, "Segoe UI", system-ui, sans-serif; color: #dfe9f3; background: rgba(0,0,0,.3); border-radius: 10px; padding: 12px; max-height: 180px; overflow: auto; }
@media (max-width: 720px) {
  .so-card { grid-template-columns: 1fr; } .so-media { max-width: 320px; }
  .sc-day { min-height: 64px; padding: 5px; } .sc-ev { font-size: 11px; padding: 3px 5px; } .sc-ev .tm { display: none; }
  .sc-row { grid-template-columns: 44px minmax(0, 1fr); } .sc-row img, .sc-row .ph { width: 44px; height: 44px; } .sc-row .when { grid-column: 2; } .sc-row .tt { grid-column: 1 / -1; } .sc-row .so-tag { justify-self: start; grid-column: 1 / -1; }
}
.sc-mix { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); } .sc-mix em { font-style: normal; color: #ffd28a; margin-left: 6px; }
/* the overview names Quicksand as its typeface (style guide); these are the files, so it no longer falls back to a system font */
@font-face { font-family: Quicksand; font-weight: 300 450; font-display: swap; src: url(fonts/Quicksand-Regular.ttf); }
@font-face { font-family: Quicksand; font-weight: 451 599; font-display: swap; src: url(fonts/Quicksand-Medium.ttf); }
@font-face { font-family: Quicksand; font-weight: 600 800; font-display: swap; src: url(fonts/Quicksand-Bold.ttf); }
/* results of a posted post, the picture editor */
.so-res { display: grid; grid-template-columns: 90px minmax(0, 1fr) 96px 96px 80px; gap: 6px; align-items: center; margin-top: 6px; font-size: 14px; }
.so-res input { font: 14px Quicksand, "Segoe UI", system-ui, sans-serif; color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 7px 9px; min-width: 0; width: 100%; }
.so-pic { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; } .so-pic canvas { width: 100%; height: auto; border-radius: 10px; display: block; background: #212121; }
#dSoPic { width: min(820px, calc(100vw - 32px)); }
.so-note button[data-hook] { margin-left: 10px; }
@media (max-width: 720px) { .so-pic { grid-template-columns: 1fr; } .so-pic canvas { max-width: 240px; } .so-res { grid-template-columns: 1fr 1fr 1fr; } .so-res span, .so-res input[type=url] { grid-column: 1 / -1; } }
.tabs button[hidden] { display: none; }
.pr-card { grid-template-columns: minmax(0, 1fr); } .pr-text { min-height: 420px; line-height: 1.6; }

/* tags per channel, the first comment, the engagement score (social/assist.js) */
.so-tagrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 6px; font-size: 13px; }
.so-tagrow > b { color: rgba(255,255,255,.7); margin-right: 4px; }
.so-none { color: var(--muted); }
.so-chip { display: inline-flex; align-items: center; gap: 4px; font: 700 12px/1 inherit; font-family: inherit; color: #9fdcff; text-decoration: none; padding: 5px 9px; border-radius: 999px;
  background: rgba(0,149,219,.16); border: 1px solid transparent; cursor: default; }
.so-chip.unver { color: #ffd28a; background: rgba(255,170,40,.12); }
.so-chip button { font: inherit; color: inherit; background: none; border: 0; padding: 0 0 0 2px; cursor: pointer; opacity: .7; } .so-chip button:hover { opacity: 1; }
.so-chip.sug { color: rgba(255,255,255,.75); background: none; border-color: rgba(255,255,255,.2); border-style: dashed; cursor: pointer; }
.so-chip.add { color: #7df2d0; background: rgba(0,234,169,.1); cursor: pointer; }
.so-chip.sug:hover, .so-chip.add:hover { border-color: var(--vioso); color: #fff; }
.so-fcbox, .so-eng { font-size: 13px; margin: 2px 0 6px; }
.so-fcbox summary, .so-eng summary { cursor: pointer; color: rgba(255,255,255,.75); font-weight: 700; display: flex; gap: 8px; align-items: center; list-style-position: inside; }
.so-fc { width: 100%; box-sizing: border-box; margin-top: 6px; font: 14px/1.45 inherit; font-family: inherit; color: #fff; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: 8px 10px; resize: vertical; }
.so-score { padding: 3px 8px; border-radius: 6px; font-size: 12px; }
.so-score[data-lv="hi"] { background: rgba(0,234,169,.16); color: #7df2d0; } .so-score[data-lv="mid"] { background: rgba(0,149,219,.18); color: #9fdcff; } .so-score[data-lv="lo"] { background: rgba(255,170,40,.14); color: #ffd28a; }
.so-eng ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.so-eng li.ok { color: #9af0d2; } .so-eng li.no { color: rgba(255,255,255,.85); } .so-eng li span { color: var(--muted); }
/* several pictures: drop them on the picture */
.so-drop.over { box-shadow: 0 0 0 2px var(--vioso) inset; }
.so-dropnote { display: block; padding: 40px 12px; text-align: center; font-size: 13px; color: var(--muted); }
/* the post kit in the Scheduler */
.so-kitrow { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 8px; }
.so-kitpics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.so-kitpics a { position: relative; display: block; width: 64px; height: 80px; border-radius: 6px; overflow: hidden; background: #0b0f14; }
.so-kitpics img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-kitpics .pdf { display: grid; place-items: center; height: 100%; font-weight: 700; color: #9fdcff; }
.so-kitpics i { position: absolute; right: 3px; bottom: 3px; font: 700 11px/1 inherit; font-style: normal; font-family: inherit; background: rgba(4,10,16,.8); color: #fff; padding: 2px 5px; border-radius: 4px; }

/* the marketing plan's labels: product line, market, brand building vs. sales activation */
.so-tag.lab-line { background: rgba(0,149,219,.14); color: #9fdcff; } .so-tag.lab-market { background: rgba(0,234,169,.1); color: #7df2d0; } .so-tag.lab-speed { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
