/* Obsidra design system: espresso, warm paper, restrained copper. */
:root{--ink:#292523;--muted:#7a736e;--line:#e8e3de;--paper:#fff;--accent:#79543e;--wash:#f3ede7;--green:#42775f;--red:#ab4740;background:#f8f7f5;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.012em}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{background:#f8f7f5}button,input,select,textarea{font-size:14px}button{border-radius:9px;font-weight:550;transition:background .15s,border-color .15s,box-shadow .15s}button.primary{box-shadow:0 2px 3px #4d332213;background:#775039}button.primary:hover{background:#65422f;box-shadow:0 4px 10px #55392322}input,select,textarea{border-color:#ded8d2;border-radius:9px;padding:11px 13px;background:#fff;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:#9a765d;box-shadow:0 0 0 3px #92705813}input::placeholder,textarea::placeholder{color:#aaa29a}h1{font-size:31px;font-weight:620;letter-spacing:-1.2px}h2{font-size:20px;font-weight:600}h3{font-weight:600}.eyebrow{font-size:10px;letter-spacing:.12em;color:#8c8177}.card{border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 3px #43332902;background:#fff;padding:24px}.stack{gap:22px}.compact{gap:12px}.muted,small{color:var(--muted)}.icon{width:19px;height:19px;flex:none;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.shell{grid-template-columns:226px minmax(0,1fr)}.sidebar{background:#282321;color:#d2c6bc;padding:29px 16px 22px;border:0;gap:38px}.brand{font-family:Georgia,"Times New Roman",serif;font-size:27px;letter-spacing:.13em;color:#f6eee7;padding:0 12px;font-weight:400}.brand small{font:9px system-ui;letter-spacing:.21em;color:#aa998c;margin-top:9px}.sidebar .nav{gap:7px}.nav button{color:#bfb3a9;font-size:13px;display:flex;align-items:center;gap:13px;padding:12px 16px;min-height:47px;border-radius:9px;position:relative;font-weight:500}.nav button:hover{background:#ffffff08;color:#fff}.nav button.active{background:#f2e8dd;color:#4c382a;box-shadow:0 4px 12px #0000000a}.nav button.active .icon{color:#79553d}.nav button[data-count]::after{content:attr(data-count);margin-left:auto;font-size:11px;font-variant-numeric:tabular-nums;background:#e0d0bd;border-radius:5px;padding:2px 6px}.nav-label{font-size:9px;letter-spacing:.18em;color:#8f8176;margin:0 16px 12px}.sidebar-footer{border-top:1px solid #ffffff13;padding:22px 8px 0;gap:16px}.sidebar-footer small{color:#c0b2a5;font-size:12px}.sidebar-footer button{background:#ffffff05;color:#c0b2a5;border:1px solid #ffffff16;font-size:12px}.sidebar-footer button:hover{background:#ffffff12}.sidebar-logout{width:100%;min-height:42px;text-align:left;background:transparent!important;color:#bfb3a9!important;border:0!important;border-radius:9px!important;padding:10px 12px!important;box-shadow:none!important}.sidebar-logout:hover{background:#ffffff0b!important;color:#fff!important}.profile{display:flex;align-items:center;gap:10px}.profile strong{display:block;color:#eadfd5;font-size:12px;font-weight:500}.profile small{font-size:10px}.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;font-size:12px;background:#efe6dc;color:#825e43;font-weight:600;letter-spacing:.025em;flex:none}.sidebar .avatar{background:#4b3e34;color:#e5cdb4;border:1px solid #78604b}.workspace-note{font-size:10px;color:#897a6f;line-height:1.5}.main{padding:32px 38px 50px;max-width:1600px;width:100%;margin:0 auto}.topbar{border-bottom:1px solid var(--line);padding-bottom:25px;margin-bottom:25px;align-items:center}.topbar .eyebrow{font-size:10px}.topbar button.primary{padding-left:20px;padding-right:20px}.banner{background:#faf4e9;color:#847057;border:1px solid #ede1cb;border-radius:9px;font-size:12px;line-height:1.5;margin-bottom:22px}.page-subtitle{font-size:13px;color:var(--muted);margin-top:8px;line-height:1.6}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:26px}.stat-card{padding:20px 21px;border:1px solid var(--line);border-radius:12px;background:#fff;position:relative;overflow:hidden}.stat-card .stat-top{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px;color:#79716b}.stat-card .icon{color:#a89480;width:17px;height:17px}.stat-value{font-size:31px;font-weight:600;letter-spacing:-1.3px;margin-top:17px;font-variant-numeric:tabular-nums;line-height:1}.stat-foot{color:#999088;font-size:10px;margin-top:10px}.stat-card.featured{background:#eee6dc;border-color:#e8ddcf}.stat-card.featured .stat-value{color:#785239}.filter-panel{border:0;background:transparent;box-shadow:none;padding:0;margin-bottom:0}.filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.filters label>span{font-size:11px;font-weight:500;color:#81776e}.filters .search{grid-column:1/-1}.filter-advanced{border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 17px}.filter-advanced summary{font-size:12px;color:#756c64;justify-content:space-between}.filter-advanced[open]{padding-bottom:17px}.filter-advanced summary::after{content:'+';font-size:18px;color:#a68d75}.filter-advanced[open] summary::after{content:'−'}.inbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:4px 0 0;flex-wrap:wrap}.inbox-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);flex:1;min-width:0;overflow:auto}.inbox-tabs button{background:transparent;border:0;border-radius:0;color:#8e837a;font-size:12px;padding:8px 1px 13px;white-space:nowrap;min-height:44px;border-bottom:2px solid transparent}.inbox-tabs button.selected{color:#765139;border-bottom-color:#765139}.count{font-size:11px;color:#93887f}.ticket-list{gap:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff}.ticket-row{border:0;border-bottom:1px solid #eee9e4;border-radius:0;padding:20px 22px;background:#fff;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:16px;align-items:start}.ticket-row:last-child{border-bottom:0}.ticket-row:hover{background:#fcfaf7}.ticket-main{min-width:0}.ticket-row h3{margin:7px 0 8px;font-size:14px;font-weight:580;letter-spacing:-.015em}.ticket-row small{font-size:11px}.ticket-preview{font-size:12px;color:#9a9087;font-weight:400;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.ticket-side{display:grid;gap:14px;justify-items:end;min-width:120px}.ticket-side time{font-size:10px;color:#a1958b;font-weight:400}.ticket-side .priority-label{font-size:10px;color:#9b8571;display:flex;gap:5px;align-items:center}.priority-dot{width:5px;height:5px;background:#b9ab9c;border-radius:50%;display:inline-block}.priority-dot.high,.priority-dot.urgent{background:#c1724f}.badge{font-size:10px;padding:5px 9px;border-radius:5px;font-weight:550;letter-spacing:0}.badge.open{background:#f4e7d7;color:#8d6334}.badge.progress{background:#e7edf3;color:#557691}.badge.waiting{background:#f1eaf5;color:#91769e}.badge.clarify{background:#f7e4de;color:#b4654b}.badge.done,.badge.closed,.badge.ai_done{background:#e7efe7;color:#5d8663}.badge.high,.badge.urgent{background:#f4dfd7;color:#ad6245}.channel-tag{font-size:10px;border:1px solid #e9e2db;color:#8b7b6d;border-radius:4px;padding:2px 6px;font-weight:400}.ticket-layout{grid-template-columns:minmax(0,1fr) 320px;gap:23px}.ticket-layout>.stack{gap:18px}.ticket-aside .card{padding:21px}.ticket-aside .card .card{padding:15px;background:#fbf9f6;border-radius:10px}.ticket-aside label>span{font-size:11px;font-weight:500;color:#887c71}.ticket-aside input,.ticket-aside select{font-size:12px}.ticket-aside button{font-size:12px}.ticket-aside h3{font-size:14px}.message{border:1px solid var(--line);border-radius:12px;padding:21px 24px;background:#fff;position:relative}.message small{font-size:11px;color:#9d9084;display:flex;align-items:center;gap:9px}.message small::before{content:'';width:6px;height:6px;border-radius:50%;background:#bda78f;flex:none}.message pre{font-size:14px;line-height:1.75;color:#4f4740;margin-top:13px}.message.note{background:#fbf5e8;border:1px solid #efdfbf}.message.note small::before{background:#c6984f}.message.outgoing{background:#f2f5f0;border-color:#e0e8dc}.message.outgoing small::before{background:#7b9a70}.compose{box-shadow:0 5px 24px #48372905}.compose textarea{border:0;background:#faf9f7;padding:15px;min-height:150px;resize:vertical}.compose .field>span{font-size:12px;color:#8c7b6b}.compose h3{font-size:14px}.compose button.primary{justify-self:end}.attachment-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.attachment-tile{padding:13px;border:1px solid var(--line);border-radius:9px;background:#faf9f6;min-width:0}.attachment-tile a,.attachment-tile button{overflow-wrap:anywhere;font-size:11px}.attachment-tile small{font-size:10px;display:block;margin-top:6px}.upload-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.upload-line input{font-size:12px;max-width:100%}.empty{padding:65px 22px;border:0;border-radius:0;font-size:13px;background:#fff}.customer-card{position:relative;padding:23px;background:#fff}.customer-card h3{font-size:16px}.customer-card small{font-size:12px}.customer-card .row{border-top:1px solid var(--line);padding-top:15px;margin-top:9px}.customer-card button{font-size:12px}.audit-entry{font-size:11px;padding:13px 0;color:#82766c}.audit-entry small{display:block;font-size:10px;margin-top:4px}details.card>summary{font-size:14px;color:#63564b;gap:12px}details.card>summary::before{content:'+';color:#ae9781;font-size:20px;font-weight:400}details.card[open]>summary::before{content:'−'}.settings-intro{margin-bottom:24px}.channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.channel-card{padding:26px;border-radius:14px;background:#fff;border:1px solid var(--line)}.channel-card .icon-well{width:42px;height:42px;border-radius:11px;background:#f2ece5;color:#967153;display:grid;place-items:center;margin-bottom:22px}.channel-card h2{font-size:18px;margin-bottom:7px}.channel-card p{font-size:12px;color:#8d8075;line-height:1.65}.channel-card .check{margin-top:23px;font-size:12px}.check input{appearance:none;width:36px;height:21px;min-height:21px;border:0;border-radius:15px;background:#dcd7d2;position:relative;cursor:pointer;padding:0;flex:none}.check input::after{content:'';position:absolute;top:3px;left:3px;width:15px;height:15px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:left .15s}.check input:checked{background:#836246}.check input:checked::after{left:18px}.integration-code{display:block;width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.6 ui-monospace,SFMono-Regular,monospace;color:#8a6850;background:#f8f5f0;border:1px solid #e7ded2;border-radius:9px;padding:16px}.section-description{font-size:12px;color:#8a7e74;line-height:1.65}.form-section{padding:24px;border-top:1px solid var(--line)}.pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;background:#ede9e4;border-radius:20px;padding:6px 10px;color:#8b7b6d}.pill::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.pill.good{color:#6a8b6a;background:#edf2e8}.delivery-label{font-size:10px;color:#7d9380;margin-top:12px}.delivery-label.failed,.delivery-label.uncertain{color:#b46249}.auth{max-width:1000px;min-height:640px;padding:0;margin:8vh auto;display:grid;grid-template-columns:1fr 1fr;border:1px solid #e3dacf;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 20px 80px #59442d0a}.auth-intro{background:#342922;color:#ede2d8;padding:54px 42px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;gap:50px}.auth-intro::after{content:'';position:absolute;width:350px;height:350px;border:1px solid #8e6e4838;border-radius:50%;bottom:-155px;right:-60px;box-shadow:0 0 0 40px #99734408,0 0 0 80px #99734405}.auth .brand{padding:0;font-size:28px}.auth-intro h2{font:40px/1.22 Georgia,serif;color:#eedbca;letter-spacing:-1.5px;max-width:270px}.auth-intro p{font-size:12px;line-height:1.8;color:#ad9986;max-width:270px;margin-top:20px}.auth-form{padding:58px 40px;align-self:center;min-width:0}.auth-form h1{font-size:25px;margin-bottom:12px;letter-spacing:-.6px}.auth-form>p{font-size:12px;line-height:1.7}.auth .card{border:0;padding:0;box-shadow:none;margin-top:32px}.auth .field>span{font-size:12px;color:#7d6c5d}.auth .field input{min-height:47px}.auth .primary{margin-top:9px}.auth-foot{font-size:10px;color:#a99078;letter-spacing:.1em}.public-page{min-height:100dvh;background:#f8f5f0;padding:45px 20px}.public-header{max-width:940px;margin:0 auto 44px;display:flex;justify-content:space-between;align-items:center;gap:20px}.public-header .brand{color:#654d3b;font-size:27px;padding:0}.public-header small{font-size:11px}.public-shell{max-width:940px;margin:auto;display:grid;grid-template-columns:300px minmax(0,1fr);gap:55px;align-items:start}.public-intro{padding-top:25px}.public-intro h1{font:44px/1.16 Georgia,serif;letter-spacing:-1.2px;color:#674c37;margin:17px 0 24px}.public-intro p{font-size:13px;color:#918170;line-height:1.85}.public-intro .public-detail{font-size:11px;margin-top:32px;border-top:1px solid #e6ded3;padding-top:22px}.public-card{padding:32px;border:1px solid #e9e1d7;background:#fff;border-radius:17px;box-shadow:0 10px 40px #5a483006}.public-card label>span{font-size:12px;color:#82705f}.public-card .primary{width:100%;min-height:48px}.public-card .check{align-items:flex-start;font-size:11px;line-height:1.7;color:#978572}.public-card .check input{appearance:auto;min-width:16px;width:16px;height:16px;min-height:16px;margin-top:2px;border-radius:3px;accent-color:#79543e}.public-card .check input::after{display:none}.honeypot{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.public-error{color:#a6503b;font-size:12px;line-height:1.6}.receipt{padding:40px 22px;text-align:center;display:grid;gap:20px}.receipt .receipt-mark{width:60px;height:60px;display:grid;place-items:center;font-size:25px;border-radius:50%;background:#eaf0e5;color:#768c62;margin:0 auto}.receipt code{color:#805b3e;font-size:18px}.chat-messages{height:min(52vh,470px);overflow-y:auto;padding:20px;background:#fbf9f5;border:1px solid #eee7dc;border-radius:11px;display:flex;flex-direction:column;gap:14px}.chat-bubble{max-width:88%;padding:13px 16px;border-radius:14px 14px 14px 3px;background:#fff;border:1px solid #e8dfd3;color:#786450;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;align-self:flex-start}.chat-bubble.incoming{align-self:flex-end;background:#836147;border-color:#836147;color:#fff;border-radius:14px 14px 3px 14px}.chat-bubble time{display:block;font-size:9px;opacity:.6;margin-top:7px}.chat-bubble button{display:block;font-size:10px;margin-top:10px}.chat-compose{display:grid;gap:12px;margin-top:16px}.chat-compose textarea{min-height:80px}.chat-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:22px}.chat-header h2{font-size:17px}.chat-header small{font-size:10px;color:#a08b78}.chat-header button{font-size:11px}.widget-page{padding:0;background:transparent;min-height:100dvh}.widget-page .public-header,.widget-page .public-intro{display:none}.widget-page .public-shell{display:block;padding:0;width:100%;max-width:none}.widget-page .public-card{border-radius:16px;padding:21px;min-height:100dvh}.widget-page .chat-messages{height:43vh}.widget-page .public-card .grid{grid-template-columns:minmax(0,1fr)}#notice{font-size:13px;border-radius:10px;background:#3f332b;box-shadow:0 8px 32px #3d291522;padding:15px 21px}#notice.error{background:#954c3b}
@media(min-width:1600px){.main{padding:40px 55px}.ticket-layout{grid-template-columns:minmax(0,1fr) 345px}.ticket-row{padding:23px 27px}.stats-grid{gap:20px}}
@media(max-width:1150px){.shell{grid-template-columns:195px minmax(0,1fr)}.main{padding:28px 25px}.sidebar{padding-left:12px;padding-right:12px}.brand{font-size:24px}.ticket-layout{grid-template-columns:minmax(0,1fr)}.ticket-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{gap:10px}.stat-card{padding:18px 14px}.stat-top{font-size:10px!important}.stat-foot{font-size:9px}.channel-grid{gap:14px}}
@media(max-width:820px){.public-shell{grid-template-columns:minmax(0,1fr);gap:25px;max-width:560px}.public-header{max-width:560px;margin-bottom:20px}.public-intro{padding-top:10px}.public-intro h1{font-size:37px;margin:12px 0}.public-intro .public-detail{display:none}.public-card{padding:25px}.auth{margin:5vh 24px;min-height:570px}.auth-intro{padding:40px 29px}.auth-intro h2{font-size:34px}.auth-form{padding:40px 28px}}
@media(max-width:720px){.shell{display:block}.sidebar{position:relative;height:auto;gap:20px;padding:21px 17px 14px}.sidebar .brand{font-size:23px;padding:0 3px}.sidebar .brand small{font-size:8px;margin-top:6px}.sidebar .nav{display:flex;gap:6px;overflow:auto;flex-wrap:nowrap}.nav button{min-width:90px;flex:1;justify-content:center;padding:11px 9px;gap:7px;font-size:11px;min-height:44px}.nav .icon{width:16px;height:16px}.nav-label{display:none}.nav button[data-count]::after{display:none}.sidebar-footer{position:absolute;top:20px;right:18px;margin:0;padding:0;border:0;display:flex}.sidebar-footer .profile strong,.sidebar-footer .profile small,.workspace-note{display:none}.sidebar-footer .profile .avatar{width:31px;height:31px;border-radius:9px;font-size:10px}.sidebar-footer>button{min-height:31px;padding:5px 9px;font-size:10px}.sidebar-footer>.sidebar-logout{width:auto;min-height:31px;padding:5px 9px!important;font-size:10px;text-align:center}.main{padding:26px 16px 60px}.topbar{padding-bottom:21px;margin-bottom:22px;align-items:center}.topbar h1{font-size:27px}.topbar>button{width:auto;font-size:12px;padding:10px 13px}.topbar .eyebrow{font-size:8px}.page-subtitle{font-size:12px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:21px}.stat-card{padding:16px 17px}.stat-value{font-size:28px;margin-top:14px}.stat-card .stat-top{font-size:11px!important}.stat-foot{font-size:9px}.ticket-row{padding:17px 14px;grid-template-columns:30px minmax(0,1fr);gap:11px}.ticket-row .avatar{width:30px;height:30px;border-radius:9px;font-size:10px}.ticket-row h3{font-size:13px;line-height:1.5;margin:7px 0}.ticket-side{grid-column:2;display:flex;gap:12px;min-width:0;justify-content:space-between;align-items:center}.ticket-side time{font-size:9px}.ticket-preview{font-size:11px}.ticket-main>small{font-size:10px}.inbox-tabs{gap:18px}.inbox-tabs button{font-size:11px}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filters .field:last-of-type{grid-column:auto}.card{padding:20px;border-radius:12px}.ticket-aside{grid-template-columns:minmax(0,1fr)}.ticket-layout{gap:18px}.message{padding:18px 19px}.message pre{font-size:13px;line-height:1.7}.message small{font-size:10px}.compose textarea{min-height:130px}.compose button.primary{justify-self:stretch}.channel-grid{grid-template-columns:minmax(0,1fr)}.channel-card{padding:22px}.channel-card .icon-well{margin-bottom:16px}.auth{display:block;margin:22px 16px;min-height:0;border-radius:16px}.auth-intro{padding:28px 26px;gap:25px}.auth-intro h2{font-size:27px;max-width:280px}.auth-intro p,.auth-foot{display:none}.auth-intro::after{width:250px;height:250px;bottom:-160px}.auth-form{padding:30px 25px}.auth-form h1{font-size:22px}.auth .card{margin-top:24px}.public-page{padding:25px 16px}.public-header .brand{font-size:23px}.public-header small{font-size:10px}.public-intro h1{font-size:36px}.public-card{padding:23px 19px;border-radius:14px}.public-intro p{font-size:12px}.widget-page{padding:0}.widget-page .public-card{border-radius:0;padding:18px}.check{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* Customer selection dialog: native modal focus handling, compact mobile layout. */
.customer-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #ded5ca;border-radius:18px;background:#fff;color:#4f4740;box-shadow:0 28px 100px #241b2940;overflow:auto;margin:auto}.customer-dialog::backdrop{background:#241d19a6}.customer-dialog-header{padding:25px 26px 19px;border-bottom:1px solid var(--line)}.customer-dialog-header h2{margin-bottom:10px}.customer-dialog-body{padding:22px 26px}.customer-dialog-footer{padding:20px 26px;background:#faf7f2;border-top:1px solid var(--line);display:grid;gap:12px}.customer-dialog-footer>.row{justify-content:flex-end}.customer-dialog-footer small{font-size:11px}.customer-selection{font-size:13px;font-weight:600;overflow-wrap:anywhere}.customer-results{display:grid;gap:9px;max-height:320px;overflow:auto}.customer-result{display:flex;gap:13px;align-items:center;text-align:left;padding:14px;width:100%;border:1px solid #e5ddd4;background:#fff}.customer-result:hover{background:#faf7f2}.customer-result[aria-pressed=true]{border-color:#886345;background:#f1e7db;box-shadow:inset 0 0 0 1px #886345}.customer-result-details{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.customer-result-details strong{font-size:14px}.customer-result-details>span{font-size:12px;color:#817366}.customer-result-details small{font-size:10px}.customer-dialog :focus-visible{outline:2px solid #805b3e;outline-offset:3px}.customer-dialog button{min-height:44px}@media(max-width:520px){.customer-dialog-header,.customer-dialog-body,.customer-dialog-footer{padding:18px}.customer-dialog-footer>.row{display:grid;grid-template-columns:1fr 1fr}.customer-dialog-footer button{font-size:12px;padding:10px}.customer-result .avatar{display:none}}

/* Explicit UI visibility must take precedence over grid/flex component styles. */
[hidden]{display:none!important}

/* Voice previews stay within their card on small screens. */
audio{display:block;width:100%;max-width:100%;}

.phone-call-card{padding:1rem;border:1px solid var(--border,#e5e0d9);border-radius:14px;background:var(--surface,#fff)}
/* Operations settings follow the existing calm cards and wrap on small screens. */
.notification-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--line,#e7e0d7)}
.notification-row>div:first-child{flex:1;min-width:220px}.notification-row p{margin:5px 0;font-size:12px}
.cleanup-table-scroll{overflow-x:auto;border:1px solid #e7e0d7;border-radius:10px}.cleanup-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.cleanup-table th,.cleanup-table td{padding:13px 16px;border-bottom:1px solid #eee7df;overflow-wrap:anywhere;min-width:150px}.cleanup-table th{background:#f8f5f0;color:#6c5c4e}.cleanup-table tr:last-child td{border-bottom:0}
.support-details{display:flex;flex-wrap:wrap;gap:6px 18px;color:#756757;font-size:13px;line-height:1.6;margin:0 0 20px}.support-details:empty{display:none}

/* Immutable technical status reference in status settings. */
.system-status{
  display:block;
  font-size:10px;
  line-height:1.3;
  font-weight:500;
  letter-spacing:.04em;
  color:#9a8d82;
  margin-bottom:1px;
}

/* Desktop sidebar footer: keep account controls inside the sidebar. */
@media(min-width:721px){
  .shell{
    min-height:100dvh;
    align-items:stretch;
  }

  .sidebar{
    min-height:100dvh;
    box-sizing:border-box;
  }

  .sidebar-footer{
    margin-top:auto;
  }
}

/* Desktop sidebar: navigation may shrink/scroll while footer stays inside. */
@media(min-width:721px){
  .sidebar{
    overflow:hidden;
  }

  .sidebar-nav-area{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-width:thin;
    scrollbar-color:#ffffff18 transparent;
  }

  .sidebar-footer{
    flex:0 0 auto;
    margin-top:0;
  }
}

@media(max-width:720px){
  .sidebar{
    overflow:visible;
  }

  .sidebar-nav-area{
    overflow:visible;
    min-height:0;
  }
}

/* Mobile readability correction – desktop remains unchanged. */
@media (max-width:720px) {
  body {
    font-size:16px;
  }

  .main {
    padding:22px 14px 50px;
  }

  .topbar h1 {
    font-size:28px;
  }

  .topbar .eyebrow {
    font-size:10px;
  }

  .page-subtitle {
    font-size:13px;
  }

  .nav button {
    font-size:13px;
    min-width:105px;
  }

  .ticket-row h3 {
    font-size:15px;
  }

  .ticket-preview {
    font-size:13px;
  }

  .ticket-main > small {
    font-size:12px;
  }

  .ticket-side time {
    font-size:11px;
  }

  .inbox-tabs button {
    font-size:13px;
  }

  .message pre {
    font-size:15px;
  }

  .message small {
    font-size:12px;
  }

  .card {
    padding:18px;
  }

  input,
  select,
  textarea,
  button {
    font-size:16px;
  }

  .channel-card p,
  .section-description {
    font-size:14px;
  }
}

/* Public contact column: form and optional WhatsApp contact stay together. */
.public-contact-column{
  display:grid;
  gap:14px;
  min-width:0;
}

.whatsapp-block{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 22px;
  border:1px solid #e9e1d7;
  background:#fff;
  border-radius:14px;
  box-shadow:0 6px 24px #5a483004;
}

.whatsapp-copy{
  display:grid;
  gap:4px;
  min-width:0;
}

.whatsapp-copy strong{
  color:#674c37;
  font-size:13px;
  font-weight:600;
}

.whatsapp-copy span{
  color:#918170;
  font-size:11px;
  line-height:1.5;
}

.whatsapp-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  min-height:40px;
  padding:9px 15px;
  border:1px solid #ded3c7;
  border-radius:9px;
  background:#f8f5f0;
  color:#674c37;
  font-size:12px;
  font-weight:550;
  text-decoration:none;
}

.whatsapp-button:hover{
  background:#f1ebe4;
}

.widget-page .public-contact-column{
  display:block;
}

.widget-page .whatsapp-block{
  display:none!important;
}

@media(max-width:520px){
  .whatsapp-block{
    align-items:stretch;
    flex-direction:column;
    gap:13px;
    padding:17px 18px;
  }

  .whatsapp-button{
    width:100%;
  }
}

/* Embedded Shopify contact form: size to actual content, not iframe viewport. */
.embed-page{
  min-height:0;
}

.embed-page .public-shell{
  min-height:0;
}

.embed-page .public-card{
  min-height:0;
}

/* Compact contact quick actions */
.whatsapp-block{
  display:block;
  padding:17px 20px;
}

.whatsapp-copy{
  justify-items:start;
  gap:4px;
}

.whatsapp-copy strong{
  font-size:13px;
  line-height:1.4;
}

.whatsapp-copy span{
  font-size:11px;
  line-height:1.5;
}

.contact-quick-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin-top:9px;
}

.contact-quick-button{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-height:34px;
  padding:7px 11px;
  border:1px solid #ded3c7;
  border-radius:8px;
  background:#f8f5f0;
  color:#674c37;
  font:inherit;
  font-size:11px;
  font-weight:600;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}

.contact-quick-button:hover{
  background:#f1ebe4;
  border-color:#d2c3b5;
}

.contact-quick-button:active{
  transform:translateY(1px);
}

.livechat-button{
  background:#fff;
}

@media(max-width:520px){
  .whatsapp-block{
    display:block;
    padding:16px 18px;
  }

  .contact-quick-actions{
    gap:7px;
  }

  .whatsapp-button,
  .contact-quick-button{
    width:auto;
  }
}

/* Avoid tiny internal scrollbar caused by iframe rounding. */
.embed-page{
  overflow:hidden;
}

.embed-page body{
  overflow:hidden;
}

/* Refined left support column */
.public-intro .support-details{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  margin:24px 0 0;
  padding:0;
  color:#756757;
  font-size:12px;
  line-height:1.5;
}

.public-intro .support-details span{
  display:block;
  padding:8px 0;
  border-bottom:1px solid rgba(103,76,55,.10);
}

.public-intro .support-details span:first-child{
  border-top:1px solid rgba(103,76,55,.10);
}

.public-intro .public-detail{
  margin-top:25px;
  margin-bottom:18px;
  padding-top:0;
  color:#8b7969;
  font-size:12px;
  line-height:1.65;
}

.public-intro .whatsapp-block{
  width:100%;
  box-sizing:border-box;
  margin-top:0;
  padding:16px 17px;
  border:1px solid #e5ddd4;
  border-radius:12px;
  background:rgba(255,255,255,.72);
  box-shadow:0 5px 18px rgba(90,72,48,.035);
}

.public-intro .whatsapp-copy{
  display:grid;
  justify-items:start;
  gap:3px;
}

.public-intro .whatsapp-copy strong{
  color:#674c37;
  font-size:12px;
  font-weight:600;
  line-height:1.4;
}

.public-intro .whatsapp-copy span{
  color:#918170;
  font-size:10.5px;
  line-height:1.5;
}

.public-intro .contact-quick-actions{
  display:flex;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}

.public-intro .contact-quick-button{
  min-height:32px;
  padding:7px 10px;
  border-radius:7px;
  font-size:10.5px;
}

@media(max-width:720px){
  .public-intro .support-details{
    margin-top:20px;
  }

  .public-intro .public-detail{
    margin-top:21px;
  }

  .public-intro .whatsapp-block{
    margin-bottom:18px;
  }
}

/* Premium Support Center left column */
.public-intro{
  position:relative;
}

.public-intro .eyebrow{
  position:relative;
  padding-top:22px;
  letter-spacing:.16em;
}

.public-intro .eyebrow::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:34px;
  height:1px;
  background:#8a6248;
}

.public-intro .support-details{
  display:grid;
  margin:26px 0 0;
  padding:0;
  border:0;
}

.public-intro .support-info-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:13px;
  align-items:center;
  padding:13px 0;
  border-bottom:1px solid rgba(103,76,55,.12);
}

.public-intro .support-info-row:first-child{
  border-top:0;
}

.public-intro .support-info-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  box-sizing:border-box;
  border-radius:50%;
  background:#eee5da;
  color:#674c37;
  font-size:18px;
  line-height:1;
}

.public-intro .support-info-copy{
  display:grid;
  gap:2px;
  min-width:0;
}

.public-intro .support-info-copy strong{
  color:#5f4433;
  font-size:12px;
  font-weight:650;
  line-height:1.35;
}

.public-intro .support-info-copy span{
  display:block;
  padding:0;
  border:0;
  color:#756757;
  font-size:11px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.public-intro .public-detail{
  margin:19px 0 20px;
  padding:0;
  color:#76543e;
  font-family:Georgia, "Times New Roman", serif;
  font-size:15px;
  font-style:italic;
  line-height:1.45;
}

.public-intro .whatsapp-block{
  margin:0;
  padding:16px;
  border:1px solid #e4d9ce;
  border-radius:12px;
  background:rgba(255,255,255,.78);
  box-shadow:0 7px 22px rgba(82,58,42,.045);
}

.public-intro .whatsapp-copy{
  gap:3px;
}

.public-intro .whatsapp-copy strong{
  color:#5e4332;
  font-size:12px;
  font-weight:650;
}

.public-intro .whatsapp-copy span{
  color:#857566;
  font-size:10.5px;
}

.public-intro .contact-quick-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:7px;
  margin-top:11px;
}

.public-intro .contact-quick-button{
  min-height:33px;
  width:auto;
  padding:7px 11px;
  border-radius:7px;
  font-size:10.5px;
  font-weight:600;
}

.public-intro .whatsapp-button{
  border-color:#79533d;
  background:#79533d;
  color:#fff;
}

.public-intro .whatsapp-button:hover{
  border-color:#684632;
  background:#684632;
}

.public-intro .livechat-button{
  border-color:#cdbdaf;
  background:transparent;
  color:#674c37;
}

.public-intro .livechat-button:hover{
  background:#f4eee8;
}

@media(max-width:720px){
  .public-intro .eyebrow{
    padding-top:18px;
  }

  .public-intro .support-details{
    margin-top:22px;
  }

  .public-intro .support-info-row{
    grid-template-columns:38px minmax(0,1fr);
    gap:11px;
    padding:11px 0;
  }

  .public-intro .support-info-icon{
    width:34px;
    height:34px;
    font-size:16px;
  }

  .public-intro .whatsapp-block{
    margin-bottom:20px;
  }
}

/* Clean SVG support icons */
.public-intro .support-info-icon svg{
  display:block;
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* OBSIDRA LIVECHAT – PREMIUM WIDGET */
.widget-page .chat-header{
  margin:-21px -21px 0;
  padding:20px 21px 18px;
  background:#342922;
  color:#f4ebe3;
  border-radius:16px 16px 0 0;
  align-items:flex-start;
  box-shadow:0 1px 0 #ffffff0d inset;
}

.widget-page .chat-header h2{
  margin:0 0 7px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:19px;
  font-weight:400;
  letter-spacing:.01em;
  color:#f4ebe3;
}

.widget-page .chat-header small{
  display:flex;
  align-items:center;
  gap:7px;
  color:#c7b8aa;
  font-size:10px;
  line-height:1.4;
}

.widget-page .chat-header small::before{
  content:'';
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:#88a77d;
  box-shadow:0 0 0 3px #88a77d20;
}

.widget-page .chat-header button{
  flex:none;
  padding:7px 10px;
  min-height:34px;
  border:1px solid #ffffff1c;
  background:#ffffff08;
  color:#d9ccc1;
  border-radius:8px;
  font-size:10px;
  box-shadow:none;
}

.widget-page .chat-header button:hover{
  background:#ffffff12;
  color:#fff;
}

.widget-page .chat-messages{
  height:min(48vh,470px);
  margin:0 -21px;
  padding:22px 20px 24px;
  border:0;
  border-radius:0;
  background:#f7f3ee;
  gap:13px;
  scrollbar-width:thin;
  scrollbar-color:#cfc1b4 transparent;
}

.widget-page .chat-bubble{
  max-width:82%;
  padding:11px 14px 9px;
  border:1px solid #e5ddd4;
  border-radius:14px 14px 14px 4px;
  background:#fff;
  color:#554a42;
  box-shadow:0 2px 8px #513b2708;
  font-size:13px;
  line-height:1.55;
}

.widget-page .chat-bubble.incoming{
  border-color:#775039;
  border-radius:14px 14px 4px 14px;
  background:#775039;
  color:#fff;
  box-shadow:0 4px 14px #55372118;
}

.widget-page .chat-bubble time{
  margin-top:6px;
  font-size:9px;
  opacity:.58;
}

.widget-page .chat-compose{
  margin:0 -21px -21px;
  padding:16px 20px 18px;
  gap:10px;
  border-top:1px solid #e8dfd6;
  background:#fff;
}

.widget-page .chat-compose .field>span{
  font-size:10px;
  font-weight:550;
  color:#8b7b6e;
}

.widget-page .chat-compose textarea{
  min-height:72px;
  max-height:150px;
  resize:vertical;
  border:1px solid #ddd4cc;
  border-radius:11px;
  padding:12px 13px;
  background:#fbfaf8;
  line-height:1.5;
}

.widget-page .chat-compose textarea:focus{
  background:#fff;
  border-color:#9a765d;
}

.widget-page .chat-compose input[type="file"]{
  width:100%;
  padding:8px 10px;
  border:1px dashed #d8cec4;
  border-radius:9px;
  background:#faf8f5;
  color:#807266;
  font-size:10px;
}

.widget-page .chat-compose .primary{
  justify-self:end;
  min-width:104px;
  min-height:40px;
  padding:10px 18px;
  border-radius:10px;
}

.widget-page .chat-compose .public-error:empty{
  display:none;
}

/* OBSIDRA LIVECHAT – VERIFIZIERUNG + MOBILE */
.widget-page .chat-compose{
  margin-bottom:0;
}

.widget-page .chat-compose:last-child{
  margin-bottom:-21px;
  border-radius:0 0 16px 16px;
}

.widget-page .chat-compose + details.card{
  margin:0 -21px -21px;
  padding:0;
  border:0;
  border-top:1px solid #e8dfd6;
  border-radius:0 0 16px 16px;
  background:#faf8f5;
  box-shadow:none;
  overflow:hidden;
}

.widget-page .chat-compose + details.card > summary{
  min-height:48px;
  padding:14px 20px;
  color:#78695e;
  font-size:11px;
  font-weight:550;
  cursor:pointer;
}

.widget-page .chat-compose + details.card > summary::before{
  font-size:16px;
}

.widget-page .chat-compose + details.card[open]{
  padding-bottom:18px;
}

.widget-page .chat-compose + details.card[open] > summary{
  margin-bottom:4px;
}

.widget-page .chat-compose + details.card > p,
.widget-page .chat-compose + details.card > button,
.widget-page .chat-compose + details.card > form{
  margin-left:20px;
  margin-right:20px;
}

.widget-page .chat-compose + details.card > p{
  margin-top:8px;
  color:#8c7d70;
  font-size:10px;
  line-height:1.6;
}

.widget-page .chat-compose + details.card > button{
  margin-top:10px;
  font-size:10px;
}

.widget-page .chat-compose + details.card > form{
  margin-top:12px;
}

@media (max-width:600px){
  .widget-page .public-card{
    border-radius:14px;
  }

  .widget-page .chat-header{
    border-radius:14px 14px 0 0;
    padding-top:17px;
    padding-bottom:16px;
  }

  .widget-page .chat-header h2{
    font-size:18px;
  }

  .widget-page .chat-messages{
    height:min(50dvh,430px);
    padding:18px 16px 20px;
  }

  .widget-page .chat-bubble{
    max-width:88%;
    font-size:12px;
  }

  .widget-page .chat-compose{
    padding:14px 16px 16px;
  }

  .widget-page .chat-compose textarea{
    min-height:64px;
  }

  .widget-page .chat-compose .primary{
    width:100%;
    justify-self:stretch;
  }

  .widget-page .chat-compose + details.card > summary{
    padding-left:16px;
    padding-right:16px;
  }

  .widget-page .chat-compose + details.card > p,
  .widget-page .chat-compose + details.card > button,
  .widget-page .chat-compose + details.card > form{
    margin-left:16px;
    margin-right:16px;
  }
}

/* OBSIDRA LIVECHAT – KOMPAKTER START */
.widget-page .chat-start{
  margin:-21px;
  overflow:hidden;
  border-radius:16px;
  background:#fff;
}

.widget-page .chat-start-head{
  padding:18px 20px 17px;
  background:linear-gradient(145deg,#342922,#49372c);
  color:#f5eee8;
}

.widget-page .chat-start-brand{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:13px;
  color:#cdbfb4;
  font-size:10px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.widget-page .chat-online-dot{
  width:8px;
  height:8px;
  flex:none;
  border-radius:50%;
  background:#9fbd91;
  box-shadow:0 0 0 4px #9fbd911d;
  animation:obsidra-live-pulse 2.4s ease-in-out infinite;
}

@keyframes obsidra-live-pulse{
  0%,100%{box-shadow:0 0 0 4px #9fbd911d}
  50%{box-shadow:0 0 0 7px #9fbd910d}
}

.widget-page .chat-start-head h2{
  margin:0;
  color:#fff;
  font:400 21px/1.25 Georgia,"Times New Roman",serif;
  letter-spacing:-.25px;
}

.widget-page .chat-start-subtitle{
  margin:7px 0 0;
  color:#cdbfb4;
  font-size:11px;
  line-height:1.55;
}

.widget-page .chat-start-form{
  display:grid;
  gap:10px;
  padding:16px 18px 18px;
  margin:0;
}

.widget-page .chat-start-form .grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.widget-page .chat-start-form .field{
  gap:5px;
}

.widget-page .chat-start-form .field>span{
  color:#7e6d60;
  font-size:10px;
  font-weight:600;
}

.widget-page .chat-start-form input:not([type="checkbox"]):not([type="file"]){
  min-height:41px;
  padding:9px 11px;
  border-radius:10px;
  font-size:12px;
}

.widget-page .chat-start-form textarea{
  min-height:82px;
  max-height:125px;
  padding:11px 12px;
  border-radius:10px;
  resize:vertical;
  font-size:12px;
  line-height:1.5;
}

.widget-page .chat-start-form input[type="file"]{
  min-height:41px;
  width:100%;
  padding:5px 7px;
  border:1px dashed #d8cec4;
  border-radius:10px;
  background:#faf8f5;
  color:#8a7a6e;
  font-size:10px;
}

.widget-page .chat-start-form input[type="file"]::file-selector-button{
  min-height:29px;
  margin-right:8px;
  padding:6px 10px;
  border:0;
  border-radius:7px;
  background:#eee7df;
  color:#674f3e;
  font:600 10px system-ui,sans-serif;
  cursor:pointer;
}

.widget-page .chat-start-form .check{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:1px 0;
  color:#8a7b70;
  font-size:9.5px;
  line-height:1.5;
}

.widget-page .chat-start-form .check input{
  width:15px;
  min-width:15px;
  height:15px;
  min-height:15px;
  margin-top:1px;
}

.widget-page .chat-start-form .primary{
  width:100%;
  min-height:43px;
  margin:0;
  border-radius:10px;
  font-size:12px;
  font-weight:650;
}

.widget-page .chat-start-form .public-error{
  margin:0;
  font-size:10px;
}

.widget-page .chat-start-form .public-error:empty{
  display:none;
}

@media (max-width:600px){
  .widget-page .chat-start{
    border-radius:14px;
  }

  .widget-page .chat-start-head{
    padding:16px 17px 15px;
  }

  .widget-page .chat-start-head h2{
    font-size:19px;
  }

  .widget-page .chat-start-form{
    padding:14px 16px 16px;
    gap:9px;
  }

  .widget-page .chat-start-form .grid{
    grid-template-columns:1fr;
    gap:9px;
  }

  .widget-page .chat-start-form textarea{
    min-height:74px;
  }
}


/* OBSIDRA LIVECHAT – FIXED MESSENGER LAYOUT */
html.widget-page-root,
body.widget-page{
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  margin:0;
  overflow:hidden;
}

body.widget-page{
  padding:0;
}

.widget-page .public-shell{
  display:block;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  padding:0;
  overflow:hidden;
}

.widget-page .public-card{
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  overflow:hidden;
}

.widget-page .chat-header{
  flex:0 0 auto;
  min-width:0;
}

.widget-page .chat-messages{
  flex:1 1 auto;
  width:auto;
  height:auto;
  min-width:0;
  min-height:80px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}

.widget-page .chat-bubble{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.widget-page .chat-compose{
  flex:0 0 auto;
  min-width:0;
}

.widget-page .chat-compose .field,
.widget-page .chat-compose textarea,
.widget-page .chat-compose input{
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
}

/* Upload im laufenden Chat wie im neuen Start */
.widget-page .chat-compose input[type="file"]{
  width:100%;
  min-height:41px;
  padding:5px 7px;
  border:1px dashed #d8cec4;
  border-radius:10px;
  background:#faf8f5;
  color:#8a7a6e;
  font-size:10px;
}

.widget-page .chat-compose input[type="file"]::file-selector-button{
  min-height:29px;
  margin-right:8px;
  padding:6px 10px;
  border:0;
  border-radius:7px;
  background:#eee7df;
  color:#674f3e;
  font:600 10px system-ui,sans-serif;
  cursor:pointer;
}

/* Verifizierung bleibt innerhalb des sichtbaren Chatfensters */
.widget-page .chat-compose + details.card{
  flex:0 0 auto;
  min-width:0;
  max-width:none;
}

.widget-page .chat-compose + details.card[open]{
  max-height:min(210px,32dvh);
  overflow-x:hidden;
  overflow-y:auto;
}

/* Handy */
@media (max-width:600px){
  .widget-page .chat-messages{
    min-height:65px;
  }

  .widget-page .chat-compose + details.card[open]{
    max-height:min(180px,28dvh);
  }
}

/* Niedrige Handy-/Querformat-Displays */
@media (max-height:620px){
  .widget-page .chat-header{
    padding-top:12px;
    padding-bottom:11px;
  }

  .widget-page .chat-header h2{
    margin-bottom:3px;
    font-size:16px;
  }

  .widget-page .chat-messages{
    min-height:45px;
    padding-top:12px;
    padding-bottom:12px;
  }

  .widget-page .chat-compose{
    padding-top:10px;
    padding-bottom:10px;
    gap:7px;
  }

  .widget-page .chat-compose textarea{
    min-height:52px;
    max-height:80px;
  }

  .widget-page .chat-compose + details.card > summary{
    min-height:40px;
    padding-top:10px;
    padding-bottom:10px;
  }

  .widget-page .chat-compose + details.card[open]{
    max-height:145px;
  }
}

/* OBSIDRA LIVECHAT – FESTER CHATRAHMEN / NUR VERLAUF SCROLLT */
html.widget-page-root,
body.widget-page,
body.widget-page > .public-shell,
body.widget-page > .public-shell > .public-contact-column,
body.widget-page > .public-shell > .public-contact-column > #public{
  height:100%;
  min-height:0;
}

body.widget-page > .public-shell > .public-contact-column{
  width:100%;
  min-width:0;
  overflow:hidden;
}

body.widget-page > .public-shell > .public-contact-column > #public{
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  overflow:hidden;
}

/* Header bleibt oben */
.widget-page #public > .chat-header{
  flex:0 0 auto;
}

/* Nur der Nachrichtenverlauf nutzt den freien Platz und scrollt */
.widget-page #public > .chat-messages{
  flex:1 1 0;
  width:auto;
  height:0;
  min-width:0;
  min-height:0;
  max-height:none;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}

/* Eingabe und Bestellidentität bleiben unten fest stehen */
.widget-page #public > .chat-compose{
  flex:0 0 auto;
}

.widget-page #public > .chat-compose + details.card{
  flex:0 0 auto;
}

/* Kein äußerer Scrollbereich durch negative Randabstände */
.widget-page #public{
  overflow-x:hidden;
  overflow-y:hidden;
}

/* Handy identisch: nur Nachrichtenbereich scrollbar */
@media (max-width:600px){
  .widget-page #public > .chat-messages{
    flex:1 1 0;
    height:0;
    min-height:0;
    overflow-x:hidden;
    overflow-y:auto;
  }
}


/* OBSIDRA LIVECHAT – VERIFIZIERUNGS-POPUP */
.widget-page #public{
  position:relative;
}

.widget-page .chat-verification-modal{
  position:absolute;
  inset:0;
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:22px;
  background:rgba(52,41,34,.52);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  overflow:hidden;
}

.widget-page .chat-verification-modal[hidden]{
  display:none !important;
}

.widget-page .chat-verification-dialog{
  position:relative;
  box-sizing:border-box;
  width:min(100%,340px);
  max-height:calc(100% - 10px);
  padding:25px 23px 22px;
  overflow-y:auto;
  border:1px solid #e7ddd4;
  border-radius:17px;
  background:#fff;
  box-shadow:0 24px 70px rgba(51,33,22,.22);
  text-align:center;
}

.widget-page .chat-verification-close{
  position:absolute;
  top:10px;
  right:10px;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  min-height:32px;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#9a8b7f;
  box-shadow:none;
  font-size:22px;
  font-weight:300;
  line-height:1;
}

.widget-page .chat-verification-close:hover{
  background:#f5f1ed;
  color:#59473a;
}

.widget-page .chat-verification-reopen{
  flex:0 0 auto;
  align-self:flex-start;
  min-height:34px;
  margin:9px 0 0;
  padding:7px 12px;
  border:1px solid #dfd5cb;
  border-radius:9px;
  background:#f8f4ef;
  color:#715c4b;
  box-shadow:none;
  font-size:10px;
  font-weight:600;
}

.widget-page .chat-verification-reopen:hover{
  border-color:#cdbdac;
  background:#f2ebe4;
}

.widget-page .chat-verification-reopen[hidden]{
  display:none !important;
}

.widget-page .chat-verification-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  margin:0 auto 12px;
  border-radius:50%;
  background:#edf2e8;
  color:#708765;
  font-size:18px;
  font-weight:700;
}

.widget-page .chat-verification-eyebrow{
  display:block;
  margin-bottom:7px;
  color:#9a826d;
  font-size:9px;
  font-weight:650;
  letter-spacing:.13em;
}

.widget-page .chat-verification-dialog h3{
  margin:0;
  color:#4e3b2e;
  font-family:Georgia,"Times New Roman",serif;
  font-size:21px;
  font-weight:400;
  line-height:1.25;
}

.widget-page .chat-verification-copy{
  margin:11px 0 17px;
  color:#827468;
  font-size:11px;
  line-height:1.65;
}

.widget-page .chat-verification-request{
  width:100%;
  min-height:42px;
}

.widget-page .chat-verification-status{
  min-height:16px;
  margin:10px 0 0;
  font-size:10px;
  line-height:1.5;
}

.widget-page .chat-verification-form{
  display:grid;
  gap:10px;
  margin-top:12px;
  text-align:left;
}

.widget-page .chat-verification-form input{
  width:100%;
  min-height:43px;
  box-sizing:border-box;
  text-align:center;
  font-size:18px;
  font-weight:600;
  letter-spacing:.22em;
}

.widget-page .chat-verification-form button{
  width:100%;
  min-height:42px;
}

.widget-page .chat-verification-hint{
  display:block;
  margin-top:13px;
  color:#9b8e84;
  font-size:9px;
  line-height:1.55;
}

@media (max-width:600px){
  .widget-page .chat-verification-modal{
    padding:14px;
  }

  .widget-page .chat-verification-dialog{
    width:100%;
    max-height:calc(100% - 4px);
    padding:22px 18px 19px;
    border-radius:15px;
  }

  .widget-page .chat-verification-dialog h3{
    font-size:19px;
  }
}

@media (max-height:620px){
  .widget-page .chat-verification-modal{
    padding:9px;
  }

  .widget-page .chat-verification-dialog{
    max-height:100%;
    padding:16px;
  }

  .widget-page .chat-verification-icon{
    width:34px;
    height:34px;
    margin-bottom:8px;
  }
}

/* ===== Kündigungen & Widerrufe ===== */
.legal-intro{
  margin-bottom:24px;
}

.legal-toolbar{
  display:grid;
  gap:13px;
  margin-bottom:22px;
}

.legal-tabs{
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:2px;
}

.legal-tabs button{
  background:#fff;
  border:1px solid var(--line);
  color:#81766d;
  font-size:12px;
  white-space:nowrap;
}

.legal-tabs button.selected{
  background:#eee6dc;
  border-color:#ddcdbc;
  color:#765139;
}

.legal-tabs-secondary button{
  min-height:38px;
  padding:7px 13px;
  font-size:11px;
}

.legal-list{
  gap:17px;
}

.legal-card{
  gap:19px;
}

.legal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}

.legal-head>div{
  display:grid;
  gap:6px;
}

.legal-reference{
  font-size:16px;
  color:#53483f;
  overflow-wrap:anywhere;
}

.legal-head small{
  font-size:10px;
}

.legal-status{
  display:inline-flex;
  align-items:center;
  border-radius:20px;
  padding:6px 10px;
  background:#f0ece8;
  color:#857970;
  font-size:10px;
  font-weight:600;
  white-space:nowrap;
}

.legal-status.good{
  background:#e8f0e6;
  color:#638064;
}

.legal-status.bad{
  background:#f6e5df;
  color:#a75d48;
}

.legal-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid #eee8e2;
  border-radius:11px;
  overflow:hidden;
}

.legal-info{
  min-width:0;
  padding:16px;
  display:grid;
  gap:5px;
  border-right:1px solid #eee8e2;
  border-bottom:1px solid #eee8e2;
}

.legal-info:nth-child(4n){
  border-right:0;
}

.legal-info:nth-last-child(-n+4){
  border-bottom:0;
}

.legal-info span{
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#9b9087;
}

.legal-info strong{
  font-size:12px;
  font-weight:600;
  color:#594f47;
  overflow-wrap:anywhere;
}

.legal-info small{
  font-size:10px;
  overflow-wrap:anywhere;
}

.legal-text-block{
  padding:15px 17px;
  border-radius:10px;
  background:#faf8f5;
  border:1px solid #eee7df;
  display:grid;
  gap:8px;
}

.legal-text-block strong{
  font-size:11px;
  color:#75685e;
}

.legal-text-block p{
  font-size:12px;
  color:#625950;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.legal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  padding-top:3px;
}

.legal-actions button{
  min-height:39px;
  font-size:11px;
  padding:8px 12px;
}

.legal-action-editor:empty{
  display:none;
}

.legal-inline-form{
  margin-top:4px;
  padding:18px;
  background:#faf8f5;
  box-shadow:none;
}

.legal-inline-form textarea{
  min-height:105px;
}

.legal-inline-buttons{
  justify-content:flex-end;
}

.legal-events{
  border:1px solid #eee7df;
  border-radius:10px;
  padding:0 16px;
}

.legal-events summary{
  font-size:11px;
  color:#756b62;
}

.legal-event-list{
  border-top:1px solid #eee7df;
  padding:7px 0 12px;
}

.legal-event{
  display:grid;
  gap:4px;
  padding:10px 0;
  border-bottom:1px solid #f0ebe6;
}

.legal-event:last-child{
  border-bottom:0;
}

.legal-event strong{
  font-size:11px;
  font-weight:550;
  color:#62574e;
  overflow-wrap:anywhere;
}

.legal-event small{
  font-size:9px;
}

.legal-empty{
  border:1px solid var(--line);
  border-radius:13px;
}

@media(max-width:1150px){
  .legal-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .legal-info:nth-child(4n){
    border-right:1px solid #eee8e2;
  }

  .legal-info:nth-child(2n){
    border-right:0;
  }

  .legal-info:nth-last-child(-n+4){
    border-bottom:1px solid #eee8e2;
  }

  .legal-info:nth-last-child(-n+2){
    border-bottom:0;
  }
}

@media(max-width:720px){
  .legal-toolbar{
    gap:9px;
  }

  .legal-tabs{
    width:100%;
  }

  .legal-tabs button{
    flex:1;
  }

  .legal-head{
    align-items:flex-start;
  }

  .legal-grid{
    grid-template-columns:minmax(0,1fr);
  }

  .legal-info,
  .legal-info:nth-child(2n),
  .legal-info:nth-child(4n),
  .legal-info:nth-last-child(-n+4),
  .legal-info:nth-last-child(-n+2){
    border-right:0;
    border-bottom:1px solid #eee8e2;
  }

  .legal-info:last-child{
    border-bottom:0;
  }

  .legal-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr);
  }

  .legal-actions button{
    width:100%;
  }

  .legal-inline-buttons{
    display:grid;
  }

  .legal-inline-buttons button{
    width:100%;
  }
}

/* Standalone WhatsApp embed */
.whatsapp-embed-page{
  margin:0;
  padding:0;
  min-height:0;
  background:transparent;
  overflow:hidden;
}

.whatsapp-embed-page.whatsapp-disabled{
  display:none;
}

#whatsapp-embed-root{
  width:100%;
  min-width:0;
}

.whatsapp-embed-card{
  box-sizing:border-box;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 18px;
  border:1px solid #e4d9ce;
  border-radius:12px;
  background:#fff;
  box-shadow:0 5px 18px rgba(90,72,48,.035);
}

.whatsapp-embed-copy{
  display:grid;
  gap:4px;
  min-width:0;
}

.whatsapp-embed-copy strong{
  color:#5e4332;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
}

.whatsapp-embed-copy span{
  color:#857566;
  font-size:10.5px;
  line-height:1.5;
}

.whatsapp-embed-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  min-height:36px;
  padding:8px 13px;
  border:1px solid #79533d;
  border-radius:8px;
  background:#79533d;
  color:#fff;
  font-size:11px;
  font-weight:600;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}

.whatsapp-embed-button:hover{
  border-color:#684632;
  background:#684632;
}

@media(max-width:520px){
  .whatsapp-embed-card{
    align-items:stretch;
    flex-direction:column;
    gap:12px;
    padding:15px 16px;
  }

  .whatsapp-embed-button{
    width:100%;
    box-sizing:border-box;
  }
}

/* OBSIDRA LIVECHAT – KI SCHREIBINDIKATOR */
.chat-ai-working{
  align-self:flex-start;
  display:flex;
  align-items:center;
  gap:9px;
  max-width:88%;
  min-height:38px;
  box-sizing:border-box;
  padding:9px 13px 9px 11px;
  border:1px solid #e5ddd4;
  border-radius:14px 14px 14px 4px;
  background:#fff;
  color:#76675c;
  box-shadow:0 2px 8px #513b2708;
  font-size:11px;
  line-height:1.4;
}

.chat-ai-working-label{
  white-space:nowrap;
}

.chat-ai-mist{
  position:relative;
  display:block;
  width:34px;
  height:21px;
  flex:none;
  overflow:visible;
}

.chat-ai-mist-puff{
  position:absolute;
  display:block;
  border-radius:50%;
  background:#9b806c;
  opacity:.18;
  filter:blur(.35px);
  animation:obsidra-mist-drift 1.8s ease-in-out infinite;
}

.chat-ai-mist-puff:nth-child(1){
  left:2px;
  bottom:2px;
  width:13px;
  height:9px;
  animation-delay:0s;
}

.chat-ai-mist-puff:nth-child(2){
  left:11px;
  bottom:5px;
  width:15px;
  height:10px;
  animation-delay:.32s;
}

.chat-ai-mist-puff:nth-child(3){
  left:21px;
  bottom:7px;
  width:11px;
  height:8px;
  animation-delay:.64s;
}

@keyframes obsidra-mist-drift{
  0%{
    transform:translate3d(-2px,3px,0) scale(.82);
    opacity:.12;
  }

  45%{
    opacity:.42;
  }

  100%{
    transform:translate3d(5px,-5px,0) scale(1.18);
    opacity:.04;
  }
}

.widget-page .chat-ai-working{
  border-color:#e5ddd4;
  background:#fff;
  color:#75665a;
  box-shadow:0 2px 8px #513b2708;
}

@media (max-width:600px){
  .chat-ai-working{
    padding:8px 11px 8px 10px;
    font-size:10px;
  }

  .chat-ai-mist{
    width:31px;
  }
}



/* OBSIDRA LIVECHAT – VERIFIZIERUNG V2 */

/* Aktionen bleiben kompakt im oberen Chatkopf. */
.widget-page .chat-header-copy{
  min-width:0;
}

.widget-page .chat-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}

.widget-page .chat-header .chat-verification-reopen{
  align-self:auto;
  min-height:34px;
  margin:0;
  padding:7px 11px;
  border:1px solid #ded3c8;
  border-radius:9px;
  background:#f7f2ec;
  color:#705846;
  box-shadow:none;
  font-size:10px;
  font-weight:600;
  white-space:nowrap;
}

.widget-page .chat-header .chat-verification-reopen:hover{
  border-color:#cbb9a8;
  background:#efe7df;
}

.widget-page .chat-header .chat-verification-reopen[hidden]{
  display:none !important;
}

/* Schritt 1: eindeutige Bestellnummer zuordnen. */
.widget-page .chat-verification-order-form{
  display:grid;
  gap:10px;
  margin-top:12px;
  text-align:left;
}

.widget-page .chat-verification-order-form input{
  width:100%;
  min-height:43px;
  box-sizing:border-box;
  text-align:center;
  font-size:16px;
  font-weight:600;
  letter-spacing:.06em;
}

.widget-page .chat-verification-order-form button{
  width:100%;
  min-height:42px;
}

.widget-page .chat-verification-order-form[hidden],
.widget-page .chat-verification-form[hidden],
.widget-page .chat-verification-request[hidden]{
  display:none !important;
}

@media (max-width:600px){
  .widget-page .chat-header{
    align-items:flex-start;
  }

  .widget-page .chat-header-actions{
    gap:6px;
  }

  .widget-page .chat-header .chat-verification-reopen{
    max-width:126px;
    padding-left:9px;
    padding-right:9px;
    white-space:normal;
    line-height:1.25;
    text-align:center;
  }
}

@media (max-width:420px){
  .widget-page .chat-header-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .widget-page .chat-header .chat-verification-reopen{
    max-width:none;
  }
}

/* OBSIDRA LIVECHAT – KOMPAKTER STARTZUSTAND */
.widget-page .public-card.chat-start-state{
  border:0;
  box-shadow:none;
}

/* OBSIDRA LIVECHAT – START DARF BEI NIEDRIGEN VIEWPORTS SCROLLEN */
body.widget-page.chat-start-state{
  overflow:auto;
}

.widget-page.chat-start-state .public-shell{
  height:auto;
  min-height:100%;
  overflow:visible;
}

.widget-page .public-card.chat-start-state{
  height:auto;
  min-height:0;
  overflow:visible;
}


/* OBSIDRA LIVECHAT – AKTIVER CHAT RANDLOS */
.widget-page .public-card.chat-active-state{
  border:0;
  box-shadow:none;
}
