:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#233544;background:#f3f6f8;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.hidden{display:none!important}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}input,textarea,select{outline:none}.app{height:100dvh;display:grid;grid-template-columns:230px 340px minmax(0,1fr)}.sidebar{background:#192c39;color:#dce7ec;padding:26px 12px 18px;display:flex;flex-direction:column;min-width:0}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 44px}.brand strong{font-size:16px;white-space:nowrap}.brand small,.user-pill small{display:block;color:#9aaebc;font-size:10px;letter-spacing:1.2px;margin-top:5px}.logo{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#83d9ce;color:#142a37;font-size:26px;flex:none}.logo.big{width:60px;height:60px;margin-bottom:22px;font-size:38px}.sidebar-label,.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.7px;color:#8298a6}.sidebar-label{margin:0 16px 14px}.nav-item{width:100%;background:none;border:0;color:#d0e0e7;text-align:left;display:flex;gap:13px;align-items:center;padding:12px 13px;border-radius:10px;font-weight:600;font-size:13px;margin-bottom:5px}.nav-item span:first-child{font-size:18px;width:20px;text-align:center}.nav-item.selected{background:#334a59;color:white}.nav-item:hover{background:#293f4c}.nav-item b{margin-left:auto;font-size:12px;color:#b7d6db}.branch-dot{height:10px;width:10px!important;min-width:10px;border-radius:50%;display:inline-block;margin:0 5px}.branch-dot.detmolder{background:#91c2f6}.branch-dot.koerte{background:#efb688}.side-bottom{margin-top:auto}.user-pill{border-top:1px solid #354d58;margin-top:16px;padding:18px 12px 2px;display:flex;gap:10px;align-items:center;font-size:13px}.avatar{height:40px;width:40px;display:grid;place-items:center;border-radius:50%;background:#dce8ef;color:#325364;font-weight:700;flex:none}.avatar.small{height:32px;width:32px;background:#3a5c67;color:#90dcd0}.list-pane{background:#fff;display:flex;flex-direction:column;min-height:0;border-right:1px solid #e6ecef;min-width:0}.list-head{padding:31px 22px 14px;border-bottom:1px solid #edf0f2}.list-head h1{font-size:27px;letter-spacing:-.8px;margin:8px 0 12px}.primary{background:#16897d;border:1px solid #16897d;border-radius:10px;padding:11px 16px;color:white;font-weight:700}.primary:hover{background:#117c72}.new-contact{width:100%;margin:11px 0 15px}.search{width:100%;border:1px solid #e2e9ec;background:#f5f8fa;padding:11px 13px;border-radius:10px;font-size:13px}.search:focus,input:focus,textarea:focus,select:focus{border-color:#2b9c91}.tabs{display:flex;gap:22px;margin-top:20px}.tab{border:0;border-bottom:2px solid transparent;background:none;color:#8a9ca4;padding:0 0 12px;font-size:13px;font-weight:700}.tab.active{color:#128579;border-color:#128579}.thread-list{flex:1;overflow:auto}.thread{border:0;border-bottom:1px solid #f0f2f4;background:white;text-align:left;display:flex;gap:12px;width:100%;padding:18px 20px}.thread:hover,.thread.active{background:#eff7f6}.thread-body{min-width:0;flex:1}.thread-title{font-weight:750;font-size:14px;display:flex;justify-content:space-between;gap:6px}.thread-time{font-size:10px;color:#8697a2;font-weight:500;white-space:nowrap}.thread-meta{font-size:10px;font-weight:700;color:#63828b;margin:6px 0}.thread-preview{font-size:12px;color:#85929c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-avatar{width:37px;height:37px;display:grid;place-items:center;background:#e0f1ef;color:#389e91;border-radius:50%;font-size:14px;font-weight:700;flex:none}.list-footer{font-size:11px;color:#81929c;padding:14px 19px;border-top:1px solid #edf0f2}.live-dot{display:inline-block;width:7px;height:7px;background:#3aa790;border-radius:50%;margin-right:5px}.chat-pane{position:relative;background:#f5f8fa;min-width:0;display:flex;flex-direction:column}.empty-chat{margin:auto;text-align:center;max-width:300px;color:#83939e}.empty-chat h2{color:#314857;font-size:23px}.empty-chat p{font-size:14px;line-height:1.6}.empty-icon{font-size:56px;color:#9fbebc}.conversation{height:100%;display:flex;flex-direction:column}.chat-head{background:white;border-bottom:1px solid #e4ebef;display:flex;align-items:center;gap:12px;padding:18px 24px}.chat-person{flex:1;min-width:0}.chat-person strong{display:block;font-size:15px}.chat-person small{display:block;color:#8496a3;font-size:11px;margin-top:4px}.secondary{border:1px solid #d9e4e9;background:white;border-radius:9px;color:#456777;font-size:12px;font-weight:750;padding:10px 12px}.secondary:hover{background:#edf5f5}.messages{flex:1;overflow:auto;padding:28px 9%;display:flex;flex-direction:column;gap:15px}.bubble{border-radius:15px;padding:12px 16px;max-width:min(75%,520px);box-shadow:0 2px 6px #172b3d08;background:#fff;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}.bubble.out{background:#dcf4e9;align-self:flex-end}.bubble small{display:block;font-size:10px;color:#7f969b;text-align:right;margin-top:8px}.compose{padding:15px 24px 20px;background:white;border-top:1px solid #e3ebed}.snippet-bar select{border:0;background:transparent;color:#567985;font-size:12px;font-weight:700;margin:0 0 11px;max-width:100%;padding:4px}.compose form{display:flex;align-items:end;gap:12px}.compose textarea{flex:1;resize:vertical;min-height:52px;max-height:150px;border:1px solid #dee7e9;border-radius:12px;padding:13px;font-size:13px}.send{height:48px}.send-warning{font-size:11px;color:#9b7656;margin-top:8px}.demo{display:inline-block;padding:6px 9px;border-radius:6px;background:#fff2d8;font-size:10px;font-weight:800;color:#936721}.login-screen{display:grid;place-items:center;min-height:100dvh;padding:30px}.login-card{width:min(100%,420px);background:white;border:1px solid #e5edf0;border-radius:20px;box-shadow:0 24px 80px #23354410;padding:42px}.login-card h1{font-size:27px;margin:10px 0}.login-card p,.modal-card p{color:#7b8994;font-size:13px;line-height:1.6}.login-card label,.modal-card label{display:block;font-size:12px;font-weight:700;margin:20px 0 6px}.login-card input,.modal-card input,.modal-card select{width:100%;border:1px solid #dce6eb;border-radius:10px;padding:12px;margin-top:8px}.full{width:100%;margin-top:18px}.error{font-size:12px;color:#bc4c4c;margin-top:14px}.away-panel{padding:35px;max-width:820px;width:100%;overflow:auto;margin:auto}.panel-head h2{font-size:24px;margin:0}.panel-head p{color:#7e909c;font-size:13px}.away-card{background:white;border:1px solid #e1eaee;border-radius:14px;padding:22px;margin:18px 0}.away-card h3{margin:0 0 12px}.away-card label{display:flex;align-items:center;gap:8px;font-weight:700;font-size:13px;margin:12px 0}.away-card textarea{width:100%;height:110px;border:1px solid #dce6eb;padding:12px;border-radius:8px;resize:vertical}.away-card button{margin-top:12px}.modal{position:fixed;inset:0;z-index:10;background:#1b2c3bb5;display:grid;place-items:center;padding:16px}.modal-card{position:relative;width:min(100%,440px);border-radius:18px;background:#fff;padding:32px;box-shadow:0 25px 75px #1118}.modal-card h2{margin-bottom:5px}.modal-close{position:absolute;right:17px;top:13px;background:none;border:0;font-size:26px;color:#84969f}.toast{position:fixed;z-index:20;bottom:24px;right:24px;background:#203b4a;color:white;padding:14px 20px;border-radius:11px;box-shadow:0 12px 40px #0003;font-size:13px}.empty-list{padding:28px;text-align:center;font-size:13px;color:#8b9ca5}.mobile-icon{display:none;background:none;border:0;color:#476271;font-size:23px}.mobile-row{display:flex;align-items:center;gap:10px}@media(max-width:1050px){.app{grid-template-columns:200px 300px minmax(0,1fr)}.chat-head{padding:14px}.messages{padding:20px 5%}.compose{padding:12px}}@media(max-width:740px){.app{display:flex}.sidebar{display:none;position:fixed;z-index:9;inset:0 auto 0 0;width:245px;box-shadow:0 0 0 100vw #0007}.sidebar.open{display:flex}.list-pane{width:100%}.chat-pane{display:none;width:100%;height:100dvh}.app.chat-open .list-pane{display:none}.app.chat-open .chat-pane{display:flex}.mobile-icon{display:inline-block}.list-head{padding:20px}.chat-head{padding:13px}.bubble{max-width:88%}.compose form{gap:8px}.send{padding:10px}.away-panel{padding:20px}.app.settings-open .list-pane{display:none}.app.settings-open .chat-pane{display:flex}}
/* Version 0.2 – Bearbeitbare Vorlagen */
.templates-panel{padding:35px;max-width:920px;width:100%;overflow:auto;margin:auto;height:100%}
.template-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0}
.template-count{font-size:12px;color:#7d919a}
.template-list{display:flex;flex-direction:column;gap:12px;padding-bottom:20px}
.template-card{background:#fff;border:1px solid #e1eaee;border-radius:14px;padding:18px 20px}
.template-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.template-card h3{font-size:15px;margin:0 0 8px}
.template-card p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:#536b77;margin:13px 0 0}
.template-tags{display:flex;flex-wrap:wrap;gap:6px}
.template-tag{border-radius:6px;background:#edf5f5;color:#47727a;font-size:11px;padding:5px 8px}
.template-tag.contact{background:#fff3df;color:#8f6a32}
.template-card-buttons{display:flex;gap:8px;flex-shrink:0}
.template-card-buttons .secondary{padding:7px 10px}
.template-card-buttons .danger{color:#ac4444}
.template-editor{margin:12px 0 18px}
.template-editor label{display:block;margin:14px 0 7px;font-size:12px;font-weight:700}
.template-editor input,.template-editor textarea,.template-editor select{width:100%;border:1px solid #dae5e9;background:#fff;border-radius:9px;padding:11px 12px;font-size:13px}
.template-editor textarea{resize:vertical;min-height:115px;line-height:1.6}
.template-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.template-help,.template-warning{font-size:12px;line-height:1.55;color:#6d818c;margin:11px 0}
.template-warning{border-left:3px solid #dba55f;padding:9px 12px;background:#fffaf2;color:#806340}
.template-actions{display:flex;gap:10px;flex-wrap:wrap}
.template-actions button{margin-top:8px}
.start-preview{margin-top:15px;font-size:12px;line-height:1.6;background:#f2f7f7;padding:12px;border-radius:9px;color:#496671;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:740px){.templates-panel{padding:20px}.template-card-head{flex-direction:column}.template-fields{grid-template-columns:1fr}.template-card-buttons{align-self:flex-end}}

/* Version 0.3 – Einrichtungs- und API-Lesekontrolle */
.integrations-panel{padding:35px;max-width:980px;width:100%;overflow:auto;margin:auto;height:100%}
.integrations-panel .panel-head{line-height:1.5}.integrations-panel .panel-head h2{margin:9px 0}
.integration-alert{margin:18px 0;padding:14px 17px;border:1px solid #dce9e5;background:#eff7f5;border-radius:10px;font-size:12px;color:#345f58;line-height:1.65}
.integration-mode{font-size:11px;letter-spacing:.4px;font-weight:750;color:#337b69;padding:10px 14px;border-radius:8px;background:#e9f7f1;margin:12px 0}
.integration-mode.live-mode{color:#8a5b39;background:#fff2df}
.integration-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:16px 0}
.integration-card{background:white;border:1px solid #e1eaee;border-radius:14px;padding:22px;min-width:0}
.integration-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.integration-title h3{margin:0;font-size:16px}.integration-status{font-size:10px;padding:5px 8px;background:#f0f4f5;border-radius:7px;color:#506e79}
.integration-fields{margin:18px 0 12px}.integration-line{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eff3f4;padding:8px 0;font-size:12px;color:#536976}
.integration-line strong{color:#258575}.integration-line strong.missing{color:#a47e65}.integration-help{font-size:12px!important;line-height:1.6;color:#758b95;overflow-wrap:anywhere}.integration-error{font-size:12px;color:#b25a50}
.integration-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.meta-template-list{display:flex;flex-direction:column;gap:0}.meta-template-item{display:flex;justify-content:space-between;gap:15px;align-items:center;border-top:1px solid #eef2f4;padding:13px 0}
.meta-template-item strong{font-size:13px;display:block;overflow-wrap:anywhere}.meta-template-item small{font-size:11px;color:#7c919a;display:block;margin-top:5px}
.meta-template-state{border-radius:7px;padding:6px 8px;font-size:11px;background:#f7eee7;color:#9a7349;white-space:nowrap}
.meta-template-state.approved{background:#e6f6eb;color:#2c7950}
.demo-incoming-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.demo-incoming-form label{display:block!important;font-size:12px;margin:0!important}
.demo-incoming-form input,.demo-incoming-form select,.demo-incoming-form textarea{display:block;width:100%;margin-top:7px;border:1px solid #dce6eb;background:white;border-radius:9px;padding:11px;font-size:13px}
.demo-incoming-form .wide{grid-column:1/-1}.demo-incoming-form button{grid-column:1/-1;justify-self:start;margin-top:0}
.integration-checklist{font-size:12px;line-height:1.7;color:#506b75;padding-left:20px}.integration-checklist li{padding:5px 0}
@media(max-width:900px){.integration-cards{grid-template-columns:1fr}}
@media(max-width:740px){.integrations-panel{padding:20px}.demo-incoming-form{grid-template-columns:1fr}.demo-incoming-form .wide{grid-column:auto}}

/* Version 0.4 – Webhook-Testcenter und Ereignisprotokoll */
.test-result{margin-top:16px;border:1px dashed #cedfdf;background:#f7faf9;border-radius:9px;padding:13px;color:#55727c;font-size:12px;line-height:1.5}
.webhook-event-list{display:flex;flex-direction:column}
.webhook-event{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;border-bottom:1px solid #eef2f4;padding:12px 0;font-size:12px;color:#526e78}
.webhook-event strong{color:#1f4353}.webhook-event small{font-size:11px;color:#8b9da5}
/* Version 0.5 – Kundenverwaltung / CSV */
.customers-panel{padding:35px;max-width:1060px;width:100%;overflow:auto;margin:auto;height:100%}
.customer-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0 8px}
.customer-stats>div{background:white;border:1px solid #e1eaee;border-radius:13px;padding:18px}
.customer-stats strong{font-size:25px;display:block;color:#224353}.customer-stats small{display:block;margin-top:6px;color:#7e939c;font-size:11px}
.customer-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap}
.customer-filters{display:flex;gap:9px;flex:1;min-width:250px}
.customer-filters input{flex:1;min-width:100px}.customer-filters select{max-width:180px}
.customer-filters input,.customer-filters select,.csv-controls select,.csv-controls input,.customer-form-grid input,.customer-form-grid select,.customer-form-grid textarea,.csv-mapping-grid select,.customer-actions select{border:1px solid #dce6eb;background:#fff;border-radius:9px;padding:10px 12px;font-size:13px}
.customer-row{border-top:1px solid #eef2f4;display:flex;align-items:flex-start;gap:14px;padding:15px 0}
.customer-avatar{display:grid;place-items:center;border-radius:12px;width:39px;height:39px;flex:none;background:#e1f2ef;color:#288c7b;font-size:17px;font-weight:800}
.customer-row-main{min-width:0;flex:1}.customer-row-main strong{display:block;font-size:13px;color:#284452}.customer-row-main small{font-size:11px;color:#728997;display:block;overflow-wrap:anywhere;margin-top:5px}
.customer-row-main p{font-size:12px;color:#7b8e96;margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.customer-row-actions{display:flex;gap:7px;flex-wrap:wrap}.customer-row-actions button{font-size:11px;padding:8px}
.customer-editor{background:#f6faf9;border:1px solid #dce9e6;border-radius:11px;padding:18px;margin:14px 0 22px}
.customer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.customer-form-grid label,.csv-controls label,.csv-mapping-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#48606c;margin:0}
.customer-form-grid label.wide{grid-column:1/-1}
.customer-form-grid textarea{width:100%;min-height:65px;resize:vertical}
.customer-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0 0}
.customer-actions button,.customer-actions select{margin:0!important}
.customer-card-title{display:flex;align-items:baseline;gap:15px;justify-content:space-between;flex-wrap:wrap}
.customer-card-title a{font-size:12px;color:#138578}
.csv-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:end;margin:18px 0}
.csv-controls input{width:100%;font-size:12px;padding:8px}.csv-controls select{width:100%}
.csv-mapping{border:1px solid #e0eae9;padding:16px;border-radius:11px;background:#fbfdfc;margin-top:18px}
.csv-mapping h4,.csv-sample h4{font-size:13px;margin:0 0 10px}
.csv-mapping-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.csv-mapping-grid select{width:100%}
.csv-preview{margin-top:16px;padding:14px;border:1px solid #dce9e6;border-radius:11px;background:#f8fbfa}
.csv-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.csv-summary-cell{padding:9px;background:white;border:1px solid #e8eeef;border-radius:7px;text-align:center}
.csv-summary-cell strong{display:block;font-size:21px;color:#1c786b}.csv-summary-cell small{font-size:10px;color:#75919a}
.csv-sample{margin-top:16px}.csv-sample p{font-size:12px;margin:5px 0;color:#486874;overflow-wrap:anywhere}
.csv-errors{font-size:12px;color:#a15d38;background:#fff9f0;border-radius:8px;padding:12px;margin-top:12px;line-height:1.55}
.csv-errors p{margin:5px 0}.privacy-help{margin-top:18px!important}
.customer-picker{position:relative;max-height:160px;overflow:auto}.customer-choice{width:100%;background:#f4faf8;text-align:left;border:1px solid #dbece7;border-radius:7px;padding:10px;margin:4px 0;font-size:12px;color:#42636e}
.customer-choice:hover{background:#e1f2ed}
@media(max-width:900px){.customer-stats{grid-template-columns:repeat(3,1fr)}.csv-controls{grid-template-columns:1fr}}
@media(max-width:740px){.customers-panel{padding:20px}.customer-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-stats>div{padding:12px}.customer-stats strong{font-size:20px}.customer-form-grid,.csv-mapping-grid{grid-template-columns:1fr}.customer-form-grid label.wide{grid-column:auto}.customer-filters{flex-direction:column;flex-basis:100%}.customer-filters select{max-width:none}.customer-row{gap:8px}.customer-row-actions{flex-direction:column}.csv-summary{grid-template-columns:repeat(2,1fr)}}

/* Version 0.6: Mehrfachauswahl und Sammelnachrichten. */
.customer-select{width:18px;height:18px;accent-color:#268c7d;flex:none;margin-top:10px;cursor:pointer}
.bulk-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:11px 13px;margin:0 0 14px;background:#eef8f6;border:1px solid #d5eae5;border-radius:12px}
.bulk-select-all{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#315969;white-space:nowrap}
.bulk-select-all input{width:17px;height:17px;accent-color:#248a79}
.bulk-toolbar strong{font-size:12px;color:#1b7468;margin-right:auto}
.bulk-toolbar button{padding:8px 9px;font-size:11px}
.bulk-toolbar button:disabled{opacity:.42;cursor:not-allowed}
.bulk-composer{background:#f5fbf9;border:1px solid #bcded6;border-radius:12px;padding:19px;margin:6px 0 18px}
.bulk-composer h3{font-size:17px;margin:0 0 7px;color:#254556}
.bulk-composer>p{font-size:12px;line-height:1.6;color:#637d86;margin:8px 0 16px}
.demo-inline{font-size:9px;letter-spacing:.08em;color:#a55b2b;background:#fff2df;padding:4px 6px;border-radius:5px;margin-left:7px}
.bulk-compose-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.bulk-compose-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#45646b}
.bulk-compose-fields label.wide{grid-column:1/-1}
.bulk-compose-fields input,.bulk-compose-fields select,.bulk-compose-fields textarea{border:1px solid #dce6eb;background:white;border-radius:9px;padding:10px 12px;font:inherit;min-width:0}
.bulk-compose-fields textarea{resize:vertical;min-height:92px}
.bulk-preview{background:white;border:1px solid #d5e7e1;border-radius:11px;padding:14px;margin-top:14px;max-height:410px;overflow:auto}
.bulk-preview>strong{font-size:12px;color:#287869}
.bulk-preview-item{padding:11px 0;border-bottom:1px solid #edf2ef}
.bulk-preview-item strong{font-size:11px;color:#325766}
.bulk-preview-item p{font-size:12px;line-height:1.55;white-space:pre-wrap;color:#587580;margin:7px 0 0;overflow-wrap:anywhere}
@media(max-width:740px){.bulk-toolbar{align-items:stretch}.bulk-toolbar strong{width:100%;margin:0}.bulk-toolbar button{flex:1 1 40%}.bulk-compose-fields{grid-template-columns:1fr}.bulk-compose-fields label.wide{grid-column:auto}}

/* Version 0.6.1: Navigation bleibt bei großen Kundenlisten an der Oberkante.
   Das Inhalts-Panel scrollt unabhängig von der linken Navigation. */
.app{min-height:0;grid-template-rows:minmax(0,1fr);overflow:hidden}
.sidebar{min-height:0;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain}
.sidebar .brand{padding-bottom:22px}
.sidebar .side-bottom{margin-top:12px;border-top:1px solid #354d58;padding-top:15px;flex-shrink:0}
.sidebar .sidebar-section{margin:0 16px 11px}
.sidebar .user-pill{margin-top:8px;padding-top:11px}
@media(max-width:740px){.sidebar.open{overflow-y:auto;max-height:100dvh}}

/* Version 0.7 – Team, Live-Synchronisierung und ungelesene Unterhaltungen. */
.unread-pill{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;
 border-radius:12px;padding:0 6px;font-size:10px;font-weight:800;background:#207f70;color:white;margin-left:auto}
.typing-note{display:block;color:#278979!important;font-size:11px!important;margin-top:3px}
.staff-panel{width:100%;height:100%;overflow:auto;max-width:950px;padding:35px;margin:auto}
.staff-create-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin-top:14px}
.staff-create-form label{font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:7px;color:#516c77}
.staff-create-form input{border:1px solid #dce6eb;border-radius:9px;padding:11px;min-width:0}
.staff-create-form button{height:42px}
.staff-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-top:1px solid #e4ecef}
.staff-details strong,.staff-details small{display:block}.staff-details strong{color:#233d4b;font-size:13px}
.staff-details small{color:#738997;font-size:11px;margin-top:4px}.staff-details .staff-disabled{color:#b45d54}
.staff-actions{display:flex;gap:7px;flex-wrap:wrap}.staff-actions button{font-size:11px;padding:8px 10px}
@media(max-width:900px){.staff-create-form{grid-template-columns:1fr 1fr}.staff-create-form button{grid-column:1/-1}}
@media(max-width:740px){.staff-panel{padding:20px}.staff-create-form{grid-template-columns:1fr}.staff-create-form button{grid-column:auto}.staff-row{align-items:flex-start;flex-direction:column}}


/* Version 0.8: separate, bewusst violette Team-Kommunikation. */
.internal-nav-wrap{border-top:1px solid #354d58;margin:9px 3px 0;padding-top:14px}
.internal-nav-wrap .sidebar-label{color:#c5b6fa;margin-bottom:8px}
.internal-nav{color:#f4ecff!important;background:#42356c!important;border:1px solid #655391!important;font-weight:750}
.internal-nav:hover,.internal-nav.selected{background:#5b438f!important;border-color:#9982d7!important}
.team-count{background:#eee4ff!important;color:#573286!important;font-weight:900;min-width:23px;text-align:center;border-radius:20px;padding:3px 6px}
.team-panel{height:100%;width:100%;display:flex;flex-direction:column;min-height:0;background:#f6f3fc;color:#362e54}
.team-top{display:flex;align-items:center;gap:15px;padding:24px 27px 19px;background:linear-gradient(110deg,#58418a,#7560a6);color:white;flex:none}
.team-top-icon{width:45px;height:45px;display:grid;place-items:center;font-size:26px;background:#ffffff21;border:1px solid #ffffff45;border-radius:13px}
.team-kicker{font-size:10px;letter-spacing:1.5px;font-weight:850;color:#e7dafe}
.team-top h2{font-size:23px;margin:5px 0 3px;color:white}.team-top p{font-size:12px;margin:0;color:#e5daf6}
.team-workspace{display:grid;grid-template-columns:minmax(185px,250px) minmax(0,1fr);flex:1;min-height:0}
.team-rooms{background:#f1ebfa;display:flex;flex-direction:column;min-width:0;border-right:1px solid #e0d6f1;overflow:auto}
.team-room-heading{font-size:10px;color:#806ba3;letter-spacing:1.25px;font-weight:800;padding:20px 16px 12px}
.team-channel-list{padding:0 8px;display:flex;flex-direction:column;gap:5px}
.team-channel{display:flex;align-items:center;width:100%;text-align:left;padding:12px 10px;border:0;background:transparent;border-radius:10px;gap:9px;color:#493b67}
.team-channel.active,.team-channel:hover{background:#e3d8f5}
.team-channel-icon{flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#d2c0ef;color:#5d428e}
.team-channel-details{min-width:0;flex:1}.team-channel-details strong{font-size:12px;display:block}.team-channel-details small{display:block;font-size:10px;color:#8675a3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}
.team-channel-badge{background:#7352a8;border-radius:15px;min-width:22px;text-align:center;padding:3px 6px;color:white;font-size:10px;font-weight:800}
.team-new-direct{margin-top:auto;border-top:1px solid #dfd5ee;padding:15px}
.team-new-direct label{font-size:11px;color:#69538d;font-weight:800;display:block;margin-bottom:8px}
.team-new-direct select{background:white;width:100%;border:1px solid #d6c7eb;border-radius:9px;padding:10px;font-size:12px}
.team-direct-btn{width:100%;border:1px solid #c8b4e6;background:white;border-radius:9px;color:#5a3c87;padding:10px;font-size:12px;font-weight:750;margin-top:9px}
.team-direct-btn:hover{background:#e9ddfa}
.team-chat-view{display:flex;flex-direction:column;min-height:0;min-width:0}
.team-chat-header{flex:none;background:#faf8fe;border-bottom:1px solid #e6def2;padding:15px 22px}
.team-chat-header strong{display:block;color:#493269;font-size:15px}.team-chat-header small{display:block;color:#8674a1;font-size:11px;margin-top:4px}
.team-messages{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:13px;padding:24px 5%}
.team-blank{margin:auto;color:#9a8cb0;font-size:13px;text-align:center}
.team-bubble{max-width:min(80%,580px);background:white;border:1px solid #e5d9f4;border-radius:14px;padding:12px 15px;align-self:flex-start;box-shadow:0 3px 10px #5540790a}
.team-bubble.mine{align-self:flex-end;background:#e1d1f8;border-color:#d9c2f4}
.team-bubble-body{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;display:block;color:#392c54}
.team-bubble small{display:block;text-align:right;color:#8774a4;margin-top:7px;font-size:10px}
.team-composer{flex:none;display:flex;align-items:flex-end;gap:10px;background:#faf8fe;padding:15px 20px 6px;border-top:1px solid #e9e0f4}
.team-composer textarea{flex:1;resize:vertical;min-height:52px;max-height:130px;border:1px solid #d4c4e7;border-radius:11px;background:white;padding:12px;font-size:13px;color:#433258}
.team-composer textarea:focus{border-color:#8666b6}
.team-composer button{background:#7354a6;border:1px solid #7354a6;color:white;border-radius:10px;font-weight:800;padding:13px 15px;white-space:nowrap;font-size:12px;height:49px}
.team-composer button:hover{background:#62438e}.team-privacy{background:#faf8fe;color:#897a9e;margin:0;padding:8px 22px 15px;font-size:10px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.team-workspace{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:740px){.team-top{padding:17px}.team-top h2{font-size:20px}.team-top p{font-size:11px}.team-workspace{display:flex;flex-direction:column;overflow:hidden}.team-rooms{flex:none;max-height:210px;overflow:auto;border-right:0;border-bottom:1px solid #dcd0f1}.team-room-heading{padding:10px 14px 6px}.team-channel-list{display:flex;flex-direction:row;overflow-x:auto;min-height:62px}.team-channel{min-width:145px;width:auto;max-width:190px;padding:9px}.team-new-direct{margin:0;padding:8px 12px;display:flex;align-items:center;gap:8px}.team-new-direct label{display:none}.team-new-direct select{flex:1;min-width:0}.team-direct-btn{width:auto;flex:none;margin:0}.team-chat-view{flex:1}.team-messages{padding:14px}.team-bubble{max-width:90%}.team-composer{padding:9px}.team-composer button{padding:10px;height:46px}.team-privacy{padding:5px 10px 9px}}

.team-mobile-menu{display:none;background:#ffffff20;border:1px solid #ffffff50;border-radius:9px;color:white;padding:9px;font-size:16px}
@media(max-width:740px){.team-mobile-menu{display:inline-block;align-self:center}}

/* Team-Bereich erhält auf Desktop beide Inhalts-Spalten. */
@media(min-width:741px){.app.team-view{grid-template-columns:230px minmax(0,1fr)}.app.team-view .list-pane{display:none}}
@media(min-width:741px) and (max-width:1050px){.app.team-view{grid-template-columns:200px minmax(0,1fr)}}

/* Version 0.9: nur für Administratoren sichtbare Fernzugriffs-Kontrolle */
.server-panel{padding:35px;max-width:930px;width:100%;margin:auto;overflow:auto;height:100%}
.server-checks{display:grid;gap:0;border:1px solid #e4eaed;border-radius:10px;overflow:hidden}
.server-check{padding:13px 15px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #edf0f2;font-size:13px}
.server-check:last-child{border-bottom:0}.server-check strong{color:#324b5a}
.server-check span{text-align:right}.server-ok{color:#24715d;font-weight:700}.server-warning{color:#956b37;font-weight:700}
.server-audit-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:9px 0;border-bottom:1px solid #ecf1f3;font-size:13px}
.server-audit-row small{color:#778c97;text-align:right}
@media(max-width:740px){.server-panel{padding:20px}.server-check,.server-audit-row{align-items:flex-start;flex-direction:column;gap:4px}.server-check span,.server-audit-row small{text-align:left}}

/* Version 0.10.1: klarer Einstellungsbereich für Browser-Push */
.push-panel {overflow:auto; padding:24px 28px 50px; width:100%; max-width:100%;}
.push-card {border-left:4px solid #76a5c9;}
.push-status {padding:12px 14px; background:#edf5fa; color:#173b54; border-radius:9px; font-size:14px; margin:12px 0;}
.push-choices {display:flex; flex-direction:column; gap:12px; margin:14px 0;}
.push-choices label {display:flex; align-items:center; gap:9px; font-size:14px;}
.push-choices input {width:18px; height:18px;}
.push-actions {display:flex; flex-wrap:wrap; gap:8px; margin:16px 0;}
@media(max-width:700px) {.push-panel {padding:15px;} .push-actions button {width:100%;}}
