/* Hubble Social — opmaak van de optimalisatieronde (meldingen, zoeken, bibliotheek, planning, inzichten…) */
kbd { font: 600 10.5px ui-monospace, Consolas, monospace; padding: 1px 5px; border-radius: 5px; background: var(--sand); border: 1px solid var(--line); color: var(--ink-2); }
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.select.sm, .input.sm { height: 34px; padding: 5px 10px; font-size: 13px; width: auto; }
.chip.on { background: var(--orange-50); color: var(--orange-d); }
.chip button { margin-left: 4px; font-weight: 800; color: inherit; opacity: .6; }
.chip button:hover { opacity: 1; }
.tagline { margin: -2px 0 14px; }

/* zijbalk: zoeken + meldingen */
.nav-search { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; margin-bottom: 8px; border-radius: 12px; background: #242320; color: #8F8A80; font-size: 13px; }
.nav-search:hover { color: #fff; } .nav-search .ic { width: 16px; height: 16px; }
.nav-search kbd { margin-left: auto; background: #34322E; border-color: #3C3A35; color: #A9A499; }
.bell { position: relative; }
.bell-n { position: absolute; top: -3px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--orange); color: var(--ink); font: 800 10px var(--body); display: grid; place-items: center; border: 2px solid var(--ink); }
.nlist { display: flex; flex-direction: column; max-height: 60vh; overflow: auto; margin: 0 -8px; }
.nrow { display: flex; gap: 12px; padding: 11px 8px; border-radius: 10px; font-size: 13.5px; }
.nrow:hover { background: var(--paper); }
.nrow small { display: block; color: var(--muted-2); font-size: 11.5px; margin-top: 2px; }
.nrow.unread { background: var(--orange-50); } .nrow.unread:hover { background: var(--orange-100); }
.nic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--sand); color: var(--ink-2); flex: none; }
.nic .ic { width: 15px; height: 15px; }
.nic.k-mislukt, .nic.k-klacht { background: var(--red-50); color: var(--red); }
.nic.k-koppeling { background: var(--amber-50); color: var(--amber); }
.nic.k-controle, .nic.k-rapport { background: var(--green-50); color: var(--green); }
.nic.k-feedback, .nic.k-aanlevering, .nic.k-vermelding { background: var(--orange-50); color: var(--orange-d); }

/* snelzoeken */
.modal.pal-modal { width: min(640px, 100%); padding: 14px; align-self: start; margin-top: 10vh; }
.modal-bg:has(.pal-modal) { place-items: start center; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.pal-in .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pal-in .input { border: 0; box-shadow: none !important; font-size: 16px; padding: 12px 4px; }
.pal-res { max-height: 56vh; overflow: auto; padding: 6px 0; }
.pal-head { font: 600 10.5px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); padding: 10px 10px 4px; }
.pal-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; }
.pal-row .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.pal-row small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pal-row.is-on, .pal-row:hover { background: var(--orange-50); }
.pal-hint { margin: 6px 6px 0; }

/* labels */
.stars { color: #E8A317; letter-spacing: 1px; } .stars i { color: var(--sand-2); font-style: normal; }
.stars-sm { color: #E8A317; font-size: 11px; letter-spacing: 0; }
.prio { display: inline-block; font: 700 10.5px var(--body); padding: 2px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; }
.prio.p2 { background: var(--red-50); color: var(--red); } .prio.p1 { background: var(--amber-50); color: var(--amber); }

/* contentplanning */
.planbar { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.pb-track { height: 7px; border-radius: 9px; background: var(--sand); overflow: hidden; display: flex; gap: 2px; }
.pb-track i { display: block; height: 100%; }
.pb-track .pub { background: #E8551A; border-radius: 9px 0 0 9px; }
.pb-track .sch { background: #F5A47E; }
.planbar small { font-size: 12px; color: var(--muted); } .planbar small b { color: var(--ink); }
.planbar .hot { color: var(--orange-d); font-weight: 700; }
.plancard { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; }
.plancard > .ic { width: 22px; height: 22px; color: var(--orange-d); }
.plancard .planbar { margin-top: 4px; }

/* kalender: week, slepen */
.cal.week .cal-g { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal.week .cday { min-height: 420px; }
.cal.week .cday-h { text-transform: capitalize; }
.cchip.wk { flex-wrap: wrap; align-items: flex-start; padding: 6px 7px 7px 8px; gap: 4px 6px; }
.cchip.wk .cx { flex-basis: 100%; font-size: 12px; line-height: 1.35; }
.mthumb.xs { width: 100%; height: 64px; border-radius: 6px; flex-basis: 100%; }
.cdotrev { width: 7px; height: 7px; border-radius: 9px; background: var(--orange); flex: none; margin-left: auto; }
.cchip[draggable="true"] { cursor: grab; }
.cchip.dragging, [data-drag].dragging { opacity: .4; }
.cday.drop { background: var(--orange-50); box-shadow: inset 0 0 0 2px var(--orange); }
.undated [data-drag] { cursor: grab; }

/* tekstbalk en menu's */
.txtbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tb { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tb:hover:not(:disabled) { border-color: var(--orange); background: var(--orange-50); }
.tb:disabled { opacity: .45; cursor: not-allowed; }
.tb .ic { width: 14px; height: 14px; }
.tb.ghost { background: transparent; border-color: transparent; }
.popmenu { position: absolute; z-index: 70; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; max-width: 360px; min-width: 220px; max-height: 340px; overflow: auto; animation: fade .12s; }
.pm { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px; }
.pm:hover { background: var(--orange-50); }
.pm b { display: block; font-size: 13.5px; } .pm small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-note { padding: 8px 10px; font-size: 13px; } .pm-note p { margin: 6px 0 0; }
.emojis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.em { font-size: 20px; padding: 6px; border-radius: 8px; } .em:hover { background: var(--sand); }
.rtools { display: flex; gap: 6px; padding: 10px 16px 0; border-top: 1px solid var(--line); }
.rtools + .dreply { border-top: 0; padding-top: 8px; }

/* mediabibliotheek */
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.libgrid.pick { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-height: 55vh; overflow: auto; padding: 2px; }
.lthumb { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--sand); position: relative; }
.lthumb img, .lthumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lthumb .vbadge { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 6px; background: rgba(25,25,25,.7); color: #fff; display: grid; place-items: center; }
.lthumb .vbadge .ic { width: 13px; height: 13px; }
.libtile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; border: 2px solid transparent; text-align: left; font-size: 12px; }
.libtile:hover { background: var(--paper); }
.libtile.is-on { border-color: var(--orange); background: var(--orange-50); }
.libtile.used { opacity: .5; cursor: default; }
.libtile .tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 99px; background: rgba(255,255,255,.9); border: 1.5px solid var(--sand-2); display: grid; place-items: center; color: transparent; }
.libtile.is-on .tick { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.libtile .tick .ic { width: 13px; height: 13px; }
.ltag { position: absolute; left: 12px; top: 12px; font: 700 10px var(--body); font-style: normal; background: var(--ink); color: #fff; padding: 2px 6px; border-radius: 6px; }
.ltag.used { background: var(--green); }
.libcard { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.libcard.is-sel { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-100); }
.libsel { position: absolute; top: 16px; left: 16px; z-index: 2; width: 26px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.92); border: 1.5px solid var(--sand-2); display: grid; place-items: center; color: transparent; opacity: 0; transition: opacity .15s; }
.libcard:hover .libsel, .libcard.is-sel .libsel, .libsel:focus-visible { opacity: 1; }
.libcard.is-sel .libsel { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.libsel .ic { width: 14px; height: 14px; }
.libmeta { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; min-width: 0; }
.libmeta b { font-size: 13px; } .libmeta small { color: var(--muted); font-size: 11.5px; }
.libnote { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); background: var(--paper); border-radius: 8px; padding: 6px 8px; }
.libmeta .chips { margin-top: 4px; } .libmeta .chip { font-size: 11px; padding: 2px 7px; }
.libact { display: flex; gap: 4px; align-items: center; padding: 0 2px 2px; margin-top: auto; }
.libact .btn { flex: 1; }
.selbar { position: sticky; top: 10px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }

/* bijsnijden en cover */
.crop-r { margin-bottom: 12px; }
.cropbox { position: relative; display: inline-block; max-width: 100%; user-select: none; background: var(--sand); border-radius: 10px; overflow: hidden; }
.cropbox img { display: block; max-width: 100%; max-height: 52vh; }
.cropsel { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(25,25,25,.55); cursor: move; outline: 1px dashed rgba(255,104,44,.9); outline-offset: -5px; }
.cropsel .h { position: absolute; width: 12px; height: 12px; background: #fff; border-radius: 3px; }
.cropsel .nw { left: -7px; top: -7px; } .cropsel .se { right: -7px; bottom: -7px; }
.cover-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px; border: 1px dashed var(--sand-2); border-radius: 12px; }
.cover-row b { display: block; font-size: 13px; } .cover-row small { color: var(--muted); font-size: 12px; }
.cover-video { width: 100%; max-height: 50vh; border-radius: 12px; background: #000; display: block; margin-bottom: 10px; }
#cr { width: 100%; accent-color: var(--orange); }

/* planning in de editor */
.slots { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.chip.slot { background: var(--green-50); color: var(--green); }
.chip.slot:hover { background: var(--green); color: #fff; }

/* controle en notities */
.notes-card { margin-top: 16px; padding: 18px; }
.post-notes { max-width: 760px; margin-top: 18px; }
.post-notes .notes-card { margin-top: 0; }
.review-box { padding: 12px; border-radius: 12px; background: var(--paper); margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.rv-state { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--orange-d); }
.rv-state.ok { color: var(--green); } .rv-state .ic { width: 16px; height: 16px; }
.nthread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; max-height: 340px; overflow: auto; }
.nnote { display: flex; gap: 10px; font-size: 13px; }
.nnote p { margin: 3px 0 0; white-space: pre-wrap; word-break: break-word; }
.nnote small { color: var(--muted-2); font-size: 11.5px; }
.nnote.klant > div { background: var(--orange-50); border-radius: 10px; padding: 6px 10px; margin: -4px 0; }
.nnote mark { background: var(--orange-100); color: var(--orange-d); border-radius: 4px; padding: 0 2px; }

/* inbox */
.irow.urgent { box-shadow: inset 3px 0 0 var(--red); }
.dhead .assign { max-width: 150px; }
.review-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.rv-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rv-top b { display: block; } .rv-top small { color: var(--muted); font-size: 12px; }
.rv-stars { font-size: 20px; margin-bottom: 6px; }
.rv-rec { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; } .rv-rec.negative { color: var(--red); } .rv-rec.positive { color: var(--green); }
.rv-reply { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--orange); background: var(--paper); border-radius: 0 10px 10px 0; font-size: 13.5px; }
.rv-reply small { color: var(--muted); margin-left: 6px; font-size: 11.5px; } .rv-reply p { margin: 4px 0 0; }

/* klant: tabs, planning, sjablonen */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -8px 0 20px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab .ic { width: 16px; height: 16px; }
.tab:hover { color: var(--ink); } .tab.is-on { color: var(--ink); border-bottom-color: var(--orange); }
.card-head h3 .ic { width: 17px; height: 17px; vertical-align: -3px; color: var(--orange-d); }
.slotgrid { display: grid; gap: 6px; }
.slotday { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.slotday b { width: 28px; font-size: 13px; text-transform: capitalize; }
.heat { display: flex; flex-direction: column; gap: 3px; font-size: 11px; }
.heat-row { display: grid; grid-template-columns: 26px repeat(18, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat-row > span { color: var(--muted); text-transform: capitalize; }
.heat-row.head span { text-align: center; font-variant-numeric: tabular-nums; }
.heat-row i { display: block; aspect-ratio: 1; border-radius: 4px; background: rgba(232, 85, 26, var(--a)); }
.heat-row i.none { background: var(--sand); }
.heat-leg { display: flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--muted); }
.heat-leg i { width: 14px; height: 14px; border-radius: 4px; background: rgba(232, 85, 26, var(--a)); }
.ledit { display: flex; flex-direction: column; gap: 10px; }
.lrow { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.lrow .grow { display: flex; flex-direction: column; gap: 6px; }
.lrow .input.sm { width: 100%; font-weight: 600; }
.savebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); position: sticky; bottom: 14px; box-shadow: var(--shadow-lg); }

/* inzichten, doelen, inbox-cijfers */
.ins-row { margin-bottom: 18px; }
.insights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ins { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 9px 12px; border-radius: 10px; background: var(--paper); }
.ins > span { width: 20px; flex: none; text-align: center; font-weight: 800; }
.ins.t-good > span { color: var(--green); } .ins.t-bad > span { color: var(--red); } .ins.t-tip { background: var(--orange-50); }
.goal { padding: 8px 0 10px; } .goal + .goal { border-top: 1px dashed var(--line); }
.goal-top { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; }
.goal-top b { flex: 1; } .goal-top small { color: var(--muted); }
.goal-bar { height: 7px; border-radius: 9px; background: var(--sand); margin-top: 7px; overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: 9px; background: #E8551A; }
.goal.ok .goal-bar i { background: var(--green); } .goal.achter .goal-bar i { background: #C9A27E; }
.mini-kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.mini-kpis span { font-size: 12px; color: var(--muted); } .mini-kpis b { font: 700 22px var(--heading); } .mini-kpis small { font-size: 11px; color: var(--muted-2); }
.upl-cta { margin-bottom: 14px; } .upl-cta:hover { border-color: var(--orange); }
h2.sec .btn { margin-left: auto; }

@media (max-width: 820px) {
  .cal.week .cal-g { grid-template-columns: 1fr; } .cal.week .cday { min-height: 0; } .cal.week .cchip .cx, .cal.week .cchip .pbs { display: initial; }
  .heat-row { grid-template-columns: 22px repeat(18, minmax(0, 1fr)); gap: 2px; }
  .libgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .libsel { opacity: 1; }
  .nav-search { display: none; }
  .dhead { flex-wrap: wrap; } .dhead .assign { max-width: none; }
  .savebar { flex-direction: column; align-items: stretch; }
}
@media print { .tabs, .savebar, .selbar { display: none !important; } }
