/* orgawork – Labor (orgawork.de/labor): zwei Hälften, je ein Rad oben links (dunkel) und oben rechts (Coral). Greift nur mit body.labor. */
@media (min-width: 761px) {
body.labor #app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.labor #side { display: none; }
/* oben bleibt Platz für die beiden Räder */
body.labor #main, body.labor #mainR { overflow-y: auto; min-width: 0; padding: 146px 24px 60px; }
body.labor #main { border-right: 1px solid var(--line); }
body.labor #main.full, body.labor #mainR.full { padding: 146px 0 0; overflow: hidden; }
body.labor #mainR { background: #fff; }
.duo-same { height: 60%; display: grid; place-content: center; text-align: center; gap: 6px; color: var(--ink-2); }

.rad { position: fixed; top: 0; width: 150px; height: 150px; z-index: 38; transition: width .32s cubic-bezier(.2, .8, .2, 1), height .32s cubic-bezier(.2, .8, .2, 1); }
.rad.open { width: 400px; height: 400px; }
.rad-l { left: 0; }
.rad-r { right: 0; }
.rad-disc { position: absolute; inset: 0; box-shadow: 0 10px 40px rgba(42, 27, 69, .18); }
.rad-l .rad-disc { background: var(--night); border-bottom-right-radius: 100%; }
.rad-r .rad-disc { background: var(--coral); border-bottom-left-radius: 100%; }
.rad-brand { position: absolute; top: 18px; display: flex; gap: 9px; align-items: center; color: #fff; text-decoration: none; z-index: 2; }
.rad-l .rad-brand { left: 18px; }
.rad-r .rad-brand { right: 18px; text-align: right; }
.rad-brand img { width: 30px; height: 30px; }
.rad-brand b { display: block; font: 600 17px/1.1 'Poppins', 'Inter', sans-serif; }
.rad-brand small { display: block; font-size: 11px; color: rgba(255, 255, 255, .7); white-space: nowrap; }
/* zugeklappt: nur die gewählte Seite */
.rad-now { position: absolute; top: 64px; color: #fff; font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; white-space: nowrap; transition: opacity .2s; }
.rad-l .rad-now { left: 20px; }
.rad-r .rad-now { right: 20px; flex-direction: row-reverse; }
.rad-now::after { content: '⟳'; font-size: 12px; opacity: .75; }
.rad-l .rad-now::after { color: var(--coral); }
.rad.open .rad-now { opacity: 0; pointer-events: none; }
/* aufgeklappt: Einträge strahlenförmig um die Ecke */
.rad-items { position: absolute; top: 0; }
.rad-l .rad-items { left: 0; }
.rad-r .rad-items { right: 0; }
.rad-it { position: absolute; top: 0; margin-top: -13px; height: 26px; display: flex; align-items: center; gap: 8px; white-space: nowrap; color: rgba(255, 255, 255, .88); text-decoration: none; font: 500 15px/1 'Poppins', 'Inter', sans-serif; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s, filter .25s, font-size .2s; }
.rad-l .rad-it { left: 0; transform-origin: 0 50%; }
.rad-r .rad-it { right: 0; transform-origin: 100% 50%; flex-direction: row-reverse; }
.rad-it .ic { width: 18px; text-align: center; opacity: .85; }
.rad-it.act { color: #fff; font-size: 18px; font-weight: 600; }
.rad-l .rad-it.act .ic { color: var(--coral); opacity: 1; }
.rad-r .rad-it.act .ic { color: var(--night); opacity: 1; }
.rad-it:hover { color: #fff; }
.rad-b { font-style: normal; color: #fff; font: 600 11px/1 'Inter', sans-serif; border-radius: 99px; padding: 3px 6px; }
.rad-l .rad-b { background: var(--coral); }
.rad-r .rad-b { background: var(--night); }
/* unten links: Konto und Helfer */
#radfoot { position: fixed; left: 0; bottom: 0; width: 64px; height: 64px; background: var(--night); border-top-right-radius: 100%; z-index: 38; color: rgba(255, 255, 255, .75); font-size: 11px; transition: width .25s, height .25s; }
#radfoot:hover { width: 160px; height: 160px; }
.rf-me { position: absolute; left: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; transition: opacity .15s; }
.rf-me i { position: absolute; right: -1px; top: -1px; width: 9px; height: 9px; border-radius: 50%; background: #f87171; border: 2px solid var(--night); }
.rf-me i.ok { background: #4ade80; }
#radfoot:hover .rf-me { opacity: 0; }
.rf-in { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; opacity: 0; pointer-events: none; transition: opacity .15s; }
#radfoot:hover .rf-in { opacity: 1; pointer-events: auto; transition-delay: .1s; }
.rf-svc.ok { color: #86efac; }
.rf-btn { background: none; border: 1px solid rgba(255, 255, 255, .3); color: #fff; border-radius: 7px; padding: 3px 9px; font: inherit; cursor: pointer; text-decoration: none; }
.rf-btn:hover { background: rgba(255, 255, 255, .1); }
}
@media (max-width: 760px) { .rad, #radfoot, #mainR { display: none; } }

/* ---------- Post als Karten (postkarten.js) ---------- */
.mk-bar { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.mk-search .inp { max-width: 420px; }
.mk-folders { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mk-folders .mv-chip b { color: var(--coral); margin-left: 3px; }
.mk-fsel { width: auto; max-width: 220px; }
.mk-list { container-type: inline-size; display: flex; flex-direction: column; gap: 10px; }
.mk { background: var(--night); border: 2px solid var(--night); border-radius: 18px; overflow: hidden; transition: box-shadow .15s; }
.mk:hover { box-shadow: 0 6px 22px rgba(42, 27, 69, .16); }
.mk.unread { background: var(--coral); border-color: var(--coral); }
.mk-top { display: flex; cursor: pointer; min-height: 96px; }
.mk-top.dragging { opacity: .5; }
.mk-main { flex: 1; min-width: 0; background: #fff; border-radius: 16px; display: flex; gap: 12px; padding: 8px 14px 8px 8px; }
.mk-av { flex: none; width: 66px; height: 78px; border-radius: 13px; background: hsl(var(--h) 45% 88%); color: hsl(var(--h) 40% 28%); display: grid; place-items: center; font: 600 22px/1 'Poppins', 'Inter', sans-serif; }
.mk-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.mk-row1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mk-name { background: var(--night); color: #fff; border-radius: 9px; padding: 4px 13px; font: 500 15.5px/1.2 'Poppins', 'Inter', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mk-more { display: flex; flex: none; }
.mk-who { background: var(--night); color: #fff; border: 2px solid #fff; border-radius: 9px; padding: 3px 9px; margin-left: -10px; font: 500 14px/1.2 'Poppins', 'Inter', sans-serif; }
.mk-who:first-child { margin-left: 0; }
.mk-area { flex: none; border: 0; border-radius: 8px; padding: 5px 14px; font: 500 13px/1.2 'Inter', sans-serif; cursor: pointer; background: var(--c); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }
.mk-area.none { background: #fff; color: var(--night); border: 2px dashed var(--night); padding: 3px 10px; text-shadow: none; }
.mk-area:hover { filter: brightness(1.05); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.mk-subj { font: 700 16px/1.3 'Inter', sans-serif; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.mk.unread .mk-subj::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-right: 7px; vertical-align: 2px; }
.mk-imp { color: var(--danger); }
.mk-att { color: var(--muted); font-weight: 400; }
.mk-n { display: inline-block; background: var(--line-2); color: var(--ink-2); border-radius: 99px; padding: 0 7px; font-size: 12px; font-weight: 600; vertical-align: 2px; }
.mk-prev { color: var(--ink-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.mk-tag { font-size: 11.5px; background: var(--panel-2, #f3f4f6); border-radius: 6px; padding: 1px 7px; color: var(--ink-2); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-tag.ok { background: #dcfce7; color: #166534; }
.mk-when { flex: none; width: 150px; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 8px 14px; gap: 1px; }
.mk-when b { font: 500 19px/1.2 'Poppins', 'Inter', sans-serif; }
.mk-ago { align-self: stretch; text-align: center; background: #fff; color: #c0392b; border-radius: 7px; padding: 4px 8px; font-size: 13px; margin-bottom: 6px; white-space: nowrap; }
/* aufgeklappt: Aktionen und Mailtext unter der Karte */
.mk-read { background: #fff; border-radius: 0 0 16px 16px; margin-top: 2px; padding: 4px 6px 6px; overflow: visible; }
.mk-read .pr-head > .row:first-child { display: none; }
.mk-read .pr-head { border: 0; }
.mk-read .pr-body { width: 100%; border: 0; min-height: 120px; }
.mk-apick { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-apick .mk-area.sel { outline: 3px solid var(--night); outline-offset: 2px; }
@container (max-width: 560px) {
  .mk-when { width: 100px; padding: 8px 10px; }
  .mk-when b { font-size: 14px; }
  .mk-ago { font-size: 11.5px; padding: 3px 4px; }
  .mk-av { width: 46px; height: 56px; font-size: 17px; }
  .mk-name { font-size: 14px; padding: 3px 9px; }
  .mk-subj { font-size: 14.5px; }
  .mk-prev { font-size: 13px; }
}

/* ---------- Verbund der Hälften (verbund.js) ---------- */
@media (min-width: 761px) {
  body.labor.duo-one #app { grid-template-columns: minmax(0, 1fr); }
  body.labor.duo-one #mainR { display: none; }
  body.labor.duo-one #main { border-right: 0; }
}
.fk-bar { display: flex; align-items: center; gap: 10px; background: var(--night); color: #fff; border-radius: 12px; padding: 10px 12px 10px 16px; margin: 4px 0 14px; }
.fk-bar .muted { color: rgba(255, 255, 255, .65); }
.fk-bar .btn { background: #fff; color: var(--night); border-color: #fff; }
.fk-bar button.btn.fk-open { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.mk-bar[hidden] { display: none; }
.fk-on { background: var(--coral-soft, #FEEDEA) !important; box-shadow: inset 4px 0 0 var(--coral); border-radius: 8px; }
.fk-mail { background: #EDE7F3 !important; box-shadow: inset 4px 0 0 var(--night); border-radius: 8px; }
.fk-drop { outline: 2px dashed var(--coral); outline-offset: -2px; background: var(--coral-soft, #FEEDEA) !important; border-radius: 8px; }
body.labor [data-open^="task:"] { cursor: pointer; }
