/* OnAirPlan Studio – Hörerpost (Seitenfach, Ankündigung) */
:root { --wa: #25a35a; --mailc: #3b82f6; }

/* Knopf oben */
.st-lp-btn { position: relative; }
.st-lp-btn.st-lp-ping { animation: st-lp-ping 1.2s ease-out 2; }
@keyframes st-lp-ping {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
    100% { box-shadow: 0 0 0 12px transparent; }
}
@media (prefers-reduced-motion: reduce) { .st-lp-btn.st-lp-ping { animation: none; } }

/* Ankündigung unter der Kopfzeile */
.st-lp-alert { display: none; }
.st-lp-alert.open {
    display: flex; align-items: center; gap: .6rem; padding: .35rem .9rem; font-size: .9rem; line-height: 1.35;
    background: color-mix(in srgb, var(--mailc) 16%, var(--panel)); border-bottom: 1px solid var(--line);
    border-left: 4px solid var(--mailc);
}
.st-lp-alert.open.wa { background: color-mix(in srgb, var(--wa) 16%, var(--panel)); border-left-color: var(--wa); }
.st-lp-alert .st-lp-al-ico { font-size: 1.05rem; }
.st-lp-alert .st-lp-al-txt { flex: 1; min-width: 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-lp-alert .st-btn { padding: .12rem .55rem; }

/* Fach */
.st-pool.st-lp { width: min(32rem, 96vw); }
.st-lp .st-pool-tabs button span { color: var(--muted); font-size: .85em; }
.st-lp-headbtns { display: flex; gap: .3rem; }
.st-lp-warn { margin: .5rem .8rem 0; padding: .4rem .6rem; border-radius: 6px; font-size: .82rem; line-height: 1.4;
    background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
#st-lp-q {
    margin: .6rem .8rem; background: var(--bg); color: var(--text); border: 1px solid var(--line);
    border-radius: 6px; padding: .45rem .6rem; font: inherit;
}
#st-lp-q[hidden], #st-lp-list[hidden], #st-lp-detail[hidden] { display: none; }

.st-lp-ch { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.25rem; padding: 0 .25rem; border-radius: 5px;
    font-size: .68rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--mailc); flex: none; }
.st-lp-ch.wa { background: var(--wa); }

/* Übersicht */
.st-lp-row { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; margin-bottom: .45rem; background: var(--bg);
    cursor: pointer; transition: border-color .12s; }
.st-lp-row:hover { border-color: var(--muted); }
.st-lp-row.unread { border-left: 4px solid var(--accent); }
.st-lp-row.done { opacity: .62; }
.st-lp-rtop { display: flex; align-items: center; gap: .45rem; }
.st-lp-rname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-lp-dot { background: var(--accent); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 800; padding: 0 .45rem; line-height: 1.3rem; }
.st-lp-demo { font-size: .68rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 0 .4rem; }
.st-lp-rwhen { color: var(--muted); font-size: .78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-lp-rprev { font-size: .86rem; margin-top: .25rem; color: var(--text); opacity: .88; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-lp-rnote { font-size: .76rem; color: var(--muted); margin-top: .2rem; font-style: italic; }
.st-lp-rstate { font-size: .74rem; color: var(--muted); margin-top: .25rem; }

/* Verlauf */
.st-lp-detail { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.st-lp-dhead { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.st-lp-back { padding: .25rem .6rem; }
.st-lp-who { flex: 1; min-width: 0; }
.st-lp-wname { display: flex; align-items: center; gap: .4rem; font-size: 1rem; }
.st-lp-wname b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-lp-waddr { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-lp-wnote { font-style: italic; }
.st-lp-edit { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 0 .2rem; }
.st-lp-edit:hover { color: var(--text); }
.st-lp-donebtn { border-color: var(--ok); color: var(--ok); }
.st-lp-del { color: var(--muted); }
.st-lp-editbox { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; padding: .55rem .8rem; border-bottom: 1px solid var(--line);
    background: var(--panel-2); }
.st-lp-editbox[hidden] { display: none; }
.st-lp-editbox label { display: flex; flex-direction: column; gap: .2rem; font-size: .75rem; color: var(--muted); flex: 1 1 11rem; }
.st-lp-editbox input { font: inherit; font-size: .9rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 6px;
    background: var(--panel); color: var(--text); }

.st-lp-msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .7rem .8rem; display: flex; flex-direction: column; gap: .55rem; }
.st-lp-msg { max-width: 92%; border-radius: 10px; padding: .5rem .65rem; border: 1px solid var(--line); background: var(--bg); }
.st-lp-msg.in { align-self: flex-start; border-top-left-radius: 3px; }
.st-lp-msg.in.new { border-color: var(--accent); }
.st-lp-msg.in:has(.st-lp-audio) { width: 92%; }
.st-lp-msg.out { align-self: flex-end; border-top-right-radius: 3px; background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.st-lp-mmeta { font-size: .74rem; color: var(--muted); margin-bottom: .2rem; }
.st-lp-mmeta b { color: var(--text); font-weight: 700; }
.st-lp-newtag { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 .4rem; font-size: .66rem; font-weight: 800; }
.st-lp-body { font-size: .95rem; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.st-lp-body a { color: var(--anmod); }
.st-lp-full { margin-top: .35rem; font-size: .8rem; color: var(--muted); }
.st-lp-full summary { cursor: pointer; }
.st-lp-full > div { margin-top: .3rem; padding-left: .5rem; border-left: 2px solid var(--line); overflow-wrap: anywhere; }
.st-lp-mnote { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.st-lp-merr { font-size: .8rem; color: var(--hot); margin-top: .3rem; }
.st-lp-tick { letter-spacing: -.15em; }
.st-lp-tick.read { color: #38bdf8; }
.st-lp-tick.fail { color: var(--hot); }
.st-lp-mact { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.st-lp-mact button, .st-lp-aact button, .st-lp-aact .st-lp-dl {
    background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: .22rem .55rem;
    font: inherit; font-size: .8rem; cursor: pointer; text-decoration: none; }
.st-lp-mact button:hover, .st-lp-aact button:hover, .st-lp-aact .st-lp-dl:hover { border-color: var(--muted); }
.st-lp-aact button.st-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-lp-stale { align-self: center; }
.st-lp-stale[hidden] { display: none; }

.st-lp-img { display: block; margin-top: .4rem; }
.st-lp-img img { max-width: 100%; max-height: 16rem; border-radius: 8px; display: block; }
.st-lp-file { font-size: .85rem; margin-top: .35rem; overflow-wrap: anywhere; }
.st-lp-file small { color: var(--muted); }
.st-lp-file.err { color: var(--warn); }

.st-lp-audio { margin-top: .45rem; padding: .45rem .5rem; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.st-lp-ahead { font-size: .82rem; margin-bottom: .3rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.st-lp-ok { color: var(--ok); font-size: .76rem; font-weight: 700; }
.st-lp-audio audio { width: 100%; height: 34px; display: block; }
.st-lp-aact { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.st-lp-box:empty { display: none; }
.st-lp-box .stf-air-f { background: var(--panel); }

/* Hörergespräch */
.st-lp-talkbox { margin-top: .5rem; padding: .5rem .6rem; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: .85rem; }
.st-lp-talkhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; }
.st-lp-seg { display: inline-flex; align-items: center; gap: .15rem; font-size: .75rem; color: var(--muted); }
.st-lp-seg button { font: inherit; font-size: .75rem; padding: .12rem .45rem; border: 1px solid var(--line); background: var(--bg);
    color: var(--text); cursor: pointer; border-radius: 5px; }
.st-lp-seg button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.st-lp-talkhint { margin: .35rem 0; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.st-lp-talkhint kbd { font: inherit; font-size: .72rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; }
.st-lp-parts { margin: .3rem 0 .4rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.st-lp-parts li { display: grid; grid-template-columns: 1.3rem auto 1fr auto auto; align-items: center; gap: .45rem; padding: .12rem 0;
    border-bottom: 1px dashed var(--line); }
.st-lp-parts li:last-child { border-bottom: none; }
.st-lp-parts li.off { opacity: .45; }
.st-lp-pn { color: var(--muted); font-size: .76rem; text-align: right; font-variant-numeric: tabular-nums; }
.st-lp-parts label { display: flex; align-items: center; gap: .25rem; white-space: nowrap; }
.st-lp-pplay, .st-lp-pjoin { font: inherit; font-size: .76rem; padding: .08rem .45rem; border: 1px solid var(--line); background: var(--bg);
    color: var(--text); border-radius: 5px; cursor: pointer; }
.st-lp-ptime { font-variant-numeric: tabular-nums; font-size: .8rem; white-space: nowrap; }
.st-lp-ptime small { color: var(--muted); }
.st-lp-gaprow { display: flex; align-items: center; gap: .35rem; color: var(--text); font-size: .82rem; }
.st-lp-parts label { font-size: .76rem; color: var(--muted); }
.st-lp-talkact { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .45rem; margin-top: .4rem; }
.st-lp-talkact label { display: flex; flex-direction: column; gap: .2rem; font-size: .75rem; color: var(--muted); }
.st-lp-talkact label:has(.st-lp-pname) { flex: 1 1 12rem; }
.st-lp-talkact input { font: inherit; font-size: .86rem; padding: .3rem .45rem; border: 1px solid var(--line); border-radius: 6px;
    background: var(--bg); color: var(--text); }
.st-lp-gap { width: 4.5rem; }

/* Antworten */
.st-lp-compose { border-top: 1px solid var(--line); padding: .55rem .8rem .7rem; display: flex; flex-direction: column; gap: .4rem; background: var(--panel); }
.st-lp-compose.off { color: var(--muted); font-size: .85rem; }
.st-lp-quick { font: inherit; font-size: .82rem; padding: .3rem .45rem; border: 1px solid var(--line); border-radius: 6px;
    background: var(--bg); color: var(--text); }
#st-lp-ta { font: inherit; font-size: .95rem; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 8px;
    background: var(--bg); color: var(--text); resize: vertical; min-height: 4.2rem; max-height: 40vh; }
#st-lp-ta:focus { outline: none; border-color: var(--accent); }
.st-lp-crow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.st-lp-donechk { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--muted); cursor: pointer; }
.st-lp-chint { flex: 1; color: var(--muted); font-size: .76rem; min-width: 8rem; }
.st-lp-cerr { margin: 0; color: var(--hot); font-size: .82rem; }
.st-lp-cerr[hidden] { display: none; }

@media (max-width: 640px) {
    .st-pool.st-lp { width: 100vw; }
    .st-lp-msg { max-width: 100%; }
}

/* ── Abgeschriebene Sprachnachrichten (4.107.0) ── */
.st-lp-tx { margin-top: .4rem; font-size: .92rem; line-height: 1.45; font-style: italic; overflow-wrap: anywhere; }
.st-lp-tx small { font-style: normal; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.st-lp-tx.wait { font-style: normal; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.st-lp-tx.wait button { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: .18rem .5rem;
    font: inherit; font-size: .78rem; cursor: pointer; }

/* ── Archiv (4.106.0) ── */
.st-lp-msg.aired { border-left: 3px solid var(--accent); }
.st-lp-msg.focus { box-shadow: 0 0 0 2px var(--accent); }
.st-lp-pin { background: none; border: none; cursor: pointer; font-size: .82rem; padding: 0 .15rem; filter: grayscale(1); opacity: .45; }
.st-lp-pin:hover { opacity: .9; }
.st-lp-pin.on { filter: none; opacity: 1; }
.st-lp-tagc { font-size: .68rem; border-radius: 999px; padding: 0 .4rem; background: var(--panel-2); color: var(--muted); margin-left: .2rem; }
.st-lp-imgact { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .35rem; }
.st-lp-imgact button { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: .18rem .5rem;
    font: inherit; font-size: .78rem; cursor: pointer; }
.st-lp-af { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .4rem; }
.st-lp-af button { font: inherit; font-size: .76rem; padding: .18rem .5rem; border: 1px solid var(--line); background: var(--bg); color: var(--text);
    border-radius: 999px; cursor: pointer; }
.st-lp-af button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.st-lp-asum { font-size: .74rem; color: var(--muted); margin: 0 0 .4rem; min-height: .8rem; }
.st-lp-arow { display: flex; gap: .55rem; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .55rem; margin-bottom: .4rem;
    background: var(--bg); cursor: pointer; }
.st-lp-arow:hover { border-color: var(--muted); }
.st-lp-arow.aired { border-left: 3px solid var(--accent); }
.st-lp-athumb { width: 3.2rem; height: 3.2rem; object-fit: cover; border-radius: 6px; flex: none; }
.st-lp-amain { flex: 1; min-width: 0; }
.st-lp-aoa { font-size: .74rem; color: var(--accent); margin-top: .2rem; }
