/* =====================================================================
   iQX home page with widgets (Klick-Dummy 20261005_Shell_Startseite_Widgets):
   6-column grid, widgets S/M/L = 1/3, 2/3, full width; app tiles S/M/L = 1/6, 1/3, 2/3.
   Edit mode with dashed outlines, edit bar per widget and gallery on the right.
   All rules are scoped under .hm / .hm-ovl so they do not leak into other pages.
   ===================================================================== */
.hm { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100%; }
.hm.editing { grid-template-columns: minmax(0, 1fr) 340px; }
.hm-main { padding: 22px 24px 32px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hm-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hm-head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.hm-head .sub { margin: 2px 0 0; color: var(--muted); }
.hm-head .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.hm-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--rad); padding: 10px 14px; }
.hm-banner > .ic { color: var(--accent); }
.hm-banner.quiet { background: var(--surface); border-color: var(--line); }
.hm-banner .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.hm-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 16px; align-items: start; }
.hm-w { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); display: flex; flex-direction: column; min-width: 0; position: relative; transition: box-shadow .3s; }
.hm-w.M { grid-column: span 4; }
.hm-w.L { grid-column: span 6; }
.hm-w.app.S { grid-column: span 1; }
.hm-w.app.M { grid-column: span 2; }
.hm-w.app.L { grid-column: span 4; }
.hm-w.flash { box-shadow: 0 0 0 3px var(--accent); }
.hm-w.dragging { opacity: .4; }
.hm-w.dropbefore { box-shadow: -6px 0 0 -2px var(--accent); }

.hm-hd { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px 6px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hm-hd h3 { margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hm-hd > .ic { color: var(--accent); }
.hm-hd .cnt { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.hm-hd .tools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hm-bd { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.hm-seg { display: inline-flex; background: var(--surface-2); border-radius: 7px; padding: 2px; flex-wrap: wrap; }
.hm-seg button { border: 0; background: transparent; min-height: 32px; min-width: 34px; padding: 0 9px; border-radius: 5px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 5px; font: inherit; font-size: 12px; cursor: pointer; }
.hm-seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.hm-seg button[disabled] { cursor: default; }
.hm-seg .ic { width: 16px; height: 16px; }
.hm-link { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; font-size: 12.5px; min-height: 32px; padding: 0 4px; white-space: nowrap; cursor: pointer; align-self: flex-start; }
.hm-link.inline { min-height: 0; padding: 0; font-size: inherit; text-decoration: underline; }
.hm-lbl { margin: 0 0 4px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.hm-muted { color: var(--muted); }
.hm-small { font-size: 12px; }
.hm-xs { font-size: 11.5px; }
.hm-sep { border-top: 1px solid var(--line); padding-top: 8px; }
.hm-note { margin: 0; background: var(--surface-2); border-radius: 6px; padding: 8px 10px; font-size: 12.5px; }
.hm .mono { font-family: var(--mono); }
.hm .iqx-btn.sm { min-height: 32px; padding: 0 10px; }
.hm .iqx-btn.full { width: 100%; justify-content: center; }

/* ---------- edit mode ---------- */
.hm-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; background: var(--accent-soft); border-radius: var(--rad) var(--rad) 0 0; border-bottom: 1px solid var(--line); }
.hm.editing .hm-w { outline: 2px dashed var(--accent); outline-offset: 3px; border-color: transparent; cursor: grab; }
.hm-edit .grip { cursor: grab; color: var(--accent); display: grid; place-items: center; width: 28px; height: 36px; }
.hm-ebtn { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; display: grid; place-items: center; color: var(--fg); cursor: pointer; padding: 0; }
.hm-ebtn[disabled] { opacity: .35; cursor: not-allowed; }
.hm-ebtn.rm { color: var(--crit); margin-left: auto; }
.hm-w.app.S .hm-edit { gap: 3px; padding: 5px; }
.hm-w.app.S .hm-edit .grip { display: none; }
.hm-w.app.S .hm-ebtn { width: 30px; height: 30px; }
.hm-w.app.S .hm-size { order: 5; width: 100%; justify-content: center; }
.hm-w.app.S .hm-size button { min-width: 0; flex: 1; padding: 0 4px; }

.hm-gal { border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; position: sticky; top: 0; max-height: calc(100vh - var(--top-h)); }
.hm-gal .hd { display: flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 52px; border-bottom: 1px solid var(--line); font-weight: 600; flex: none; }
.hm-gal .hd > .ic { color: var(--accent); }
.hm-gal .hd .hm-seg { margin-left: auto; }
.hm-gal .bd { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.hm-gi { border: 1px solid var(--line); border-radius: var(--rad); padding: 12px; display: flex; gap: 12px; align-items: flex-start; }
.hm-gi .gico { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.hm-gi .gico.lock { background: var(--surface-2); color: var(--muted); }
.hm-gi .txt { flex: 1; min-width: 0; }
.hm-gi b { display: block; font-weight: 600; }
.hm-gi p { margin: 2px 0 6px; color: var(--muted); font-size: 12px; }
.hm-gi .sz { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.hm-gi.on { background: var(--surface-2); }
.hm-gi .on-lbl { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok); font-weight: 600; min-height: 36px; white-space: nowrap; }
.hm .gsec { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 6px 0 0; }
.hm .gnote { margin: 0; color: var(--muted); font-size: 12px; }

/* ---------- projects widget ---------- */
.hm .pw-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hm .pw-q { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px; max-width: 340px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); }
.hm .pw-q:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.hm .pw-q input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--fg); flex: 1; min-width: 0; height: 100%; }
.hm .pw-q .clr { border: 0; background: none; width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); border-radius: 6px; cursor: pointer; }
.hm .pw-fbtn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.hm .pw-fbtn .n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-fg); font-size: 10.5px; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }
.hm .pw-sort { height: 40px; }
.hm .pw-cnt { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.hm .pw-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--rad); padding: 12px; }
.hm .hm-w.M .pw-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm .pw-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.hm .pw-opt { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; min-height: 34px; padding: 0 12px; font: inherit; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hm .pw-opt[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.hm .pw-opt .ic { width: 14px; height: 14px; }
.hm .pw-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hm .pw-chip { display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--accent-soft); color: var(--accent); border-radius: 999px; min-height: 30px; padding: 0 6px 0 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.hm .pw-chip .ic { width: 14px; height: 14px; }
.hm .pw-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; color: var(--muted); text-align: center; }
.hm .pw-empty b { color: var(--fg); }

.hm .wp-tiles { display: grid; gap: 12px; }
.hm .hm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.hm .hm-card:hover { border-color: var(--edge); }
.hm .ha-card .top { display: flex; align-items: flex-start; gap: 10px; }
.hm .ha-card .top .nm { min-width: 0; }
.hm .ha-card .top .nm span { font-size: 11.5px; color: var(--muted); }
.hm .ha-card .ico { width: 40px; height: 40px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.hm .ha-card h4 { margin: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.hm .ha-card .desc { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm .ha-card .top .st { margin-left: auto; }
.hm .ha-card .srcs { display: flex; gap: 6px; flex-wrap: wrap; }
.hm .ha-card .foot { margin-top: auto; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.hm .ha-card .foot .when { color: var(--muted); font-size: 12px; }
.hm .ha-card .foot .team { margin-left: auto; }
.hm .hc-proj { padding: 12px 14px; gap: 6px; }
.hm .hc-proj b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm .hc-proj .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }

.hm .st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px 2px 7px; white-space: nowrap; }
.hm .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hm .st.active { color: var(--ok); background: var(--ok-soft); }
.hm .st.setup { color: var(--ai); background: var(--ai-soft); }
.hm .st.archived { color: var(--muted); background: var(--surface-2); }
.hm .st.tpl { color: var(--info); background: var(--info-soft); }
.hm .src { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; background: var(--surface); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.hm .src b { font-weight: 600; color: var(--fg); }
.hm .src .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--muted); flex: none; }
.hm .src .dot.iquavis { background: var(--accent); }
.hm .src .dot.codebeamer { background: var(--r); }
.hm .src .dot.jira { background: var(--f); }
.hm .src .dot.sysml { background: var(--l); }
.hm .src-n { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); font-family: var(--mono); min-width: 32px; }
.hm .src-n .ic { width: 14px; height: 14px; }
.hm .team-n { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.hm .team-n .ic { width: 15px; height: 15px; }
.hm .ha-card .foot .team-n { margin-left: auto; }
.hm .team { display: flex; }
.hm .team span { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--muted); border: 2px solid var(--surface); display: grid; place-items: center; font-size: 10px; font-weight: 600; margin-left: -6px; }
.hm .team span:first-child { margin-left: 0; background: var(--accent-soft); color: var(--accent); }

.hm .hb-table { width: 100%; border-collapse: collapse; }
.hm .hb-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hm .hb-table td { padding: 0 8px; height: 54px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hm .hb-table tr:last-child td { border-bottom: 0; }
.hm .hb-table tbody tr { cursor: pointer; }
.hm .hb-table tbody tr:hover td { background: var(--surface-2); }
.hm .hb-table .tn { white-space: nowrap; color: var(--muted); font-size: 12px; }
.hm .hb-name a { color: inherit; text-decoration: none; }
.hm .hb-name b { display: block; font-weight: 600; }
.hm .hb-name span { color: var(--muted); font-size: 12px; }
.hm .hb-srcs { display: flex; gap: 4px; flex-wrap: wrap; }

.hm .wl-row { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.hm .wl-row.top { align-items: flex-start; padding: 8px 0; }
.hm .wl-row:last-child { border-bottom: 0; }
.hm .wl-row b { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm .wl-row .grow { flex: 1; min-width: 0; }
.hm .wl-row .grow b { white-space: normal; }
.hm .wl-row .when { color: var(--muted); font-size: 12px; white-space: nowrap; min-width: 90px; text-align: right; }
a.wl-row:hover b { color: var(--accent); }

/* ---------- other widgets ---------- */
.hm .wc-row { display: flex; flex-direction: column; gap: 10px; }
.hm .wc-row.wide { flex-direction: row; align-items: center; gap: 16px; }
.hm .wc-row.wide .wc-mini { flex: 1; min-width: 0; }
.hm .wc-mini { display: flex; flex-direction: column; gap: 6px; }
.hm .wc-mini h4 { margin: 0; font-size: 14px; font-weight: 600; }
.hm .hc-row { display: flex; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); }
.hm .hc-row:last-child { border-bottom: 0; }
.hm .hc-row .txt { min-width: 0; flex: 1; }
.hm .hc-row .txt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm .hc-row .txt span { color: var(--muted); font-size: 12px; }
.hm .hc-row .iqx-btn { min-height: 36px; }
.hm .tbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 8px 3px 6px; white-space: nowrap; }
.hm .tbadge .ic { width: 13px; height: 13px; }
.hm .tbadge.check { color: var(--warn); background: var(--warn-soft); }
.hm .tbadge.setup { color: var(--accent); background: var(--accent-soft); }
.hm .wch { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.hm .wch:last-child { border-bottom: 0; }
.hm .wch .when { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 11px; white-space: nowrap; padding-top: 2px; }
.hm .wch .txt { min-width: 0; }
.hm .wch .txt b { font-weight: 600; }
.hm .wch .txt span { display: block; color: var(--muted); font-size: 12px; }
.hm .wch .mk { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.hm .wch .mk .ic { width: 15px; height: 15px; }
.hm .wch .mk.job { background: var(--ai-soft); color: var(--ai); }
.hm .wch .mk.source { background: var(--surface-2); color: var(--muted); }
.hm .wjob { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hm .wjob:last-of-type { border-bottom: 0; }
.hm .wjob .r { display: flex; align-items: center; gap: 8px; }
.hm .wjob .r b { font-weight: 600; flex: 1; min-width: 0; }
.hm .prog { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.hm .prog i { display: block; height: 100%; background: var(--ai); }
.hm .rs { font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.hm .rs.review { color: var(--warn); background: var(--warn-soft); }
.hm .rs.running { color: var(--ai); background: var(--ai-soft); }
.hm .rs.done { color: var(--ok); background: var(--ok-soft); }
.hm .d-msg { display: flex; gap: 10px; align-items: flex-start; }
.hm .d-ava { width: 28px; height: 28px; border-radius: 8px; background: var(--ai-soft); color: var(--ai); display: grid; place-items: center; flex: none; }
.hm .d-bub { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hm .d-bub p { margin: 0; }
.hm .d-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.hm .d-opt { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; min-height: 36px; padding: 0 12px; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.hm .d-opt:hover { border-color: var(--ai); }
.hm .d-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--rad); padding: 0 6px 0 12px; min-height: 46px; color: var(--muted); }
.hm .d-input .send { margin-left: auto; width: 36px; height: 36px; border-radius: 6px; border: 0; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; opacity: .5; }

/* ---------- app tiles ---------- */
.hm .at { display: flex; flex-direction: column; gap: 10px; width: 100%; height: 100%; padding: 14px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; border-radius: var(--rad); position: relative; min-height: 128px; cursor: pointer; }
.hm .at:hover:not([disabled]) { background: var(--surface-2); }
.hm .at[disabled] { cursor: grab; }
.hm .at.planned .aico { background: var(--surface-2); color: var(--muted); }
.hm .aico { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.hm .aico .ic { width: 22px; height: 22px; }
.hm .at .anm { font-weight: 600; line-height: 1.3; }
.hm .at .auc { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.hm .at .abdg { position: absolute; top: 10px; right: 10px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 8px; }
.hm .at .abdg.plan { background: var(--surface-2); color: var(--muted); }
.hm .at .ahd { display: flex; align-items: center; gap: 12px; padding-right: 60px; }
.hm .afigs { display: grid; gap: 8px; }
.hm .afigs div { display: flex; flex-direction: column; background: var(--bg); border-radius: 6px; padding: 8px 10px; min-width: 0; }
.hm .afigs b { font-family: var(--mono); font-weight: 500; font-size: 18px; line-height: 1.2; }
.hm .afigs span { color: var(--muted); font-size: 11.5px; }
.hm .aruns { display: flex; flex-direction: column; }
.hm .aruns > div { display: flex; align-items: center; gap: 8px; min-height: 34px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.hm .aruns > div:last-child { border-bottom: 0; }
.hm .aruns .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm .aruns .when { margin-left: auto; color: var(--muted); font-size: 11.5px; }

/* ---------- onboarding / switch layout ---------- */
.hm-ovl { position: fixed; inset: 0; z-index: 200; background: rgba(10, 25, 30, .45); display: grid; place-items: center; padding: 24px; }
.hm-ovl .ob { width: min(760px, 100%); max-height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; overflow: hidden; }
.hm-ovl .ob-hd { padding: 20px 24px 4px; display: flex; flex-direction: column; gap: 4px; }
.hm-ovl .ob-hd .stp { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.hm-ovl .ob-hd .dots { display: flex; gap: 4px; }
.hm-ovl .ob-hd .dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--surface-2); }
.hm-ovl .ob-hd .dots i.on { background: var(--accent); }
.hm-ovl .ob-hd h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.hm-ovl .ob-hd p { margin: 0; color: var(--muted); }
.hm-ovl .ob-bd { padding: 16px 24px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.hm-ovl .ob-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--rad); background: var(--surface); color: var(--fg); font: inherit; text-align: left; width: 100%; cursor: pointer; }
.hm-ovl .ob-opt:hover { border-color: var(--edge); }
.hm-ovl .ob-opt .mk { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--edge); flex: none; display: grid; place-items: center; }
.hm-ovl .ob-opt.multi .mk { border-radius: 5px; }
.hm-ovl .ob-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.hm-ovl .ob-opt[aria-pressed="true"] .mk { border-color: var(--accent); background: var(--accent); color: var(--accent-fg); }
.hm-ovl .ob-opt .mk .ic { width: 14px; height: 14px; }
.hm-ovl .ob-opt b { font-weight: 600; display: block; }
.hm-ovl .ob-opt span.d { color: var(--muted); font-size: 12px; }
.hm-ovl .ob-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hm-ovl .ob-ft { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); }
.hm-ovl .ob-ft .right { margin-left: auto; display: flex; gap: 10px; }
.hm-ovl .ob-skip { border: 0; background: none; color: var(--muted); font: inherit; min-height: 40px; padding: 0 6px; text-decoration: underline; cursor: pointer; }
.hm-ovl .ob-lays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.hm-ovl .ob-lay { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; position: relative; cursor: pointer; }
.hm-ovl .ob-lay[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.hm-ovl .ob-lay b { font-weight: 600; }
.hm-ovl .ob-lay .d { color: var(--muted); font-size: 12px; }
.hm-ovl .ob-lay .rec { position: absolute; top: -10px; left: 12px; background: var(--accent); color: var(--accent-fg); font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px; }
.hm-ovl .ob-thumb { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: row dense; gap: 4px; background: var(--bg); border-radius: 6px; padding: 6px; }
.hm-ovl .ob-thumb > span { height: 30px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 9.5px; color: var(--muted); display: flex; align-items: center; padding: 0 5px; overflow: hidden; white-space: nowrap; }
.hm-ovl .ob-thumb .ic { width: 14px; height: 14px; }
.hm-ovl .ob-thumb > span.app { justify-content: center; background: var(--accent-soft); color: var(--accent); padding: 0 3px; }
.hm-ovl .ob-why { display: flex; gap: 8px; align-items: flex-start; background: var(--accent-soft); border-radius: var(--rad); padding: 10px 12px; }
.hm-ovl .ob-why .ic { color: var(--accent); }
.hm-ovl .ob-warn { color: var(--warn); font-size: 12.5px; }

/* ---------- smaller screens (tablet: 4 columns, Konzept 3.3) ---------- */
@media (max-width: 1100px) {
    .hm.editing { grid-template-columns: minmax(0, 1fr); }
    .hm-gal { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line); }
    .hm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hm-w.M, .hm-w.L { grid-column: span 4; }
    .hm-w.app.L { grid-column: span 4; }
    .hm .pw-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hm-main { padding: 16px; }
    .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-w, .hm-w.M, .hm-w.L, .hm-w.app.M, .hm-w.app.L { grid-column: span 2; }
    .hm-ovl .ob-lays, .hm-ovl .ob-grid2 { grid-template-columns: 1fr; }
    .hm .pw-panel { grid-template-columns: 1fr; }
}
