:root {
  --ink: #12142b;
  --ink-2: #1c1f3f;
  --ink-3: #292d5a;
  --paper: #f4f5fa;
  --card: #ffffff;
  --line: #e4e6ef;
  --muted: #6b7088;
  --text: #171a2e;
  --accent: #5b4ff0;
  --accent-2: #4336d4;
  --accent-soft: #eeecfe;
  --warn: #e8892b;
  --warn-soft: #fff3e3;
  --danger: #d23f4e;
  --danger-soft: #fdeaec;
  --bubble-in: #ffffff;
  --bubble-out: #5b4ff0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 20, 43, .06), 0 6px 20px rgba(18, 20, 43, .06);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 14px;
  color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-2); }
.hidden { display: none !important; }

/* Grundlayout */
#app { display: grid; grid-template-columns: 72px 1fr; height: 100vh; }
nav.rail { background: var(--ink); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 4px; }
.rail .logo { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; color: #fff; font-weight: 700; margin-bottom: 14px; letter-spacing: -.5px; }
.rail button { position: relative; width: 52px; height: 48px; border: 0; background: transparent; color: #9ea3c7; border-radius: 12px; cursor: pointer; display: grid; place-items: center; }
.rail button:hover { background: var(--ink-2); color: #fff; }
.rail button.active { background: var(--ink-3); color: #fff; }
.rail button.active::before { content: ""; position: absolute; left: -10px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: var(--accent); }
.rail button svg { width: 22px; height: 22px; }
.rail .spacer { flex: 1; }
.rail .badge { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.rail .tip { position: absolute; left: 60px; background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 6px; white-space: nowrap; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 50; }
.rail button:hover .tip { opacity: 1; }
.conn-dot { width: 10px; height: 10px; border-radius: 50%; background: #888; margin: 10px 0 4px; }
.conn-dot.ok { background: #3ad29f; box-shadow: 0 0 0 4px rgba(58, 210, 159, .18); }
.conn-dot.bad { background: var(--warn); }

main { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.view { flex: 1; min-height: 0; display: none; }
.view.active { display: flex; }

/* Seiten mit Inhalt */
.page { flex: 1; overflow: auto; padding: 28px 36px 60px; }
.page h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.3px; }
.page .sub { color: var(--muted); margin-bottom: 22px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { margin-bottom: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 12px; font-size: 15px; }
.grid { display: grid; gap: 16px; }
.grid.kpi { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.kpi .card { padding: 16px 18px; cursor: default; }
.kpi .num { font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.kpi .lbl { color: var(--muted); font-size: 13px; }
.kpi .card.click { cursor: pointer; }
.kpi .card.click:hover { border-color: var(--accent); }

/* Formulare */
.btn { border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { border-color: #c3c8d8; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #eceef5; }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: #eceef5; color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.on { color: var(--accent); }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=tel], input[type=datetime-local], input[type=time], input[type=number], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 70px; }
label.f { display: block; font-size: 12.5px; color: var(--muted); margin: 10px 0 4px; font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row > .grow { flex: 1; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .tr { width: 38px; height: 22px; border-radius: 11px; background: #cdd1de; position: relative; transition: background .15s; flex: none; }
.switch .tr::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + .tr { background: var(--accent); }
.switch input:checked + .tr::after { left: 19px; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.days input { display: none; }
.days label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.callout { padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); border: 1px solid #f6d9b5; font-size: 13px; line-height: 1.5; }
.callout.info { background: var(--accent-soft); border-color: #d8d4fb; }

/* Tabellen */
table.t { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.t th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; padding: 10px 14px; background: #f8f9fc; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px 14px; border-bottom: 1px solid #eef0f6; vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #f9fafc; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 12px; background: #eceef5; color: var(--text); white-space: nowrap; }
.pill.green { background: var(--accent-soft); color: var(--accent-2); }
.pill.orange { background: var(--warn-soft); color: #9a5617; }
.pill.red { background: var(--danger-soft); color: var(--danger); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Chat-Ansicht */
.chats { display: grid; grid-template-columns: 340px 1fr 320px; width: 100%; height: 100%; }
.chats.no-side { grid-template-columns: 340px 1fr 0; }
.chatlist { border-right: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; min-height: 0; }
.chatlist .head { padding: 14px 14px 8px; }
.chatlist .head h2 { margin: 0 0 10px; font-size: 19px; display: flex; align-items: center; justify-content: space-between; }
.filters { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.list { flex: 1; overflow-y: auto; }
.ci { display: grid; grid-template-columns: 46px 1fr auto; gap: 11px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #eef0f6; align-items: center; }
.ci:hover { background: #f8f9fc; }
.ci.sel { background: var(--accent-soft); }
.ci .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci .pv { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ci .meta { text-align: right; font-size: 11.5px; color: var(--muted); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ci .unread { background: var(--accent); color: #fff; border-radius: 10px; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; font-weight: 600; font-size: 11.5px; }
.ci .unread.has ~ * {}
.ci.unread-row .meta .time { color: var(--accent); font-weight: 600; }
.ci .tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.ci .tags .pill { font-size: 10.5px; padding: 0 7px; }
.av { width: 46px; height: 46px; border-radius: 50%; background: #e8e6fd; color: var(--ink-3); display: grid; place-items: center; font-weight: 600; overflow: hidden; flex: none; }
.av { position: relative; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.av.sm { width: 36px; height: 36px; font-size: 13px; }
.av.lg { width: 84px; height: 84px; font-size: 28px; }

.conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f4f5fa; background-image: radial-gradient(rgba(18, 20, 43, .04) 1px, transparent 1px); background-size: 18px 18px; }
.conv .top { height: 62px; flex: none; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; gap: 12px; }
.conv .top .who { flex: 1; min-width: 0; cursor: pointer; }
.conv .top .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .top .who span { font-size: 12.5px; color: var(--muted); }
.msgs { flex: 1; overflow-y: auto; padding: 18px 6%; display: flex; flex-direction: column; gap: 3px; }
.daysep { align-self: center; background: #fff; color: var(--muted); font-size: 12px; padding: 4px 12px; border-radius: 8px; margin: 12px 0 8px; box-shadow: var(--shadow); }
.m { max-width: 68%; padding: 7px 10px 5px; border-radius: 10px; background: var(--bubble-in); align-self: flex-start; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); position: relative; word-wrap: break-word; overflow-wrap: anywhere; line-height: 1.42; }
.m.me { background: var(--bubble-out); align-self: flex-end; }
.m .au { font-size: 12px; font-weight: 600; color: var(--accent-2); margin-bottom: 2px; }
.m .tx { white-space: pre-wrap; }
.m .ft { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 2px; }
.m .ft svg { width: 16px; height: 16px; }
.m .ft .read { color: #bae6fd; }
.m .q { border-left: 3px solid var(--accent); background: rgba(0, 0, 0, .04); padding: 4px 8px; border-radius: 6px; font-size: 12.5px; margin-bottom: 4px; color: #475069; max-height: 60px; overflow: hidden; }
.m img.media, .m video.media { max-width: 320px; max-height: 320px; width: 100%; border-radius: 8px; display: block; cursor: zoom-in; background: #ddd; }
.m audio { width: 260px; }
.m .doc svg, .side .doc svg { width: 26px; height: 26px; flex: none; color: var(--accent-2); }
.m .doc { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .04); padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.m .actions { position: absolute; top: 4px; right: 4px; display: none; gap: 2px; background: inherit; border-radius: 6px; }
.m:hover .actions { display: flex; }
.m .actions button { border: 0; background: transparent; cursor: pointer; padding: 2px 4px; border-radius: 4px; color: var(--muted); font-size: 13px; }
.m .actions button:hover { background: rgba(0, 0, 0, .06); }
.m.sys { align-self: center; background: #fff7e6; font-size: 12.5px; color: #7b5a20; }
.m.hl { outline: 2px solid var(--warn); }
.conv .placeholder { flex: 1; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 30px; }
.conv .placeholder .big { font-size: 22px; color: var(--text); font-weight: 600; margin-bottom: 6px; }

.composer { flex: none; background: var(--card); border-top: 1px solid var(--line); padding: 10px 12px; position: relative; }
.composer .reply { display: flex; align-items: center; gap: 10px; background: #f2f3f8; border-left: 3px solid var(--accent); padding: 6px 10px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.composer .reply span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer .bar { display: flex; align-items: flex-end; gap: 6px; }
.composer textarea { min-height: 42px; max-height: 180px; resize: none; border-radius: 21px; padding: 10px 16px; line-height: 1.4; }
.composer .send { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.composer .send svg { width: 20px; height: 20px; }
.tpl-pop { position: absolute; bottom: 100%; left: 12px; right: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; margin-bottom: 6px; z-index: 20; }
.tpl-pop .it { padding: 9px 14px; cursor: pointer; border-bottom: 1px solid #eef0f6; }
.tpl-pop .it:hover, .tpl-pop .it.sel { background: var(--accent-soft); }
.tpl-pop .it b { font-size: 13px; }
.tpl-pop .it code { color: var(--accent-2); margin-right: 6px; }
.tpl-pop .it div { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side { border-left: 1px solid var(--line); background: var(--card); overflow-y: auto; min-width: 0; }
.side section { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.side h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.side .ident { text-align: center; }
.side .ident .nm { font-size: 17px; font-weight: 600; margin-top: 10px; }
.side .ident .nr { color: var(--muted); }
.side .kv { display: grid; grid-template-columns: 22px 1fr; gap: 6px 8px; font-size: 13px; }
.side .kv svg { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; }
.labels .lb { border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; cursor: pointer; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; background: #fff; }
.labels .lb.on { border-color: currentColor; font-weight: 600; }
.note { background: #fffbea; border: 1px solid #f3e7b5; padding: 8px 10px; border-radius: 8px; font-size: 13px; margin-top: 8px; position: relative; white-space: pre-wrap; }
.note small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
.note button { position: absolute; top: 4px; right: 4px; border: 0; background: transparent; cursor: pointer; color: var(--muted); }

/* Modal / Overlay */
.overlay { position: fixed; inset: 0; background: rgba(18, 20, 43, .45); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: var(--card); border-radius: 16px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal .mh { padding: 18px 22px 0; display: flex; align-items: center; justify-content: space-between; }
.modal .mh h2 { margin: 0; font-size: 18px; }
.modal .mb { padding: 8px 22px 18px; }
.modal .mf { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: grid; place-items: center; z-index: 120; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 6px; }

/* QR-Anmeldung */
.connect { flex: 1; display: grid; place-items: center; padding: 30px; }
.connect .card { max-width: 820px; display: grid; grid-template-columns: 1fr 340px; gap: 30px; padding: 34px; }
.connect ol { padding-left: 20px; line-height: 1.9; }
.connect .qr { width: 320px; height: 320px; display: grid; place-items: center; background: #f8f9fc; border-radius: 12px; border: 1px solid var(--line); }
.connect .qr img { width: 300px; height: 300px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Anruf-Popup */
.call-pop { position: fixed; right: 24px; bottom: 24px; width: 380px; background: var(--ink); color: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); z-index: 110; overflow: hidden; animation: pop .25s ease-out; }
@keyframes pop { from { transform: translateY(20px); opacity: 0; } }
.call-pop .ch { padding: 20px 22px 14px; display: flex; gap: 14px; align-items: center; }
.call-pop .ring { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; animation: ring 1.2s infinite; flex: none; }
.call-pop .ring svg { width: 28px; height: 28px; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 79, 240, .6); } 70% { box-shadow: 0 0 0 16px rgba(91, 79, 240, 0); } }
.call-pop .cn { font-size: 18px; font-weight: 600; }
.call-pop .cs { color: #9ea3c7; font-size: 13px; }
.call-pop .cinfo { background: var(--ink-2); margin: 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; color: #d3d6ee; line-height: 1.55; max-height: 140px; overflow-y: auto; }
.call-pop .cbtns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 14px; }
.call-pop .cbtns .btn { justify-content: center; border: 0; background: var(--ink-3); color: #fff; white-space: normal; text-align: center; font-size: 13px; text-decoration: none; line-height: 1.25; }
.call-pop .cbtns .btn.danger.solid { background: var(--danger); }
.call-pop .cbtns .btn.primary { background: var(--accent); }
.call-pop select { background: var(--ink-2); color: #fff; border-color: var(--ink-3); }
.call-pop .close { position: absolute; top: 10px; right: 10px; color: #9ea3c7; }

/* Toasts */
#toasts { position: fixed; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 380px; font-size: 13.5px; cursor: pointer; animation: pop .2s ease-out; }
.toast.err { background: var(--danger); }
.toast.warn { background: var(--warn); }

/* Login */
body.login { display: grid; place-items: center; background: var(--ink); min-height: 100vh; }
.login-card { background: var(--card); padding: 34px; border-radius: 18px; width: min(380px, 92vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.login-card h1 { margin: 12px 0 4px; font-size: 22px; }
.login-card .err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 10px; }

/* Kontakte */
.contacts-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 320px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; padding: 9px 14px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.multi { display: flex; flex-direction: column; gap: 6px; }
.multi .row input { flex: 1; }
.bc-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.bc-list label { display: flex; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #eef0f6; align-items: center; cursor: pointer; }
.progress { height: 8px; background: #e7e9f2; border-radius: 4px; overflow: hidden; }
.progress div { height: 100%; background: var(--accent); transition: width .3s; }

@media (max-width: 1200px) { .chats { grid-template-columns: 300px 1fr 0; } .chats.show-side { grid-template-columns: 300px 1fr 300px; } }
@media (max-width: 820px) {
  #app { grid-template-columns: 1fr; grid-template-rows: 1fr 58px; }
  nav.rail { flex-direction: row; order: 2; padding: 0 6px; justify-content: space-around; }
  .rail .logo, .rail .spacer, .rail .tip, .conn-dot { display: none; }
  .chats { grid-template-columns: 1fr !important; }
  .chats .conv, .chats .side { display: none; }
  .chats.open .chatlist { display: none; }
  .chats.open .conv { display: flex; }
  .connect .card { grid-template-columns: 1fr; }
  .page { padding: 18px; }
  .call-pop { left: 12px; right: 12px; width: auto; }
  #b-unread, #b-export, #b-pin, #b-side { display: none; }
  .msgs { padding: 12px 10px; }
  .m { max-width: 86%; }
}

/* Google-Assistent */
.steps { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.step { padding: 4px 12px; border-radius: 20px; background: #eceef5; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.step.on { background: var(--ink); color: #fff; }
.step.done { background: var(--accent-soft); color: var(--accent-2); }
.gbtn { background: #fff !important; color: #1f1f1f !important; border: 1px solid #dadce0 !important; font-weight: 500; padding: 9px 16px; text-decoration: none; }
.gbtn:hover { background: #f8faff !important; border-color: #c6dafc !important; }
.gsteps { padding-left: 20px; line-height: 1.6; }
.gsteps li { margin-bottom: 12px; }
details.howto { background: #f8f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 6px 0 4px; }
details.howto summary { cursor: pointer; font-weight: 600; }
details.howto ol { padding-left: 20px; line-height: 1.7; margin-bottom: 4px; }
code { background: #eef0f6; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; word-break: break-all; }

/* Team */
.uchip { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c, #6b7088); color: #fff; font-size: 9.5px; font-weight: 700; vertical-align: middle; flex: none; }
.uchip.lg { width: 34px; height: 34px; font-size: 13px; }
.rail .me-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 14px; margin-top: 6px; }
.rail .me-btn:hover { background: var(--c); filter: brightness(1.1); }
.m .ft .sentby { font-weight: 600; color: var(--accent-2); }
.seg { display: inline-flex; background: #e7e9f2; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--muted); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pill.src-g { background: #e8f0fe; color: #1a56c4; }
.pill.src-l { background: var(--accent-soft); color: var(--accent-2); }
.as-sel { width: auto; padding: 3px 6px; font-size: 12px; border-radius: 6px; max-width: 130px; }
.note small .uchip { width: 16px; height: 16px; font-size: 8px; margin-right: 2px; }

pre.wlog { font: 11.5px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; max-height: 220px; overflow: auto; margin: 8px 0 0; color: #475069; }

/* ---------- Rechtsklick-Menü ---------- */
.ctx { position: fixed; z-index: 400; min-width: 230px; max-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(18, 20, 43, .18); padding: 5px; animation: ctxin .09s ease-out; }
@keyframes ctxin { from { opacity: 0; } }
.ctx button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; padding: 7px 10px; border-radius: 7px; cursor: pointer; text-align: left; font-size: 13.5px; }
.ctx button:hover:not(:disabled) { background: var(--accent-soft); }
.ctx button:disabled { opacity: .45; cursor: default; }
.ctx button.danger { color: var(--danger); }
.ctx button.danger:hover { background: var(--danger-soft); }
.ctx .ctx-ic { width: 18px; display: grid; place-items: center; color: var(--muted); font-size: 13px; flex: none; }
.ctx .ctx-ic svg { width: 15px; height: 15px; }
.ctx .ctx-l { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx .ctx-k { color: var(--muted); font-size: 11.5px; margin-left: 12px; }
.ctx-sep { height: 1px; background: var(--line); margin: 4px 6px; }

/* ---------- Tastenkürzel ---------- */
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid #cfd3e0; border-bottom-width: 2px; border-radius: 5px; background: #f8f9fc; font: 600 11.5px/1.5 ui-monospace, Menlo, monospace; text-align: center; color: var(--text); }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 6px 28px; }
.kb-h { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.kb-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px solid #eef0f6; font-size: 13px; }
.kb-row > span:first-child { white-space: nowrap; }
.kb-row > span:last-child { text-align: right; color: #475069; }

/* ---------- Teamchat ---------- */
.tc { display: grid; grid-template-columns: 300px 1fr; width: 100%; height: 100%; }
.tc-side { border-right: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; min-height: 0; }
.tc-head { padding: 14px 14px 10px; }
.tc-head h2 { margin: 0; font-size: 19px; }
.tc-sec { padding: 12px 14px 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.tc-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f9fafc; position: relative; }
.tc-main.drop::after { content: "Dateien hier ablegen"; position: absolute; inset: 10px; border: 2px dashed var(--accent); border-radius: 14px; background: rgba(238, 236, 254, .85); display: grid; place-items: center; font-size: 18px; font-weight: 600; color: var(--accent-2); z-index: 5; }
.tc-main .top { height: 62px; flex: none; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 16px; gap: 12px; }
.tc-main .top .who { flex: 1; }
.tc-main .top .who b { display: block; }
.tc-main .top .who span { font-size: 12.5px; color: var(--muted); }
.tc-msgs { flex: 1; overflow-y: auto; padding: 14px 4% 8px; display: flex; flex-direction: column; }
.tc-msg { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; padding: 6px 8px; border-radius: 8px; position: relative; margin-top: 6px; }
.tc-msg.grouped { margin-top: 0; padding-top: 1px; }
.tc-msg:hover { background: #f1f2f8; }
.tc-av { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.tc-time-side { font-size: 10.5px; color: transparent; text-align: center; padding-top: 3px; }
.tc-msg:hover .tc-time-side { color: var(--muted); }
.tc-body { min-width: 0; line-height: 1.45; }
.tc-meta { display: flex; gap: 8px; align-items: baseline; }
.tc-meta span { font-size: 11.5px; color: var(--muted); }
.tc-body .tx { white-space: pre-wrap; overflow-wrap: anywhere; }
.tc-act { display: none; gap: 2px; align-self: start; }
.tc-msg:hover .tc-act { display: flex; }
.tc-act button { border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; padding: 1px 7px; color: var(--muted); }
.tc-q { margin: 2px 0 4px; max-width: 520px; }
.mention { background: #e8f0fe; color: #1a56c4; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.mention.me { background: var(--warn-soft); color: #9a5617; }
.tc-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tc-img img { max-width: 260px; max-height: 200px; border-radius: 8px; display: block; border: 1px solid var(--line); cursor: zoom-in; }
.tc-file { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--text); max-width: 340px; }
.tc-file:hover { border-color: var(--accent); }
.tc-file svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; }
.tc-file span { display: flex; flex-direction: column; min-width: 0; }
.tc-file b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-file small { color: var(--muted); font-size: 11.5px; }
.tc-ref { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 8px; max-width: 460px; cursor: pointer; }
.tc-ref svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; }
.tc-ref span { flex: 1; }
.tc-typing { height: 18px; padding: 0 4% 2px; font-size: 12px; color: var(--muted); font-style: italic; }
.tc-pending { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-pending:not(:empty) { margin-bottom: 8px; }
.tc-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #f8f9fc; border-radius: 10px; padding: 4px 6px 4px 8px; font-size: 12.5px; max-width: 260px; }
.tc-chip img { width: 32px; height: 32px; object-fit: cover; border-radius: 5px; }
.tc-chip svg { width: 18px; height: 18px; color: var(--accent-2); }
.tc-chip span { display: flex; flex-direction: column; overflow: hidden; }
.tc-chip span, .tc-chip small { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.tc-chip small { color: var(--muted); font-size: 11px; }
.tc-chip button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }

/* ---------- Startseite ---------- */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.mk { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.mk b { font-size: 24px; letter-spacing: -.5px; }
.mk span { font-size: 12.5px; color: var(--muted); }
.mk.click { cursor: pointer; }
.mk.click:hover { border-color: var(--accent); }
.mk.warn b { color: var(--warn); }
.mk.red b { color: var(--danger); }
.home-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-items: start; }
.home-grid .card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hsec { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
.hsec.red { color: var(--danger); }
.hsec.orange { color: #b06a1f; }
.hsec.green { color: var(--accent-2); }
.hrow { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #eef0f6; border-radius: 6px; }
.hrow:hover { background: #f8f9fc; }
.hrow.done .grow { text-decoration: line-through; color: var(--muted); }
.hrow input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ell2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.trow { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 8px; cursor: pointer; position: relative; flex-wrap: wrap; }
.trow:hover, .trow.open { background: #f8f9fc; }
.trow .tbar { flex-basis: 100%; height: 4px; background: #eceef5; border-radius: 2px; margin: 2px 0 0 44px; overflow: hidden; }
.trow .tbar div { height: 100%; background: var(--accent); }
.texp { padding: 0 6px 8px 50px; }
.h-chat { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.hc-msg { display: flex; gap: 9px; }
.hc-msg .uchip { width: 26px; height: 26px; font-size: 10px; margin-top: 2px; }
@media (max-width: 1280px) { .home-grid { grid-template-columns: 1fr 1fr; } .home-chat { grid-column: 1 / -1; } }
@media (max-width: 820px) { .home-grid { grid-template-columns: 1fr; } .tc { grid-template-columns: 1fr; } .tc-side { display: none; } }

.tc-q { border-left: 3px solid var(--accent); background: rgba(0, 0, 0, .04); padding: 4px 8px; border-radius: 6px; font-size: 12.5px; color: #475069; max-height: 60px; overflow: hidden; }

/* Markenzeichen */
.brand-sub { font-size: 12.5px; color: var(--muted); letter-spacing: .3px; margin: 2px 0 10px; }
.brand-foot { margin-top: 26px; text-align: center; font-size: 11.5px; color: #9aa0b4; letter-spacing: .3px; }
.brand-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.brand-line b { color: var(--accent-2); }
.brand-line span { text-transform: none; letter-spacing: .2px; }
.rail .logo { position: relative; cursor: default; font-size: 15px; }
.rail .logo .tip { left: 52px; top: 6px; line-height: 1.35; text-align: left; font-weight: 600; }
.rail .logo .tip small { font-weight: 400; color: #9ea3c7; }
.rail .logo:hover .tip { opacity: 1; }
.home-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1280px) { .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 820px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.trow > .grow { flex: 1 1 0; min-width: 0; }
.trow > .grow .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow > .uchip, .trow > .pill { flex: none; }

.rail .logo { background: transparent; padding: 0; overflow: visible; }
.rail .logo img { width: 42px; height: 42px; border-radius: 11px; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }

/* =====================================================================
   Smartphone
   ===================================================================== */
.mob-only, .more-btn, .mlbl { display: none !important; }
.install-banner { display: none; }
.push-state { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #eef0f6; }
.push-state span { font-size: 26px; }
.push-state.on { background: var(--accent-soft); }

@media (max-width: 820px) {
  html, body { height: 100%; overscroll-behavior: none; }
  body { -webkit-tap-highlight-color: transparent; }
  input[type=text], input[type=search], input[type=password], input[type=email], input[type=tel], input[type=datetime-local], input[type=time], input[type=number], select, textarea { font-size: 16px; }
  #app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
  main { flex: 1; min-height: 0; order: 1; }

  /* Tab-Leiste unten */
  nav.rail { order: 2; flex: none; flex-direction: row; height: calc(60px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); justify-content: space-around; align-items: center; gap: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
  .rail .logo, .rail .spacer, .rail .tip, .conn-dot, .rail .me-btn, .rail .mob-hide { display: none !important; }
  .rail button, .rail .more-btn { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: auto; flex: 1; height: 56px; border-radius: 12px; padding: 0; }
  .rail button svg { width: 22px; height: 22px; }
  .rail .mlbl { display: block !important; font-size: 10.5px; font-weight: 500; letter-spacing: .1px; }
  .rail button.active { background: transparent; color: #fff; }
  .rail button.active::before { left: 30%; right: 30%; top: 0; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .rail .badge { top: 4px; right: calc(50% - 22px); }
  .mob-only { display: grid !important; }

  /* Seiten */
  .page { padding: calc(14px + env(safe-area-inset-top)) 14px 40px; }
  .page h1 { font-size: 21px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-head > .row, .page-head > .btn, .page-head > .seg { align-self: flex-start; }
  .toolbar > * { flex: 1 1 100%; max-width: none !important; width: 100% !important; }
  .grid.two { grid-template-columns: 1fr; }
  .card { padding: 14px; }
  .brand-line { display: none; }

  /* Tabellen werden zu Karten */
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: 100%; }
  table.t { background: transparent; border: 0; }
  table.t thead { display: none; }
  table.t tr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 8px 4px; }
  table.t td { border: 0; padding: 4px 12px; }
  table.t td:empty { display: none; }
  table.t td[style*="text-align:right"] { text-align: left !important; padding-top: 8px; }
  table.t td select, table.t td input { width: 100% !important; }

  /* Fenster als Blatt von unten */
  .overlay { padding: 0; align-items: end; place-items: end stretch; }
  .modal { width: 100% !important; max-height: 92dvh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheetin .22s ease-out; }
  .modal .mf { position: sticky; bottom: 0; background: var(--card); flex-wrap: wrap; }
  .modal .mf .btn { flex: 1; justify-content: center; padding: 11px 14px; }
  @keyframes sheetin { from { transform: translateY(40px); opacity: .4; } }

  /* Kontextmenü als Bottom-Sheet */
  .ctx.ctx-sheet { position: fixed; inset: 0; min-width: 0; max-width: none; border: 0; border-radius: 0; background: rgba(18, 20, 43, .45); box-shadow: none; padding: 0; display: flex; align-items: flex-end; animation: none; }
  .ctx-sheet .sheet { width: 100%; max-height: 80dvh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 6px 8px calc(10px + env(safe-area-inset-bottom)); animation: sheetin .2s ease-out; }
  .ctx-sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #d6d9e4; margin: 6px auto 8px; }
  .ctx-sheet button { padding: 13px 12px; font-size: 15.5px; border-radius: 10px; }
  .ctx-sheet .sheet-back { font-weight: 600; color: var(--accent-2); }

  /* Toasts & Anruf */
  #toasts { top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; }
  .toast { max-width: none; }
  .call-pop { bottom: calc(70px + env(safe-area-inset-bottom)); left: 10px; right: 10px; width: auto; }

  /* Chats: Liste → Vollbild-Chat */
  .chats, .chats.no-side, .chats.show-side { display: block; position: relative; height: 100%; }
  .chatlist { height: 100%; border: 0; }
  .chatlist .head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .chats .conv, .chats .side { display: none; }
  .chats.open .chatlist { display: none; }
  .chats.open .conv { display: flex; height: 100%; }
  .conv .top { height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 6px 0 2px; gap: 8px; }
  .conv .top .icon-btn:not(#back):not(#b-more):not(#b-side) { display: none; }
  #back { font-size: 30px; line-height: 1; width: 38px; color: var(--accent-2); }
  .msgs { padding: 10px 8px; }
  .m { max-width: 86%; touch-action: pan-y; }
  .m .actions { display: none !important; }
  .composer { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .composer .bar { gap: 2px; }
  .chats.side-open .side { display: block; position: fixed; inset: 0; z-index: 160; border: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); animation: sheetin .2s ease-out; }
  .sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--card); border-bottom: 1px solid var(--line); }
  .sheet-head .icon-btn { font-size: 28px; color: var(--accent-2); }

  /* Teamchat: Kanalliste → Vollbild */
  .tc { display: block; height: 100%; }
  .tc-side { display: flex !important; height: 100%; border: 0; }
  .tc-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .tc-main { display: none; height: 100%; }
  .tc.open .tc-side { display: none !important; }
  .tc.open .tc-main { display: flex; }
  .tc-main .top { height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 2px; }
  #tc-back { font-size: 30px; line-height: 1; width: 38px; color: var(--accent-2); }
  .tc-msgs { padding: 8px 6px; }
  .tc-msg { grid-template-columns: 34px 1fr; }
  .tc-av { width: 32px; height: 32px; font-size: 12px; }
  .tc-act { display: none !important; }
  .tc-img img { max-width: 100%; }
  #tc-composer { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }

  /* Startseite */
  .kpi-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mk { padding: 10px 12px; }
  .mk b { font-size: 21px; }
  .home .page-head .btn.ghost { display: none; }

  /* Verbinden */
  .connect { padding: 14px; place-items: start stretch; }
  .connect .card { padding: 18px; gap: 16px; }
  .connect .qr { width: 100%; height: auto; min-height: 260px; }
  .connect .qr img { width: min(280px, 80vw); height: auto; }

  /* Installationshinweis */
  .install-banner { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 120; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 10px 10px 12px; box-shadow: 0 12px 40px rgba(18, 20, 43, .25); animation: sheetin .25s ease-out; }
  .install-banner img { width: 40px; height: 40px; border-radius: 10px; }
  .install-banner b { display: block; font-size: 14px; }
  .install-banner span { font-size: 12px; color: var(--muted); }
}
/* Installierte App: Statusleiste oben dunkel hinterlegen */
@media (max-width: 820px) { .standalone body { background: var(--ink); } .standalone main { background: var(--paper); } }
@media (max-width: 820px) { .conv .top #b-side { display: grid !important; } }

@media (max-width: 820px) {
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 0 14px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; flex: none; }
  .page-head .row.wrap { gap: 6px; }
}

/* =====================================================================
   Modernes Design (Business Hub 2) – eigene Farbwelt, keine WhatsApp-Optik
   ===================================================================== */
:root {
  --ink: #12142b; --ink-2: #1c1f3f; --ink-3: #292d5a;
  --paper: #f4f5fa; --card: #ffffff; --line: #e4e6ef; --muted: #6b7088; --text: #171a2e;
  --accent: #5b4ff0; --accent-2: #4336d4; --accent-soft: #eeecfe;
  --grad: linear-gradient(135deg, #7464ff 0%, #5b4ff0 55%, #4a3fe0 100%);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 20, 43, .04), 0 10px 28px -14px rgba(18, 20, 43, .16);
  font-family: "Inter", "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -.005em;
}
::selection { background: #dcd8ff; }
* { scrollbar-width: thin; scrollbar-color: #cdd1de transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdd1de; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

/* Seitenleiste */
nav.rail { background: linear-gradient(180deg, #171a37 0%, #101226 100%); }
.rail button { color: #8f94bd; border-radius: 14px; }
.rail button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.rail button.active { background: rgba(124, 108, 255, .2); color: #fff; }
.rail button.active::before { background: var(--grad); }
.rail .badge { background: #ff7a45; box-shadow: 0 0 0 2px #14162f; }

/* Karten, Knöpfe, Felder */
.card, table.t { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow); }
.btn { border-radius: 11px; font-weight: 500; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px -8px rgba(91, 79, 240, .7); }
.btn.primary:hover { background: var(--grad); filter: brightness(1.06); }
.btn.ghost:hover { background: #eef0f6; }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=tel], input[type=datetime-local], input[type=time], input[type=number], select, textarea { border-radius: 11px; background: #fbfbfe; border-color: #e1e4ee; }
input:focus, select:focus, textarea:focus { background: #fff; border-color: #8b7dff; box-shadow: 0 0 0 4px rgba(91, 79, 240, .12); }
.pill { border-radius: 8px; font-weight: 500; }
.pill.green { background: #e7f8f1; color: #0b8a5c; }
.page h1 { font-weight: 750; letter-spacing: -.02em; }
.tabs button.on { border-bottom-color: var(--accent); }
.filters button { border-radius: 9px; }
.filters button.on { background: var(--text); border-color: var(--text); }
.toast { background: #1b1e3a; border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(18, 20, 43, .5); }
.modal { border-radius: 20px; }
.overlay { background: rgba(18, 20, 43, .5); backdrop-filter: blur(3px); }
.av { background: linear-gradient(135deg, #eeecfe, #e2e6ff); color: #4336d4; }
.switch input:checked + .tr { background: var(--accent); }

/* Chatliste */
.chatlist { background: #fff; }
.ci { border-bottom-color: #f1f2f8; transition: background .12s; }
.ci.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.ci .unread { background: var(--grad); }
.ci.unread-row .meta .time { color: var(--accent); }

/* Gesprächsansicht: klare Fläche statt Muster, eigene Blasen */
.conv { background: #f6f7fb; background-image: none; }
.daysep { background: #fff; border: 1px solid var(--line); box-shadow: none; border-radius: 20px; font-weight: 500; }
.m { border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid #e8eaf2; box-shadow: none; padding: 8px 12px 6px; }
.m.me { border-radius: 18px 18px 6px 18px; background: var(--grad); color: #fff; border: 0; }
.m.me .ft { color: rgba(255, 255, 255, .78); }
.m.me .ft .read { color: #a5f3fc; }
.m.me a { color: #fff; }
.m.me .q { background: rgba(255, 255, 255, .16); border-left-color: rgba(255, 255, 255, .75); color: #f0efff; }
.m.me .doc { background: rgba(255, 255, 255, .16); color: #fff; }
.m.me .doc svg { color: #fff; }
.m.me .sentby { color: #e0dcff; }
.m.me .hint { color: rgba(255, 255, 255, .8); }
.m .q { border-left-color: var(--accent); background: #f3f2fe; border-radius: 8px; }
.m.me .actions { background: #4a3fe0; }
.m.me .actions button { color: #fff; }
.m .actions { border-radius: 8px; }
.m.sys { background: #fff7e6; border-color: #f6e2bd; border-radius: 12px; }
.composer { border-top: 1px solid var(--line); }
.composer textarea { border-radius: 14px; background: #f4f5fa; border-color: transparent; }
.composer textarea:focus { background: #fff; }
.composer .send { border-radius: 13px; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(91, 79, 240, .7); }
.composer .reply { border-left-color: var(--accent); background: #f3f2fe; }
.side { background: #fff; }
.side h4 { letter-spacing: .06em; }
.labels .lb { border-radius: 9px; }

/* Kundenkarte: einklappbarer Bereich */
.side section.fold { padding-top: 10px; padding-bottom: 10px; }
.side details summary { list-style: none; cursor: pointer; }
.side details summary::-webkit-details-marker { display: none; }
.side details summary h4 { margin: 4px 0; justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
.side details summary h4::before { content: "›"; display: inline-block; width: 12px; font-size: 16px; color: var(--muted); transition: transform .15s; }
.side details[open] summary h4::before { transform: rotate(90deg); }
.side details summary h4 .pill { text-transform: none; letter-spacing: 0; font-size: 11px; }
.side details[open] summary { margin-bottom: 8px; }

/* Teamchat */
.tc-main { background: #f6f7fb; }
.tc-msg:hover { background: #eef0f7; }
.tc-file { border-radius: 12px; }
.tc-ref { border-left-color: var(--accent); background: #f3f2fe; }
.call-pop { background: linear-gradient(160deg, #1d2046, #12142b); }
.call-pop .ring { background: var(--grad); }
.call-pop .cbtns .btn.primary { background: var(--grad); }
.ctx { border-radius: 14px; }
.ctx button:hover:not(:disabled) { background: #f1f0fe; }

/* Anmeldung */
body.login { background: radial-gradient(1200px 600px at 20% 0%, #2a2c66 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #3b2a7a 0%, transparent 55%), #101226; }
.login-card { border-radius: 22px; }

/* ---------- Startseite mit Kacheln ---------- */
.home2 { max-width: 1480px; }
.h2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.h2-head h1 { font-size: 28px; margin: 2px 0 4px; }
.h2-date { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; }
.h2-head .sub { margin: 0; display: flex; align-items: center; gap: 7px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); display: inline-block; }
.live-dot.off { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); }
.h2-hint { margin: -6px 0 14px; padding: 10px 14px; border-radius: 12px; background: #f1f0fe; color: #4336d4; font-size: 13px; }
.wgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; grid-auto-flow: row dense; align-items: start; }
.w { grid-column: span 6; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px 18px; min-width: 0; position: relative; transition: box-shadow .15s; }
.w-s { grid-column: span 4; } .w-m { grid-column: span 6; } .w-l { grid-column: span 8; } .w-xl { grid-column: span 12; }
.w-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 30px; }
.w-head h3 { margin: 0; font-size: 14.5px; font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); flex: none; }
.w-ic svg { width: 16px; height: 16px; }
.w-extra { display: flex; align-items: center; gap: 6px; }
.chip { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--tone-soft); color: var(--tone); }
.chip.red { background: #fdeaec; color: #d23f4e; }
.w-handle { cursor: grab; color: #b3b7cc; font-size: 16px; line-height: 1; padding: 4px 2px; margin-left: -6px; opacity: 0; transition: opacity .15s; touch-action: none; user-select: none; }
.w:hover .w-handle, .editing .w-handle { opacity: 1; }
.w-ctrl { display: flex; gap: 4px; }
.w-ctrl button { border: 1px solid var(--line); background: #fff; border-radius: 8px; height: 26px; min-width: 30px; padding: 0 6px; cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--muted); display: grid; place-items: center; }
.w-ctrl button:hover { border-color: var(--accent); color: var(--accent); }
.w-ctrl svg { width: 13px; height: 13px; }
.editing .w { outline: 2px dashed rgba(91, 79, 240, .3); outline-offset: 2px; cursor: grab; }
.editing .w:hover { outline-color: rgba(91, 79, 240, .7); }
.w-placeholder { opacity: .35; outline: 2px dashed var(--accent) !important; box-shadow: none; }
.w-ghost { position: fixed; top: 0; left: 0; z-index: 600; pointer-events: none; opacity: .96; box-shadow: 0 30px 60px -20px rgba(18, 20, 43, .45); outline: 2px solid var(--accent); transition: none; }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none !important; }
.w-empty { color: var(--muted); font-size: 13.5px; padding: 18px 4px; text-align: center; }
.w-input input { flex: 1; }
.w-more { margin-top: 8px; width: 100%; justify-content: center; }
/* KPI-Kacheln */
.w-kpi { padding-bottom: 14px; }
.w-kpi .w-head { margin-bottom: 4px; }
.w-kpi .w-head h3 { font-size: 13px; font-weight: 600; color: var(--muted); white-space: normal; line-height: 1.3; }
.kpi2 { display: flex; align-items: baseline; gap: 10px; border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left; width: 100%; }
.kpi2 b { font-size: 38px; font-weight: 750; letter-spacing: -.03em; color: var(--text); line-height: 1.1; }
.kpi2 span { color: var(--muted); font-size: 13px; }
.w-kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--tone-soft); opacity: .6; pointer-events: none; }
.w-kpi > * { position: relative; z-index: 1; }
/* Farbtöne */
.tone-indigo { --tone: #5b4ff0; --tone-soft: #eeecfe; }
.tone-violet { --tone: #8b5cf6; --tone-soft: #f3edff; }
.tone-amber { --tone: #d97706; --tone-soft: #fff3e0; }
.tone-green { --tone: #0d9467; --tone-soft: #e6f7f0; }
.tone-sky { --tone: #0284c7; --tone-soft: #e5f4fc; }
.tone-rose { --tone: #e11d63; --tone-soft: #fde8ef; }
/* Neue WhatsApp-Nachrichten */
.wn-list { display: flex; flex-direction: column; gap: 2px; }
.wn { display: flex; align-items: center; gap: 11px; padding: 8px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; text-align: left; width: 100%; }
.wn:hover { background: #f4f5fa; }
.wn .av { width: 38px; height: 38px; font-size: 13px; }
.wn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wn-top { display: flex; justify-content: space-between; gap: 8px; }
.wn-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wn-top small { color: var(--accent); font-weight: 600; font-size: 11.5px; flex: none; }
.wn-prev { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-count { min-width: 22px; height: 22px; border-radius: 11px; padding: 0 7px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
/* Pipeline */
.pipe { display: flex; flex-direction: column; gap: 9px; }
.pipe-row { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; }
.pipe-bar { height: 8px; border-radius: 6px; background: #eef0f6; overflow: hidden; }
.pipe-bar div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #10b981, #34d399); }
.pipe-row b { text-align: right; }
.hrow.click { cursor: pointer; }
.trow .tbar div { background: var(--grad); }
.h-chat { max-height: 300px; }
@media (max-width: 1180px) { .w-s { grid-column: span 6; } .w-m, .w-l { grid-column: span 6; } .w-xl { grid-column: span 12; } }
@media (max-width: 980px) { .w-m, .w-l { grid-column: span 12; } }
@media (max-width: 820px) {
  .wgrid { gap: 10px; }
  .w { grid-column: span 12 !important; padding: 14px; border-radius: 16px; }
  .w-kpi { grid-column: span 6 !important; }
  .kpi2 { flex-direction: column; gap: 0; }
  .kpi2 b { font-size: 30px; }
  .w-handle { opacity: 1; font-size: 18px; padding: 6px 4px; }
  .h2-head h1 { font-size: 23px; }
  .hide-mobile { display: none !important; }
  .h2-tools { width: 100%; }
}
.w-kpi { overflow: hidden; }
@media (max-width: 820px) {
  .w-kpi .w-ic { display: none; }
  .w-kpi .w-head { padding-right: 18px; min-height: 0; }
  .w-kpi .w-handle { position: absolute; top: 8px; right: 6px; margin: 0; }
  .w-kpi .w-head h3 { font-size: 12.5px; overflow: visible; text-overflow: clip; hyphens: auto; -webkit-hyphens: auto; }
}
.w-kpi .w-head { z-index: 2; }
.w-handle { position: relative; z-index: 3; }
@media (max-width: 820px) { .w-kpi .w-handle { position: absolute; padding: 8px 6px; top: 2px; right: 0; } }

.toast.wa { background: #fff; color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--accent); box-shadow: 0 16px 40px -14px rgba(18, 20, 43, .35); }
.toast.wa:hover { border-left-color: var(--accent-2); }

/* ---------- Kalender-Kachel ---------- */
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 17px; }
.icon-btn.sm svg { width: 15px; height: 15px; }
.w[data-w="calendar"] .w-extra { gap: 2px; }
.cal-month { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: -2px 0 8px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; }
.cal-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 0 6px; border: 1px solid transparent; border-radius: 12px; background: #f6f7fb; cursor: pointer; font: inherit; color: var(--text); transition: background .12s, border-color .12s; }
.cal-day:hover { border-color: #d9d6fb; }
.cal-day span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-day b { font-size: 17px; font-weight: 650; line-height: 1.25; }
.cal-day i { display: flex; gap: 3px; height: 6px; align-items: center; }
.cal-day i em { width: 6px; height: 6px; border-radius: 50%; display: block; }
.cal-day i em.more { background: #b3b7cc; width: 4px; height: 4px; }
.cal-day.we { background: #f1f2f8; }
.cal-day.today b { color: var(--accent); }
.cal-day.today { border-color: #d9d6fb; }
.cal-day.sel { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px rgba(91, 79, 240, .8); }
.cal-day.sel span, .cal-day.sel b { color: #fff; }
.cal-day.sel i em { box-shadow: 0 0 0 1.5px #fff; }
.cal-dayhead { font-weight: 650; font-size: 13.5px; margin: 2px 2px 6px; }
.cal-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.cal-ev { display: flex; gap: 12px; align-items: stretch; text-align: left; border: 0; background: #f8f9fc; border-radius: 12px; padding: 9px 12px; cursor: pointer; font: inherit; color: var(--text); position: relative; }
.cal-ev::before { content: ""; width: 4px; border-radius: 4px; background: var(--c); flex: none; }
.cal-ev:hover { background: #f0f1f8; }
.cal-ev.past { opacity: .55; }
.cal-time { width: 58px; flex: none; font-weight: 600; font-size: 13px; display: flex; flex-direction: column; line-height: 1.3; }
.cal-time small { color: var(--muted); font-weight: 400; }
.cal-main { min-width: 0; display: flex; flex-direction: column; }
.cal-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-main small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-err { font-size: 12px; color: #9a5617; background: #fff3e3; border-radius: 10px; padding: 7px 10px; margin-top: 10px; }
.cal-empty { text-align: center; padding: 14px 10px 6px; }
.cal-empty p { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.cal-empty-ic { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); }
.cal-empty-ic svg { width: 24px; height: 24px; }
.cal-detail { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 6px; }
.cal-detail > div { display: flex; gap: 12px; align-items: flex-start; }
.cal-detail svg { width: 18px; height: 18px; color: var(--muted); flex: none; margin-top: 1px; }
.cal-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin: 2px 2px 0; }
.cal-accs { display: flex; flex-direction: column; gap: 10px; }
.cal-acc { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.cal-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; }
.cal-row input[type=color] { width: 26px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; }
.cal-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
table.cal-ex { box-shadow: none; margin-top: 8px; font-size: 13px; }
table.cal-ex td { padding: 7px 10px; vertical-align: top; }
@media (max-width: 820px) {
  .cal-day { padding: 6px 0 5px; border-radius: 10px; }
  .cal-day b { font-size: 15px; }
  .w[data-w="calendar"] .w-head { flex-wrap: wrap; }
  .w[data-w="calendar"] .w-extra { width: 100%; justify-content: flex-end; }
  table.cal-ex tr { padding: 4px 0; }
}
input[type=date] { width: 100%; padding: 8px 11px; border: 1px solid #e1e4ee; border-radius: 11px; background: #fbfbfe; outline: none; font: inherit; color: inherit; }
input[type=date]:focus { background: #fff; border-color: #8b7dff; box-shadow: 0 0 0 4px rgba(91, 79, 240, .12); }
.ce-when { flex-wrap: wrap; }
.ce-when .ce-date { flex: 2 1 160px; }
.ce-when .ce-time { flex: 1 1 100px; }
@media (max-width: 820px) { input[type=date] { font-size: 16px; } .ce-when .ce-date { flex-basis: 100%; } }

/* ---------- Kalender: kompaktere Tage ---------- */
.cal-week { gap: 3px; margin-bottom: 10px; }
.cal-day { padding: 4px 0 4px; border-radius: 9px; gap: 0; }
.cal-day span { font-size: 9.5px; letter-spacing: .03em; }
.cal-day b { font-size: 13.5px; line-height: 1.3; }
.cal-day i { height: 5px; gap: 2px; }
.cal-day i em { width: 4px; height: 4px; }
.cal-month { font-size: 11px; margin-bottom: 6px; }
.cal-dayhead { font-size: 13px; }
@media (max-width: 820px) { .cal-day { padding: 4px 0; } .cal-day b { font-size: 13px; } }

/* ---------- Bereiche & neue Kacheln ---------- */
.prof-chip { gap: 8px; padding: 5px 12px 5px 6px; }
.prof-chip .w-ic { width: 26px; height: 26px; border-radius: 8px; }
.prof-chip .w-ic svg { width: 14px; height: 14px; }
.pr-me { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 4px; }
.pr-me .hint { margin-right: 4px; }
.pr-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--text); }
.pr-btn:hover { border-color: var(--pc); }
.pr-btn.on { background: var(--pc); border-color: var(--pc); color: #fff; font-weight: 600; }
.pr-list { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }
.pr-row { display: flex; align-items: center; gap: 11px; padding: 7px 4px; border-radius: 10px; }
.pr-row:hover { background: #f6f7fb; }
.pr-row.stale { opacity: .6; }
.pr-row .uchip { position: relative; }
.pr-row .uchip i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; }
.cn-form { display: flex; flex-direction: column; gap: 8px; }
.cn-form .row { gap: 8px; }
.cn-form .row > input { flex: 1; min-width: 0; }
.cn-form select { width: auto; flex: 1 1 140px; }
.cn-form textarea { min-height: 54px; }
.cn-urgent { font-size: 13px; gap: 6px; }
.cn-form .btn.primary { margin-left: auto; }
.sla-pill { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11.5px; font-weight: 700; color: #fff; }
.sla-pill.ok { background: #10b981; } .sla-pill.mid { background: #f59e0b; } .sla-pill.late { background: #ef4444; }
.sla-legend .sla-pill { min-width: 10px; height: 10px; padding: 0; vertical-align: middle; margin: 0 2px 0 8px; }
.sla-legend { margin-top: 8px; font-size: 11.5px; }
.sla-wait { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; flex: none; }
.sla-wait.ok { background: #e6f7f0; color: #0d9467; } .sla-wait.mid { background: #fff3e0; color: #b45309; } .sla-wait.late { background: #fdeaec; color: #d23f4e; }
.wn > .btn.sm, .wn > .pill, .wn > .uchip { flex: none; }
.wn > .btn.sm svg { width: 14px; height: 14px; }
.of-list { display: flex; flex-direction: column; gap: 4px; }
.of { display: flex; align-items: center; gap: 10px; border: 0; background: #f8f9fc; border-radius: 12px; padding: 9px 12px; cursor: pointer; font: inherit; color: var(--text); text-align: left; width: 100%; }
.of:hover { background: #f0f1f8; }
.of-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.of-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-main small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-val { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 74px; text-align: right; }
.of .pill, .of .uchip { flex: none; }
.pipe2 { grid-template-columns: 120px 1fr 26px 84px; }
.pipe-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.act-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.act-sum div { background: #f8f9fc; border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; }
.act-sum b { font-size: 22px; letter-spacing: -.02em; }
.act-sum span { font-size: 12px; color: var(--muted); }
.act-chart { width: 100%; height: auto; display: block; }
.act-chart .grid { stroke: #eceef5; stroke-width: 1; }
.act-chart .ax { font-size: 11px; fill: #8a8fa8; }
.act-chart .ax.today { fill: var(--accent); font-weight: 700; }
.act-chart .b-in { fill: #5b4ff0; }
.act-chart .b-out { fill: #c4bdfd; }
.act-chart .b-call { fill: #f59e0b; }
.act-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.act-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.act-legend i.b-in { background: #5b4ff0; } .act-legend i.b-out { background: #c4bdfd; } .act-legend i.b-call { background: #f59e0b; border-radius: 50%; }
.scratch { width: 100%; min-height: 150px; border: 0 !important; background: #fffbea !important; border-radius: 12px !important; box-shadow: inset 0 0 0 1px #f3e7b5 !important; line-height: 1.55; resize: vertical; }
.scratch-state { text-align: right; min-height: 16px; font-size: 11.5px; }
@media (max-width: 820px) { .act-sum { grid-template-columns: 1fr 1fr; } .pipe2 { grid-template-columns: 96px 1fr 22px 70px; } .cn-form .row { flex-wrap: wrap; } .prof-chip { order: -1; } }
@media (max-width: 820px) {
  .cn-form select { flex: 1 1 100%; width: 100%; min-width: 0; }
  .cn-form .row > input { flex: 1 1 100%; }
  .h2-head .sub .hint { display: none; }
}

/* ---------- Kalender: dezente Darstellung ---------- */
.w[data-w="calendar"] .w-extra .icon-btn.sm, .w[data-w="calendar"] .w-extra .btn.sm { color: #9aa0b4; }
.w[data-w="calendar"] .w-extra .icon-btn.sm:hover, .w[data-w="calendar"] .w-extra .btn.sm:hover { color: var(--text); background: #f2f3f8; }
.w[data-w="calendar"] .w-extra .btn.sm { font-weight: 500; padding: 3px 8px; }
.cal-month { color: #9aa0b4; font-weight: 500; letter-spacing: .04em; }
.cal-week { gap: 2px; border-bottom: 1px solid #eef0f6; padding-bottom: 8px; margin-bottom: 8px; }
.cal-day, .cal-day.we { background: transparent; border: 1px solid transparent; box-shadow: none; padding: 3px 0; }
.cal-day:hover { background: #f6f7fb; border-color: transparent; }
.cal-day span { color: #a5a9bd; font-weight: 500; }
.cal-day b { font-weight: 500; color: #4a4f66; }
.cal-day.we b { color: #9aa0b4; }
.cal-day.today { border-color: transparent; }
.cal-day.today b { color: var(--accent); font-weight: 700; }
.cal-day.sel { background: #f1f0fe; border-color: transparent; box-shadow: none; }
.cal-day.sel span { color: #8b85c9; }
.cal-day.sel b { color: var(--accent-2); font-weight: 700; }
.cal-day.sel i em { box-shadow: none; }
.cal-day i em { opacity: .7; }
.cal-dayhead { font-weight: 600; font-size: 12.5px; color: #6b7088; margin: 0 2px 2px; }
.cal-dayhead .hint { font-weight: 400; }
.cal-list { gap: 0; }
.cal-ev { background: transparent; border-radius: 8px; padding: 7px 6px; gap: 10px; border-bottom: 1px solid #f1f2f7; }
.cal-ev:last-child { border-bottom: 0; }
.cal-ev:hover { background: #f8f9fc; }
.cal-ev::before { width: 3px; opacity: .75; }
.cal-time { width: 50px; font-weight: 500; font-size: 12.5px; color: #4a4f66; }
.cal-main b { font-weight: 500; font-size: 13.5px; }
.cal-main small { font-size: 11.5px; color: #9aa0b4; }
.cal-time { width: 60px; white-space: nowrap; }
.cal-ev .cal-time:not(:has(small)) { font-size: 11.5px; color: #9aa0b4; padding-top: 2px; }

/* Tagesanzeige kompakter */
.cal-week { padding-bottom: 6px; margin-bottom: 6px; }
.cal-day, .cal-day.we { padding: 2px 0 1px; border-radius: 7px; }
.cal-day span { font-size: 8.5px; letter-spacing: .05em; line-height: 1.3; }
.cal-day b { font-size: 12px; line-height: 1.25; }
.cal-day i { height: 4px; }
.cal-day i em { width: 3px; height: 3px; }
@media (max-width: 820px) { .cal-day b { font-size: 12px; } .cal-day { padding: 2px 0 1px; } }
.cal-day, .cal-day.we { width: 40px; justify-self: center; }

.prof-sel { width: auto; min-width: 150px; padding: 4px 28px 4px 10px; font-size: 13px; border-radius: 9px; background-color: #f6f7fb; cursor: pointer; }

/* Warteschlange: erledigen */
.q-done { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line, #e3e5f0); color: #0d9467; font-weight: 800; font-size: 14px; background: #fff; cursor: pointer; opacity: .55; transition: .15s; }
.wn:hover .q-done { opacity: 1; }
.q-done:hover { background: #e6f7f0; border-color: #0d9467; }
@media (hover: none) { .q-done { opacity: 1; } }
.q-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12px; }
.q-foot:empty { display: none; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent, #5b4ff0); font: inherit; font-weight: 600; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* =================== Betriebs-Kacheln =================== */
/* Pinnwand */
.bd-list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow: auto; }
.bd { border: 1px solid var(--line); border-left: 4px solid #8b80f5; border-radius: 12px; padding: 9px 11px; background: #fbfbfe; }
.bd.warn { border-left-color: #f59e0b; background: #fffaf1; } .bd.ok { border-left-color: #10b981; background: #f3fcf8; }
.bd.unread { box-shadow: 0 0 0 2px #e6e3fd; }
.bd-top { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.bd-top small { color: var(--muted); margin-left: 2px; }
.bd-top .uchip { width: 22px; height: 22px; font-size: 9.5px; }
.bd-pin { margin-left: auto; color: #8b80f5; } .bd-pin svg { width: 14px; height: 14px; }
.bd-text { font-size: 13.5px; line-height: 1.45; margin: 6px 0 4px; white-space: normal; overflow-wrap: anywhere; }
.bd-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; }
/* Stempeluhr */
.tclock { display: flex; flex-direction: column; gap: 8px; }
.tc-big { display: flex; align-items: baseline; gap: 8px; }
.tc-big b { font-size: 34px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.tc-big span { color: var(--muted); font-size: 12.5px; }
.tc-state { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tc-state.work { color: #0d9467; } .tc-state.pause { color: #b45309; }
.tc-warn { font-size: 12px; background: #fff3e0; color: #92400e; border-radius: 8px; padding: 6px 8px; }
.tc-btns { display: flex; gap: 6px; align-items: center; } .tc-btns .btn { flex: 1; justify-content: center; }
.tc-sum { display: flex; gap: 14px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 7px; }
.tc-sum b { color: var(--text); font-variant-numeric: tabular-nums; }
.tc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c9cdd9; flex: none; }
.tc-dot.work { background: #10b981; box-shadow: 0 0 0 3px #d1f5e7; } .tc-dot.pause { background: #f59e0b; box-shadow: 0 0 0 3px #fdecc8; }
.tc-log div { padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .tc-log b { display: inline-block; width: 54px; font-variant-numeric: tabular-nums; }
/* Team-Zeiten */
.tt-list { display: flex; flex-direction: column; }
.tt { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #f0f1f6; font-size: 13px; line-height: 1.3; }
.tt:last-child { border-bottom: 0; }
.tt-h { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 44px; } .tt-h small { display: block; font-weight: 500; font-size: 10.5px; color: var(--muted); }
/* Checkliste */
.cl-bar { height: 6px; border-radius: 3px; background: #eef0f6; overflow: hidden; margin-bottom: 8px; } .cl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #10b981, #34d399); transition: width .3s; }
.cl-list { display: flex; flex-direction: column; max-height: 330px; overflow: auto; }
.cl { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px; border-radius: 8px; cursor: pointer; font-size: 13.5px; line-height: 1.35; }
.cl:hover { background: #f6f7fb; }
.cl input { width: 17px; height: 17px; margin-top: 1px; accent-color: #10b981; flex: none; }
.cl.done > .grow { color: var(--muted); } .cl.done > .grow > :first-child { text-decoration: none; }
.cl-time { font-size: 11px; color: var(--muted); white-space: nowrap; } .cl.late .cl-time { color: #d23f4e; font-weight: 700; }
.cl-days { display: flex; gap: 4px; flex-wrap: wrap; } .cl-days label { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
/* Monatsziel */
.gl { display: flex; gap: 16px; align-items: center; }
.gl-ring { width: 128px; height: 128px; flex: none; transform: rotate(-90deg); }
.gl-ring circle { fill: none; stroke-width: 11; } .gl-ring .bg { stroke: #f0eefe; }
.gl-ring .fg { stroke: #10b981; stroke-linecap: round; transition: stroke-dashoffset .6s; } .gl-ring .fg.behind { stroke: #f59e0b; }
.gl-ring .mark { stroke: #12142b; stroke-width: 2.5; stroke-linecap: round; }
.gl-ring text { transform: rotate(90deg); transform-origin: 60px 60px; } .gl-ring .pct { font-size: 22px; font-weight: 800; fill: var(--text); } .gl-ring .sub { font-size: 10px; fill: var(--muted); }
.gl-facts { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; font-size: 12.5px; }
.gl-facts > div > span { color: var(--muted); display: block; } .gl-facts b { font-size: 18px; } .gl-facts small { display: block; color: var(--muted); }
.gl-facts b.pos { color: #0d9467; } .gl-facts b.neg { color: #b45309; }
.gl-row { display: flex; gap: 14px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 7px; } .gl-row span { color: var(--muted); } .gl-row b { font-size: 13px; color: var(--text); }
/* Schnellnachricht */
.qs { display: flex; flex-direction: column; gap: 7px; }
.qs-to { position: relative; }
.qs-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(18, 20, 43, .16); overflow: hidden; }
.qs-sug button { display: flex; justify-content: space-between; gap: 8px; width: 100%; border: 0; background: none; padding: 8px 11px; text-align: left; cursor: pointer; font: inherit; font-size: 13px; }
.qs-sug button:hover { background: var(--accent-soft); }
.qs textarea { min-height: 70px; resize: vertical; }
/* Geplante Nachrichten */
.sc-list { display: flex; flex-direction: column; }
.sc { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #f0f1f6; font-size: 13px; line-height: 1.3; cursor: default; }
.sc:last-child { border-bottom: 0; }
.sc-when { flex: none; width: 50px; text-align: center; background: var(--accent-soft); color: var(--accent-2); border-radius: 9px; padding: 4px 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.sc-when b { display: block; font-size: 12.5px; }
.sc.fehler .sc-when { background: #fdeaec; color: #d23f4e; }
.sc .icon-btn { opacity: .5; } .sc:hover .icon-btn { opacity: 1; }
/* Anrufe */
.cs-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.cs-kpis div { background: #f6f7fb; border-radius: 10px; padding: 7px 8px; text-align: center; } .cs-kpis b { display: block; font-size: 20px; } .cs-kpis span { font-size: 11px; color: var(--muted); }
.cs-kpis .neg { background: #fdeaec; } .cs-kpis .neg b { color: #d23f4e; }
.cs-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 92px; margin-bottom: 4px; }
.cs-bar { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; font-size: 10.5px; color: var(--muted); position: relative; }
.cs-col { flex: 1; width: 100%; max-width: 26px; position: relative; background: #f4f4fa; border-radius: 6px; overflow: hidden; }
.cs-col i { position: absolute; left: 0; right: 0; bottom: 0; background: #fbbf24; border-radius: 6px 6px 0 0; } .cs-col i.o { background: #ef4444; }
.cs-bar span { font-weight: 700; color: var(--text); font-size: 10.5px; min-height: 13px; }
/* Kundensuche */
.ks-in { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px; background: #fff; }
.ks-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ks-in svg { width: 17px; height: 17px; color: var(--muted); flex: none; } .ks-in input { border: 0 !important; box-shadow: none !important; padding: 10px 0; background: transparent; }
.ks-res { margin-top: 6px; max-height: 330px; overflow: auto; }
.ks-row { display: flex; align-items: center; gap: 9px; padding: 7px 6px; border-radius: 10px; cursor: pointer; font-size: 13px; line-height: 1.3; }
.ks-row:hover { background: #f6f7fb; } .ks-row .av { width: 34px; height: 34px; font-size: 12px; flex: none; }
.ks-row .icon-btn { flex: none; } .ks-hint { padding: 8px 4px; }
/* Schnellzugriff */
.lk { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.lk a { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 600; min-width: 0; }
.lk a:hover { border-color: var(--accent); background: var(--accent-soft); }
.lk-ic { width: 20px; height: 20px; border-radius: 5px; background: #eef0f6; display: grid; place-items: center; font-size: 11px; flex: none; color: var(--accent-2); overflow: hidden; } .lk-ic img { width: 16px; height: 16px; }
.lk-row { margin-bottom: 6px; }
/* Erreichbarkeit */
.hr-st { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; margin-bottom: 10px; }
.hr-st .dot { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px #fde2e4; }
.hr-st.open .dot { background: #10b981; box-shadow: 0 0 0 4px #d1f5e7; }
.hr-days { display: flex; gap: 4px; justify-content: space-between; margin-bottom: 4px; }
.hr-days span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 5px 0; border-radius: 7px; background: #f4f5f9; color: #b0b4c3; }
.hr-days span.on { background: var(--accent-soft); color: var(--accent-2); } .hr-days span.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.hr-ar { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.3; }
.chip.green { background: #e6f7f0; color: #0d9467; }
@media (max-width: 640px) {
  .gl { flex-direction: column; align-items: stretch; } .gl-ring { align-self: center; }
  .cs-kpis { grid-template-columns: repeat(2, 1fr); }
  .tc-big b { font-size: 30px; }
}

.linkbtn svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }
.tt > .grow, .sc > .grow, .ks-row > .grow { flex: 1; min-width: 0; }
.cs-bar small { font-size: 10.5px; }
.cl > .grow, .bd-foot > .grow { flex: 1; min-width: 0; }

/* =================== Telefonanlage =================== */
#pbx-root { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; gap: 10px; width: min(370px, calc(100vw - 24px)); pointer-events: none; }
.pbx-pop { pointer-events: auto; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(18, 20, 43, .28); border-top: 4px solid #5b4ff0; overflow: hidden; animation: pp-in .25s ease-out; transition: opacity .25s, transform .25s; }
.pbx-pop.out { opacity: 0; transform: translateX(30px); }
.pbx-pop.ring { border-top-color: #f59e0b; } .pbx-pop.talk { border-top-color: #10b981; } .pbx-pop.end { border-top-color: #9aa0b4; }
.pbx-pop.end:not(.mine) .pp-st { color: #d23f4e; }
@keyframes pp-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pp-head { display: flex; align-items: center; gap: 8px; padding: 9px 10px 0 14px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pp-st { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff3e0; font-size: 13px; }
.pbx-pop.ring .pp-ic { animation: pp-ring 1s infinite; } .pbx-pop.talk .pp-ic { background: #e6f7f0; }
@keyframes pp-ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 50% { transform: rotate(0); } }
.pp-who { display: flex; align-items: center; gap: 11px; padding: 8px 14px; }
.pp-who .av { width: 42px; height: 42px; font-size: 15px; flex: none; }
.pp-who b { font-size: 17px; display: block; line-height: 1.2; }
.pp-info { margin: 0 14px; padding: 8px 10px; background: #f6f7fb; border-radius: 10px; font-size: 12.5px; line-height: 1.55; max-height: 150px; overflow: auto; }
.pp-note { display: flex; gap: 6px; padding: 8px 14px 0; } .pp-note input { flex: 1; padding: 7px 10px; font-size: 13px; }
.pp-btns { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 12px; }
.pp-btns .btn svg { width: 14px; height: 14px; }
.pl-list { display: flex; flex-direction: column; gap: 6px; }
.pl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #f6f7fb; cursor: pointer; font-size: 13px; line-height: 1.3; }
.pl.ring { background: #fff8eb; } .pl.talk { background: #eefaf5; }
.pl > .grow { flex: 1; min-width: 0; }
.pl-ic { font-size: 18px; } .pl.ring .pl-ic { animation: pp-ring 1s infinite; }
.pl-t { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.pbx-conn { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #c9cdd9; margin-right: 6px; vertical-align: 1px; }
.pbx-conn.ok { background: #10b981; box-shadow: 0 0 0 3px #d1f5e7; } .pbx-conn.bad { background: #ef4444; box-shadow: 0 0 0 3px #fde2e4; } .pbx-conn.wait { background: #f59e0b; }
.pbx-state { padding: 8px 10px; background: #f6f7fb; border-radius: 10px; margin-bottom: 10px; font-size: 13.5px; }
.pbx-adv { margin-top: 12px; } .pbx-adv summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--accent-2); }
.pbx-log { margin-top: 10px; max-height: 55vh; overflow: auto; font: 12px/1.55 ui-monospace, Menlo, monospace; background: #12142b; color: #d9dcf0; border-radius: 10px; padding: 10px 12px; }
.pbx-log span { color: #8a8fb3; margin-right: 10px; } .pbx-log .sys { color: #fbbf24; }
@media (max-width: 640px) { #pbx-root { right: 12px; left: 12px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* =================== Teamchat im WhatsApp-Stil =================== */
.tc.chats { grid-template-columns: 340px 1fr; }
@media (max-width: 1200px) { .tc.chats { grid-template-columns: 300px 1fr; } }
.tc-side.chatlist { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--card); }
.tc-side .list { flex: 1; overflow-y: auto; }
.tc-note { flex: none; padding: 9px 14px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); text-align: center; }
.tc-main.conv { position: relative; }
.av .pdot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; z-index: 2; background: transparent; display: none; }
.av .pdot.on { display: block; background: #10b981; } .av .pdot.busy { display: block; background: #f59e0b; } .av .pdot.away { display: block; background: #ef4444; }
.av.sm .pdot { width: 10px; height: 10px; }
.av.tc-group { background: linear-gradient(135deg, #6d5ef5, #4a3fe0); color: #fff; } .av.tc-group svg { width: 55%; height: 55%; }
.tc-tk { display: inline-flex; vertical-align: -3px; margin-right: 3px; color: var(--muted); } .tc-tk svg { width: 15px; height: 15px; } .tc-tk.read { color: #0ea5e9; }
.tc-typ { color: #0d9467; font-style: italic; }
#tc-sub.typing { color: #0d9467; font-weight: 600; }
.tc-main .top .who { cursor: pointer; }
.tc-findbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.tc-findbar input { flex: 1; }
.tc-msgs.msgs { padding: 14px 7% 10px; gap: 2px; }
.tc-msgs .m { max-width: min(65%, 560px); margin-top: 6px; }
.tc-msgs .m.cont { margin-top: 0; }
.tc-msgs .m.cont:not(.me) { border-top-left-radius: 6px; } .tc-msgs .m.cont.me { border-top-right-radius: 6px; }
.tc-msgs .m .au { font-size: 12.5px; font-weight: 700; }
.tc-msgs .m .q { cursor: pointer; }
.tc-msgs .m .doc small { color: inherit; opacity: .75; }
.tc-msgs .m .actions { top: -14px; right: 8px; background: #fff !important; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(18, 20, 43, .12); padding: 1px 2px; }
.tc-msgs .m.me .actions button { color: var(--muted); }
.tc-msgs .m.has-rx { margin-bottom: 14px; }
.tc-msgs .rx { position: absolute; bottom: -15px; left: 10px; display: flex; gap: 3px; }
.tc-msgs .m.me .rx { left: auto; right: 10px; }
.tc-msgs .rx button { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 1px 7px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; box-shadow: 0 1px 3px rgba(18, 20, 43, .1); color: var(--text); }
.tc-msgs .rx button.mine { border-color: var(--accent); background: var(--accent-soft); }
.tc-msgs .rx small { font-size: 11px; color: var(--muted); }
.tc-msgs .m.hl { outline: 3px solid #fbbf24; outline-offset: 2px; }
.tc-msgs mark { background: #fde68a; color: inherit; border-radius: 3px; }
.tc-msgs .tc-ref { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .05); padding: 8px 10px; border-radius: 10px; margin-bottom: 4px; cursor: pointer; font-size: 12.5px; line-height: 1.35; }
.tc-msgs .m.me .tc-ref { background: rgba(255, 255, 255, .16); }
.tc-msgs .tc-ref svg { width: 22px; height: 22px; flex: none; }
.tc-msgs .m img.media, .tc-msgs .m video.media { margin-bottom: 4px; }
.tc-unread-mark { align-self: center; margin: 12px 0 6px; padding: 4px 14px; border-radius: 20px; background: #e6f7f0; color: #0d9467; font-size: 12px; font-weight: 700; }
.tc-older { cursor: pointer; border: 1px solid var(--line); font: inherit; font-size: 12px; }
.tc-hello { flex: 1; display: grid; place-items: center; }
.tc-hello-b { background: #fff8e6; color: #7b5a20; border-radius: 10px; padding: 10px 16px; font-size: 13px; text-align: center; max-width: 420px; line-height: 1.5; }
.tc-down { position: absolute; right: 22px; bottom: 86px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: 0 4px 14px rgba(18, 20, 43, .15); display: grid; place-items: center; cursor: pointer; color: var(--muted); z-index: 4; }
.tc-down[hidden] { display: none; }
.tc-down svg { width: 22px; height: 22px; }
.tc-down span:not(:empty) { position: absolute; top: -6px; right: -4px; background: #10b981; color: #fff; border-radius: 10px; min-width: 20px; height: 20px; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.tc-rxbar { position: fixed; z-index: 1000; display: flex; gap: 2px; background: #fff; border-radius: 26px; padding: 5px 8px; box-shadow: 0 8px 30px rgba(18, 20, 43, .22); animation: pp-in .15s ease-out; }
.tc-rxbar button { border: 0; background: none; font-size: 22px; cursor: pointer; padding: 2px 4px; border-radius: 50%; transition: transform .1s; }
.tc-rxbar button:hover { transform: scale(1.25); }
.tc-emopop { position: absolute; bottom: 100%; left: 10px; z-index: 20; background: #fff; border-radius: 14px; box-shadow: 0 10px 34px rgba(18, 20, 43, .2); padding: 8px; display: grid; grid-template-columns: repeat(9, 34px); gap: 2px; margin-bottom: 6px; }
.tc-emopop button { border: 0; background: none; font-size: 21px; cursor: pointer; border-radius: 8px; height: 34px; }
.tc-emopop button:hover { background: #f1f2f8; }
#tc-emo { font-size: 19px; }
@media (max-width: 820px) {
  .tc.chats { display: block; }
  .tc-msgs.msgs { padding: 10px 8px; }
  .tc-msgs .m { max-width: 84%; }
  .tc-msgs .m .actions { display: none !important; }
  .tc-down { bottom: 80px; right: 14px; }
  .tc-emopop { grid-template-columns: repeat(8, 34px); left: 4px; }
  .tc-note { display: none; }
}
.tc-findbar[hidden] { display: none; }

/* Berechtigungen */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 8px; }
.perm { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; line-height: 1.3; }
.perm:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.perm input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.perm-ic svg { width: 18px; height: 18px; color: var(--accent-2); display: block; }
.perm small { display: block; color: var(--muted); font-size: 11px; }
.perm-admin { display: none; padding: 8px 10px; background: #f6f7fb; border-radius: 10px; }
.is-admin .perm-grid, .is-admin > .hint:last-child { display: none; }
.is-admin .perm-admin { display: block; }
.perm-tags { display: flex; flex-wrap: wrap; gap: 3px; max-width: 260px; }
.perm-tags span { font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: #eef0f6; color: #4b5068; }
@media (max-width: 640px) { .perm-grid { grid-template-columns: 1fr; } }

/* Benutzerwechsel */
#imp-banner { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 950; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 30px; background: #12142b; color: #fff; box-shadow: 0 10px 30px rgba(18, 20, 43, .35); font-size: 13px; white-space: nowrap; }
#imp-banner .imp-eye svg { width: 18px; height: 18px; color: #fbbf24; display: block; }
#imp-banner .btn { border-radius: 20px; }
#imp-banner .btn:not(.primary) { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
body.impersonating #rail { box-shadow: inset -3px 0 0 #fbbf24; }
.sw-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: #a6abcf; display: grid; place-items: center; cursor: pointer; margin-bottom: 6px; }
.sw-btn svg { width: 21px; height: 21px; } .sw-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sw-btn.on { color: #fbbf24; background: rgba(251, 191, 36, .14); }
.sw-btn .tip { display: none; }
.sw-list { margin-top: 8px; max-height: 50vh; overflow: auto; }
.sw-audit { font-size: 12px; max-height: 180px; overflow: auto; margin-top: 6px; } .sw-audit span { color: var(--muted); margin-right: 6px; }
/* Mein WhatsApp */
.pw-setup { height: 100%; display: grid; place-items: center; padding: 20px; overflow: auto; }
.pw-card { background: var(--card); border-radius: 20px; box-shadow: 0 10px 40px rgba(18, 20, 43, .08); border: 1px solid var(--line); padding: 28px 30px; max-width: 470px; text-align: center; }
.pw-card h2 { margin: 6px 0 8px; } .pw-card p { color: #4b5068; line-height: 1.55; }
.pw-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 18px; background: var(--grad, linear-gradient(135deg, #6d5ef5, #4a3fe0)); color: #fff; display: grid; place-items: center; font-size: 28px; } .pw-ic svg { width: 32px; height: 32px; }
.pw-list { text-align: left; list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 7px; font-size: 13.5px; }
.pw-qr { background: #fff; padding: 12px; border-radius: 14px; border: 1px solid var(--line); display: inline-block; margin: 6px 0 12px; } .pw-qr img { width: 260px; height: 260px; display: block; }
.pw-steps { text-align: left; font-size: 13.5px; line-height: 1.7; margin: 0 0 6px; }
.pw-pair { text-align: left; margin-top: 8px; font-size: 13px; } .pw-pair summary { cursor: pointer; color: var(--accent-2); font-weight: 600; }
.pw-code { font-size: 26px; font-weight: 800; letter-spacing: 4px; text-align: center; margin-top: 10px; font-variant-numeric: tabular-nums; }
.pw-wait { padding: 16px 0; display: grid; gap: 6px; }
.pw-wrap .chatlist { display: flex; flex-direction: column; min-height: 0; } .pw-wrap .chatlist .list { flex: 1; overflow-y: auto; }
.pw-wrap .conv .top { border-top: 3px solid #10b981; }
.pw-back { display: none; font-size: 30px; line-height: 1; width: 38px; color: var(--accent-2); }
@media (max-width: 820px) {
  .pw-back { display: grid; }
  .sw-btn { display: none; }
  #imp-banner { top: calc(6px + env(safe-area-inset-top)); font-size: 12px; gap: 6px; padding: 4px 4px 4px 10px; max-width: calc(100vw - 16px); }
  #imp-banner #imp-sw { display: none; }
}
.pw-setup { width: 100%; flex: 1; min-height: 100%; box-sizing: border-box; }

/* Startseite dynamisch gepackt (layout.js) – keine Lücken */
.wgrid.packed { grid-auto-rows: 4px; row-gap: 0; grid-auto-flow: row; align-items: start; }
.wgrid.packed > .w { box-sizing: border-box; }

/* Schnellzugriff: Programme & App-Links */
.lk-row { display: grid; grid-template-columns: 190px 150px 1fr 30px; gap: 6px; align-items: center; margin-bottom: 6px; }
.lk-row.prog { grid-template-columns: 190px 150px 1fr 170px 30px; }
.lk-row:not(.prog) [name=a] { display: none; }
.lk-row select, .lk-row input { min-width: 0; }
.lk a.prog .lk-ic, .lk a.app .lk-ic { background: #f1effe; font-size: 13px; }
.lk a.off { opacity: .45; cursor: not-allowed; }
.lk-starter { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #fff8e6; color: #7b5a20; font-size: 12.5px; }
.lk-starter span { flex: 1; min-width: 180px; }
.lk-steps { padding-left: 20px; line-height: 1.6; font-size: 13.5px; } .lk-steps li { margin-bottom: 8px; }
@media (max-width: 760px) { .lk-row, .lk-row.prog { grid-template-columns: 1fr 1fr 30px; } .lk-row [name=u], .lk-row [name=a] { grid-column: 1 / 3; } .lk-row [data-rm] { grid-row: 1; grid-column: 3; } }

/* =================== Büro-Module =================== */
/* Abwesenheiten */
.ab-row { display: flex; align-items: center; gap: 9px; padding: 6px 2px; border-bottom: 1px solid #f0f1f6; font-size: 13px; }
.ab-row:last-child { border-bottom: 0; } .ab-row > .grow { flex: 1; min-width: 0; }
.ab-row.pend { background: #fff8eb; border-radius: 9px; padding: 6px 8px; margin-bottom: 4px; border: 0; }
.ab-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 14%, #fff); font-size: 14px; }
.ab-d { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ab-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ab-types label { cursor: pointer; } .ab-types input { display: none; }
.ab-types span { display: block; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13px; }
.ab-types input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); font-weight: 700; }
.am-wrap { overflow: auto; max-height: 62vh; }
table.am { border-collapse: collapse; font-size: 11.5px; width: 100%; }
.am th, .am td { border: 1px solid #eef0f6; text-align: center; padding: 3px 0; min-width: 24px; }
.am thead th { position: sticky; top: 0; background: #fff; font-weight: 600; color: var(--muted); line-height: 1.2; }
.am tbody th { text-align: left; padding: 4px 8px; white-space: nowrap; position: sticky; left: 0; background: #fff; font-weight: 600; }
.am .we { background: #f6f7fb; } .am .td { background: var(--accent-soft); }
.am i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--c) 22%, #fff); font-style: normal; font-size: 11px; }
.am i.pend { outline: 1.5px dashed var(--c); background: #fff; }
.am-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--muted); }
.am-legend i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: color-mix(in srgb, var(--c) 22%, #fff); font-style: normal; font-size: 10px; margin-right: 3px; }
/* Räume */
.rm-scale { position: relative; height: 14px; margin: 0 0 2px 0; font-size: 10px; color: var(--muted); }
.rm-scale span { position: absolute; transform: translateX(-50%); }
.rm-row { margin-bottom: 9px; }
.rm-name { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 3px; } .rm-name b { flex: 1; min-width: 0; }
.rm-line { position: relative; height: 26px; border-radius: 8px; background: repeating-linear-gradient(90deg, #f4f5fa 0 calc(100% / 12 - 1px), #e9ebf3 calc(100% / 12 - 1px) calc(100% / 12)); cursor: copy; overflow: hidden; }
.rm-bk { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: #c7c2fb; color: #2e2580; font-size: 10.5px; font-weight: 700; padding: 0 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 20px; cursor: pointer; }
.rm-bk.mine { background: #5b4ff0; color: #fff; }
.rm-now { position: absolute; top: 0; bottom: 0; width: 2px; background: #ef4444; z-index: 2; }
/* Besucher */
.vs-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.vs-form .btn { justify-content: center; }
.vs-list { display: flex; flex-direction: column; }
.vs { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #f0f1f6; font-size: 13px; line-height: 1.35; }
.vs > .grow { flex: 1; min-width: 0; } .vs.gone { opacity: .55; }
.vs-t { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.vs-reply { color: #0d9467; }
/* Umfragen */
.pl-poll { padding: 8px 0 10px; border-bottom: 1px solid #f0f1f6; } .pl-poll:last-child { border-bottom: 0; }
.pl-q { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; } .pl-q b { flex: 1 1 100%; font-size: 14px; } .pl-q .hint { flex: 1; }
.pl-opt { position: relative; display: flex; align-items: center; width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 7px 10px; margin-bottom: 5px; cursor: pointer; font: inherit; font-size: 13px; text-align: left; overflow: hidden; }
.pl-opt:hover:not(:disabled) { border-color: var(--accent); }
.pl-opt.mine { border-color: var(--accent); font-weight: 700; }
.pl-opt i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); transition: width .4s; }
.pl-opt .pl-txt, .pl-opt .pl-n { position: relative; } .pl-opt .pl-txt { flex: 1; } .pl-opt .pl-n { font-weight: 800; color: var(--accent-2); }
.pl-poll.closed .pl-opt { cursor: default; }
/* Einkaufsliste */
.sh-add { display: flex; gap: 6px; margin-bottom: 6px; } .sh-add input { flex: 1; }
.sh { display: flex; align-items: center; gap: 9px; padding: 6px 2px; border-bottom: 1px solid #f0f1f6; font-size: 13px; line-height: 1.3; }
.sh > .grow { flex: 1; min-width: 0; } .sh input { width: 17px; height: 17px; accent-color: #10b981; flex: none; }
.sh.urgent { background: #fff5f5; border-radius: 8px; padding: 6px; }
.sh.done { opacity: .6; }
/* Popups Anklopfen / Besuch */
.of-pop.visitor { border-top-color: #f59e0b; } .of-pop.knock { border-top-color: #5b4ff0; } .of-pop.knock-reply { border-top-color: #10b981; }
.of-msg { padding: 8px 14px 2px; font-size: 15px; line-height: 1.4; }
@media (max-width: 640px) { .vs-form { grid-template-columns: 1fr; } }

/* Firmen-Standard der Startseite */
.ga-banner { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, #efedff, #f6f4ff); border: 1.5px solid #c9c3fb; color: #2e2580; border-radius: 14px; padding: 12px 16px; margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; }
.ga-banner svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.global-edit .wgrid { outline: 2px dashed #b9b2fa; outline-offset: 8px; border-radius: 14px; }
.ga-box { background: #fff8eb; border: 1px solid #fde2b0; border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: 13px; line-height: 1.5; }

/* Installations-Center */
.in-native { display: flex; align-items: center; gap: 14px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 13.5px; }
.in-native > div { flex: 1; }
.in-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.in-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.in-tabs button svg { width: 16px; height: 16px; }
.in-tabs button.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
#in-body .gsteps { margin: 0 0 14px; }
.in-qr-row { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; font-size: 13.5px; line-height: 1.6; }
.in-qr { width: 150px; height: 150px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.in-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.in-https { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
.in-https summary { cursor: pointer; font-weight: 600; color: var(--accent-2); }
.in-https .gsteps { margin-top: 8px; }
.in-btn { margin-bottom: 4px; }
.in-prof { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.in-prof svg { width: 20px; height: 20px; color: var(--accent); }
.install-banner.pc { left: auto; right: 20px; bottom: 20px; width: 400px; }
.install-banner.pc { display: flex; position: fixed; z-index: 120; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 12px 12px 14px; box-shadow: 0 12px 40px rgba(18, 20, 43, .25); animation: sheetin .25s ease-out; }
.install-banner.pc img { width: 42px; height: 42px; border-radius: 10px; }
.install-banner.pc .grow { display: flex; flex-direction: column; font-size: 13px; } .install-banner.pc .grow span { color: var(--muted); font-size: 12px; }
.in-tray { display: flex; gap: 12px; align-items: flex-start; background: #f4f3ff; border: 1px solid #dcd8fd; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 13px; line-height: 1.45; }
.in-tray-ic svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.in-devs { margin-top: 10px; font-size: 13px; } .in-devs .hrow { gap: 10px; padding: 6px 0; } .in-devs svg { width: 14px; height: 14px; vertical-align: -2px; }
.in-devs .hrow { display: flex; align-items: center; border-bottom: 1px solid #f0f1f6; } .in-devs .hrow .grow { flex: 1; }
.w-neterr { margin: 14px auto 0; max-width: 300px; text-align: left; font-size: 12.5px; line-height: 1.45; background: #fff4e5; border: 1px solid #fcd9a8; color: #7a4a06; border-radius: 10px; padding: 10px 12px; }

/* Datensicherung */
.bk-card { grid-column: 1 / -1; }
.bk-card h3 svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--accent); }
.bk-st { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #f6f7fb; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.bk-st svg { width: 26px; height: 26px; flex: none; color: var(--muted); }
.bk-st.ok { background: #ecfdf5; border-color: #a7f3d0; } .bk-st.ok svg { color: #059669; }
.bk-st.bad { background: #fef2f2; border-color: #fecaca; } .bk-st.bad svg { color: #dc2626; }
.bk-st.run .spinner { width: 24px; height: 24px; flex: none; }
.bk-actions { display: flex; gap: 12px; align-items: center; margin: 12px 0 4px; flex-wrap: wrap; } .bk-actions .hint { flex: 1; min-width: 240px; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.bk-sec h4, .bk-h { margin: 14px 0 8px; font-size: 14px; }
.bk-sec .switch { margin-bottom: 6px; }
.bk-targets { display: flex; flex-direction: column; gap: 8px; }
.bk-t { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; }
.bk-t[open] { padding-bottom: 14px; }
.bk-t summary { display: flex; align-items: center; gap: 10px; padding: 11px 0; cursor: pointer; list-style: none; flex-wrap: wrap; font-size: 13.5px; }
.bk-t summary::-webkit-details-marker { display: none; }
.bk-t summary .switch { margin: 0; } .bk-t summary b svg { width: 16px; height: 16px; vertical-align: -3px; }
.bk-t .hint code { font-size: 11.5px; } .bk-t > .hint { margin: 6px 0 10px; }
.bk-tres { margin-left: auto; font-size: 12.5px; font-weight: 600; } .bk-tres.ok { color: #059669; } .bk-tres.bad { color: #dc2626; }
.bk-file { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid #f0f1f6; font-size: 13px; line-height: 1.35; }
.bk-file .grow { flex: 1; min-width: 0; } .bk-file .mono { font-family: ui-monospace, monospace; font-size: 11px; }
.bk-fi { font-size: 18px; } .bk-file a.btn svg { width: 15px; height: 15px; }
.bk-up { margin-top: 10px; } .bk-up .btn svg { width: 15px; height: 15px; }
.bk-log { display: flex; flex-direction: column; }
.bk-le { display: flex; gap: 10px; align-items: flex-start; padding: 7px 2px; border-bottom: 1px solid #f0f1f6; font-size: 12.5px; line-height: 1.5; }
.bk-le .grow { flex: 1; min-width: 0; } .bk-ld { width: 160px; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; background: #10b981; } .bk-le.bad .bk-dot { background: #ef4444; }
.bk-err { color: #b91c1c; font-size: 12px; }
.bk-warn { display: flex; gap: 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 12px; font-size: 13.5px; line-height: 1.5; margin-bottom: 6px; }
.bk-warn svg { width: 22px; height: 22px; color: #dc2626; flex: none; }
.bk-restart { position: fixed; inset: 0; z-index: 400; background: rgba(15, 17, 35, .55); display: grid; place-items: center; }
.bk-restart .card { width: min(420px, 92vw); text-align: center; padding: 28px; }
@media (max-width: 900px) { .bk-grid { grid-template-columns: 1fr; } .bk-ld { width: 110px; } }
.in-exe { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; line-height: 1.45; }
.in-exe img { width: 48px; height: 48px; border-radius: 11px; } .in-exe .grow { flex: 1; }
.in-alt { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; } .in-alt summary { cursor: pointer; color: var(--muted); font-weight: 600; }
