@font-face{font-family:Manrope;src:url('/static/brand/Manrope-Variable.ttf') format('truetype');font-weight:200 800;font-display:swap}
:root{font-family:Manrope,Arial,sans-serif;font-size:14px;color:var(--ink);background:var(--bg);color-scheme:light;--bg:#F5F2FA;--surface:#fff;--soft:#FAF8FD;--line:#E8E1F0;--ink:#251C35;--muted:#776E85;--accent:#6C26C8;--hover:#F1EAFB;--guide:#EFE8FA;--input:#fff;--green:#8438E8}
:root[data-wth-theme=dark]{color-scheme:dark;--bg:#14101D;--surface:#211A2D;--soft:#282034;--line:#3C304E;--ink:#F0EAF8;--muted:#B7A9C8;--accent:#C7A4FF;--hover:#322443;--guide:#2D2140;--input:#1B1525}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:10px 14px;background:var(--surface);color:var(--ink);font-weight:600}button:hover{background:var(--hover)}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#7029CB}.muted,small{color:var(--muted)}small{font-size:12px}h1{font-size:30px;letter-spacing:-1px;margin:10px 0}h2{font-size:20px;letter-spacing:-.5px}h3{font-size:16px;margin:0 0 6px}p{line-height:1.6}label{display:block;font-weight:600;font-size:13px;margin:15px 0}input,select,textarea{display:block;width:100%;padding:12px 13px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin-top:7px;color:var(--ink)}input:focus,textarea:focus,select:focus{outline:2px solid #C7A4FF;outline-offset:1px}input[type=checkbox]{display:inline;width:auto;margin-right:8px}.brand{font-size:20px;font-weight:750;letter-spacing:-.6px;display:flex;gap:10px;align-items:center}.logo{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;background:#C7A4FF;color:#140E22;font-weight:800}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--muted)}.sidebar{width:242px;position:fixed;inset:0 auto 0 0;background:#140E22;color:#F0EAF8;padding:28px 20px;display:flex;flex-direction:column}.workspace{font-size:9px;letter-spacing:1.7px;color:#B7A9C8;margin:50px 10px 18px;display:flex;justify-content:space-between}.workspace span{color:#C7A4FF;letter-spacing:.7px}.nav{background:none;border:0;color:#CCC1D8;display:flex;gap:12px;align-items:center;width:100%;text-align:left;font-weight:500;padding:15px 12px;margin:4px 0}.nav.active,.nav:hover{color:#FFFFFF;background:#8438E8}.sidebar-bottom{margin-top:auto;display:flex;gap:10px;align-items:center;border-top:1px solid #3C304E;padding-top:20px}.sidebar-bottom strong{display:block;font-size:12px}.sidebar-bottom small{color:#B7A9C8}.sidebar-bottom button{margin-left:auto;background:none;color:#E0D3F1;border:0}.avatar{height:34px;width:34px;border-radius:50%;background:#342044;display:grid;place-items:center;color:#E0D3F1;font-size:12px}main{margin-left:242px;padding:38px 45px 15px;max-width:1600px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}header p{margin:8px 0}.badge{font-size:10px;border-radius:20px;padding:7px 10px;white-space:nowrap;display:inline-block;background:#e5f6ed;color:#25765c}.badge.neutral{background:var(--soft);color:var(--muted)}.badge.warn{background:#fff2df;color:#986516}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:30px}.stat,.card,.panel{border:1px solid var(--line);background:var(--surface);border-radius:12px}.stat{padding:20px 23px}.stat .value{font-size:29px;letter-spacing:-1px;font-weight:650;margin:12px 0 4px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:20px 0}.section-head p{margin:5px 0}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}.card{padding:22px}.card-top{display:flex;justify-content:space-between;gap:12px;margin-bottom:22px}.connection-icon{height:42px;width:42px;display:grid;place-items:center;border:1px solid var(--line);background:var(--soft);border-radius:12px;color:var(--accent);font-size:22px}.card p{margin:8px 0}.card small{display:block;word-break:break-word}.card-actions{display:flex;gap:8px;border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.card-actions .primary{flex:1}.empty{text-align:center;background:var(--surface);border:1px dashed var(--line);border-radius:14px;padding:65px 20px;color:var(--muted)}.empty .connection-icon{margin:0 auto 22px}.empty h2{color:var(--ink)}.panel{padding:25px;max-width:850px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.notice{background:var(--guide);border-left:3px solid #8438E8;color:var(--ink);padding:12px 15px;border-radius:5px;font-size:12px;line-height:1.7;margin:16px 0}.warning{background:#fff6e7;border-color:#d6a348;color:#8a692c}.error{color:#9a4d31;background:#fff4ed;padding:9px;border-radius:6px;font-size:12px;overflow-wrap:anywhere}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}dialog{border:1px solid var(--line);border-radius:14px;width:min(560px,94vw);padding:25px;color:var(--ink);max-height:90vh}dialog::backdrop{background:#140e2266;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between}.modal-head h2{margin:0}.modal-head button{border:0;font-size:24px;padding:0 5px}.qr{display:block;max-width:260px;width:100%;margin:20px auto}#toast{position:fixed;right:24px;top:20px;background:#342044;color:white;padding:14px 20px;z-index:10;border-radius:10px;box-shadow:0 10px 40px #140e2233;max-width:450px}footer{font-size:10px;color:var(--muted);display:flex;justify-content:space-between;margin-top:55px;padding:20px 0;border-top:1px solid var(--line)}.chat-layout{display:grid;grid-template-columns:260px 1fr;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface);min-height:560px}.chat-list{border-right:1px solid var(--line);max-height:700px;overflow:auto;padding:12px}.chat-list button{display:block;width:100%;text-align:left;border:0;font-size:12px;overflow-wrap:anywhere}.chat-list button.active{background:var(--hover)}.chat-main{display:flex;flex-direction:column;min-width:0}.chat-toolbar{padding:15px;border-bottom:1px solid var(--line);display:flex;gap:8px;align-items:center;flex-wrap:wrap}.chat-toolbar strong{flex:1;overflow-wrap:anywhere}.messages{height:420px;overflow:auto;padding:22px;background:var(--soft);display:flex;flex-direction:column;gap:12px}.bubble{align-self:flex-start;max-width:85%;background:var(--surface);border:1px solid var(--line);border-radius:0 12px 12px 12px;padding:12px 15px;min-width:160px;overflow-wrap:anywhere}.bubble.out{align-self:flex-end;background:var(--guide);border-radius:12px 0 12px 12px;border-color:var(--line)}.bubble p{margin:6px 0;white-space:pre-wrap}.bubble a{color:var(--accent)}.bubble small{font-size:9px}.compose{padding:15px;border-top:1px solid var(--line)}.compose input,.compose textarea{margin-top:0}.compose textarea{resize:vertical;min-height:65px;margin-bottom:10px}.compose .actions input{max-width:260px;font-size:11px;padding:8px}.compose select{width:110px;margin:0;padding:8px}.compose .primary{margin-left:auto}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}td,th{padding:14px;border-bottom:1px solid var(--line)}.meter{height:12px;border-radius:10px;background:var(--line);margin:18px 0;overflow:hidden}.meter span{display:block;height:100%;background:#8438E8}.meter.danger span{background:#ce8644}.login{width:50%;padding:9vh 8vw}.login .brand{margin-bottom:65px}.login h1{font-size:35px}.login form{margin:30px 0}.login .primary{width:100%;padding:14px}.login-art{position:fixed;right:0;top:0;bottom:0;width:46%;background:#143e33;padding:12vh 6vw;display:flex;flex-direction:column;justify-content:center;color:#cdf2db;overflow:hidden}.login-art p{font-size:70px;letter-spacing:-4px;line-height:1.1;z-index:1}.login-art span{font-size:13px;color:#8bb5a2}.orb{position:absolute;right:-170px;top:7%;width:500px;height:500px;border:1px solid #315d46;border-radius:50%;box-shadow:0 0 0 60px #1c4838,0 0 0 120px #1a4436}pre{overflow:auto;background:var(--soft);padding:14px;font-size:11px}[hidden]{display:none!important}@media(max-width:1000px){main{padding:28px 24px}.sidebar{width:205px}main{margin-left:205px}.chat-layout{grid-template-columns:200px 1fr}.login{padding:8vw}.login-art p{font-size:54px}}@media(max-width:700px){.sidebar{position:static;width:100%;padding:16px}.workspace,.sidebar-bottom,.sidebar nav span{display:none}.sidebar nav{display:flex;margin-top:15px}.nav{width:auto;margin-right:5px}.brand{font-size:18px}main{margin-left:0;padding:24px 16px}header{align-items:flex-start}header .badge{display:none}h1{font-size:26px}.stats{gap:8px}.stat{padding:12px}.stat .value{font-size:24px}.stat small{font-size:10px}.grid2{grid-template-columns:1fr;gap:0}.chat-layout{display:block}.chat-list{max-height:180px;border-bottom:1px solid var(--line)}.messages{height:360px}.chat-toolbar button{font-size:11px;padding:8px}.compose .actions input{max-width:100%}.login{width:100%;padding:30px}.login-art{display:none}footer span{display:none}.section-head{gap:10px;align-items:flex-start}.section-head .primary{white-space:nowrap;font-size:12px}}

/* BridgeWPP using the public WTH Presença identity and theme tokens. */
body{background:var(--bg);color:var(--ink)}h1,h2,h3{color:var(--ink)}a{color:var(--accent)}input,textarea,select{background:var(--input);color:var(--ink)}input[type=checkbox]{accent-color:#8438E8}button{background:var(--surface);color:var(--ink)}.primary{background:#8438E8;color:#fff;border-color:#8438E8}.primary:hover{background:#7029CB}.sidebar{background:#140E22}.sidebar .brand{align-items:flex-start;flex-direction:column;gap:9px}.brand img{width:135px;height:auto}.brand span{font-size:13px;letter-spacing:1.5px;color:#C7A4FF}.card,.panel,.stat{box-shadow:0 3px 14px #140e2208}.card-actions{flex-wrap:wrap}.header-actions{display:flex;gap:12px;align-items:center}.theme-toggle{display:inline-grid;place-items:center;flex-shrink:0;border:1px solid var(--line);border-radius:50%;width:36px;height:36px;padding:0;color:var(--muted);background:transparent;font-size:15px}.theme-toggle:hover{color:var(--accent);background:var(--hover)}.danger{color:#B42336;border-color:#E9B8C1}.danger:hover{background:#FFF0F2}.danger.primary{background:#B42336;border-color:#B42336;color:white}.danger.primary:hover{background:#901C2C}.badge.archived{background:var(--guide);color:var(--accent)}:root[data-wth-theme=dark] .notice.warning,:root[data-wth-theme=dark] .warning{background:#382C1F;color:#E7C269}:root[data-wth-theme=dark] .badge.warn{background:#382C1F;color:#E7C269}:root[data-wth-theme=dark] .badge:not(.neutral):not(.warn):not(.archived){background:#173D30;color:#78DFB6}:root[data-wth-theme=dark] .error{background:#3E202C;color:#F7A1B4}:root[data-wth-theme=dark] .danger{color:#F7A1B4;border-color:#794352}:root[data-wth-theme=dark] .danger:hover{background:#3E202C}.read-only{padding:18px;border-top:1px solid var(--line);color:var(--muted);background:var(--soft)}
#auth{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);min-height:100vh;width:100%}.login-art{position:relative;inset:auto;width:auto;min-height:100vh;background:radial-gradient(ellipse at 85% 15%,#8438E8 0%,transparent 55%),linear-gradient(145deg,#140E22,#8438E8);padding:64px clamp(32px,5vw,90px);color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;overflow:hidden}.hero-logo{width:210px;height:auto;position:absolute;top:48px;left:clamp(32px,5vw,90px)}.hero-copy{position:relative;z-index:1}.login-art .eyebrow{color:#C7A4FF;font-size:11px;letter-spacing:.16em}.login-art h1{font-size:clamp(38px,4vw,66px);line-height:1.08;color:#fff;letter-spacing:-.055em;margin:24px 0}.login-art p{font-size:17px;letter-spacing:0;line-height:1.7;color:#DDD0EE;max-width:470px;margin:0}.hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:34px}.hero-chips span{border:1px solid #ffffff30;background:#ffffff08;color:#E3D5F6;font-size:11px;border-radius:25px;padding:9px 14px}.hero-watermark{position:absolute;right:-90px;bottom:25px;width:450px;opacity:.055;pointer-events:none}.login{width:auto;min-width:0;padding:50px 32px;display:flex;justify-content:center;align-items:center;background:var(--bg)}.login-wrap{width:100%;max-width:410px;position:relative}.login-wrap>.theme-toggle{position:absolute;right:0;top:-55px}.login-brand img{width:165px;height:auto;margin-bottom:38px}.brand-white{display:none}:root[data-wth-theme=dark] .brand-purple{display:none}:root[data-wth-theme=dark] .brand-white{display:block}.login h1{font-size:27px;line-height:1.3;letter-spacing:-.045em;margin:0 0 12px}.login form{margin:24px 0 18px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 30px #140e2206}.login form label:first-child{margin-top:0}.login .primary{min-height:46px;border-radius:9px}.login-footer{display:block;text-align:center;line-height:1.6;padding:12px}.section-head select{width:auto;margin:0}.bubble.out{background:var(--guide)}
@media(max-width:760px){#auth{grid-template-columns:minmax(0,1fr)}.login-art{min-height:320px;padding:110px 24px 30px}.hero-logo{width:160px;top:28px;left:24px}.login-art h1{font-size:38px;margin:16px 0}.login-art p{font-size:14px}.hero-chips{margin-top:20px}.hero-watermark{width:260px;bottom:-30px}.login{padding:65px 20px 32px}.login-brand{display:none}.login-wrap>.theme-toggle{top:-48px}.login h1{font-size:24px}input,select,textarea{font-size:16px}.sidebar .brand{flex-direction:row;align-items:center;justify-content:space-between}.brand img{width:100px}.header-actions .badge{display:none}.card-actions .danger{font-size:11px;padding:8px}.section-head{flex-wrap:wrap}.section-head .actions{flex-wrap:wrap}}

.modal-feedback{margin:16px 0;padding:14px 16px;line-height:1.7;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.modal-feedback:focus{outline:2px solid var(--accent);outline-offset:2px}.modal-feedback.error{border:1px solid #B42336;background:#FFF0F2;color:#8B1E2B}:root[data-wth-theme=dark] .modal-feedback.error{background:#3E202C;color:#F7A1B4;border-color:#975565}

.message-media{display:flex;flex-direction:column;gap:8px;margin:8px 0}.message-image{display:block;max-width:min(320px,100%);max-height:300px;object-fit:contain;border-radius:8px}.message-player{display:block;width:300px;max-width:100%;border-radius:8px}.file-link{font-size:12px;overflow-wrap:anywhere}.message-reactions{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0 4px}.reaction-pill{display:inline-block;border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:3px 8px;font-size:13px}.media-pending{max-width:320px;line-height:1.5}

.chat-sidebar{border-right:1px solid var(--line);min-width:0}.chat-sidebar .chat-list{border-right:0;max-height:620px}.chat-search{padding:12px;border-bottom:1px solid var(--line)}.chat-search input{margin:0;font-size:12px}.sync-panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px 18px;margin:0 0 18px}.sync-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.sync-panel progress{width:100%;height:14px;accent-color:#8438E8;margin:12px 0 7px}.sync-panel small{display:block;line-height:1.7}.sync-panel .error{margin-bottom:0}@media(max-width:700px){.chat-sidebar{border-right:0;border-bottom:1px solid var(--line)}.chat-sidebar .chat-list{max-height:180px}.sync-heading{align-items:flex-start}.chat-search input{font-size:16px}}

.chat-identity{flex:1;min-width:0}.chat-identity strong,.chat-identity small{display:block;overflow-wrap:anywhere}.chat-identity small{margin-top:5px;font-size:11px}.docs-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px}.docs-nav{display:flex;flex-direction:column;gap:9px;align-self:start;position:sticky;top:20px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.docs-nav a{padding:6px;text-decoration:none;font-size:12px}.docs-content{max-width:none;min-width:0}.docs-content section{scroll-margin-top:20px;margin:28px 0}.docs-content pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.docs-content code{overflow-wrap:anywhere}.token-list{margin-top:15px}@media(max-width:900px){.docs-layout{grid-template-columns:1fr}.docs-nav{position:static;flex-direction:row;flex-wrap:wrap}}

footer a,.login-footer a{color:inherit;text-decoration:none}footer a:hover,.login-footer a:hover{text-decoration:underline}footer{gap:12px;flex-wrap:wrap}

.removal-progress{margin:10px 0 2px}
.removal-progress small{display:block;line-height:1.5}
.removal-progress progress{width:100%;height:10px;accent-color:#8438E8;margin:6px 0 0}
