/* COLD — one look for every page of the app. Each page links this file and takes colours, type and shapes from here:
   change a value here and it changes everywhere.
   The rules, taken from the tools people already know (Trello boards, Linear, newsroom planners):
   - neutral greys for the interface; colour only says something (a status, or "this needs you" in red);
   - one typeface for everything (Inter), the serif only for the one big title of a page;
   - nothing smaller than 12px, text never lighter than --muted on a light background. */
/* Typefaces served by the app itself (web/fonts, SIL Open Font Licence): no call to Google, same look offline. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  /* surfaces */
  --bg: #f7f7f5;         /* page */
  --panel: #ffffff;      /* cards, sheets, fields */
  --soft: #f1f0ee;       /* quiet panels, board columns, hover */
  --line: #e4e2de;       /* borders and hairlines */
  --line-2: #c9c6c0;     /* border of a field on hover */
  /* text */
  --ink: #111111;        /* text, solid buttons */
  --ink2: #3a3a3a;       /* secondary text, field labels */
  --muted: #6b6b6b;      /* quiet text: dates, hints (4.9:1 on the page) */
  /* the one accent: something needs you (counts, overdue, errors) */
  --accent: #d63621;
  /* statuses: a tint for the background, a darker tone for the text */
  --ok: #1d7a3e;   --okbg: #e6f3ea;
  --warn: #8a5200; --warnbg: #fdf1dc;
  --ko: #b42318;   --kobg: #fbe9e6;
  --blue: #2f49b5; --bluebg: #ebefff;
  --pink: #a2296c; --pinkbg: #fde8f3;
  /* type */
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;   /* only the one big title of a page */
  /* shape */
  --r: 12px;             /* cards and panels */
  --r-s: 9px;            /* buttons and fields */
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.07);
}
.cold-logo { display: block; height: 16px; width: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- the board (board.js): the same in the editors area and the HQ ---------- */
/* Trello's way of working (lists, cards, drag along) in COLD's look: the board sits on the page itself, no dark box around it.
   A list is an open column under a black rule with its name in small capitals; cards are white sheets with a hairline,
   labels are quiet tints of their section colour; red only where something needs you (late, ASAP, sent back). */
.kbwrap { --kbtx: var(--ink); --kbsub: var(--muted); background: transparent; padding: 0; color: var(--kbtx); font-family: var(--sans); }
.kbwrap * { font-family: var(--sans); }
.kbbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 0 18px; }
.kbchips { display: inline-flex; gap: 2px; flex-wrap: wrap; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.kbchip { padding: 6px 13px; border-radius: 999px; border: 0; background: transparent; color: var(--ink2); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.kbchip:hover { background: var(--soft); color: var(--ink); } .kbchip.on { background: var(--ink); color: #fff; }
.kbsel, .kbq { font: inherit; font-size: 13.5px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); width: auto; height: 38px; box-sizing: border-box; }
.kbsel { padding-right: 30px; cursor: pointer; } .kbsel option { color: var(--ink); }
.kbq::placeholder { color: var(--muted); } .kbq:hover, .kbsel:hover { border-color: var(--line-2); } .kbq:focus, .kbsel:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.kbq { flex: 1 1 180px; min-width: 150px; max-width: 280px; }
.kb { display: flex; gap: 20px; align-items: flex-start; overflow-x: auto; overflow-y: hidden; padding: 0 0 16px; scroll-padding: 0; min-height: max(320px, calc(100vh - 330px)); }
.kb.pan { cursor: grabbing; } .kb::-webkit-scrollbar { height: 8px; } .kb::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 6px; } .kb::-webkit-scrollbar-track { background: transparent; }
.kbc { flex: 0 0 280px; width: 280px; box-sizing: border-box; background: transparent; border-top: 2px solid var(--ink); border-radius: 0; padding: 0 0 4px; max-height: calc(100vh - 230px); display: flex; flex-direction: column; transition: opacity .12s, background .12s; }
.kbc.kbsk { height: 240px; border-top-color: var(--line); background: linear-gradient(var(--soft), var(--soft)) 0 14px / 100% 90px no-repeat; animation: kbpulse 1.2s ease-in-out infinite alternate; } @keyframes kbpulse { to { opacity: .5; } }
.kbc.no { opacity: .45; } .kbc.over { background: var(--soft); border-radius: 0 0 10px 10px; }
.kbh { display: flex; align-items: baseline; gap: 8px; padding: 10px 2px 2px; }
.kbh b { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .08em; text-transform: uppercase; line-height: 18px; }
.kbn { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 18px; }
.kbl { display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 4px; overflow-y: auto; overflow-x: hidden; min-height: 8px; flex: 1 1 auto; }
.kbl::-webkit-scrollbar { width: 6px; } .kbl::-webkit-scrollbar-thumb { background: rgba(0,0,0,.14); border-radius: 4px; }
.kbk { position: relative; flex: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 8px; cursor: pointer; color: var(--ink); outline: 0; transition: border-color .12s, box-shadow .12s; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.kbk:hover { border-color: var(--line-2); box-shadow: 0 2px 8px rgba(0,0,0,.06); } .kbk:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.kbk.mine { box-shadow: inset 3px 0 0 var(--ink); } .kbk.mine:hover { box-shadow: inset 3px 0 0 var(--ink), 0 2px 8px rgba(0,0,0,.06); }
.kbk.busy { opacity: .55; pointer-events: none; } .kbk.moved { animation: kbmoved 1.2s ease-out; } @keyframes kbmoved { from { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.14); } }
.kbk.kbsrc { display: none; } .kbph { flex: none; border-radius: 10px; border: 1.5px dashed var(--line-2); background: rgba(0,0,0,.02); box-sizing: border-box; }
.kbghost { position: fixed; z-index: 100; margin: 0; pointer-events: none; transform-origin: 50% 50%; box-shadow: 0 16px 32px rgba(0,0,0,.18); border-color: var(--ink2); opacity: .98; }
body.kbdragging, body.kbdragging * { cursor: grabbing !important; }
.kblabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 7px; }
.kblab { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; box-sizing: border-box; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--ink); font-size: 11.5px; font-weight: 600; line-height: 18px; padding: 0 7px 0 6px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kblab::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.kblab.hot { background: var(--accent); color: #fff; } .kblab.hot::before { background: #fff; }
.kbt { font-size: 14.5px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; margin: 0 0 6px; padding-right: 14px; letter-spacing: -.005em; }
.kbfoot { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.kbg { display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; flex: 1 1 auto; min-width: 0; }
.kbb { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); padding: 2px 5px; border-radius: 5px; line-height: 16px; white-space: nowrap; }
.kbb:first-child { margin-left: -5px; }
.kbb svg { width: 14px; height: 14px; flex: none; }
.kbb.ok { background: var(--okbg); color: var(--ok); margin-left: 0; } .kbb.late { background: var(--accent); color: #fff; margin-left: 0; } .kbb.soon { background: var(--warnbg); color: var(--warn); margin-left: 0; }
.kbmem { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 12px; color: var(--muted); padding-bottom: 2px; }
.kbav { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 10px; font-weight: 600; font-style: normal; display: inline-flex; align-items: center; justify-content: center; flex: none; letter-spacing: .02em; }
.kbav.two { background: #6b6b6b; margin-right: -8px; box-shadow: 0 0 0 2px var(--panel); }
.kbwho { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbmv { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--panel); color: var(--muted); cursor: pointer; padding: 0; display: none; align-items: center; justify-content: center; }
.kbmv svg { width: 15px; height: 15px; } .kbk:hover .kbmv, .kbk:focus-within .kbmv, .kbmv:focus { display: inline-flex; } .kbmv:hover { background: var(--soft); color: var(--ink); }
@media (hover: none) { .kbmv { display: inline-flex; background: transparent; } }
.kbadd { display: flex; align-items: center; gap: 8px; margin: 4px 0; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; text-align: left; }
.kbadd:hover { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); } .kbadd span { font-size: 18px; line-height: 1; }
.kbmore { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; padding: 6px; cursor: pointer; text-decoration: underline; }
.kbempty { padding: 24px; text-align: center; color: var(--muted); }
/* on a phone: one list per screen with the next one peeking, swiped sideways and snapping, as in the Trello app */
@media (max-width: 759px) {
  .kbwrap { margin: 0 -20px; }
  .content .kbwrap { margin: 0 -14px; }
  .kbbar { flex-wrap: nowrap; overflow-x: auto; padding: 0 16px 14px; scrollbar-width: none; } .kbbar::-webkit-scrollbar { display: none; } .kbchips { flex-wrap: nowrap; flex: none; } .kbchip, .kbsel { flex: none; }
  .kbq { min-width: 140px; }
  .kb { scroll-snap-type: x mandatory; padding: 0 16px 16px; scroll-padding: 0 16px; gap: 14px; min-height: calc(100dvh - 200px); }
  .kbc { flex: 0 0 calc(100vw - 64px); width: calc(100vw - 64px); max-width: 340px; scroll-snap-align: start; max-height: calc(100dvh - 210px); }
  .kbplat { grid-template-columns: 1fr; }
}
.kbd { position: fixed; inset: 0; z-index: 90; background: rgba(17,17,17,.38); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; }
.kbdw { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); width: 100%; max-width: 480px; padding: 20px 22px 18px; color: var(--ink); }
.kbdw h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; margin: 6px 0 6px; line-height: 1.3; }
.kbdk { display: inline-block; font-size: 12px; font-weight: 500; color: var(--ink2); background: var(--soft); border-radius: 999px; padding: 2px 9px; }
.kbdl { color: var(--ink2); font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.kbfld { margin: 12px 0 0; } .kbfld label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 5px; }
.kbfld input, .kbfld textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--panel); color: var(--ink); margin: 0; }
.kbfld input:focus, .kbfld textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.kbhint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.kbplat { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; } .kbck { display: flex !important; align-items: center; gap: 7px; font-weight: 400 !important; font-size: 14px !important; cursor: pointer; margin: 0 !important; }
.kbck input { width: 16px; height: 16px; margin: 0; accent-color: #111; }
.kbacts { display: flex; gap: 8px; margin-top: 18px; } .kbacts .sp { flex: 1; } .kbderr { color: var(--ko); font-size: 13.5px; margin-top: 10px; } .kbderr:empty { display: none; }
.kbmenu { display: grid; gap: 6px; } .kbmenu .btn { justify-content: flex-start; text-align: left; width: 100%; } .kbmenu .btn.on { font-weight: 600; }
.kbkv { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .kbkv span { color: var(--muted); min-width: 90px; } .kbkv a { overflow-wrap: anywhere; color: inherit; }
.kbtoast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 95; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); transition: opacity .4s; }
.kbtoast.bad { background: var(--ko); } .kbtoast.out { opacity: 0; }
.kbd, .kbd * { font-family: var(--sans); }
.kbd input[type=checkbox], .kbd input[type=radio] { accent-color: var(--ink); }
/* ---------- a contract as a document (contract-doc.js): HQ preview, signing page, print / PDF ---------- */
.ctdoc { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 14px; padding: 44px 52px 36px; font-family: Georgia, 'Times New Roman', serif; font-size: 15.5px; line-height: 1.62; position: relative; box-shadow: var(--shadow); }
.ctdoc header { text-align: center; margin: 0 0 26px; } .ctlogo { height: 26px; margin: 0 auto 18px; display: block; }
.ctdoc h1 { font-family: var(--sans); font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0; } .ctdate { font-family: var(--sans); color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.ctdoc h2 { font-family: var(--sans); font-size: 14px; font-weight: 700; margin: 22px 0 6px; letter-spacing: .01em; }
.ctdoc p { margin: 0 0 9px; } .ctdoc ul, .ctparties { margin: 4px 0 10px; padding-left: 22px; } .ctdoc li { margin: 0 0 5px; }
.ctdraft { position: absolute; top: 14px; right: 16px; font-family: var(--sans); font-size: 12px; font-weight: 600; background: var(--warnbg); color: var(--warn); border-radius: 999px; padding: 3px 10px; }
.ctsiggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 10px; }
.ctsig { font-family: var(--sans); } .ctwho { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: none; }
.ctline { height: 86px; border-bottom: 1px solid #111; display: flex; align-items: flex-end; } .ctline img { max-height: 80px; max-width: 100%; display: block; }
.ctcopy { font-size: 13px; font-weight: 600; color: #14532d; background: #e8f5ec; border-radius: 6px; padding: 4px 8px; margin-bottom: 8px; }
.ctname { font-size: 14px; font-weight: 600; margin-top: 6px; min-height: 20px; } .ctat { font-size: 12px; color: var(--muted); }
.ctaudit { font-family: var(--sans); font-size: 11.5px; color: var(--muted); margin-top: 16px !important; overflow-wrap: anywhere; } .ctaudit code { font-size: 10.5px; }
.ctdoc footer { font-family: var(--sans); font-size: 11px; color: var(--muted); text-align: center; margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .ctdoc { padding: 26px 18px 22px; font-size: 15px; border-radius: 0; margin: 0 -20px; border-left: 0; border-right: 0; } .ctsiggrid { grid-template-columns: 1fr; gap: 18px; } }
@media print { .ctdoc { border: 0; box-shadow: none; padding: 0; border-radius: 0; font-size: 11.5pt; } .ctdraft { display: none; } .ctdoc section { break-inside: auto; } .ctsigs { break-inside: avoid; } @page { margin: 18mm 16mm; } }

/* ---------- Admin access (super admin) */
.admkinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.admkinds .card { padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.admkinds p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; }
.admp { padding: 14px 16px; margin-bottom: 12px; }
.admhd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admhd .g { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.admhd .av { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 600; color: var(--ink2); flex: none; }
.admsees { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.admchips { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admchip { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--ink2); }
.admchip.off { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.admparts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.admpart { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--panel); }
.admpart.on { border-color: var(--ink2); background: var(--bg); }
.admpart .g { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.admpt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admpt .pill { font-size: 11px; padding: 1px 7px; }
.admsw { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 99px; background: var(--line-2); position: relative; flex: none; margin: 1px 0 0; cursor: pointer; transition: background .15s; }
.admsw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.admsw:checked { background: var(--ink); }
.admsw:checked::after { left: 16px; }
.admsw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* phones give every checkbox 20×20 (index.html): a switch keeps its own size */
input[type=checkbox].admsw { width: 34px; height: 20px; }
.admmail { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 12px 4px; }
.admmail select { max-width: 360px; }
.admsave { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .admkinds, .admparts { grid-template-columns: 1fr; } }

/* ---------- board: adding a card (Trello's composer) */
.kbcomp { margin: 4px 0 6px; display: flex; flex-direction: column; gap: 8px; }
.kbcompt { width: 100%; box-sizing: border-box; border: 1px solid var(--ink); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px; line-height: 20px; color: var(--ink); background: var(--panel); box-shadow: 0 0 0 1px var(--ink); resize: none; outline: none; }
.kbcomps { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--panel); color: var(--ink); }
.kbcomprow { display: flex; align-items: center; gap: 6px; }
.kbcompgo { border: 0; border-radius: var(--r-s); background: var(--ink); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 14px; cursor: pointer; }
.kbcompgo:hover { background: #000; } .kbcompgo:disabled { opacity: .6; }
.kbcompx { border: 0; background: transparent; color: var(--muted); font-size: 16px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.kbcompx:hover { background: var(--soft); color: var(--ink); }

/* ---------- board: the card opened (Trello's card back) */
.kbd.kbcd { padding-top: 5vh; }
.kbdw.kbcw { max-width: 800px; background: var(--panel); color: var(--ink); padding: 22px 24px 24px; border-top: 3px solid var(--ink); border-radius: 4px 4px 14px 14px; }
.kbcload { padding: 30px; text-align: center; color: var(--muted); }
.kbch { display: flex; align-items: flex-start; gap: 10px; }
.kbcht { flex: 1; min-width: 0; }
.kbcht h3 { margin: 2px 0 2px; font-size: 20px; }
.kbctitle { min-height: 0 !important; width: 100%; box-sizing: border-box; font: inherit; font-size: 20px; font-weight: 600; line-height: 26px; color: var(--ink); background: transparent; border: 0; border-radius: 4px; padding: 3px 6px; margin-left: -6px; resize: none; overflow: hidden; }
.kbctitle:focus { background: var(--bg); outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.kbcin { font-size: 13.5px; color: var(--muted); } .kbcin b { font-weight: 500; text-decoration: underline; }
.kbcx { border: 0; background: transparent; font-size: 18px; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); cursor: pointer; flex: none; }
.kbcx:hover { background: var(--soft); }
.kbcg { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 18px; margin-top: 14px; }
.kbcmeta { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.kbcm { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.kbcmt { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }
.kbcmv { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.kbcmv input[type=date], .kbcmv input[type=time] { width: auto !important; min-width: 0; font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; color: var(--ink); }
.kbcmv .kbsoon { flex-basis: 100%; margin: 0; }
.kbcmn { font-size: 14px; }
.kbcassign, .kbcsel { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; }
.kbcsel { max-width: 220px; color: var(--ink); }
.kbcsel.miss { border-color: #d9a400; background: #fff7d6; }
.kbalsoc { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.kbalsoc::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.kbalsoc button { border: 0; background: transparent; color: inherit; font-size: 15px; line-height: 1; padding: 0 3px; cursor: pointer; opacity: .7; } .kbalsoc button:hover { opacity: 1; }
.kbalso { max-width: 150px; }
.kbcplat { display: flex; flex-wrap: wrap; gap: 4px 10px; max-width: 520px; }
.kbcck { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.kbcnote { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--bg); font-size: 14px; } .kbcnote.bad { background: var(--kobg); color: var(--ko); }
.kbcsec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.kbcsec h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
/* “Final checks” on the card (28 Oct): the checklist of the last look, what the document says under each check */
.kbfin h4 { display: flex; align-items: center; gap: 10px; } .kbfinn { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 1px 9px; } .kbfinn.ok { color: #1f6b3a; background: #dff5e6; }
.kbfinl { list-style: none; margin: 0; padding: 0; } .kbfinl li { padding: 8px 0; border-top: 1px solid var(--line); } .kbfinl li:first-child { border-top: 0; }
.kbfinl label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .kbfinl input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: #1f6b3a; }
.kbfinl label > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .kbfinl b { font-weight: 600; font-size: 14px; } .kbfinl li.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.kbfinl small { font-size: 12.5px; color: var(--muted); line-height: 1.35; } .kbfinl em { font-style: normal; font-size: 12.5px; color: #1f6b3a; } .kbfinl i { font-style: normal; font-size: 12.5px; color: var(--ink2); background: var(--bg); border-radius: 6px; padding: 3px 8px; margin-top: 3px; overflow-wrap: anywhere; }
.kbcfs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.kbcw .kbfld { margin: 0 0 12px; } .kbcw .kbfld label { font-size: 12px; color: var(--muted); } .kbcw .kbfld label a { font-weight: 500; margin-left: 6px; color: var(--ink); }
.kbcopyf { margin-left: 8px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--soft); border: 0; border-radius: 999px; padding: 2px 10px; cursor: pointer; } .kbcopyf:hover { background: var(--line-2); }
.kbcohint { margin-top: 6px; font-size: 13px; color: var(--ink2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .kbcohint b { font-weight: 600; overflow-wrap: anywhere; }
.kbcw .kbfld input, .kbcw .kbfld textarea, .kbcsec > textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fff; color: var(--ink); }
.kbcw .kbfld input:focus, .kbcw .kbfld textarea:focus, .kbcsec > textarea:focus, .kbccomt:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.kbcval { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; } .kbcval a { color: var(--ink); }
.kbccom { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.kbccomt { flex: 1; font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; resize: vertical; }
.kbcc, .kbca { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: 14px; }
.kbcc p { margin: 3px 0 0; padding: 8px 11px; background: var(--bg); border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-wrap; }
.kbcc span, .kbcaw { color: var(--muted); font-size: 12px; } .kbcaw { display: block; }
.kbcat { display: block; color: var(--muted); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.kbcc .kbav, .kbca .kbav { flex: none; }
.kbcside h5 { margin: 0 0 8px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }
.kbcab { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; border: 0; border-radius: var(--r-s); background: var(--soft); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; padding: 8px 11px; margin: 0 0 8px; cursor: pointer; text-decoration: none; }
.kbcab:hover { background: var(--line); } .kbcab svg { width: 15px; height: 15px; } .kbcab.bad { background: var(--kobg); color: var(--ko); } .kbcab.bad:hover { background: var(--accent); color: #fff; }
.kbcsure { font-size: 13.5px; margin: 0 0 10px; }
.kbcsaved { font-size: 12px; color: var(--ok); min-height: 16px; }
@media (max-width: 720px) {
  .kbdw.kbcw { padding: 14px; } .kbcg { grid-template-columns: 1fr; } .kbcside { order: -1; display: flex; flex-wrap: wrap; gap: 6px; } .kbcside h5 { width: 100%; margin: 0; }
  .kbcab { width: auto; margin: 0; } .kbcfs { grid-template-columns: 1fr; }
}
/* Editorial team: the tools around the board */
.teamtools { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 0 8px; }
.teamtool { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; border: 1px solid var(--line); }
.teamtool:hover { border-color: var(--ink2); } .teamtool b { font-size: 14.5px; }
.admsign { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.admpw { display: grid; grid-template-columns: auto 1fr; gap: 18px; background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.admpw > div { display: flex; flex-direction: column; gap: 3px; } .admpw code { font-size: 16px; letter-spacing: .02em; user-select: all; }
/* Files: the whole Drive (super admin) — search, selection, moving */
.hfsq { min-width: 220px; max-width: 320px; font: inherit; font-size: 14px; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--panel); }
.hfsq:focus { outline: none; border-color: var(--ink); }
.hfselbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin: 0 0 10px; border-radius: 10px; background: #e8f0fe; color: #174ea6; }
.hfselbar .muted { color: #3c5a9a; }
.hfck { width: 16px; height: 16px; margin: 0 2px 0 0; flex: none; cursor: pointer; accent-color: #1a73e8; }
.hfi.sel { background: #e8f0fe; outline: 1px solid #c2d7fa; }
.hfi.fixed { cursor: pointer; }
.hfp a.over, .hfi.over { background: #d2e3fc; border-radius: 6px; outline: 2px dashed #1a73e8; }
.hfpp { margin: 0 0 8px; font-size: 14px; }
.hfpl { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.hfpi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; font-size: 14px; text-align: left; cursor: pointer; color: var(--ink); }
.hfpi:last-child { border-bottom: 0; } .hfpi:hover { background: var(--soft); } .hfpi span:nth-child(2) { flex: 1; }
.hfkinds { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.hfkind { font: inherit; font-size: 13px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--panel); color: var(--ink2); cursor: pointer; }
.hfkind:hover { border-color: var(--ink2); } .hfkind.on { background: #e8f0fe; border-color: #c2d7fa; color: #174ea6; font-weight: 600; }
.hfkall { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; grid-column: 1 / -1; }
.hfwhere { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; } .hfwhere a { color: var(--ink); }

/* ---------- LinkedIn: impostazioni, composizione dei post, elenchi ---------- */
.listat { font-size: 14px; color: var(--ink2); padding: 10px 12px; border-radius: var(--r-s); background: var(--soft); }
.listat.ok { background: var(--okbg); color: var(--ok); } .listat.ko { background: var(--kobg); color: var(--ko); }
.listat a { color: inherit; font-weight: 600; }
.lihelp summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink2); }
.lipw { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 8px; }
.lipc .liphead, .lipvh { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.liphead b, .lipvh b { display: block; font-size: 14px; }
.lipvh span:not(.lipav) { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.lipav { width: 38px; height: 38px; border-radius: 6px; background: #111; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; letter-spacing: -.02em; }
.lipt { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; line-height: 1.5; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); resize: vertical; min-height: 150px; }
.lipt:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.lipbar { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; margin: 4px 0 12px; }
.lipcnt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lipcnt.near { color: var(--warn); } .lipcnt.over { color: var(--ko); font-weight: 600; }
.lipcard:empty { display: none; }
.lipcardin { display: flex; gap: 12px; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px; }
/* "From the article": excerpts for the social posts (core.js excerptPicker) */
.lipexc { display: flex; gap: 8px; align-items: center; margin: -4px 0 10px; }
.exc { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--soft); padding: 10px; margin: 0 0 12px; }
.exch { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.exch > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.excl { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.excit { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); padding: 9px 11px; cursor: pointer; }
.excit:hover { border-color: var(--line-2); }
.excit:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.excit.used { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.exck { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.exck b { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--ink2); }
.excq { font-size: 12.5px; color: var(--muted); font-style: italic; }
.exct { font-size: 14px; line-height: 1.45; white-space: pre-line; }
.lipcimg { position: relative; width: 132px; flex: none; aspect-ratio: 1.91 / 1; border-radius: 6px; overflow: hidden; background: var(--soft); }
.lipcimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lipcimg.none { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.lipcfs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lipcfs input, .lipcfs textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13.5px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 7px; margin: 0; }
.lipx { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.lipimgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 10px; }
.lipimgs:empty { display: none; }
.lipimg { position: relative; }
.lipimg img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; display: block; background: var(--soft); }
.lipimg input { width: 100%; box-sizing: border-box; font: inherit; font-size: 12px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; margin: 5px 0 0; }
.lipwhen { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.lipseg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-s); overflow: hidden; }
.lipseg button { font: inherit; font-size: 14px; border: 0; background: var(--panel); color: var(--ink2); padding: 7px 14px; cursor: pointer; }
.lipseg button + button { border-left: 1px solid var(--line-2); }
.lipseg button.on { background: var(--ink); color: #fff; }
.lipat { font: inherit; font-size: 14px; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: var(--r-s); }
.liperr { color: var(--ko); font-size: 13.5px; margin-top: 10px; }
.liperr:empty { display: none; }
.lipvbox { position: sticky; top: 76px; }
.lipv { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 0 0; box-shadow: var(--shadow); overflow: hidden; }
.lipv .lipvh { padding: 0 14px; }
.lipvt { padding: 0 14px 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.lipvmore { color: var(--muted); font-weight: 600; }
.lipvm img { width: 100%; display: block; object-fit: cover; }
.lipvm.one img { max-height: 420px; }
.lipvm.many { display: grid; gap: 2px; grid-template-columns: 1fr 1fr; }
.lipvm.many img { aspect-ratio: 1; height: 100%; }
.lipvm.many.n3 > :first-child { grid-row: span 2; } .lipvm.many.n3 > :first-child img { aspect-ratio: auto; }
.lipvm.many > div { position: relative; }
.lipvm.many span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.5); color: #fff; font-size: 22px; font-weight: 600; }
.lipvl { border-top: 1px solid var(--line); background: #f3f2ef; }
.lipvl img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; }
.lipvl div { padding: 10px 14px; } .lipvl b { display: block; font-size: 14px; line-height: 1.35; } .lipvl span { font-size: 12px; color: var(--muted); }
.lipvf { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding: 10px 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.lipr { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
a.lipr:hover { background: var(--soft); }
.liprw { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.lipst { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 8px; align-self: flex-start; background: var(--soft); color: var(--ink2); }
.lipst.blue { background: var(--bluebg); color: var(--blue); } .lipst.ok { background: var(--okbg); color: var(--ok); } .lipst.ko { background: var(--kobg); color: var(--ko); } .lipst.warn { background: var(--warnbg); color: var(--warn); }
.liprt { font-size: 14px; line-height: 1.45; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.liprm { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.liprm img, .liprph { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; background: var(--soft); display: block; }
.liprlink { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--ink2); }
.liprlink img { width: 74px; aspect-ratio: 1.91 / 1; object-fit: cover; border-radius: 5px; }
.liprerr { color: var(--ko); font-size: 13px; margin-top: 6px; }
.lipra { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* Pin to Pinterest (web/pipost.js): the video on the left, the fields on the right */
.pipf { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 6px; }
.pipv video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 6px; display: block; }
.pipfs input, .pipfs textarea, .pipfs select { width: 100%; }
.pipfs .f:first-child { margin-top: 0; }
.pichk { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: 14px; line-height: 1.5; cursor: pointer; } .pichk input { margin-top: 4px; flex: none; }
.liprn { text-align: right; font-size: 12.5px; } .liprn b { display: block; font-size: 15px; } .liprn span { color: var(--muted); }
@media (max-width: 900px) {
  .lipw { grid-template-columns: 1fr; }
  .lipvbox { position: static; }
  .lipr { grid-template-columns: 1fr; gap: 8px; }
  .pipf { grid-template-columns: 1fr; } .pipv video { max-height: 46vh; width: auto; margin: 0 auto; }
  .liprw { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .lipra, .liprn { justify-content: flex-start; text-align: left; }
  .lipcardin { flex-direction: column; } .lipcimg { width: 100%; }
}
/* ---------- Bluesky: same composer and lists as LinkedIn (lip*), a few differences ---------- */
.bsnums { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.bsnums a { color: var(--ink); font-weight: 600; text-decoration: none; } .bsnums a:hover { text-decoration: underline; }
.bsnums b { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; margin-right: 3px; }
.bsv .lipav { border-radius: 50%; }
.bsv .lipvm, .bsv .lipvl { margin: 0 14px 12px 62px; border-radius: 10px; overflow: hidden; }
.bsvl { border: 1px solid var(--line); background: #fff; }
.bsvl div { padding: 10px 12px; }
.bsvd { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 4px; color: var(--ink2) !important; }
.bsv .lipvt { padding-left: 62px; }
.bsv .lipvf { justify-content: flex-start; gap: 34px; padding-left: 62px; border-top: 0; }
.bsn { display: flex; gap: 14px; align-items: baseline; white-space: nowrap; } .bsn b { display: inline; margin-right: 3px; }
@media (max-width: 900px) {
  .bsv .lipvm, .bsv .lipvl { margin-left: 14px; } .bsv .lipvt, .bsv .lipvf { padding-left: 14px; }
  .bsn { justify-content: flex-start; }
}
/* ---------- Threads: same as Bluesky, plus the carousel in the preview ---------- */
.thvc { display: flex; gap: 6px; overflow-x: auto; margin: 0 14px 12px 62px; padding-bottom: 2px; scrollbar-width: thin; }
.thvc img { height: 190px; width: auto; max-width: 70%; object-fit: cover; border-radius: 8px; flex: none; display: block; }
.lipcfs > b { font-size: 14px; line-height: 1.35; }
@media (max-width: 900px) { .thvc { margin-left: 14px; } }
/* ---------- TikTok: photos with the cover, the choices TikTok asks for a direct post, the 9:16 preview ---------- */
.ttph { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.ttph:empty { display: none; }
.ttimg { position: relative; cursor: pointer; }
.ttimg img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 7px; display: block; background: #111; outline: 2px solid transparent; outline-offset: 1px; }
.ttimg.cov img { outline-color: var(--ink); }
.ttcov, .ttn { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 7px; background: rgba(0,0,0,.65); color: #fff; pointer-events: none; }
.ttcov { background: var(--ink); }
.ttmv { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.ttdirect:empty { display: none; }
.ttdirect { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ttdirect .sel { width: 100%; }
.ttchk { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; cursor: pointer; }
.ttchk input { margin: 3px 0 0; flex: none; width: 15px; height: 15px; accent-color: #000; }
.ttchk b { font-size: 14px; }
.ttcmo { margin: 4px 0 0 26px; }
.ttlab { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink2); background: var(--soft); border-radius: 7px; padding: 7px 10px; }
.ttconsent { margin: 10px 0 0; color: var(--ink2); }
.ttconsent:empty { display: none; }
.ttconsent a { color: var(--ink); }
img.ttav { object-fit: cover; border-radius: 50%; }
.ttv { position: relative; aspect-ratio: 9 / 16; max-width: 300px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #111; box-shadow: var(--shadow); color: #fff; }
.ttv > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ttv0 { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9a9aa2; font-size: 13px; padding: 20px; text-align: center; }
.ttvdots { position: absolute; left: 0; right: 0; bottom: 118px; display: flex; gap: 4px; justify-content: center; }
.ttvdots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); } .ttvdots i.on { background: #fff; }
.ttvt { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-size: 13px; line-height: 1.4; }
.ttvt b { display: block; font-size: 14px; } .ttvh { font-weight: 700; margin-top: 2px; } .ttvs { display: block; margin-top: 6px; font-size: 12px; opacity: .85; }
.ttlc { width: 52px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; }

/* ---------- card back: Website (WordPress draft) and the Google Doc that Cold cannot open ---------- */
.kbwp .kbhint { display: block; }
.kbwpst { display: flex; gap: 6px; align-items: center; font-size: 14px; color: #216e4e; background: #dcfff1; border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.kbwpst svg { width: 15px; height: 15px; flex: none; }
.kbwpa { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.kbwpa .btn svg { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; }
.kbwpa .kbhint { display: inline; margin: 0; }
.kbdoc { margin-top: 10px; padding: 12px 14px; border-radius: 8px; background: #ffeceb; color: #5d1f1a; font-size: 14px; line-height: 1.45; }
.kbdoc > b { display: block; color: #ae2e24; font-size: 14.5px; }
.kbdoc p { margin: 6px 0 8px; }
.kbdoc ol { margin: 0 0 10px; padding-left: 20px; }
.kbdoc li { margin: 8px 0; }
.kbdoc li .kbhint { display: block; color: #6f3a35; }
.kbcopy { font: inherit; font-size: 12px; border: 1px solid #e2b5b0; background: #fff; color: #5d1f1a; border-radius: 5px; padding: 1px 7px; cursor: pointer; margin-left: 2px; }
.kbpastew { margin: 4px 0 10px; }
.kbpaste { min-height: 140px; max-height: 320px; overflow: auto; background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 6px; padding: 10px 12px; font-size: 14px; line-height: 1.5; outline: none; }
.kbpaste:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.kbpaste:empty::before { content: attr(data-ph); color: var(--muted); }
.kbpaste img { display: none; }
.kbcsub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: var(--panel); }
.kbcsub svg { width: 15px; height: 15px; flex: none; } .kbcsub span { flex: 1; min-width: 180px; }
.kbwplc { margin-top: 10px; padding: 12px 14px; border: 1px solid #e0a100; background: #fff8e6; color: #3d2e00; border-radius: 8px; font-size: 14px; }
.kbwpm { font-size: 13.5px; margin-top: 8px; }
.kbwpm:empty { display: none; }
.kbwpm.ok { color: #216e4e; } .kbwpm.ko { color: #ae2e24; }
.kbwpm .kbcnote { margin-top: 6px; background: #fff7d6; color: #533f04; }

/* ---------- Pinterest: il modulo di richiesta dell'app e i Pin migliori ---------- */
.piform { border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.pifr { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pifr:first-child { border-top: 0; }
.pifr > span { color: var(--muted); font-weight: 500; }
.pifr > div { white-space: pre-wrap; line-height: 1.45; }
.pigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin: 4px 0 18px; }
.pipin { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; min-width: 0; }
.pipin img, .pipin .pinoimg { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: var(--soft); display: block; }
.pipin b { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 700px) { .pifr { grid-template-columns: 1fr; gap: 4px; } .pifr .btn { justify-self: start; } }
/* WordPress draft: the Doc's photos going up one by one (wpPhotoLoop) */
.pph { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 4px; }
.pphi { margin: 0; display: flex; flex-direction: column; gap: 6px; } .pphi img, .pphx { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--bg, #f2f2f2); border-radius: 8px; display: block; }
.pphx { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted, #666); text-align: center; padding: 8px; box-sizing: border-box; }
.pphi figcaption { font-size: 13px; line-height: 1.4; display: flex; flex-direction: column; gap: 2px; } .pphi figcaption .kbhint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbcompig { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px; font-size: 13px; font-weight: 600; cursor: pointer; } .kbcompig span { font-weight: 400; color: var(--muted, #666); } .kbcompig input { margin: 0; }
.wpnm { flex-basis: 100%; width: 100%; margin: 10px 0 0; padding: 12px; border: 1px solid var(--line, #e5e5e5); border-radius: 10px; background: var(--panel, #fff); }
.wpnmh { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; } .wpnma { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; } .wpnma input { flex: 1; min-width: 140px; }
.wpnml { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.wpnml li { display: flex; align-items: center; gap: 10px; } .wpnml li.off { opacity: .45; } .wpnml img, .wpnmi { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; background: var(--bg, #f2f2f2); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.wpnmf { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .wpnmf input { width: 100%; font-family: var(--mono, ui-monospace, monospace); font-size: 13px; } .wpnmf .kbhint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpnmt { flex: none; padding: 0; border: 0; background: none; border-radius: 6px; cursor: zoom-in; position: relative; } .wpnmt:focus-visible { outline: 2px solid var(--ink, #111); outline-offset: 2px; }
.wpnml li.cov .wpnmt img, .wpnml li.cov .wpnmi { box-shadow: 0 0 0 2px var(--ink, #111); }
.wpnmc { flex: none; font: inherit; font-size: 12px; line-height: 1; padding: 6px 9px; border: 1px solid var(--line-2, #c9c6c0); border-radius: 999px; background: var(--panel, #fff); color: var(--muted, #6b6b6b); cursor: pointer; white-space: nowrap; }
.wpnmc:hover { color: var(--ink, #111); border-color: var(--ink, #111); } .wpnmc.on { background: var(--ink, #111); border-color: var(--ink, #111); color: var(--panel, #fff); }
/* the bigger look at one photo before uploading it (wpNames) */
.wpnmv { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.9); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wpnmvb { display: flex; flex-direction: column; gap: 12px; max-width: min(1100px, 100%); width: 100%; max-height: 100%; }
.wpnmvi { position: relative; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.wpnmvi img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 4px; background: #222; }
.wpnmv.off .wpnmvi img { opacity: .4; }
.wpnmvl { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); color: #fff; font-size: 12.5px; background: rgba(0,0,0,.6); padding: 4px 10px; border-radius: 999px; } .wpnmvl:empty { display: none; }
.wpnmvf { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; color: #fff; }
.wpnmvt { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-width: 0; font-size: 13.5px; } .wpnmvn { font-family: var(--mono, ui-monospace, monospace); } .wpnmvs { color: rgba(255,255,255,.65); font-size: 12.5px; }
.wpnmva { display: flex; flex-wrap: wrap; gap: 6px; }
.wpnmv .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; } .wpnmv .btn.ghost:hover { border-color: #fff; }
.wpnmv .btn.ghost.on { background: #fff; color: #111; border-color: #fff; } .wpnmv .btn:not(.ghost) { background: #fff; color: #111; border-color: #fff; }
.wpnmvp, .wpnmvx { min-width: 38px; font-size: 16px; }
.wpprog { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; margin: 8px 0 0; font-size: 13px; }
.wpprog > i { flex: 1; min-width: 80px; height: 6px; border-radius: 3px; background: var(--line, #e5e5e5); overflow: hidden; } .wpprog > i > b { display: block; height: 100%; width: 0; background: var(--ink, #111); transition: width .3s; }

/* ---------- Instagram: the post and Stories editor (igpost.js), the same in the editors area and the HQ ---------- */
.igfmt { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.igfmt button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; background: transparent; color: var(--ink2); font: inherit; padding: 6px 14px 7px; border-radius: 9px; cursor: pointer; min-width: 112px; text-align: left; }
.igfmt button b { font-size: 14px; font-weight: 600; } .igfmt button span { font-size: 11.5px; color: var(--muted); }
.igfmt button:hover { background: var(--soft); } .igfmt button.on { background: var(--ink); color: #fff; } .igfmt button.on span { color: rgba(255,255,255,.7); }
.igib { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--ink); cursor: pointer; padding: 0; flex: none; }
.igib svg { width: 16px; height: 16px; } .igib:hover:not(:disabled) { border-color: var(--ink); } .igib:disabled { opacity: .35; cursor: default; }
.igst { font-size: 12.5px; color: var(--muted); min-width: 108px; text-align: right; font-variant-numeric: tabular-nums; } .igst.dirty { color: var(--warn); } .igst.ko { color: var(--ko); font-weight: 600; }
.igd .igcv canvas { width: 100%; height: auto; aspect-ratio: 4 / 5; background: #000; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.16); touch-action: none; }
.igd .igcv canvas.mv { cursor: grab; } .igd .igcv canvas.grab { cursor: grabbing; }
/* Stories: the bands Instagram covers (its bar on top, the reply field and link sticker at the bottom), shown over the preview only */
.igsafe { display: none; position: absolute; inset: 0; pointer-events: none; border-radius: 10px; overflow: hidden; }
.igcv.guides .igsafe { display: block; }
.igsafe i { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(214,54,33,.14) 0 6px, rgba(214,54,33,.05) 6px 12px); border: 0 dashed rgba(214,54,33,.75); }
.igsafe .t { top: 0; height: calc(250 / 1920 * 100%); border-bottom-width: 1px; } .igsafe .b { bottom: 0; height: calc(340 / 1920 * 100%); border-top-width: 1px; }
/* a 9:16 frame used as a Reel cover: the profile grid keeps a 3:4 centre crop (1080×1440, 240px off the top and the bottom) */
.iggrid { display: none; position: absolute; left: 0; right: 0; top: calc(240 / 1920 * 100%); bottom: calc(240 / 1920 * 100%); pointer-events: none; outline: 2px dashed rgba(255,255,255,.9); outline-offset: -1px; box-shadow: 0 0 0 999px rgba(0,0,0,.28); }
.igcv.gridg .iggrid { display: block; } .igcv.gridg { overflow: hidden; border-radius: 10px; }
.iggrid span { position: absolute; right: 6px; top: 6px; font: 600 10px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 4px 6px; border-radius: 4px; }
.igd .ignav { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.igd .igp { font-size: 13px; color: var(--ko); font-weight: 500; min-height: 0; text-align: center; } .igd .igp:empty { display: none; }
.igd .igtip { font-size: 12px; color: var(--muted); text-align: center; min-height: 16px; }
/* ---------- the studio (17 Oct, Wilson: "la stessa tipologia di layout di Canva"): full screen; header with the format, undo/redo,
   Save, Download and Publish; the tools on the left with their panel; the quick-actions bar over the big preview; the pages at the bottom */
html.igstuopen, html.igstuopen body { overflow: hidden; }
.igstuv { position: fixed; inset: 0; z-index: 70; }
.igstu { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #ecebe7; color: var(--ink); max-width: none; margin: 0; padding: 0; outline: none; font-family: var(--sans); }
.igstu .igh { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 58px; }
.igstu .igh .sp { flex: 1; }
.igstu .ight { min-width: 0; display: flex; flex-direction: column; gap: 1px; max-width: 30vw; }
.igstu .ight .st { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: none; padding: 0; margin: 0; }
.igstu .ight h3 { margin: 0; font: 600 15px/1.25 var(--sans); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.igstu .igfmt button { padding: 4px 12px 5px; min-width: 96px; } .igstu .igfmt button b { font-size: 13px; } .igstu .igfmt button span { font-size: 11px; }
.igstu .igst { min-width: 0; }
.igmn { position: relative; flex: none; }
.igmn > .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .igmn > .btn svg { width: 16px; height: 16px; flex: none; }
.igmenu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 250px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(0,0,0,.16); padding: 6px; z-index: 6; display: flex; flex-direction: column; }
.igmenu[hidden] { display: none; }
/* a phone: the slides being drawn for Photos, then one tap saves them */
.igphoto { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 80; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(0,0,0,.22); padding: 14px; display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 0 auto; }
.igphoto .igpht { font: 600 15px/1.35 var(--sans); }
.igphoto .igphb { display: flex; flex-wrap: wrap; gap: 8px; } .igphoto .igphb .pri { flex: 1 1 100%; }
.igmenu button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 8px; font: 500 14px/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.igmenu button:hover, .igmenu button:focus-visible { background: var(--soft); outline: none; } .igmenu button[hidden] { display: none; }
.igstu .igbd { display: grid; grid-template-columns: 78px 330px minmax(0, 1fr); min-height: 0; }
/* the tools: an icon with its name, the one open in black */
.igrl { display: flex; flex-direction: column; gap: 4px; padding: 10px 7px; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; }
.igrb { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: transparent; border-radius: 10px; padding: 10px 2px 8px; font: 500 11.5px/1.1 var(--sans); color: var(--ink2); cursor: pointer; }
.igrb svg { width: 22px; height: 22px; } .igrb:hover { background: var(--soft); color: var(--ink); } .igrb.on { background: var(--ink); color: #fff; }
/* the panel of the open tool */
.igpn { background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; padding: 16px 16px 28px; min-height: 0; }
.igpn .igr[hidden], .igpn .igcapbox[hidden] { display: none; }
.igph { margin: 0 0 12px; } .igph h4 { margin: 0; font: 600 17px/1.3 var(--sans); } .igph span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.igstu .igkg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.igstu .igkt { padding: 12px 8px 10px; gap: 6px; font-size: 13px; border-radius: 12px; }
.igstu .igkt svg { width: 44px; height: 55px; border-radius: 4px; }
.igstu .igkt small { font-size: 11px; line-height: 1.3; color: var(--muted); font-weight: 400; }
.igstu .igkt.on small { color: var(--ink2); }
.igstu .igkg-h { margin: 14px 0 8px; } .igstu .igph + .igkg-h { margin-top: 4px; }
.igstu .igg { max-height: none; gap: 8px; }
.igstu .igaddt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.igstu .igr label { margin-top: 14px; } .igstu .igr .igph + label { margin-top: 0; }
.igstu .igcapbox h2 { font: 600 17px/1.3 var(--sans); margin: 0 0 8px; } .igstu .igcapbox h2 + .s { margin-top: 0; } .igstu .igcapbox .igco { margin-bottom: 8px; }
.igstu .igcapbox #igpostonly > h2:not(:first-child) { margin-top: 22px; }
.igstu .igsn { margin-top: 0; }
/* the stage: the quick-actions bar of the slide, the preview as big as the window allows, the arrows and the messages */
.igstg { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 0; padding: 12px 22px 10px; gap: 8px; overflow: hidden; }
.igstg > .warn { align-self: stretch; margin: 0; }
.igbar { align-self: stretch; display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); min-height: 50px; }
.igbar .sp { flex: 1; }
.igbk { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 4px 11px 4px 6px; font: 600 13px var(--sans); cursor: pointer; color: var(--ink); }
.igbk svg { width: 22px; height: 28px; border-radius: 2px; } .igbk:hover { border-color: var(--ink); }
.igbg { display: inline-flex; align-items: center; gap: 6px; } .igbl { font-size: 12px; color: var(--muted); }
.igbar .tabs.igseg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; margin: 0; background: var(--panel); }
.igbar .igseg .chip { padding: 4px 11px; border-radius: 999px; border: 0; background: transparent; color: var(--ink2); font-size: 12.5px; cursor: pointer; white-space: nowrap; } .igbar .igseg .chip.on { background: var(--ink); color: #fff; }
.igbar input[type=range] { width: 110px; accent-color: var(--ink); margin: 0; padding: 0; border: 0; box-shadow: none; }
.igbar .igzv { float: none; min-width: 38px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.igbar label.igck { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; white-space: nowrap; }
.igbar .igbs { display: inline-flex; gap: 4px; }
.igbar .igpano { flex-direction: row; align-items: center; gap: 10px; padding: 4px 6px 4px 10px; margin: 0; } .igbar .igpano span { display: none; }
.igbar .btn.sm { white-space: nowrap; }
.igcw { flex: 1; min-height: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; container-type: size; }
.igstu .igcv { position: relative; width: min(100cqw, 100cqh * .8); max-width: none; aspect-ratio: 4 / 5; line-height: 0; }
.igstu.igstory .igcv { width: min(100cqw, 100cqh * .5625); aspect-ratio: 9 / 16; }
.igstu.igstory .igcv canvas { aspect-ratio: 9 / 16; border-radius: 10px; }
.igstu .igcv canvas { height: auto; }
.igstu .ignav { flex: none; }
.igstu .igstg > .msg { margin: 0; text-align: center; min-height: 0; } .igstu .igstg > .msg:empty { display: none; }
.igstu .igtip:empty { display: none; }
/* the pages: the slides in a row, the one on screen outlined; drag to reorder; + to add one */
.igpg { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; background: var(--panel); border-top: 1px solid var(--line); min-width: 0; }
.igstu .igs { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 4px 2px 4px; max-height: none; min-width: 0; margin: 0; }
.igstu .igi { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 3px; border: 2px solid transparent; border-radius: 9px; background: transparent; flex: none; cursor: pointer; box-shadow: none; }
.igstu .igi canvas { display: block; background: #000; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.igstu .igi:hover { border-color: var(--line-2); } .igstu .igi.on { border-color: var(--ink); box-shadow: none; }
.igstu .igi.drag { opacity: .4; } .igstu .igi.over { border-color: var(--ink); border-style: dashed; }
.igstu .igim { display: block; font-size: 11.5px; line-height: 1; }
.igstu .igi .n { color: var(--muted); font-variant-numeric: tabular-nums; } .igstu .igi.on .n { color: var(--ink); font-weight: 700; }
.igstu .igi .k, .igstu .igi .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.igadd1 { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 66px; height: 90px; border: 1.5px dashed var(--line-2); border-radius: 8px; background: transparent; color: var(--ink2); cursor: pointer; font: 500 11.5px var(--sans); }
.igadd1 svg { width: 20px; height: 20px; } .igadd1:hover { border-color: var(--ink); color: var(--ink); }
/* a phone: the header on two rows, the preview first, then the bar, the pages, the tools as tabs and their panel; the page scrolls */
@media (max-width: 760px) {
  .igstu { position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column; }
  .igstu .igh { flex-wrap: wrap; gap: 8px; padding: 8px 10px; position: sticky; top: 0; z-index: 4; }
  .igstu .ight { max-width: none; flex: 1 1 130px; order: 1; } .igstu #cl { order: 0; }
  .igstu .igfmt { order: 3; } .igstu .igh .sp { display: none; } .igstu .igst { order: 5; flex: 1 0 auto; min-width: max-content; text-align: left; font-size: 11.5px; }
  .igstu .ight .st { display: none; }
  /* the Download and Publish menus as a sheet at the bottom of the screen: whole, never cut by the edge */
  .igstu .igmenu { position: fixed; left: 10px; right: 10px; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); min-width: 0; z-index: 40; padding: 8px; box-shadow: 0 -4px 40px rgba(0,0,0,.28); }
  .igstu .igmenu button { padding: 15px 14px; font-size: 16px; }
  /* on the phone the page scrolls over the preview: the photo moves only after holding a finger on it (see igpost.js) */
  .igd .igcv canvas { touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .igstu #igun, .igstu #igre { order: 4; } .igstu #igsave, .igstu .igmn { order: 6; } /* undo and redo always together; the status, Save and the menus after them */
  .igstu .igbd { display: contents; }
  .igstu > *, .igstu .igbd > * { flex-shrink: 0; }
  .igstg { order: 1; padding: 10px; overflow: visible; }
  .igcw { container-type: inline-size; flex: none; }
  .igstu .igcv { width: min(100%, 360px); } .igstu.igstory .igcv { width: min(100%, 250px); }
  .igpg { order: 2; }
  .igrl { order: 3; flex-direction: row; justify-content: space-around; border-right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; overflow: visible; }
  .igrb { flex: 1; }
  .igpn { order: 4; border-right: 0; overflow: visible; }
}
.igd .igr label { margin-top: 14px; } .igd .igr label:first-child { margin-top: 0; }
.igd .igzr { display: flex; align-items: center; gap: 8px; } .igd .igzr input[type=range] { flex: 1; accent-color: var(--ink); margin: 0; padding: 0; border: 0; box-shadow: none; }
.igd .igzv { float: right; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.igd .igcaph { display: flex; align-items: center; gap: 10px; justify-content: space-between; } .igd .igcaph h2 { margin-bottom: 8px; } .igd .igcaph .btn { flex: none; }
.igd .igcapn { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; } .igd .igcapn.ko { color: var(--ko); font-weight: 600; }
.igd .igsn { margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink2); }
.igd .igsn a { color: var(--ink); } .igd .igsn .btn { margin-left: 4px; vertical-align: 1px; }


/* ---------- Analytics → Growth and TikTok: charts with a crosshair tooltip ---------- */
.grc { position: relative; outline: none; }
.grc:focus-visible { box-shadow: 0 0 0 2px var(--ink); border-radius: 6px; }
.grtip { display: none; position: absolute; top: -6px; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 6px 9px; font-size: 12px; line-height: 1.4; min-width: 110px; max-width: 280px; z-index: 2; }
.grtip b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.grtip span { display: block; color: var(--muted); }
.grtip .grtt { color: var(--ink2); margin-top: 2px; }
.grh { display: flex; align-items: center; font-size: 15px; }
.grmvals { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 0; }
.grmv { display: flex; flex-direction: column; gap: 1px; }
.grmv b { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.grmlog summary { cursor: pointer; color: var(--muted); }
.grmr { display: flex; gap: 12px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); }
.grmr span:first-child { min-width: 92px; color: var(--muted); }
.grmr span:nth-child(2) { flex: 1; min-width: 0; }
.bars .b.ttbest > span:first-child { font-weight: 700; }

/* ---------- Instagram from the HQ: the publishing window ---------- */
.igpst { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.igpstrip { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 4px; scrollbar-width: thin; }
.igpstrip:empty { display: none; }
.igpit { position: relative; flex: none; width: 92px; }
.igpit img, .igpit .igpph { width: 92px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 7px; display: block; background: #111; }
.igpit.st img, .igpit.st .igpph { aspect-ratio: 9 / 16; }
.igpph { display: flex; align-items: center; justify-content: center; color: #9a9aa2; font-size: 12px; }
.igpd { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 7px; background: rgba(0,0,0,.65); color: #fff; }
.igpup { position: absolute; left: 6px; right: 6px; top: 50%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.igpup i { display: block; height: 100%; background: #fff; }
.igpit.pick { cursor: pointer; border-radius: 9px; outline-offset: 2px; }
.igpit.pick::after { content: '✓'; position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.igpit.pick.off img, .igpit.pick.off .igpph { opacity: .3; }
.igpit.pick.off::after { content: ''; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 2px #fff; }
.igpit.pick:focus-visible { outline: 2px solid var(--ink); }
/* Stories: the accounts tagged on each frame */
.igptag-row.igpptrow { display: flex; gap: 12px; align-items: flex-start; } .igpptv { position: relative; flex: none; width: 168px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #111; touch-action: none; user-select: none; }
.igptag-row .igpptv img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; display: block; pointer-events: none; }
.igpptag { position: absolute; transform: translate(-50%, -50%); background: rgba(0,0,0,.82); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 1; padding: 4px 6px; border-radius: 5px; white-space: nowrap; cursor: grab; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.igpptag.drag { cursor: grabbing; background: #000; outline: 2px solid #fff; } .igpptag:focus-visible { outline: 2px solid var(--accent, #d63621); }
.igpptf { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.igptags { margin: 10px 0 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.igptagh { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-bottom: 6px; }
.igptags-s { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; }
.igptag-chip { font: inherit; font-size: 12.5px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 3px 10px; cursor: pointer; } .igptag-chip:hover { border-color: var(--ink); }
.igptag-row { display: grid; grid-template-columns: 26px 16px minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 6px; }
.igptag-row img, .igptag-ph { width: 26px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; background: #111; color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.igptag-in { width: 100%; box-sizing: border-box; } .igptag-w { grid-column: 3; color: var(--ko); } .igptag-w:empty { display: none; }
.igpnoteln { margin-top: 4px; color: #8a5a00; }
/* the warning before a real publication (publishWarn in core.js) */
.pubw-band { border-radius: 8px; padding: 10px 12px; background: var(--kobg); color: #7a1d14; border: 1px solid #f3c4bd; line-height: 1.45; }
.pubw-band.later { background: var(--soft); color: var(--ink); border-color: var(--line-2); }
.pubw-rows { margin: 12px 0 0; display: grid; gap: 6px; }
.pubw-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font-size: 14px; } .pubw-row .k { color: var(--muted); } .pubw-row .v { font-weight: 600; overflow-wrap: anywhere; }
.pubw-th { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; } .pubw-th img { flex: none; width: 56px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 5px; background: #111; } .pubw-th.tall img { aspect-ratio: 9 / 16; width: 40px; }
.pubw-text { margin-top: 10px; white-space: pre-wrap; font-size: 13px; background: var(--soft); border-radius: 8px; padding: 8px 10px; max-height: 140px; overflow: auto; overflow-wrap: anywhere; }
.igpnote { background: var(--soft); border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; color: var(--ink2); }
.igpwhy { color: #8a5a00; align-self: center; max-width: 420px; text-align: right; line-height: 1.4; }
.igpwhy:empty { display: none; }
.igpcollfix { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff4e0; color: #5f3a00; margin: 6px 0 0; }
.igpcollfix[hidden] { display: none; }
/* the layout picker: small drawings of each layout, in two groups (text only, with photos) */
.igd .igkg-h { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 8px 0 6px; }
.igd .igkg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.igd .igkt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; font: inherit; font-size: 11.5px; line-height: 1.2; color: var(--ink2); text-align: center; }
.igd .igkt svg { display: block; border-radius: 3px; width: 32px; height: 40px; }
.igd .igkt:hover:not(:disabled) { border-color: var(--ink2); } .igd .igkt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font-weight: 600; }
.igd .igkt:disabled { opacity: .38; cursor: not-allowed; }
/* the quote block of "Quote on photo": a frame over the preview to move it, a handle to resize it (never in the downloads) */
.igd .igtb { position: absolute; box-sizing: border-box; border: 1.5px dashed rgba(255,255,255,.95); outline: 1px solid rgba(0,0,0,.45); cursor: move; touch-action: none; }
.igd .igtb[hidden] { display: none; }
.igd .igtb i { position: absolute; right: -9px; bottom: -9px; width: 16px; height: 16px; background: #fff; border: 1.5px solid #111; border-radius: 3px; cursor: nwse-resize; touch-action: none; }
/* dropping a photo on the preview: the space it will go into */
.igd .igdz { position: absolute; pointer-events: none; background: rgba(214,54,33,.22); outline: 2px dashed #fff; outline-offset: -4px; }
.igd .igdz[hidden] { display: none; }
/* "Quote on photo": one card per text in the panel; the selected one matches the solid frame on the preview */
.igd .igtx { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin-top: 8px; background: var(--panel); }
.igd .igtx.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.igd .igtx label:first-of-type { margin-top: 6px; }
.igd .igtxh { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.igd .igtb.on { border-style: solid; }
/* a panorama: one horizontal photo across two slides (the note on each half, with the way back to one slide) */
.igd .igpano { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 4px 0 6px; background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.igd .igpano b { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.igd .igpano span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.igd .igpano .btn { align-self: flex-start; }
.igd #igpano[hidden] { display: none; }

/* ---------- Analytics: one layout for every tab (tiles → one chart → breakdowns → tables) ---------- */
/* the tabs: one strip, grouped, scrolls sideways on a phone with a fade at the edge */
.anatabs { position: relative; gap: 0; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.anatabs::-webkit-scrollbar { display: none; }
.anatabs a { scroll-snap-align: start; padding: 10px 12px; }
.anatabs .sep { width: 1px; height: 16px; background: var(--line); align-self: center; margin: 0 6px; flex: none; }
/* the line with the update time and the readers switch */
.ana .ahead { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.ana .aupd { margin: -6px 0 14px; }
.ana .ahead .aupd { margin: 0; }
.ana .ahead .alens { margin: 0; gap: 10px; }
/* the tiles: quiet cards, the number first, the change as a chip; the ones that pick the chart are buttons */
.ana .kpis { gap: 10px; margin: 0 0 10px; }
.ana .kpi { background: var(--panel); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 13px; text-align: left; font: inherit; color: var(--ink); cursor: default; transition: border-color .15s, box-shadow .15s; }
.ana .kpi span { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.ana .kpi b { margin-top: 6px; }
.ana .kpi small { margin-top: 6px; }
.ana .kpi small.kd { display: inline-block; font-weight: 600; border-radius: 999px; padding: 2px 8px; font-size: 12px; line-height: 1.3; margin-top: 8px; color: var(--ink2); background: var(--soft); }
.ana .kpi small.kd.good { color: var(--ok); background: var(--okbg); }
.ana .kpi small.kd.bad { color: var(--ko); background: var(--kobg); }
.ana .kpi small.kd + small, .ana .kpi small.muted { display: block; margin-top: 6px; }
.ana .kpi.pick { cursor: pointer; }
.ana .kpi.pick:hover { border-color: var(--line-2); }
.ana .kpi.pick:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ana .kpi.pick.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ana .kpi.pick.on span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-right: 7px; vertical-align: 1px; }
.ana .kpis.hero { margin-bottom: 10px; }
.ana .kpis.row2 .kpi { padding: 11px 14px 11px; }
.ana .kpis.row2 .kpi b { font-size: 22px; }
/* the one chart under the tiles */
.ana .ahero { margin: 0 0 14px; padding: 16px 18px 12px; }
.ana .aheroh { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.ana .aheroh h3 { margin: 0; }
/* what explains the numbers: one folded line */
.ana .acav { margin: 0 0 16px; padding: 0; background: transparent; border: 1px dashed var(--line-2); }
.ana .acav summary { cursor: pointer; padding: 9px 14px; list-style: none; display: flex; gap: 6px; align-items: center; color: var(--ink2); }
.ana .acav summary::-webkit-details-marker { display: none; }
.ana .acav summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-right: 6px; transition: transform .15s; }
.ana .acav[open] summary::before { transform: rotate(45deg); }
.ana .acavb { padding: 0 14px 10px; display: grid; gap: 8px; }
.ana .acavb p { margin: 0; line-height: 1.5; } .acavb .anotes { margin: 0 0 0 18px; line-height: 1.55; font-size: 13px; }
/* the breakdown cards: as many per row as fit, never squeezed */
.ana .agrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 0 0 18px; }
.ana .agrid > * { min-width: 0; }
.ana .apanel h3 { margin-bottom: 8px; }
.ana .apanel .bars .b { grid-template-columns: minmax(90px, 38%) 1fr 54px; margin: 7px 0; font-size: 13px; }
.ana .apanel .bars .b .tr { height: 7px; }
.ana .apanel .amore { margin-top: 10px; }
@media (max-width: 860px) {
  .anatabs { margin-left: -16px; margin-right: -16px; padding: 0 16px; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
  .ana .ahead { margin-bottom: 10px; }
  .ana .kpis, .ana .kpis.hero, .ana .kpis.row2, .ana .kpis:has(> :nth-child(4):last-child), .ana .kpis:has(> :nth-child(5):last-child), .ana .kpis:has(> :nth-child(6):last-child) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ana .kpis.hero > :last-child:nth-child(odd), .ana .kpis.row2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ana .kpi { padding: 12px 13px 11px; }
  .ana .kpi b { font-size: 22px; }
  .ana .kpi small.kd { font-size: 11.5px; padding: 1px 7px; }
  .ana .ahero { padding: 12px 10px 8px; }
  .ana .agrid { grid-template-columns: 1fr; gap: 10px; }
  .ana .apanel .bars .b { grid-template-columns: minmax(80px, 36%) 1fr 48px; }
}

/* ---------- The Instagram calendar (igcal.js): the same page in the HQ and in the editors area ----------
   Month (the grid with the picture and time of each post), Agenda (day by day), Feed (the profile as it will look).
   Colour is the state only: out green, scheduled blue, planned dashed, late red. */
.igc { --igc-ok: var(--ok); --igc-sch: var(--blue); --igc-late: var(--ko); --igc-go: var(--warn); font-family: var(--sans); color: var(--ink); }
:where(.igc, .igcveil) button { font-family: inherit; color: inherit; }
.igcbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 13px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.igcbtn:hover { border-color: var(--line-2); }
.igcbtn.pri { background: var(--ink); border-color: var(--ink); color: #fff; }
.igcbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 12px; }
.igcnav { display: flex; align-items: center; gap: 6px; }
.igcarrow { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel); cursor: pointer; padding: 0; }
.igcarrow:hover { border-color: var(--line-2); }
.igc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.igcm { font-size: 18px; font-weight: 650; letter-spacing: -.01em; min-width: 150px; text-align: center; }
.igcseg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); padding: 3px; gap: 2px; }
.igcseg button { border: 0; background: transparent; padding: 6px 15px; border-radius: 999px; font-size: 13px; color: var(--muted); cursor: pointer; }
.igcseg button.on { background: var(--ink); color: #fff; font-weight: 600; }
.igcfil { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.igcchip { border: 1px solid var(--line); border-radius: 999px; background: var(--panel); padding: 6px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.igcchip.on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.igcchip.on::before { content: '✓ '; }
.igcdesk { font-size: 13px; padding: 6px 28px 6px 10px; min-height: 34px; border: 1px solid var(--line); border-radius: var(--r-s); background-color: var(--panel); }
/* the next seven days */
.igcsum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 10px 14px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); font-size: 13.5px; color: var(--ink2); }
.igcsh { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.igcs b { color: var(--ink); font-variant-numeric: tabular-nums; }
.igcs.is-warn, .igcs.is-warn b { color: var(--warn); }
.igcs.is-bad, .igcs.is-bad b { color: var(--ko); }
/* states */
.igcst { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1.5; padding: 1px 8px; border-radius: 99px; white-space: nowrap; border: 1px solid transparent; }
.igcst.is-ok { background: var(--okbg); color: var(--ok); }
.igcst.is-sch { background: var(--bluebg); color: var(--blue); }
.igcst.is-go { background: var(--warnbg); color: var(--warn); }
.igcst.is-pl { background: var(--panel); color: var(--ink2); border: 1px dashed var(--line-2); }
.igcst.is-late { background: var(--kobg); color: var(--ko); }
/* the little picture */
.igct { position: relative; flex: none; width: 22px; height: 27px; border-radius: 4px; overflow: hidden; background: #111; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.igct img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igct i { font-style: normal; font-size: 11px; font-weight: 700; }
.igct.igcsto { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--panel), 0 0 0 3px var(--pink); margin: 0 2px; }
.igct.igcweb { background: var(--soft); color: var(--muted); }
.igct.igcweb svg { width: 14px; height: 14px; }
.igct .igcb { display: none; }
.igct.igclg { width: 56px; height: 70px; border-radius: 7px; }
.igct.igclg.igcsto { width: 52px; height: 52px; border-radius: 50%; margin: 9px 2px; }
.igct.igclg i { font-size: 18px; }
.igct.igclg .igcb, .igcf .igcb { display: block; position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.igct.igclg .igcb svg, .igcf .igcb svg { width: 16px; height: 16px; }
/* month */
.igcgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.igcwd { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding: 8px 0; background: #fbfbfa; border-bottom: 1px solid var(--line); }
.igccell { min-height: 124px; padding: 6px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.igccell:nth-child(7n+1) { border-left: 0; }
.igccell:nth-child(-n+14) { border-top: 0; }
.igccell.igcout { background: #fbfbfa; }
.igccell.igcout .igcdn { opacity: .45; }
.igcdn { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; align-self: flex-start; min-width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 99px; margin-bottom: 1px; }
.igccell.igctd .igcdn { background: var(--ink); color: #fff; font-weight: 700; }
.igce { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; text-align: left; padding: 3px 6px 3px 3px; border-radius: 7px; border: 1px solid transparent; font-size: 12px; line-height: 1.3; cursor: pointer; background: var(--soft); }
.igce.is-ok { background: var(--okbg); }
.igce.is-sch { background: var(--bluebg); }
.igce.is-go { background: var(--warnbg); }
.igce.is-late { background: var(--kobg); }
.igce.is-pl { background: var(--panel); border: 1px dashed var(--line-2); }
.igce.igcweb { background: transparent; color: var(--muted); }
.igce:hover { border-color: var(--ink); }
.igcet { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igcet b { font-weight: 650; font-variant-numeric: tabular-nums; }
.igce.is-late .igcet b { color: var(--ko); }
.igccell.igcpast .igce:not(.is-late) { opacity: .78; }
.igcmore { border: 0; background: transparent; text-align: left; padding: 2px 6px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.igcmore:hover { color: var(--ink); }
/* month on a phone: dots, and the day tapped listed under it */
.igcgrid.igccomp .igccell { min-height: 52px; padding: 4px 2px; align-items: center; gap: 2px; cursor: pointer; }
.igcgrid.igccomp .igcdn { align-self: center; font-size: 14px; width: 28px; height: 28px; line-height: 28px; }
.igcgrid.igccomp .igccell.igcsel { box-shadow: inset 0 0 0 2px var(--ink); }
.igcdots { display: flex; gap: 3px; justify-content: center; min-height: 6px; }
.igcdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.igcdots i.is-ok { background: var(--ok); } .igcdots i.is-sch { background: var(--blue); } .igcdots i.is-late { background: var(--ko); } .igcdots i.is-go { background: var(--warn); }
.igcdots i.is-pl { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink2); }
.igcday { margin-top: 14px; }
/* rows: agenda, a day */
.igcrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; width: 100%; text-align: left; padding: 9px 12px 9px 9px; margin: 0 0 8px; border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--r-s); background: var(--panel); cursor: pointer; }
.igcrow:hover { border-color: var(--line-2); }
.igcrow.is-ok { border-left-color: var(--ok); } .igcrow.is-sch { border-left-color: var(--blue); } .igcrow.is-go { border-left-color: var(--warn); } .igcrow.is-late { border-left-color: var(--ko); }
.igcrow.is-pl { border-left-style: dashed; }
.igcrm { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.igcrm b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.igcrm span { font-size: 13px; color: var(--muted); }
.igcrm .igcerr, .igcerr { color: var(--ko); font-size: 12.5px; }
.igcdh { font-size: 14px; font-weight: 500; color: var(--ink2); margin: 20px 0 8px; }
.igcdh b { color: var(--ink); font-weight: 700; }
.igcag:first-child .igcdh, .igcearlier + .igcag .igcdh, .igcearlier + .igcgap { margin-top: 4px; }
.igcearlier { margin: 0 0 10px; }
.igcgap { font-size: 13px; color: var(--muted); padding: 8px 12px; margin: 10px 0; border: 1px dashed var(--line-2); border-radius: var(--r-s); }
.igcag.igcund { margin-top: 26px; padding-top: 6px; border-top: 1px solid var(--line); }
.igcnone { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.igcempty { padding: 34px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 14px; }
.igcsk { height: 460px; border-radius: var(--r); background: linear-gradient(90deg, var(--soft), #f7f6f4, var(--soft)); background-size: 200% 100%; animation: igcsk 1.2s ease-in-out infinite; }
@keyframes igcsk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.igcleg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 14px 0 0; }
.igcnote { font-size: 12.5px; color: var(--muted); margin-left: auto; }
/* feed: the profile as it will look */
.igcprof { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; max-width: 620px; }
.igcprof img, .igcav { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: #111; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.igcprof b { display: block; font-size: 15px; }
.igcprof span { font-size: 13px; color: var(--muted); }
.igcfeed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; max-width: 620px; }
.igcf { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden; background: #111; cursor: pointer; }
.igcf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igcf:hover img { opacity: .9; }
.igcfph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; text-transform: uppercase; letter-spacing: .02em; }
.igcfph span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.igcf.igcup::after { content: ''; position: absolute; inset: 5px; border: 2px dashed rgba(255,255,255,.7); border-radius: 3px; pointer-events: none; }
.igcf.igcup.is-sch::after { border-style: solid; border-color: #8ea2ff; }
.igcf.igcup.is-late::after { border-color: #ff8e80; }
.igcfw { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-size: 11.5px; line-height: 1.3; text-align: left; }
.igcfw em { display: block; font-style: normal; font-weight: 700; }
/* the detail */
.igcveil { position: fixed; inset: 0; z-index: 75; background: rgba(12,12,12,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.igcsheet { background: var(--panel); border-radius: 14px; width: min(560px, 100%); max-height: 90vh; max-height: 90dvh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); font-family: var(--sans); color: var(--ink); }
.igcsh2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; }
.igcsh2 h3 { margin: 0; font-size: 17px; font-weight: 650; }
.igcx { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.igcsb { padding: 12px 16px 14px; }
.igcdet { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.igcbig { width: 120px; aspect-ratio: 4 / 5; border-radius: 8px; object-fit: cover; display: block; background: #111; }
.igcbig.igcsto { aspect-ratio: 9 / 16; }
.igcbig.igcno { display: flex; align-items: center; justify-content: center; padding: 10px; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; text-align: center; line-height: 1.25; }
.igcdi h3 { margin: 0 0 4px; font-size: 18px; font-weight: 650; line-height: 1.25; }
.igcwhen { margin: 0 0 10px; font-size: 14px; color: var(--ink2); }
.igckv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 5px 10px; margin: 0; font-size: 13px; }
.igckv dt { color: var(--muted); }
.igckv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.igccap { margin-top: 14px; padding: 10px 12px; background: var(--soft); border-radius: 8px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; max-height: 200px; overflow: auto; }
.igcsf { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.igcsf:empty { display: none; }
@media (max-width: 700px) {
  .igcbar { gap: 10px; }
  .igcnav { width: 100%; justify-content: space-between; }
  .igcm { flex: 1; font-size: 17px; min-width: 0; }
  .igcarrow { width: 40px; height: 40px; }
  .igcseg { flex: 1 1 auto; }
  .igcseg button { flex: 1; min-height: 36px; }
  .igcfil { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .igcfil::-webkit-scrollbar { display: none; }
  .igcchip, .igcdesk { flex: none; min-height: 36px; }
  .igcbtn { min-height: 40px; }
  .igcsum { gap: 4px 12px; font-size: 13px; padding: 10px 12px; }
  .igcsh { width: 100%; }
  .igcrow { grid-template-columns: auto minmax(0, 1fr); padding: 9px 10px 9px 8px; }
  .igcrow .igct { grid-row: span 2; }
  .igcrow .igcst { grid-column: 2; justify-self: start; }
  .igct.igclg { width: 48px; height: 60px; }
  .igct.igclg.igcsto { width: 46px; height: 46px; margin: 7px 1px; }
  .igcnote { margin-left: 0; width: 100%; }
  .igcveil { padding: 0; align-items: flex-end; }
  .igcsheet { width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; max-height: 92dvh; }
  .igcdet { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .igcbig { width: 92px; }
  .igcsf .igcbtn { flex: 1; }
  .igcfeed { gap: 2px; }
}
/* Newsletter → campaign: "Leave out" (people and lists that do not get this campaign) */
.nexf { position: relative; }
.nexs { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 8px 24px rgba(0,0,0,.08); overflow: hidden; }
.nexs:empty { display: none; }
.nexo { text-align: left; font: inherit; font-size: 13.5px; padding: 8px 12px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.nexo:hover, .nexo:focus-visible { background: var(--soft); outline: none; }
.nexc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nexc:empty { display: none; }
/* Newsletter audience (26 Oct 2026): the sources with the reading share drawn over the bar, the lists' reading share, a segment's rule */
.bars.nsrc .b { grid-template-columns: minmax(110px, 36%) 1fr 86px; }
.bars.nsrc .b .tr { position: relative; }
.bars.nsrc .b .tr i.rd { position: absolute; left: 0; top: 0; background: var(--ok); }
.nlists { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; }
.nlist { display: grid; grid-template-columns: minmax(0, 1fr) 70px 40px 44px; gap: 8px; align-items: center; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 12.5px; color: var(--ink); text-align: left; cursor: pointer; }
.nlist:hover span { text-decoration: underline; }
.nlist > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlist .tr { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.nlist .tr i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.nlist b { text-align: right; font-variant-numeric: tabular-nums; }
.nlist small { text-align: right; }
.modcard .nrules { color: var(--ink2); font-size: 12px; line-height: 1.45; }
.nexchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 12.5px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink2); }
.nexchip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nexchip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.nexchip button:hover { background: var(--line); color: var(--ink); }

/* People & access (people.js): the four roles, the list, the access matrix, one person in the drawer */
.pa-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.pa-role { text-align: left; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; font: inherit; color: inherit; border: 1px solid var(--line); }
.pa-role:hover { border-color: var(--ink2); }
.pa-role.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pa-role p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pa-rh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pa-rh b { font-size: 20px; font-variant-numeric: tabular-nums; }
.pa-tool { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.pa-tool .search { flex: 1; min-width: 220px; max-width: 360px; }
.pa-tool .search input { width: 100%; }
.pa-tbl td { white-space: normal; }
.pa-person { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.pa-person .av, .pa-dr .av { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 600; color: var(--ink2); flex: none; font-size: 13px; }
.pa-opens { min-width: 200px; }
.pa-tbl td.pa-mb { max-width: 220px; } .pa-tbl td.pa-mb div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-tbl td.pa-st { white-space: nowrap; } .pa-tbl td.pa-st .small { margin-top: 3px; }
tr.pa-off td { opacity: .55; }
.pa-mx table.dt th, .pa-mx table.dt td { padding: 7px 8px; }
.pa-mx th.pa-grp { text-align: center; color: var(--ink2); border-bottom: 1px solid var(--line); }
.pa-mx th.pa-c { text-align: center; white-space: normal; font-size: 11px; line-height: 1.2; min-width: 46px; padding: 7px 4px; }
.pa-mx td.pa-c { padding: 7px 4px; }
.pa-mx td.pa-c { text-align: center; color: var(--line-2, #ccc); font-size: 14px; }
.pa-mx td.pa-c.on { color: var(--ink); }
.pa-mx .pa-sep { border-left: 2px solid var(--line); }
.pa-mx td.pa-mname { position: sticky; left: 0; background: var(--panel, #fff); white-space: nowrap; z-index: 1; }
.pa-mx td.pa-mname .pill { font-size: 11px; padding: 1px 7px; }
.pa-log { padding: 4px 14px; }
.pa-lr { display: grid; grid-template-columns: 130px minmax(120px, 200px) 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pa-lr:last-child { border-bottom: 0; }
.pa-sec { margin: 0 0 16px; }
.pa-sec .sec2 { margin-top: 0; }
.pa-rolepick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pa-rolepick.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.pa-rp { text-align: left; font: inherit; color: inherit; background: var(--panel, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; cursor: pointer; }
.pa-rp:hover { border-color: var(--ink2); }
.pa-rp.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pa-one { grid-template-columns: 1fr; }
.pa-desks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pa-desks label { display: flex; gap: 5px; align-items: center; cursor: pointer; }
.pa-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
/* "View as": the two ways in the window, and the sessions under the button */
.pa-vopt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 8px; cursor: pointer; }
.pa-vopt input { margin-top: 3px; } .pa-vopt > span { display: flex; flex-direction: column; gap: 2px; }
.pa-vopt:has(input:checked) { border-color: var(--ink); }
.pa-views { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; } .pa-view .muted { margin-top: 2px; }
.pa-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink2, #333); word-break: break-all; }
.pa-sel { max-width: 100%; }
.pa-save { position: sticky; bottom: 0; background: var(--panel, #fff); padding-bottom: 6px; }
@media (max-width: 900px) { .pa-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pa-lr { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 560px) { .pa-roles, .pa-rolepick, .pa-rolepick.three { grid-template-columns: 1fr; } }
/* HQ → Mail: My mail / Team mail */
.hm-mode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.hm-mode .seg button { font-size: 13px; padding: 6px 14px; }
.hm-from select { max-width: 320px; }

/* Social media → Reddit: the calendar of posts (rdpost.js) */
.rdtop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.rdtop .sp { flex: 1; }
.rdcard { margin: 0 0 12px; }
.rdct { margin: 6px 0 4px; font-size: 18px; line-height: 1.3; }
.rdurl a { color: var(--muted); overflow-wrap: anywhere; }
.rdbody { white-space: pre-wrap; margin-top: 8px; padding: 10px 12px; background: var(--bg2, #f6f6f4); border-radius: 6px; }
.rdcom { margin-top: 12px; padding: 10px 12px; border-left: 3px solid #ff4500; background: var(--bg2, #f6f6f4); border-radius: 0 6px 6px 0; }
.rdcomt { white-space: pre-wrap; font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
.rdacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.rdacts .sp { flex: 1; }
.rdweek { padding: 6px 0; margin: 0 0 10px; }
.rdwh { padding: 6px 16px 4px; }
.rdrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 16px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; cursor: pointer; color: var(--ink); }
.rdrow:hover { background: var(--bg2, #f6f6f4); }
.rdrow.done .rdt { color: var(--muted); }
.rdd { flex: 0 0 120px; font-size: 13px; color: var(--muted); }
.rds { flex: 0 0 150px; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.rdres { white-space: nowrap; }
@media (max-width: 700px) {
  .rdrow { flex-wrap: wrap; gap: 2px 10px; }
  .rdd { flex: 0 0 auto; }
  .rds { flex: 1 1 auto; }
  .rdt { flex: 1 1 100%; order: 5; white-space: normal; }
  .rdacts .btn { flex: 1 1 auto; justify-content: center; }
}
/* board card: Drive tools (create the folder, upload, create the Doc) and the Doc inside the app */
.kbdrv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; } .kbdrv .kbhint { margin: 0; } .kbdrvst { font-size: 12px; color: var(--muted); }
.kbdrvf { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .kbdrvf:empty { display: none; }
.kbdrvmore { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--r-s); background: var(--soft); font-size: 13px; font-weight: 600; color: var(--ink2); } .kbdrvn { font-size: 12px; color: var(--muted); margin-top: 4px; } .kbdrvn:empty { display: none; }
.kbpl { display: flex; flex-direction: column; gap: 6px; } .kbplr { display: flex; align-items: center; gap: 6px; } .kbcw .kbfld .kbplr input { flex: 1; min-width: 0; }
.kbplo, .kbplx { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: #fff; color: var(--ink2); font: inherit; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; padding: 0; }
.kbplo:hover, .kbplx:hover { border-color: var(--ink); color: var(--ink); } .kbpladd { margin-top: 6px; } .kbpln { font-weight: 400; } .kbpll a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbdrvf a { display: block; width: 52px; height: 52px; border-radius: var(--r-s); overflow: hidden; background: var(--soft); text-decoration: none; }
.kbdrvf a { position: relative; } .kbdrvw { position: absolute; right: 2px; bottom: 2px; font-style: normal; font-size: 9.5px; font-weight: 700; line-height: 1; padding: 2px 4px; border-radius: 5px; background: var(--warnbg); color: #6b4000; }
.kbdrvdis { font-size: 12px; margin-top: 6px; padding: 6px 9px; border-radius: var(--r-s); background: var(--warnbg); color: #6b4000; } .kbdrvdis[hidden] { display: none; }
.kbdrvf img { width: 100%; height: 100%; object-fit: cover; display: block; } .kbdrvf span { display: block; padding: 4px; font-size: 10px; color: var(--muted); word-break: break-all; }
.kbdoc { position: fixed; inset: 0; z-index: 400; background: rgba(9, 30, 66, .54); display: flex; align-items: stretch; justify-content: center; padding: 24px; box-sizing: border-box; }
.kbdocb { background: var(--bg, #fff); border-radius: var(--r-m, 10px); width: min(1100px, 100%); display: flex; flex-direction: column; overflow: hidden; }
.kbdoch { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); } .kbdoch b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kbdoch .kbhint { margin: 0; }
.kbdocm { flex: 1; min-height: 0; overflow: auto; background: #f1f3f4; padding: 24px 16px; }
.kbdocm .rte { max-width: 816px; margin: 0 auto; border-radius: 4px; box-shadow: 0 1px 3px rgba(60, 64, 67, .2); min-height: 100%; }
.kbdocm .rte-tb { position: sticky; top: -24px; z-index: 1; }
.kbdocm .rte-ed { max-height: none; min-height: 60vh; padding: 48px 64px; font: 15px/1.6 Arial, Helvetica, sans-serif; }
.kbdocm .rte-ed h1 { font-size: 26px; margin: 0 0 12px; } .kbdocm .rte-ed h2 { font-size: 20px; margin: 18px 0 8px; } .kbdocm .rte-ed h3 { font-size: 17px; margin: 16px 0 6px; }
.kbdocm .kbdocl { max-width: 816px; margin: 0 auto; background: #fff; padding: 48px 64px; border-radius: 4px; }
.kbdocs { font-size: 12px; color: var(--muted); white-space: nowrap; } .kbdocs.bad { color: var(--ko, #c0392b); }
.kbdocc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; background: var(--kobg, #fdecea); font-size: 13px; } .kbdocc span { flex: 1; min-width: 200px; }
.kbdocf { padding: 6px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 640px) { .kbdoc { padding: 0; } .kbdocb { border-radius: 0; } .kbdoch .kbhint { display: none; } .kbdocm { padding: 0; } .kbdocm .rte-ed { padding: 20px 16px; } .kbdocm .kbdocl { padding: 20px 16px; } .kbdoch { flex-wrap: wrap; } }

/* ===================== Documents (docs.js + vendor/coldoc.js) ===================== */
.cdl { max-width: 980px; }
.cdl-h { display: flex; align-items: flex-start; gap: 16px; margin: 4px 0 16px; } .cdl-h > div { flex: 1; min-width: 0; }
.cdl-h h2 { margin: 0 0 4px; font-size: 22px; } .cdl-sub { margin: 0; color: var(--muted); font-size: 14px; }
.cdl-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; } .cdl-bar input { flex: 1; min-width: 200px; margin: 0; }
.cdl-f { display: flex; flex-wrap: wrap; gap: 6px; }
.cdl-row { display: flex; align-items: center; gap: 14px; width: 100%; box-sizing: border-box; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 8px; font: inherit; color: var(--ink); cursor: pointer; }
.cdl-row:hover { border-color: var(--ink); }
.cdl-ic { width: 34px; height: 42px; flex: none; border-radius: 4px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: #4a6ee0; font-size: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cdl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .cdl-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdl-meta { font-size: 12.5px; color: var(--muted); } .cdl-card { display: inline-block; background: var(--soft); color: var(--ink2); border-radius: 999px; padding: 1px 8px; margin-right: 6px; font-size: 11.5px; }
.cdl-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 45%; }
.cdl-tag { font-style: normal; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 3px 9px; background: var(--soft); color: var(--ink2); white-space: nowrap; }
.cdl-tag.warn { background: #fff4e5; color: #9a5b00; } .cdl-tag.ok { background: var(--okbg); color: var(--ok); }
@media (max-width: 640px) { .cdl-row { flex-wrap: wrap; } .cdl-tags { max-width: none; justify-content: flex-start; } .cdl-h { flex-direction: column; } }

/* the document over the page */
body.cdx-on { overflow: hidden; }
.cdx { position: fixed; inset: 0; z-index: 600; background: #f1f3f4; display: flex; flex-direction: column; color: #1f1f1f; font-family: var(--sans); }
.cdx-load { max-width: 816px; margin: 80px auto; width: 100%; padding: 0 16px; box-sizing: border-box; }
.cdx-err { max-width: 480px; margin: 18vh auto; background: #fff; border-radius: 12px; padding: 24px; text-align: center; } .cdx-err p { color: var(--muted); }
.cdx-top { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #fff; border-bottom: 1px solid #e3e3e3; flex-wrap: wrap; }
.cdx-back { border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink2); cursor: pointer; padding: 6px 8px; border-radius: 8px; white-space: nowrap; } .cdx-back:hover { background: var(--soft); }
.cdx-ttl { flex: 1; min-width: 160px; display: flex; flex-direction: column; } .cdx-name { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdx-sub { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); } .cdx-card { background: var(--soft); border-radius: 999px; padding: 1px 8px; color: var(--ink2); }
.cdx-st.bad { color: var(--ko); font-weight: 600; }
.cdx-live { width: 8px; height: 8px; border-radius: 50%; background: #bbb; display: inline-block; } .cdx-live.live { background: #2f9e44; box-shadow: 0 0 0 3px rgba(47,158,68,.18); } .cdx-live.offline { background: #e8590c; }
.cdx-ppl { display: flex; align-items: center; }
.cdx-av { --c: #888; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; margin-left: -6px; flex: none; }
.cdx-ppl .cdx-av:first-child { margin-left: 0; } .cdx-av.more { background: #666; } .cdx-av.me { outline: 2px solid var(--c); outline-offset: 1px; }
.cdx-mode { height: 32px; border-radius: 8px; border: 1px solid var(--line-2, #ccc); background: #fff; font: inherit; font-size: 13px; padding: 0 8px; margin: 0; width: auto; }
.cdx.sugg .cdx-mode { border-color: #2f9e44; color: #1b5e20; background: #ebfbee; }
.cdx-tb { display: flex; align-items: center; gap: 2px; padding: 5px 12px; background: #edf2fa; border-bottom: 1px solid #dfe3eb; overflow-x: auto; flex-wrap: nowrap; }
.cdx-tb button { border: 0; background: none; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 6px; font: inherit; font-size: 14px; color: #333; cursor: pointer; white-space: nowrap; }
.cdx-tb button:hover:not(:disabled) { background: rgba(0,0,0,.07); } .cdx-tb button.on { background: #d3e3fd; color: #041e49; } .cdx-tb button:disabled { opacity: .35; cursor: default; }
.cdx-dv { width: 1px; height: 20px; background: #c7c7c7; margin: 0 4px; flex: none; } .cdx-tbsp { flex: 1; } .cdx-fieldname { font-size: 12px; color: var(--muted); white-space: nowrap; padding-right: 4px; }
.cdx-pop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 14px; background: #fff; border-bottom: 1px solid #e3e3e3; }
.cdx-pop[hidden] { display: none; } .cdx-pop input, .cdx-pop textarea { flex: 1; min-width: 220px; margin: 0; } .cdx-pop .bad { border-color: var(--ko); } .cdx-cq { width: 100%; font-size: 12px; color: var(--muted); }
.cdx-main { flex: 1; min-height: 0; display: flex; }
.cdx-scroll { flex: 1; min-width: 0; overflow-y: auto; padding: 24px 16px 80px; }
.cdx-page { max-width: 816px; margin: 0 auto; background: #fff; box-shadow: 0 1px 3px rgba(60,64,67,.15), 0 4px 8px rgba(60,64,67,.06); border-radius: 2px; padding: 40px 64px 64px; box-sizing: border-box; min-height: 100%; }
.cdx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.cdx-grid .cd-field[data-field="website_title"], .cdx-grid .cd-field[data-field="instagram_title"] { grid-column: 1 / -1; }
.cdx-side { width: 330px; flex: none; background: #f8f9fa; border-left: 1px solid #e3e3e3; display: flex; flex-direction: column; min-height: 0; }
.cdx-stabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid #e3e3e3; } .cdx-stabs button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid transparent; cursor: pointer; }
.cdx-stabs button.on { color: var(--ink); border-bottom-color: var(--ink); } .cdx-stabs b { background: var(--ink); color: #fff; border-radius: 999px; font-size: 10.5px; padding: 1px 6px; margin-left: 3px; } .cdx-stabs b:empty { display: none; }
.cdx-sbody { flex: 1; overflow-y: auto; padding: 10px; }
.cdx-none { color: var(--muted); font-size: 13px; line-height: 1.5; padding: 10px 4px; }
.cdx-all { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.cdx-cm, .cdx-sg { background: #fff; border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; cursor: pointer; font-size: 13.5px; }
.cdx-cm.on { border-color: #fab005; box-shadow: 0 0 0 2px #fff3bf; } .cdx-cm.res { opacity: .7; }
.cdx-q { font-size: 12px; color: var(--muted); margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdx-ch { display: flex; align-items: center; gap: 7px; } .cdx-ch .cdx-av { width: 24px; height: 24px; margin: 0; font-size: 10px; border: 0; } .cdx-ch span { color: var(--muted); font-size: 12px; }
.cdx-msg p { margin: 4px 0 8px 31px; white-space: pre-wrap; line-height: 1.45; }
.cdx-rep textarea { width: 100%; box-sizing: border-box; margin: 2px 0 6px; min-height: 34px; font-size: 13px; }
.cdx-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cdx-ins, .cdx-del { margin: 6px 0 0; font-size: 13px; color: var(--ink2); word-break: break-word; }
.cdx-ins ins { color: #1b7d3a; text-decoration: none; background: #e6f4ea; } .cdx-del del { color: #c5221f; }
.cdx-done summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 6px 2px; }
.cdx-ver { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid #e3e3e3; border-radius: 10px; padding: 9px 12px; margin: 0 0 6px; font: inherit; cursor: pointer; }
.cdx-ver:hover { border-color: var(--ink); } .cdx-ver b { display: block; font-size: 13.5px; } .cdx-ver span { font-size: 12px; color: var(--muted); }
.cdx-foot { display: flex; gap: 16px; align-items: center; padding: 6px 16px; background: #fff; border-top: 1px solid #e3e3e3; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.cdx-miss { flex: 1; text-align: right; } .cdx-miss button { border: 0; background: none; padding: 0; font: inherit; color: #b45309; text-decoration: underline; cursor: pointer; } .cdx-miss .ok { color: var(--ok); font-weight: 600; }
.cdx-veil { position: fixed; inset: 0; z-index: 700; background: rgba(9,30,66,.45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; box-sizing: border-box; overflow-y: auto; }
.cdx-vbox { background: #fff; border-radius: 12px; width: min(860px, 100%); overflow: hidden; } .cdx-vh { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #eee; flex-wrap: wrap; } .cdx-vh b { flex: 1; } .cdx-vh span { color: var(--muted); font-size: 12px; }
.cdx-vpage { padding: 24px 40px 40px; max-height: 70vh; overflow-y: auto; } .cdx-vf { margin: 0 0 18px; } .cdx-vf label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cdx-vf img { max-width: 100%; height: auto; }
.cdx-share { background: #fff; border-radius: 12px; width: min(560px, 100%); overflow: hidden; } .cdx-shb { padding: 6px 16px 16px; }
.cdx-shf { margin: 12px 0 0; } .cdx-shf > label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; } .cdx-shf > label span { font-weight: 400; color: var(--muted); }
.cdx-row { display: flex; gap: 6px; flex-wrap: wrap; } .cdx-row input, .cdx-row select { flex: 1; min-width: 140px; margin: 0; } .cdx-row select[data-role] { flex: none; width: auto; }
.cdx-shf textarea { width: 100%; box-sizing: border-box; margin: 6px 0; }
.cdx-link { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 13px; } .cdx-link input { flex: 1; min-width: 200px; margin: 0; font-size: 12px; }
.cdx-mem { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #f0f0f0; } .cdx-mem span { flex: 1; min-width: 0; } .cdx-mem b { display: block; font-size: 14px; } .cdx-mem small { color: var(--muted); font-size: 12px; } .cdx-mem select { width: auto; margin: 0; } .cdx-mem i { font-style: normal; font-size: 12px; color: var(--muted); }
.cdx-roles { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }
.cdx-name1 { padding: 22px; text-align: center; } .cdx-name1 p { color: var(--muted); font-size: 14px; } .cdx-name1 input { width: 100%; box-sizing: border-box; margin: 6px 0 12px; } .cdx-err1 { color: var(--ko); font-size: 13px; margin-top: 8px; }
.cdx-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 900; font-size: 14px; } .cdx-toast.bad { background: var(--ko); }
@media (max-width: 1000px) { .cdx-side { position: fixed; right: 0; top: auto; bottom: 0; width: 100%; height: 38vh; border-left: 0; border-top: 1px solid #e3e3e3; z-index: 2; box-shadow: 0 -4px 12px rgba(0,0,0,.08); } .cdx-scroll { padding-bottom: 42vh; } }
@media (max-width: 640px) { .cdx-page { padding: 20px 16px 40px; } .cdx-scroll { padding: 0 0 42vh; } .cdx-grid { grid-template-columns: 1fr; } .cdx-top { gap: 6px; } .cdx-ttl { order: -1; width: 100%; flex-basis: 100%; } }

/* the fields (coldoc.js) */
.cd-field { margin: 0 0 22px; position: relative; }
.cd-field.empty { text-align: left; color: inherit; font-size: inherit; padding: 0; max-width: none; margin: 0 0 22px; } .cd-field.empty b { display: inline; font: inherit; font-weight: 700; color: inherit; margin: 0; } /* the HQ and the editors area have an empty-state .empty (centred, padded): not on a field */
.cd-fl { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; flex-wrap: wrap; }
.cd-fl label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #5f6368; } .cd-fl label i { display: none; }
.cd-field.empty .cd-fl label i { display: inline; font-style: normal; color: #b45309; text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 4px; }
.cd-hint { font-size: 12px; color: var(--muted); } .cd-who { display: flex; gap: 4px; } .cd-who i { font-style: normal; font-size: 11px; color: #fff; background: var(--c); border-radius: 4px; padding: 1px 6px; }
.cd-box .ProseMirror { outline: none; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; position: relative; font-variant-ligatures: none; }
.cd-box .ProseMirror p { margin: 0 0 .75em; } .cd-box .ProseMirror > *:last-child { margin-bottom: 0; }
.cd-line .cd-box .ProseMirror { border-bottom: 1px solid #e3e3e3; padding: 4px 0 6px; font-size: 17px; font-weight: 600; } .cd-line .cd-box .ProseMirror:focus { border-bottom-color: #1a73e8; } .cd-line .cd-box .ProseMirror p { margin: 0; }
.cd-field[data-field="website_title"] .cd-box .ProseMirror { font-size: 26px; font-weight: 700; line-height: 1.25; }
.cd-field[data-field="instagram_title"] .cd-box .ProseMirror { font-size: 19px; }
.cd-rich .cd-box .ProseMirror { min-height: 320px; font: 16px/1.7 Georgia, 'Times New Roman', serif; color: #202124; padding: 6px 0; }
.cd-rich .cd-box .ProseMirror h2 { font: 700 22px/1.3 var(--sans); margin: 1.2em 0 .5em; } .cd-rich .cd-box .ProseMirror h3 { font: 700 18px/1.35 var(--sans); margin: 1.1em 0 .4em; }
.cd-rich .cd-box .ProseMirror blockquote { border-left: 3px solid #dadce0; margin: 0 0 .8em; padding-left: 14px; color: #444; font-style: italic; }
.cd-rich .cd-box .ProseMirror ul, .cd-rich .cd-box .ProseMirror ol { padding-left: 26px; margin: 0 0 .8em; } .cd-rich .cd-box .ProseMirror li p { margin: 0 0 .25em; }
.cd-rich .cd-box .ProseMirror img { max-width: 100%; height: auto; display: block; margin: .6em 0; border-radius: 2px; } .cd-rich .cd-box .ProseMirror img.ProseMirror-selectednode { outline: 3px solid #1a73e8; }
/* 19 Oct: the article's photos can be moved, by dragging them or with ↑ ↓ (shown on the photo when the mouse is over it or it is selected) */
.cd-rich .cd-box .ProseMirror .cd-img { position: relative; margin: .6em 0; cursor: grab; } .cd-rich .cd-box .ProseMirror .cd-img img { margin: 0; max-height: 520px; width: auto; }
.cd-rich .cd-box .ProseMirror .cd-img.ProseMirror-selectednode img { outline: 3px solid #1a73e8; outline-offset: 0; }
.cd-imgbar { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; align-items: center; opacity: 0; pointer-events: none; }
.cd-img:hover .cd-imgbar, .cd-img.ProseMirror-selectednode .cd-imgbar { opacity: 1; pointer-events: auto; }
.cd-imgbar button, .cd-grip { font: 600 12.5px/1 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 600; line-height: 1; color: #fff; background: rgba(17,17,17,.82); border: 0; border-radius: 6px; padding: 7px 9px; }
.cd-imgbar button { cursor: pointer; min-width: 30px; } .cd-imgbar button:hover { background: #111; } .cd-grip { cursor: grab; user-select: none; }
.ProseMirror[contenteditable="false"] .cd-imgbar, .cd-suggesting .cd-imgbar { display: none; }
@media (hover: none) { .cd-imgbar { opacity: 1; pointer-events: auto; } .cd-grip { display: none; } }
.cd-rich .cd-box .ProseMirror hr { border: 0; border-top: 1px solid #dadce0; margin: 1.4em 0; } .cd-rich .cd-box .ProseMirror a { color: #1a73e8; }
.cd-caption .cd-box .ProseMirror { min-height: 90px; font-size: 15px; line-height: 1.55; background: #fafafa; border: 1px solid #ececec; border-radius: 10px; padding: 10px 12px; }
.cd-count { text-align: right; font-size: 11.5px; color: var(--muted); margin-top: 4px; } .cd-count.over { color: var(--ko); font-weight: 700; }
.cd-box .ProseMirror[data-empty="true"]::before { content: attr(data-ph); position: absolute; color: #9aa0a6; pointer-events: none; font-weight: 400; font-style: normal; }
.cd-caption .cd-box .ProseMirror[data-empty="true"]::before { top: 10px; left: 12px; }
.cd-lines .cd-box .ProseMirror { min-height: 64px; font-size: 14.5px; line-height: 1.6; background: #fafafa; border: 1px solid #ececec; border-radius: 10px; padding: 9px 12px; } .cd-lines .cd-box .ProseMirror p { margin: 0; }
.cd-lines .cd-box .ProseMirror[data-empty="true"]::before { top: 9px; left: 12px; }
mark.cd-slide { background: #c8f2c2; color: inherit; border-radius: 2px; padding: 0 1px; } .cdx-tb [data-c="slide"] { flex: none; padding: 0 5px; } .cdx-tb [data-c="slide"] mark { font-size: 12px; font-weight: 600; padding: 2px 5px; display: inline-block; line-height: 1.2; }
.cd-field.empty .cd-box .ProseMirror { border-color: #f5c87a; }
.ProseMirror-gapcursor { display: none; pointer-events: none; position: absolute; } .ProseMirror-gapcursor:after { content: ""; display: block; position: absolute; top: -2px; width: 20px; border-top: 1px solid black; animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; }
@keyframes ProseMirror-cursor-blink { to { visibility: hidden; } } .ProseMirror-focused .ProseMirror-gapcursor { display: block; }
/* suggestions and comments */
.cd-box ins { text-decoration: none; color: #137333; background: #e6f4ea; border-bottom: 2px solid #34a853; }
.cd-box del { color: #a50e0e; text-decoration: line-through; background: #fce8e6; }
.cd-box ins[data-inline="false"], .cd-box del[data-inline="false"] { display: block; }
.cd-box .cd-cm { background: #fff3bf; border-bottom: 2px solid #fab005; cursor: pointer; } .cd-box .cd-cm.on { background: #ffe066; }
/* other people's cursors (y-prosemirror) */
.ProseMirror-yjs-cursor { position: relative; margin-left: -1px; margin-right: -1px; border-left: 1px solid black; border-right: 1px solid black; border-color: orange; word-break: normal; pointer-events: none; }
.ProseMirror-yjs-cursor > div { position: absolute; top: -1.15em; left: -1px; font: 600 11px/1.3 var(--sans); background-color: rgb(250,129,0); user-select: none; color: #fff; padding: 0 5px; border-radius: 3px 3px 3px 0; white-space: nowrap; }
.ProseMirror-yjs-selection { opacity: .9; }
/* Documents: more */
.cdl-more { flex: none; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; } .cdl-more:hover { background: var(--soft); color: var(--ink); }
.cdl-menu, .cdx-menu { position: absolute; z-index: 800; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; min-width: 190px; display: flex; flex-direction: column; }
.cdl-menu button, .cdx-menu button, .cdx-menu a { text-align: left; border: 0; background: none; font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); text-decoration: none; }
.cdl-menu button:hover, .cdx-menu button:hover, .cdx-menu a:hover { background: var(--soft); } .cdl-menu .bad, .cdx-menu .bad { color: var(--ko); }
.cdx-menu[hidden] { display: none; } .cdx-mw { position: relative; } .cdx-menu { right: 0; top: 38px; }
.cdl-bin { cursor: default; } .cdl-del { color: var(--ko); }
.cdx-find { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: #fff; border-bottom: 1px solid #e3e3e3; flex-wrap: wrap; } .cdx-find[hidden] { display: none; }
.cdx-find input[type=search], .cdx-find input[type=text] { margin: 0; width: 200px; height: 30px; } .cdx-fn { font-size: 12px; color: var(--muted); min-width: 60px; } .cdx-fcs { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.cdx-or { font-size: 12px; color: var(--muted); }
.cdx-at { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.1); margin: 4px 0; display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; width: 100%; }
.cdx-at[hidden] { display: none; } .cdx-at button { display: flex; justify-content: space-between; gap: 8px; border: 0; background: none; font: inherit; font-size: 13px; padding: 7px 10px; text-align: left; cursor: pointer; } .cdx-at button.on, .cdx-at button:hover { background: #e8f0fe; } .cdx-at small { color: var(--muted); }
.cdx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 10px; } .cdx-stats div { background: #fff; border: 1px solid #e3e3e3; border-radius: 10px; padding: 8px; text-align: center; } .cdx-stats b { display: block; font-size: 16px; } .cdx-stats span { font-size: 11px; color: var(--muted); }
.cdx-chk { background: #fff; border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; font-size: 13px; } .cdx-chk > b { display: block; margin: 0 0 6px; } .cdx-chk i.warn { color: #b45309; font-style: normal; } .cdx-chk i.ok { color: var(--ok); font-style: normal; }
.cdx-ol { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 13px; padding: 4px 6px; border-radius: 6px; cursor: pointer; } .cdx-ol:hover { background: var(--soft); } .cdx-ol.l3 { padding-left: 18px; color: var(--ink2); }
.cdx-ig { border: 1px solid #efefef; border-radius: 8px; overflow: hidden; } .cdx-igh { display: flex; align-items: center; gap: 8px; padding: 8px; font-size: 12.5px; } .cdx-igh i { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.cdx-igt { background: #111; color: #fff; padding: 26px 14px; font: 700 18px/1.25 var(--sans); text-align: center; } .cdx-ig p { margin: 0; padding: 8px 10px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; } .cdx-igm { color: #8e8e8e; }
.cdx-ign { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.cdx-iss summary { cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 13px; } .cdx-iss summary b { background: var(--soft); border-radius: 999px; padding: 0 7px; font-size: 11px; } .cdx-iss summary .btn { margin-left: auto; }
.cdx-is { display: flex; flex-direction: column; width: 100%; text-align: left; border: 0; background: none; font: inherit; padding: 5px 6px; border-radius: 6px; cursor: pointer; } .cdx-is:hover { background: #fff8e1; } .cdx-is span { font-size: 12.5px; } .cdx-is small { font-size: 11px; color: var(--muted); }
.cdx-target { display: inline-flex; align-items: center; gap: 6px; } .cdx-tbar { width: 80px; height: 6px; border-radius: 3px; background: #e8eaed; overflow: hidden; display: inline-block; } .cdx-tbar i { display: block; height: 100%; background: #1a73e8; }
.cdx-keys { width: 100%; border-collapse: collapse; font-size: 13.5px; } .cdx-keys td { padding: 6px 4px; border-top: 1px solid #f0f0f0; } .cdx-keys kbd { background: var(--soft); border-radius: 5px; padding: 2px 6px; font: 600 12px var(--sans); white-space: nowrap; }
.cdx-print { display: none; }
@media print {
  body.cdx-printing > * { display: none !important; } body.cdx-printing > .cdx-print { display: block !important; padding: 0; font: 12pt/1.6 Georgia, serif; color: #000; }
  .cdx-print section { margin: 0 0 14pt; } .cdx-print h6 { font: 700 8pt var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #666; margin: 0 0 3pt; } .cdx-print .l { font: 700 14pt var(--sans); margin: 0; } .cdx-print img { max-width: 100%; }
}
.cdl-act { display: flex; gap: 8px; }
.cdx-namein { font: 600 16px/1.3 var(--sans); border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; margin: 0 0 0 -7px; background: transparent; color: var(--ink); width: 100%; max-width: 520px; box-sizing: border-box; height: auto; }
.cdx-namein:hover { border-color: #dadce0; } .cdx-namein:focus { border-color: #1a73e8; outline: none; background: #fff; }
.cdx-src { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 14px; background: #e8f0fe; border-bottom: 1px solid #d2e3fc; font-size: 13px; } .cdx-src[hidden] { display: none; } .cdx-src span { flex: 1; min-width: 220px; } .cdx-src.warn { background: #fff4e5; }
.cdx-imsg { font-size: 13px; margin: 12px 0 0; } .cdx-imsg.bad { color: var(--ink); background: #fff4e5; border-radius: 10px; padding: 10px 12px; } .cdx-fix p { margin: 8px 0; color: var(--ink2); } .cdx-fix input { font-size: 12px; }
.cdx-pick { background: #fff; border-radius: 12px; width: min(900px, 100%); display: flex; flex-direction: column; max-height: 86vh; overflow: hidden; }
.cdx-pscopes { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; justify-content: flex-end; } .cdx-pscopes:empty { display: none; }
.cdx-pbar { display: flex; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; } .cdx-ppath { flex: 1; font-size: 13px; color: var(--muted); } .cdx-ppath a { color: var(--ink2); } .cdx-pbar input { width: 260px; margin: 0; }
.cdx-pgrid { flex: 1; overflow-y: auto; padding: 12px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; align-content: start; }
.cdx-pgrid .skel, .cdx-pgrid .cdx-none { grid-column: 1 / -1; }
.cdx-stabs { overflow-x: auto; scrollbar-width: none; } .cdx-stabs { padding-left: 6px; padding-right: 6px; } .cdx-stabs button { white-space: nowrap; padding: 8px 6px; font-size: 12.5px; flex: none; }
.cdx-phg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .cdx-phg .cdx-pf { grid-column: 1 / -1; } .cdx-phg .cdx-pi[disabled] { opacity: .5; cursor: progress; } .cdx-sbody .cdx-ppath { font-size: 12.5px; padding: 0 4px 6px; }
.cdx-phs { margin: 0 0 14px; } .cdx-phh { display: flex; align-items: baseline; gap: 8px; padding: 6px 4px; font-size: 13px; border-top: 1px solid #eee; } .cdx-phs:first-of-type .cdx-phh { border-top: 0; } .cdx-phh b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cdx-phh span { color: var(--muted); font-size: 12px; } .cdx-phh a { margin-left: auto; font-size: 12px; color: var(--ink2); white-space: nowrap; } .cdx-phs .cdx-none { font-size: 12.5px; padding: 2px 4px 6px; }
.cdx-pf { display: flex; align-items: center; gap: 8px; border: 1px solid #e3e3e3; border-radius: 10px; background: #f8f9fa; padding: 10px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; min-width: 0; } .cdx-pf b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cdx-pf:hover { border-color: var(--ink); }
.cdx-pi { position: relative; aspect-ratio: 1; border: 2px solid transparent; border-radius: 10px; background: #f1f3f4; padding: 0; overflow: hidden; cursor: pointer; } .cdx-pi img { width: 100%; height: 100%; object-fit: cover; display: block; } .cdx-pi span { font-size: 11px; padding: 6px; word-break: break-all; color: var(--muted); }
.cdx-pi i { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: #1a73e8; color: #fff; font-style: normal; font-size: 12px; display: none; align-items: center; justify-content: center; } .cdx-pi.on { border-color: #1a73e8; } .cdx-pi.on i { display: flex; } .cdx-pi:hover { border-color: #aecbfa; }
.cdx-pfoot { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid #f0f0f0; } .cdx-pn { flex: 1; font-size: 13px; color: var(--muted); }
.cdx-pscopes .chip { border: 1px solid #dadce0; background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink2); } .cdx-pscopes .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cdl-f .chip { border: 1px solid #dadce0; background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink2); } .cdl-f .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* "View as" an admin (22 Oct): the red band on top of a tab showing an admin's COLD HQ (core.js hqViewBar) */
.hqview { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 40px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; background: var(--accent); color: #fff; padding: 0 max(16px, env(safe-area-inset-left)); font-size: 13.5px; line-height: 1.3; }
.hqview .hqv-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; animation: hqvp 1.6s ease-in-out infinite; }
@keyframes hqvp { 50% { opacity: .35; } }
.hqview .hqv-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hqview .btn { background: #fff; color: var(--ink); border: 1px solid #fff; flex: none; }
body.viewing { padding-top: 40px; }
body.viewing .side { top: 40px; height: calc(100vh - 40px); }
body.viewing .top { top: 40px; }
.hqended { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.hqended .card { max-width: 420px; background: #fff; padding: 22px; border-radius: 12px; }
.hqended h2 { margin: 0 0 8px; font-size: 19px; }
@media (max-width: 760px) { .hqview { font-size: 12.5px; } .hqview .hqv-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } body.viewing .side { top: 40px; height: calc(100dvh - 40px); } }

/* Social media → Autopilot (22 Oct) */
.apsw { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.apsw.off { opacity: .5; cursor: default; }
.aptbl tr.dim td { color: var(--muted); }
.aprow { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.aprow:first-of-type { border-top: 0; }
.aprow .g { flex: 1; min-width: 220px; }
.aprow.small { align-items: center; }
.apw { width: 150px; flex: none; color: var(--muted); }
.apmain { margin-top: 3px; max-width: 760px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .apw { width: auto; } .aprow .g { min-width: 0; } }

/* the cover of the WordPress post: photo + point kept in the cards' frame (board.js wpCover) */
.wpcv { position: fixed; inset: 0; z-index: 210; background: rgba(10,10,10,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wpcvb { background: var(--panel, #fff); color: var(--ink, #111); border-radius: 12px; width: min(1100px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.wpcvh { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; position: relative; padding-right: 36px; }
.wpcvh .kbhint { flex-basis: 100%; margin: 0; }
.wpcvx { position: absolute; right: 0; top: -4px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: inherit; }
.wpcvg { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.wpcvt { position: relative; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #eee; cursor: pointer; aspect-ratio: 4 / 5; }
.wpcvt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wpcvt.on { border-color: var(--accent, #111); box-shadow: 0 0 0 2px rgba(0,0,0,.15); }
.wpcvt span { position: absolute; left: 4px; top: 4px; font-size: 10.5px; background: rgba(0,0,0,.72); color: #fff; padding: 2px 6px; border-radius: 999px; }
.wpcvt i { position: absolute; right: 4px; bottom: 4px; font-size: 10px; font-style: normal; background: rgba(255,255,255,.85); color: #111; padding: 1px 5px; border-radius: 999px; }
.wpcve { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wpcvi { position: relative; display: inline-block; justify-self: center; cursor: crosshair; touch-action: none; user-select: none; line-height: 0; }
.wpcvi img { max-width: 100%; max-height: 56vh; border-radius: 6px; display: block; pointer-events: none; }
.wpcvd { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.55), inset 0 0 0 2px rgba(0,0,0,.35); pointer-events: none; }
.wpcvp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wpcvp figure { margin: 0; }
.wpcvp figure:first-child { grid-row: span 2; }
.wpcvp figcaption { font-size: 11.5px; color: var(--muted, #666); margin-top: 4px; }
.wpcvf { overflow: hidden; border-radius: 6px; background: #ddd; }
.wpcvf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wpcvf.r45 { aspect-ratio: 4 / 5; } .wpcvf.r32 { aspect-ratio: 3 / 2; } .wpcvf.r169 { aspect-ratio: 16 / 9; }
.wpcvfoot { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.wpcvm { margin-right: auto; font-size: 13px; } .wpcvm.ko { color: #b42318; }
@media (max-width: 720px) { .wpcve { grid-template-columns: 1fr; } .wpcvi img { max-height: 44vh; } }
/* Archive: every article of the site as a Google Doc, searchable */
.arc-head { margin: 4px 0 14px; display: grid; gap: 10px; }
.arc-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.arc-err summary { cursor: pointer; font-size: 13px; color: var(--warn, #a4520f); }
.arc-err ul { margin: 8px 0 0 18px; font-size: 13px; }
.arc-form { position: sticky; top: 0; z-index: 2; background: var(--bg, #fff); padding: 8px 0 12px; display: grid; gap: 10px; }
.arc-q { width: 100%; box-sizing: border-box; font-size: 17px; padding: 13px 16px; border: 1px solid var(--line, #d9d9d9); border-radius: 12px; }
.arc-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.arc-filters select { font-size: 13px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line, #d9d9d9); background: var(--bg, #fff); }
.arc-row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line, #e6e6e6); }
.arc-row.gone .arc-title a { color: inherit; }
.arc-img { width: 76px; height: 95px; object-fit: cover; border-radius: 8px; background: var(--soft, #f2f2f0); }
.arc-meta { font-size: 12px; color: var(--muted, #6b6b6b); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.arc-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: #fbe7d6; color: #8a3c05; }
.arc-title { margin: 4px 0 6px; font-size: 17px; line-height: 1.25; }
.arc-title a { color: inherit; text-decoration: none; }
.arc-title a:hover { text-decoration: underline; }
.arc-snip { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--text2, #333); }
.arc-snip mark { background: #fff1a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.arc-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 640px) { .arc-row { grid-template-columns: 56px 1fr; gap: 10px; } .arc-img { width: 56px; height: 70px; } .arc-q { font-size: 16px; } }
/* TikTok videos: the video on its card, with its cover until you press play (nothing of the MP4 is downloaded before) */
.tvv { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #111; border-radius: 4px; overflow: hidden; }
.tvv-v { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: transparent; }
.tvv-h { position: absolute; left: 16px; right: 16px; bottom: 72px; color: #fff; font-size: 15px; line-height: 1.35; font-weight: 600; pointer-events: none; white-space: pre-wrap; }
.tvv.has .tvv-h, .tvv.on .tvv-h { display: none; }

/* ---------- Print (printboard.js): the printed issues' board; lists and cards are the board's own (kb*) ---------- */
.pbhead { margin: 0 0 14px; }
.pbtop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pbtop .kbsel { font-weight: 600; max-width: 100%; }
.pbnums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.pbn { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--panel); }
.pbn b { display: block; font-size: 22px; letter-spacing: -.01em; }
.pbn span { font-size: 12.5px; color: var(--muted); } .pbn .bad { color: #d63621; font-style: normal; font-weight: 600; }
.pbbar { height: 5px; border-radius: 3px; background: var(--soft, #eee); margin-top: 8px; overflow: hidden; }
.pbbar i { display: block; height: 100%; background: #1f9d6a; border-radius: 3px; }
.pbbar.sm { height: 3px; margin: 2px 0 6px; }
.pbdates { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink2, #444); }
.pbk i { font-style: normal; color: var(--muted); margin-right: 3px; } .pbk.late { color: #d63621; font-weight: 600; } .pbk.soon { color: #b5760b; font-weight: 600; }
.kbk.drag { opacity: .45; } .kbl.over { outline: 2px dashed var(--ink); outline-offset: -4px; border-radius: 10px; }
.pbf { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; min-width: 0; }
.pbf input, .pbf select, .pbf textarea { font: inherit; font-size: 14px; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line-2, #ccc); border-radius: 8px; background: var(--panel); width: 100%; box-sizing: border-box; }
.pbcheck { flex-direction: row; align-items: center; gap: 8px; } .pbcheck input { width: auto; }
.pbgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.pbh { margin: 18px 0 6px; font-size: 14px; }
.pbsum { font-size: 13.5px; margin-bottom: 8px; }
.pbimg { border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 8px; background: var(--panel); }
.pbi1 { display: grid; grid-template-columns: 1fr 150px auto; gap: 6px; margin-bottom: 6px; }
.pbi2 { display: grid; grid-template-columns: 150px 1fr 140px 1.4fr; gap: 6px; }
.pbimg input, .pbimg select { font: inherit; font-size: 13.5px; padding: 6px 8px; border: 1px solid var(--line-2, #ccc); border-radius: 7px; background: var(--panel); color: var(--ink); min-width: 0; width: 100%; box-sizing: border-box; }
.pbst.s3, .pbst.s4 { background: #fff7e0; } .pbst.s5 { background: #e3f6ec; }
.pbacts { display: flex; gap: 8px; margin-bottom: 10px; }
@media (max-width: 720px) { .pbnums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pbi1 { grid-template-columns: 1fr 120px auto; } .pbi2 { grid-template-columns: 1fr 1fr; } }

.pbtabs { margin-left: auto; }
.pbtable { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.pbrow { display: grid; grid-template-columns: 2fr 1.4fr .9fr 1.3fr 1fr 1fr; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.pbth { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--soft, #f6f6f4); }
.pbtr { cursor: pointer; } .pbtr:hover { background: var(--soft, #f6f6f4); }
.pbrow small { display: block; color: var(--muted); font-size: 12px; } .pbadv b { font-weight: 600; }
.pbadst { padding: 5px 8px; font-size: 13px; width: 100%; }
.pbwarn { color: #d63621; font-weight: 600; }
@media (max-width: 720px) { .pbrow { grid-template-columns: 1fr 1fr; } .pbth { display: none; } .pbtabs { margin-left: 0; } }

/* Gift guide and Digital cover (sections.js, 7 Nov) */
.scbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.scbar .btn { margin-left: auto; }
.scsum { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.scn { display: flex; flex-direction: column; gap: 1px; }
.scn b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.scn span { font-size: 12.5px; color: var(--muted); }
.scsum .btn { margin-left: auto; }
.sccard { margin: 0 0 10px; }
.sccard .scrow { display: flex; align-items: center; gap: 10px; }
.sccard .scrow b { font-size: 15px; }
.sccard .sub { margin-top: 4px; font-size: 13.5px; color: var(--ink2, var(--muted)); }
.sccard .sub.muted { font-size: 12.5px; color: var(--muted); }
.sccard .sub a { color: inherit; text-underline-offset: 2px; }

/* Instagram text slides: the bold / italic / underline buttons above the text box (7 Nov, Penelope) */
.igtxst { display: flex; gap: 4px; margin: 6px 0 4px; }
.igtxst button { min-width: 34px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; }
.igtxst button:hover { background: var(--soft); }
.igrt { box-sizing: border-box; width: 100%; min-height: 80px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
.igrt.one { min-height: 0; white-space: nowrap; overflow: hidden; }
.igrt:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(0,0,0,.08); }
.igrt:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.igsr { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; pointer-events: none; }
.igtxst button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* Print board in the editors area (12 Nov): the few windows printboard.js needs where the HQ's own are not loaded (edprint.js) */
.pbmveil { position: fixed; inset: 0; background: rgba(12,12,12,.5); display: flex; align-items: center; justify-content: center; z-index: 70; padding: 20px; }
.pbmodal { background: #fff; border-radius: 14px; width: min(540px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.3); overflow: hidden; }
.pbmodal.wide { width: min(860px, 100%); }
.pbmh { padding: 18px 22px 0; display: flex; gap: 10px; align-items: flex-start; }
.pbmh h3 { margin: 0; font-weight: 500; font-size: 22px; line-height: 1.15; flex: 1; }
.pbmb { padding: 14px 22px; overflow-y: auto; flex: 1; }
.pbmb p { margin: 0 0 12px; white-space: pre-wrap; }
.pbmf { padding: 12px 22px 18px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid #f1f0ee; }
.pbmf .sp { flex: 1; }
.pbmf:empty { display: none; }
.pbtoasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 90; align-items: center; pointer-events: none; }
.pbtoast { pointer-events: auto; background: #111; color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: min(620px, calc(100vw - 32px)); cursor: pointer; white-space: pre-wrap; }
.pbtoast.ko { background: #b3261e; }
@media (max-width: 640px) { .pbmveil { padding: 0; align-items: flex-end; } .pbmodal { width: 100%; border-radius: 14px 14px 0 0; } }
