/* Customer menu and local inbox / review previews: retain existing shop colors. */
.mischel-usernav{position:relative;display:inline-flex;align-items:center;z-index:30}
.mischel-usernav-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:999;min-width:252px;max-width:min(90vw,330px);box-shadow:0 10px 28px #201a1240;background:#faf7f1;border:1px solid #d7c7af;padding:6px;color:#302820}
.mischel-usernav-menu[hidden]{display:none!important}
.mischel-usernav-menu::before{content:"";position:absolute;right:22px;top:-8px;width:14px;height:14px;background:#faf7f1;transform:rotate(45deg);border-left:1px solid #d7c7af;border-top:1px solid #d7c7af}
.mischel-menu-person{font-weight:700;margin:0 0 4px;padding:15px 12px;background:#efe5d5}
.mischel-usernav-menu button{display:block;width:100%;min-height:42px;padding:9px 12px;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer;color:inherit}
.mischel-usernav-menu button:hover,.mischel-usernav-menu button:focus-visible{background:#efe5d5;outline:1px solid #aa8448}
.mischel-usernav-menu button:last-child{border-top:1px solid #ddd0be;margin-top:5px}
#mischel-test-customer-dashboard .mischel-account-nav button{word-break:normal;white-space:normal}
.mischel-dialog{width:min(94vw,780px);max-height:90vh;overflow:auto;border:1px solid #d6c3a7;padding:30px;background:#faf7f1;color:#29231d;box-shadow:0 18px 60px #1117}
.mischel-dialog::backdrop{background:#17130e99}
.mischel-dialog-close{position:sticky;float:right;top:0;z-index:5;border:none;background:#faf7f1;font-size:29px;cursor:pointer;padding:2px 10px}
.mischel-dialog label,.mischel-inline-form label{display:flex;flex-direction:column;gap:6px;margin:12px 0}
.mischel-dialog input,.mischel-dialog textarea,.mischel-inline-form textarea,.mischel-inline-form select,.mischel-inline-form input{width:100%;box-sizing:border-box;border:1px solid #cfc2ac;padding:10px;background:#fffdf9;color:#221c16;font:inherit}
.mischel-thread{margin:12px 0;padding:12px;border:1px solid #d7c9b3}
.mischel-thread summary{cursor:pointer;font-weight:700}
.mischel-post{padding:10px 0;border-bottom:1px solid #dfd3c0}
.mischel-post small{display:block;color:#695849;margin-top:4px}
.mischel-post p{white-space:pre-wrap;overflow-wrap:anywhere;margin:.5em 0}
.mischel-review-entry{margin:12px 0;padding:14px;border:1px solid #d7c9b3;white-space:pre-wrap;overflow-wrap:anywhere}
.mischel-inline-form{padding:12px 0}
.mischel-admin-pills{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.mischel-admin-pills button{padding:10px 16px;border:1px solid #b89762;background:#f2e9dc;cursor:pointer}
#mischel-guest-result{margin-top:12px}
@media(max-width:740px){
 .mischel-usernav-menu{right:-10px;min-width:min(88vw,260px)}
 #mischel-test-customer-dashboard .mischel-account-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mischel-dialog{padding:16px;max-height:92vh}
}

/* 2026-10-24: identical bulk selection for customer and admin mailboxes. */
.mischel-mailbox .mischel-mailbox-bulk{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:10px 16px;border-bottom:1px solid #e5d9c6;background:#f8f3eb;min-width:0}
.mischel-mailbox .mischel-mailbox-bulk.has-selection{background:#f2e6d4}
.mischel-mailbox .mischel-mailbox-bulk-left,.mischel-mailbox .mischel-mailbox-bulk-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;min-width:0}
.mischel-mailbox .mischel-mailbox-bulk-select{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:7px!important;margin:0!important;font-size:12px;cursor:pointer;white-space:nowrap;color:#503b27}
.mischel-mailbox .mischel-mailbox-check{display:inline-block!important;appearance:auto!important;box-sizing:border-box!important;width:17px!important;min-width:17px!important;height:17px!important;min-height:17px!important;margin:0!important;padding:0!important;flex:0 0 17px!important;accent-color:#ad8649;cursor:pointer;border-radius:2px}
.mischel-mailbox .mischel-mailbox-row-check{margin:0 7px 0 14px!important;align-self:center}
.mischel-mailbox .mischel-mailbox-selected-count{font-size:12px;color:#735b3b}
.mischel-mailbox .mischel-mailbox-bulk-actions button,.mischel-mailbox .mischel-mailbox-bulk-clear{border:1px solid #d5bea0;border-radius:8px;background:#fffdfa;color:#433326;padding:6px 10px;font-size:12px;line-height:1.3;min-height:34px;cursor:pointer;white-space:normal}
.mischel-mailbox .mischel-mailbox-bulk-actions button:hover,.mischel-mailbox .mischel-mailbox-bulk-clear:hover{border-color:#ad8649;background:#f9efdf}
.mischel-mailbox .mischel-mailbox-bulk-actions button:disabled,.mischel-mailbox .mischel-mailbox-bulk-clear:disabled{opacity:.55;cursor:not-allowed}
.mischel-mailbox .mischel-mailbox-bulk-actions .mischel-mailbox-bulk-danger{border-color:#b9746a;color:#873b32}
.mischel-mailbox .mischel-mailbox-check:focus-visible{outline:2px solid #795323;outline-offset:3px}
@media(max-width:740px){
 .mischel-mailbox .mischel-mailbox-bulk{padding:12px;gap:10px}
 .mischel-mailbox .mischel-mailbox-bulk-actions{width:100%}
 .mischel-mailbox .mischel-mailbox-bulk-actions button{min-height:42px}
 .mischel-mailbox .mischel-mailbox-row-check{margin-left:10px!important;margin-right:5px!important}
}


/* Nachrichten: list and conversation are exclusive views, not stacked panels.
   Scoped to the existing inbox in both customer account and admin. */
.mischel-mailbox :is(.mischel-mailbox-toolbar,.mischel-mailbox-bulk,.mischel-mailbox-list,.mischel-mailbox-detail)[hidden]{display:none!important}
.mischel-mailbox .mischel-mailbox-reading>.mischel-mailbox-detail{border-top:0;padding-top:17px}
.mischel-mailbox .mischel-mailbox-back{
 display:inline-flex;align-items:center;justify-content:center;min-height:40px;
 padding:8px 14px;margin:0 0 21px;
 background:#fffdfa;color:#493b2c;border:1px solid #d8b990;border-radius:10px;
 font:500 13px/1.35 Arial,sans-serif;cursor:pointer;
 box-shadow:0 2px 7px rgba(58,43,28,.06)
}
.mischel-mailbox .mischel-mailbox-back:hover{background:#f3e8d9;border-color:#b58e58}
.mischel-mailbox .mischel-mailbox-back:focus-visible{outline:2px solid #a77c40;outline-offset:2px}
.mischel-mailbox .mischel-mailbox-contact{
 padding:14px 18px;margin:0 0 18px;border:1px solid #e1cfb6;
 border-radius:10px;background:#faf6ee;color:#3f3226
}
.mischel-mailbox .mischel-mailbox-contact h4{margin:0 0 10px;font:normal 20px/1.3 Georgia,serif}
.mischel-mailbox .mischel-mailbox-contact-row{display:flex;align-items:baseline;gap:6px 12px;flex-wrap:wrap;padding:4px 0;font-size:13px;overflow-wrap:anywhere}
.mischel-mailbox .mischel-mailbox-contact-row strong{flex:0 0 110px}
.mischel-mailbox .mischel-mailbox-contact-row span{flex:1 1 170px;min-width:0}
.mischel-mailbox .mischel-mailbox-received{font-size:12px;color:#776450;margin:0 0 16px}
@media(max-width:740px){
 .mischel-mailbox .mischel-mailbox-contact{padding:12px}
 .mischel-mailbox .mischel-mailbox-contact-row strong{flex-basis:90px}
 .mischel-mailbox .mischel-mailbox-back{width:100%}
}

/* Guest project/product inquiry: success confirmation only; no inbox access. */
#mischel-guest-result .mischel-request-confirmation{
 padding:16px 0 4px;max-width:640px;
 color:#352b22;font:14px/1.55 Arial,Helvetica,sans-serif;
}
#mischel-guest-result .mischel-request-confirmation h3{
 margin:0 0 16px;font:normal clamp(22px,4vw,27px)/1.3 Georgia,serif;color:#4a3520;
}
#mischel-guest-result .mischel-request-confirmation p{margin:7px 0;}
#mischel-guest-result .mischel-request-confirmation-id{font-weight:700;}
#mischel-guest-result .mischel-request-confirmation-date{color:#675643;}
#mischel-guest-result .mischel-request-confirmation-note{
 margin:16px 0!important;padding:11px 14px;border-left:3px solid #b58b50;background:#f1e7d9;
}
#mischel-guest-result .mischel-request-confirmation-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:21px;}
#mischel-guest-result .mischel-request-confirmation-actions button{
 min-height:42px;padding:10px 17px;border:1px solid #ccb18a;border-radius:10px;
 background:#fffaf2;color:#493a2c;cursor:pointer;
}
#mischel-guest-result .mischel-request-confirmation-actions button.button{
 background:#342c24;color:white;border-color:#342c24;
}
#mischel-guest-result .mischel-request-confirmation-actions button:focus-visible{outline:2px solid #9c713b;outline-offset:2px;}


/* MISCHEL customer Nachrichten: same warm mailbox surfaces as administration, no admin selectors or permissions. */
#mischel-message-account .mischel-mailbox,
#mischel-message-account .mischel-mailbox-compose {
  background-color:#fffdf9;border-color:#dfd1bf;
}
#mischel-message-account .mischel-mailbox-sidebar {
  background-color:#f8f5ef;border-color:#dfd1bf;
}
#mischel-message-account .mischel-mailbox-toolbar,
#mischel-message-account .mischel-mailbox-row {border-color:#e8ded0;}
#mischel-message-account .mischel-mailbox-posts .mischel-post {
  background-color:#fffaf2;border-color:#dfcfb7;
}
#mischel-message-account .mischel-mailbox-sidebar button.current {
  background-color:#e7d5b8;color:#5b3d1f;
}
#mischel-message-account .mischel-mailbox {
  width:100%;max-width:100%;min-width:0;
}
#mischel-message-account .mischel-mailbox-main {min-width:0;}
#mischel-message-account .mischel-mailbox .mischel-mailbox-check[hidden] {display:none!important;}
#mischel-message-account .mischel-mailbox-compose,
#mischel-message-account .mischel-mailbox-top {max-width:100%;}
@media(max-width:740px){
 #mischel-message-account .mischel-mailbox {grid-template-columns:minmax(0,1fr);}
 #mischel-message-account .mischel-mailbox-sidebar {flex-flow:row nowrap;overflow-x:auto;}
}

/* Inbox-only: use the full account width as in the admin workspace.
   Other account tabs and their side navigation are untouched. */
@media (min-width: 741px) {
 #mischel-account-page .mischel-account-layout:has(#mischel-panel-messages:not([hidden])) {
  display:flex;flex-direction:column;gap:18px;
 }
 #mischel-account-page .mischel-account-layout:has(#mischel-panel-messages:not([hidden])) > .mischel-account-nav {
  order:0;position:static;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px!important;
  margin:0;align-self:stretch;
 }
 #mischel-account-page .mischel-account-layout:has(#mischel-panel-messages:not([hidden])) > .mischel-account-nav button {
  width:auto;min-width:0;flex:0 0 auto;min-height:40px;padding:9px 12px;
 }
 #mischel-account-page .mischel-account-layout:has(#mischel-panel-messages:not([hidden])) > .mischel-account-content {
  order:1;width:100%;min-width:0;box-sizing:border-box;
 }
}
