@font-face{font-family:DM;src:url('./assets/dm-sans.woff2') format('woff2');font-display:swap}*{box-sizing:border-box}body{margin:0;color:#24463d;background:radial-gradient(ellipse at 15% 0,#e7eddb 0,transparent 48%),radial-gradient(ellipse at 95% 65%,#f0e9d9 0,transparent 45%),#f7f8f3;font-family:DM,'Segoe UI',sans-serif;font-size:15px}button,input,textarea{font:inherit;color:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #648253;outline-offset:4px}svg{width:23px;height:23px;flex-shrink:0}button{transition:background .18s,color .18s}button:disabled{opacity:.35;cursor:default}.owner-shell{max-width:640px;margin:0 auto;padding:24px 28px 32px;min-height:100dvh}.study-back{display:inline-flex;align-items:center;gap:8px;color:#71816f;text-decoration:none;font-size:13px;min-height:36px}.study-back svg{width:17px}.inbox-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0}.account-button{display:flex;align-items:center;gap:12px;text-align:left;padding:0;border-radius:20px}.account-button>span:first-child{display:grid;place-items:center;width:50px;height:50px;border-radius:18px;background:#244f41;color:#e1edc4;font-size:27px;font-weight:600}.owner-name{font-weight:600;font-size:18px}.owner-name small{display:block;margin-top:2px;font-size:12px;font-weight:400;color:#7c8a76}.header-pair{display:flex;gap:10px;padding:5px;background:transparent;border:1px solid transparent;border-radius:0;box-shadow:none}.icon-button{position:relative;display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border-radius:18px}.icon-button:hover,.icon-button.selected{background:#e6edd9}.workspace-switch{background:transparent}.workspace-switch.selected{background:#eaf0de}.inbox-intro{padding:34px 0 25px}.eyebrow{font-size:10px;letter-spacing:2px;color:#81946c;margin:0 0 18px;font-weight:500}.inbox-intro>div{display:flex;align-items:center;justify-content:space-between}.inbox-intro h1{font-size:48px;letter-spacing:-2px;font-weight:450;line-height:1.1;margin:0}.inbox-intro h1 em{font-family:Georgia,serif;font-weight:400;color:#829967}.inbox-intro>p:last-child{font-size:14px;color:#798778;margin:15px 0 0}.compose-new{border:1px solid #cdd9be;border-radius:50%;color:#607d49}.inbox-search{display:flex;align-items:center;gap:12px;padding:0 17px;background:#ffffff90;border:1px solid #fff;border-radius:19px;min-height:55px}.inbox-search svg{width:19px;color:#7e8b79}.inbox-search input{width:100%;min-width:0;background:none;border:0;outline:none!important;font-size:14px}.inbox-search input::placeholder{color:#86917f}.inbox-search button{font-size:24px;min-width:32px;min-height:40px}.inbox-filters{display:flex;gap:5px;margin:20px 0 18px}.inbox-filters button{padding:10px 14px;border-radius:24px;font-size:12px;min-height:42px;color:#788572;white-space:nowrap}.inbox-filters button[aria-pressed=true]{background:#284e40;color:#fff}.inbox-filters span{display:inline-grid;place-items:center;margin-left:7px;min-width:18px;height:18px;background:#e3eccf;border-radius:50%;color:#31503d;font-size:10px}.conversation-list{display:flex;flex-direction:column;gap:10px}.conversation-row{position:relative;border:1px solid #fff;background:#ffffff90;border-radius:25px;box-shadow:0 4px 16px #3d4b2b03}.conversation-row.has-unread{background:#fffdf9;border-color:#e1e8d6}.conversation-open{display:flex;align-items:center;gap:14px;width:100%;padding:20px 19px 23px;text-align:left;border-radius:25px}.conversation-open:hover{background:#f0f4e8}.avatar{width:52px;height:52px;flex-shrink:0;display:grid;place-items:center;border-radius:19px;font-size:15px;letter-spacing:.5px;font-weight:500;box-shadow:inset 0 0 0 1px #ffffff90}.sage{background:linear-gradient(145deg,#dde8c6,#eef0dd);color:#557247}.sand{background:linear-gradient(145deg,#ecdcc4,#f6ebd8);color:#8b7052}.rose{background:linear-gradient(145deg,#eddad6,#f4e9df);color:#986d64}.blue{background:linear-gradient(145deg,#d9e6e4,#edf1e6);color:#527a7a}.lavender{background:linear-gradient(145deg,#e4dfee,#f0eaf0);color:#7f7191}.conversation-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}.conversation-name{font-size:17px;font-weight:500;letter-spacing:-.3px}.has-unread .conversation-name{font-weight:700}.has-unread .message-preview{font-weight:600}.message-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#7c897b;line-height:1.3}.service-label{font-size:10px;color:#8c997e;letter-spacing:.3px}.conversation-meta{align-self:flex-start;display:flex;flex-direction:column;align-items:flex-end;gap:12px;min-width:42px}.conversation-meta time{font-size:10px;color:#909a88;white-space:nowrap}.conversation-meta b{display:grid;place-items:center;min-width:24px;height:24px;border-radius:9px;background:#2e5545;color:white;font-size:11px;font-weight:500}.conversation-meta>svg{width:17px;height:17px;color:#a6b397}.row-menu{position:absolute;right:10px;bottom:1px;width:35px;height:28px;border-radius:12px;color:#8b987f}.row-menu svg{width:18px}.row-menu:hover{background:#e8efdd}.conversation-actions{padding:7px 16px 13px;display:flex;gap:8px;border-top:1px solid #e6ebdf}.conversation-actions button{font-size:12px;padding:12px;border-radius:12px;background:#eef2e6}.inbox-empty{text-align:center;padding:55px 15px;color:#859577}.inbox-empty>svg{width:40px;height:40px}.inbox-empty h2{font-size:21px;font-weight:500;color:#375543}.inbox-empty p{font-size:14px}.inbox-empty button{padding:12px 20px;background:#e8efdd;border-radius:20px}.new-message{background:#fff;border-radius:25px;padding:22px}.new-message h2{font-size:19px;font-weight:500}.new-message p{color:#859278;font-size:13px}.new-message button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;border-bottom:1px solid #eef1e7}.new-message svg{width:16px}.notice{display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:#e4edda;font-size:13px}.notice button{margin-left:auto;font-size:22px}.inbox-study-tools{margin-top:30px;color:#85917d;font-size:12px}.inbox-study-tools summary{cursor:pointer;min-height:35px}.inbox-study-tools p{line-height:1.6}.inbox-study-tools label{display:flex;align-items:center;gap:8px;min-height:44px}.inbox-study-tools>button{display:block;border:1px solid #ccd8bd;padding:12px;border-radius:14px;margin-top:7px}.thread{display:flex;flex-direction:column;background:#ffffffb0;border:1px solid #fff;border-radius:27px;overflow:hidden;height:calc(100dvh - 230px);min-height:440px;margin-top:12px}.thread-header{display:flex;align-items:center;gap:10px;padding:16px 12px;border-bottom:1px solid #e5ebdc}.thread-header .avatar{width:40px;height:40px;border-radius:15px;font-size:12px}.thread-person{flex:1;min-width:0}.thread-person h1{font-size:17px;font-weight:600;margin:0}.thread-person p{font-size:11px;color:#88947f;margin:3px 0 0}.thread-context{display:flex;justify-content:space-between;gap:12px;padding:12px 22px;background:#eff3e7;font-size:11px}.thread-context small{color:#8a9780;font-size:10px}.message-list{flex:1;overflow:auto;padding:20px;overscroll-behavior:contain}.date-divider{text-align:center;color:#a0ac94;font-size:10px;margin:0 0 26px}.message{max-width:83%;margin-bottom:19px;clear:both;width:fit-content}.message p{margin:0;border-radius:19px;padding:14px 16px;line-height:1.6;font-size:14px;overflow-wrap:anywhere}.incoming p{background:#eef2e7;border-bottom-left-radius:5px}.outgoing{margin-left:auto;text-align:right}.outgoing p{background:#2b5545;color:#f7faef;border-bottom-right-radius:5px;text-align:left}.message small{display:block;font-size:10px;color:#8a9981;margin-top:5px}.message small button{color:#a2553b;padding:8px;font-size:12px}.message-composer{display:flex;align-items:flex-end;gap:9px;padding:12px;background:#f8faf3;border-top:1px solid #e6ebde}.message-composer textarea{resize:none;flex:1;min-width:0;max-height:120px;border:1px solid #e1e8d7;border-radius:22px;background:#fff;padding:15px;line-height:1.4;outline:none}.message-composer textarea::placeholder{color:#9aa58f}.message-composer>button{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#2c5444;color:#fff}.drawer-backdrop{position:fixed;inset:0;z-index:50;background:#203d3455;backdrop-filter:blur(5px)}.owner-drawer{position:fixed;inset:0 0 0 auto;z-index:51;display:flex;flex-direction:column;width:min(760px,100vw);background:#f8f9f5;box-shadow:-20px 0 70px #173c3620;border-left:1px solid #fff;border-radius:30px 0 0 30px;overflow:hidden}.owner-drawer .inbox-header{padding:20px 26px 14px;flex-shrink:0}.drawer-label{display:flex;align-items:center;justify-content:space-between;padding:0 28px 12px;gap:12px;border-bottom:1px solid #e4e9da;flex-shrink:0}.drawer-label>span{font-size:10px;letter-spacing:1.8px;color:#859773}.drawer-label button{display:flex;align-items:center;gap:7px;font-size:12px;min-height:36px}.drawer-label svg{width:16px}.owner-drawer iframe{width:100%;flex:1;min-height:0;border:0;background:#f8f9f5}.unread-dot{position:absolute;width:7px;height:7px;background:#97ac64;border-radius:50%;right:8px;top:7px;border:1px solid #f9faf3}.frame-loading{padding:25px;color:#7b8c6f;font-size:14px}.frame-loading[hidden]{display:none}@media(max-width:540px){.owner-shell{padding:12px 18px 26px}.inbox-header{padding:15px 0}.inbox-intro{padding:27px 0 24px}.inbox-intro h1{font-size:44px}.eyebrow{font-size:9px;letter-spacing:1.5px}.conversation-open{gap:12px;padding:18px 15px 23px}.avatar{width:47px;height:47px;border-radius:17px;font-size:13px}.conversation-name{font-size:16px}.message-preview{font-size:12px}.conversation-meta{min-width:35px}.inbox-filters{gap:1px}.inbox-filters button{padding:10px 12px}.owner-drawer{border:0;border-radius:0}.owner-drawer .inbox-header{padding:18px 20px 12px}.drawer-label{padding:0 22px 9px}.thread{height:calc(100dvh - 180px);min-height:410px}.thread-header{gap:6px;padding:12px 7px}.thread-header>.icon-button{width:36px}.thread-person h1{font-size:15px}.thread-context{padding:12px 16px}.message-list{padding:16px}.message p{font-size:13px}.owner-name{font-size:17px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.focus-guard{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}

/* One stationary navigation header; only the workspace beneath it slides. */
html{scrollbar-gutter:stable}
.owner-shell{padding-top:114px}
.owner-shell>.inbox-header{position:fixed;z-index:60;top:0;left:50%;transform:translateX(-50%);width:min(640px,100%);height:114px;padding:24px 28px 20px;background:#f5f7ef}
.drawer-backdrop{top:114px}
.owner-drawer{top:114px;width:min(640px,100%);right:max(0px,calc((100% - 640px)/2));border:0;border-radius:0;box-shadow:none}
@media(max-width:540px){.owner-shell{padding-top:92px}.owner-shell>.inbox-header{height:92px;padding:12px 18px 15px}.drawer-backdrop,.owner-drawer{top:92px}}

/* Shared workspace canvas; rollback reference: 1cc16a4. */
body,.owner-shell>.inbox-header,.owner-drawer,.owner-drawer iframe{background:#f8f9f5}
.drawer-backdrop{background:transparent;backdrop-filter:none}
.owner-drawer{box-shadow:none;border:0}

.workspace-panel{position:absolute;inset:0;display:flex;flex-direction:column;background:#f8f9f5}.workspace-panel iframe{height:100%}body{overflow-x:hidden}

/* Approved color-only header state; retain hit areas and keyboard focus rings. */
.header-pair .icon-button,.header-pair .icon-button:hover{background:transparent;border:0;color:#879384}
.header-pair .icon-button.selected{background:transparent;color:#244f41}

/* Navigation accepts a single tap without double-tap gesture delay. */
.inbox-header button{touch-action:manipulation}

/* Peer destinations share one viewport below the stationary navigation. */
body{overflow:hidden}
.owner-shell{min-height:0;padding-bottom:0}
.workspace-deck{position:fixed;top:114px;bottom:0;left:50%;transform:translateX(-50%);width:min(640px,100%);overflow:hidden;isolation:isolate}
.workspace-page{position:absolute;inset:0;background:#f8f9f5;overflow:auto;overscroll-behavior:contain;will-change:transform}
.inbox-page-content{padding:0 28px 32px;display:flow-root}
.workspace-panel iframe{width:100%;border:0;background:#f8f9f5}
@media(max-width:540px){.workspace-deck{top:92px}.inbox-page-content{padding:0 18px 26px}}

/* A stationary canvas; only content inside the destination moves. */
.workspace-deck{background:#f8f9f5}
.workspace-page{background:transparent;will-change:auto}
.workspace-panel,.workspace-panel iframe{background:transparent}

/* A quiet direction cue shares the destination button’s tap target. */
.header-pair .workspace-switch{display:flex;align-items:center;justify-content:center;gap:3px;width:64px;flex-shrink:0}
.workspace-switch .switch-chevron{width:12px;height:12px;opacity:.55;flex-shrink:0}
.workspace-switch .unread-dot{right:23px}

/* Reversible inbox notices: quiet action, automatic fade, no close control. */
.notice{margin:16px 0;padding:10px 14px;min-height:58px}.notice button{font-size:13px;font-weight:600;min-height:44px;min-width:44px;flex-shrink:0;padding:0 6px}.notice button:hover{text-decoration:underline}.notice button:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:6px}

/* Shared header stays fixed while the section label follows the active view. */
.account-button{min-width:0;flex:1}.account-button>span:first-child,.header-pair{flex-shrink:0}.owner-name{min-width:0}.workspace-section-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:section-label-in .18s ease-out}@keyframes section-label-in{from{opacity:.3}to{opacity:1}}@media(prefers-reduced-motion:reduce){.workspace-section-label{animation:none}}

/* The inbox owns navigation; each thread owns its isolated request engine. */
.inbox-page-content.has-conversation{height:100%;padding:0;display:flex;flex-direction:column}
.inbox-conversation{height:100%;min-height:0;display:flex;flex-direction:column;background:var(--wa-surface,#f8f9f5);color:var(--wa-ink,#24463d)}
.inbox-conversation>.thread-header{flex-shrink:0;border-bottom:1px solid var(--wa-line,#dbe2d1);background:var(--wa-surface,#f8f9f5)}
.conversation-frame{border:0;width:100%;flex:1;min-height:0;display:block;background:var(--wa-surface,#f8f9f5)}

.workspace-page:has(.has-conversation){overflow:hidden}

html{scrollbar-gutter:auto}

/* beUI swipe rows, adapted to the approved inbox surface and theme. */
.swipe-list{display:flex;flex-direction:column;gap:10px}.swipe-row{position:relative;isolation:isolate;overflow:hidden;border-radius:25px;background:var(--wa-soft,#eef2e6)}.swipe-rail{position:absolute;inset:0;display:flex;border-radius:25px;overflow:hidden}.swipe-left,.swipe-right{display:flex;height:100%}.swipe-right{margin-left:auto}.swipe-rail button{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px;color:var(--wa-ink,#24463d);font-size:13px;font-weight:600}.swipe-rail button:hover{background:var(--wa-accent,#d7b548);color:var(--wa-on,#24463d)}.swipe-rail button>span:first-child{display:grid;place-items:center}.swipe-surface{position:relative;z-index:1;touch-action:pan-y;border-radius:25px}.swipe-surface .conversation-row{background:var(--wa-surface,#fafbf7)}.swipe-surface .conversation-open{touch-action:pan-y}.swipe-keyboard{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}.swipe-keyboard:focus-visible{width:36px;height:36px;clip-path:none;margin:0;right:8px;top:8px;background:var(--wa-soft,#eef2e6);border-radius:50%;z-index:3}.swipe-rail button:focus-visible{outline-offset:-5px}.swipe-touch{-webkit-user-select:none;user-select:none}

.chat-preview-switch{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;cursor:pointer;margin-left:auto}
.chat-preview-switch>span{display:block;position:relative;width:30px;height:18px;border-radius:999px;background:var(--wa-line,#cdd9be)}
.chat-preview-switch>span:after{content:"";position:absolute;width:12px;height:12px;top:3px;left:3px;border-radius:50%;background:var(--wa-surface,#fff);transition:transform .18s ease}
.chat-preview-switch[aria-checked=true]>span{background:var(--wa-ink,#244f41)}
.chat-preview-switch[aria-checked=true]>span:after{transform:translateX(12px)}
.chat-preview-switch:focus-visible{outline:2px solid var(--wa-ink,#244f41);outline-offset:-3px;border-radius:12px}
@media(prefers-reduced-motion:reduce){.chat-preview-switch>span:after{transition:none}}

body.chat-focus .owner-shell{display:none}
body.chat-focus .workspace-deck{top:0}
body.chat-focus-customer .inbox-conversation>.thread-header{display:none}
