@font-face{font-family:"Newsreader";src:url('./pageweave-newsreader.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Public Sans";src:url('./pageweave-public-sans.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{color-scheme:light;--paper:#f2eadb;--paper-deep:#e9ddc9;--surface:#fbf7ef;--surface-white:#fffdf8;--line:#d9cbb4;--ink:#172b43;--muted:#586579;--coral:#a94d35;--sage:#647e62;--copper:#a46c3e;--blue:#46657e;--sans:"Public Sans","Segoe UI",system-ui,"Noto Naskh Arabic","Noto Sans Arabic",Tahoma,sans-serif;--serif:"Newsreader",Georgia,"Noto Naskh Arabic",serif;--shadow:0 10px 30px -22px rgba(38,35,29,.45)}
*{box-sizing:border-box}html{min-width:320px;min-height:100%;background:var(--paper)}body{margin:0;min-height:100vh;color:var(--ink);font:16px/1.6 var(--sans);background:radial-gradient(ellipse at 80% 0%,rgba(255,255,255,.56),transparent 45%),var(--paper)}button,textarea,input,select{font:inherit}button{color:inherit}.sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important} :focus-visible{outline:3px solid #ba593e;outline-offset:3px}
.topbar{height:70px;padding:0 clamp(18px,5vw,72px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(120,99,71,.22);background:rgba(251,247,239,.45)}.brand{display:inline-flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-size:18px;font-weight:700;letter-spacing:-.035em}.brand img{border-radius:9px}.top-actions{display:flex;align-items:center;gap:22px}.top-label,.eyebrow,.section-caption,.event-heading,.composer-top>label,.result-label{font-size:12px;font-weight:750;letter-spacing:.12em}.top-label{color:var(--muted)}.ui-lang select{min-height:40px;padding:6px 30px 6px 10px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--ink)}main{max-width:1280px;margin:0 auto;padding:0 clamp(18px,5vw,72px) 60px}.intro{position:relative;min-height:242px;padding:57px 0 45px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.intro-copy{max-width:690px}.eyebrow{display:flex;align-items:center;gap:9px;color:var(--sage);margin:0 0 14px}.live-dot{width:8px;height:8px;border-radius:50%;background:#6b8e63;box-shadow:0 0 0 4px rgba(107,142,99,.12)}h1{font:500 clamp(42px,6vw,68px)/1.02 var(--serif);letter-spacing:-.04em;margin:0;color:var(--ink)}h1 em{font-style:normal;color:var(--coral);font-size:.88em;margin-inline-start:8px}.intro-text{max-width:580px;margin:14px 0 0;color:var(--muted);font-size:18px;line-height:1.55}.table-stamp{width:116px;height:116px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid rgba(164,108,62,.55);border-radius:50%;color:var(--copper);transform:rotate(8deg);font-size:10px;letter-spacing:.1em}.table-stamp b{font:600 24px var(--serif);letter-spacing:0}.notice{max-width:750px;min-height:110px;margin:42px auto;padding:24px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}.notice h2{margin:0 0 6px;font:600 26px var(--serif)}.notice p{margin:0 0 16px;color:var(--muted)}.gate{display:flex;gap:22px;align-items:flex-start}.notice-mark{width:52px;height:52px;display:grid;place-items:center;background:#e9dfcc;color:var(--coral);font:600 28px var(--serif);border-radius:50%;flex:none}.button{min-height:46px;padding:9px 18px;border:1px solid var(--line);border-radius:4px;background:transparent;font-weight:650;cursor:pointer}.button.primary{background:var(--ink);border-color:var(--ink);color:#fff}.error{color:#963e2d}
#stage{padding-top:28px}.crew-layout{display:grid;grid-template-columns:236px minmax(0,1fr);gap:24px;align-items:start}.crew-rail{padding:15px 10px 18px 0}.section-caption{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px}.caption-line{height:1px;background:var(--line);flex:1}.crew-list{display:grid;gap:7px;margin-top:17px}.crew-choice{position:relative;width:100%;display:grid;grid-template-columns:52px minmax(0,1fr) 16px;align-items:center;gap:12px;padding:11px 9px;text-align:start;border:1px solid transparent;border-radius:5px;background:transparent;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}.crew-choice:hover{background:rgba(255,253,248,.55);transform:translateX(2px)}.crew-choice[aria-selected=true]{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}.crew-choice[aria-selected=true]::before{position:absolute;content:"";inset-block:9px;border-inline-start:3px solid var(--persona);inset-inline-start:-1px}.crew-choice .portrait{width:50px;height:50px}.crew-meta{min-width:0}.crew-name{display:block;font:650 18px/1.2 var(--serif);color:var(--ink)}.crew-role{display:block;margin-top:4px;color:var(--muted);font-size:13px;line-height:1.35}.crew-check{color:var(--persona);font-size:16px;opacity:0}.crew-choice[aria-selected=true] .crew-check{opacity:1}.rail-note{display:flex;gap:13px;align-items:center;margin:35px 8px 0;padding:14px 12px;border-top:1px solid var(--line);color:var(--sage)}.rail-note p{font:500 18px/1.25 var(--serif);margin:0;color:var(--muted)}.tiny-star{font-size:24px;color:var(--copper)}
.portrait{position:relative;overflow:hidden;border-radius:50%;display:grid;place-items:center;background:var(--wash);color:var(--persona);isolation:isolate}.portrait svg{width:100%;height:100%;display:block}.portrait-large{width:80px;height:80px;flex:none;box-shadow:0 0 0 4px var(--surface),0 0 0 5px var(--line)}.conversation{min-width:0;border:1px solid var(--line);background:var(--surface);box-shadow:0 15px 40px -32px rgba(23,43,67,.55)}.person-heading{min-height:126px;padding:22px 25px;display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--line);background:linear-gradient(105deg,rgba(255,255,255,.4),transparent 60%)}.person-title{min-width:0;flex:1}.person-role{margin:0 0 2px;color:var(--persona);font-size:12px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.person-title h2{margin:0;font:650 32px/1.15 var(--serif)}.person-intro{margin:5px 0 0;color:var(--muted);font-size:15px}.person-tools{display:flex;align-items:center;gap:12px}.status-pill{display:flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid var(--line);border-radius:3px;color:var(--muted);font-size:13px;white-space:nowrap}.status-pill i{width:7px;height:7px;border-radius:50%;background:var(--sage)}.status-pill[data-state=processing] i,.status-pill[data-state=listening] i{background:var(--coral);animation:pulse 1.2s infinite}.status-pill[data-state=error] i,.status-pill[data-state=denied] i{background:#af382f}.icon-button{width:38px;height:38px;border:1px solid var(--line);border-radius:4px;background:var(--surface-white);font-size:21px;cursor:pointer}.conversation-body{min-height:244px;display:grid;grid-template-columns:minmax(210px,.76fr) minmax(0,1.4fr)}.events-panel{position:relative;padding:22px 18px;background:#f5efe4;border-inline-end:1px solid var(--line)}.event-heading{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.event-count{min-width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#e8ddca;font-size:11px;letter-spacing:0}.events-list{list-style:none;padding:0;margin:18px 0 0}.event-item{position:relative;padding:0 0 17px 21px;border-inline-start:1px solid #cdbda5;color:var(--muted);font-size:14px}.event-item:last-child{border-inline-start-color:transparent}.event-item::before{content:"";position:absolute;left:-4px;top:6px;width:7px;height:7px;border-radius:50%;background:var(--sage)}[dir=rtl] .event-item{padding-left:0;padding-right:21px}.event-item::before{inset-inline-start:-4px}.event-item[data-type=approval_required]::before{background:var(--copper)}.event-item[data-type=task_failed]::before{background:var(--coral)}.event-kind{display:block;color:var(--ink);font-weight:650}.event-time{font-size:12px;color:var(--muted)}.empty-events{margin:24px 0;color:#6b7280;font-size:14px;line-height:1.5}.chat-panel{min-width:0;padding:19px 22px 14px;display:flex;flex-direction:column}.log{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.welcome-message{display:flex;align-items:flex-start;gap:12px;padding:10px 13px;border-inline-start:2px solid var(--persona);background:rgba(255,255,255,.5);color:var(--muted)}.welcome-message p{margin:0;font-size:16px}.welcome-ornament{font:24px var(--serif);color:var(--copper)}.log li.message{max-width:92%;padding:11px 14px;border-radius:4px;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{align-self:flex-end;background:#e9e0d1}.message.assistant{align-self:flex-start;border-inline-start:2px solid var(--persona);background:#fffdf8}.message-meta{display:block;margin-bottom:4px;font-size:12px;font-weight:700;color:var(--muted)}.message .tools{margin-top:8px}.tools button{min-height:36px;padding:5px 12px;border:1px solid var(--line);border-radius:4px;background:var(--surface);cursor:pointer}.result-panel{margin-top:14px;padding:14px;border:1px solid #b5c7af;background:#f0f4ed}.result-label{color:#456342}.result-panel pre{font:15px/1.55 var(--sans);white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;color:var(--ink)}.feedback,.mic-help{margin:10px 0 0;color:#953e2e;font-size:14px}.calc-fields{padding:18px 22px;border-top:1px solid var(--line);background:#f6f0e6}.calc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.calc-head p{margin:4px 0 0;color:var(--muted);font-size:14px}.text-button{border:0;padding:4px 0;color:var(--ink);text-decoration:underline;text-underline-offset:3px;background:none;cursor:pointer}.calc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}.calc-grid label>span:first-child{display:block;margin-bottom:4px;color:var(--muted);font-size:13px}.input-unit{display:flex;align-items:center;min-width:0;border:1px solid var(--line);background:var(--surface-white)}.input-unit input{width:100%;min-width:0;height:42px;padding:7px 9px;border:0;background:transparent;color:var(--ink)}.input-unit i{padding:0 8px;color:var(--muted);font-size:12px;font-style:normal}
.composer{padding:17px 22px 14px;border-top:1px solid var(--line);background:var(--surface-white)}.composer-top{display:flex;justify-content:space-between;gap:15px;color:var(--muted)}.composer-top>label{font-size:11px}.voice-hint{font-size:12px}.composer textarea{display:block;width:100%;min-height:64px;max-height:190px;margin:7px 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:3px;background:#fffefa;color:var(--ink);font-size:17px;line-height:1.55;resize:vertical}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.compose-options,.compose-buttons{display:flex;align-items:center;gap:10px}.language-choice{display:flex;gap:3px;margin:0;padding:0;border:0}.language-choice label{position:relative}.language-choice input{position:absolute;opacity:0}.language-choice span{min-width:38px;height:36px;display:grid;place-items:center;padding:0 8px;border:1px solid transparent;border-radius:3px;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer}.language-choice input:checked+span{border-color:var(--line);background:#f2eadb;color:var(--ink)}.language-choice input:focus-visible+span{outline:3px solid #ba593e;outline-offset:2px}.speak-option{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px;white-space:nowrap}.speak-option input{width:17px;height:17px;accent-color:var(--coral)}.mic-button,.stop-button,.send-button{min-height:43px;padding:7px 12px;border:1px solid var(--line);border-radius:3px;background:var(--surface);cursor:pointer;font-weight:650}.mic-button{display:flex;align-items:center;gap:7px}.mic-button[aria-pressed=true]{background:#f7e5de;border-color:var(--coral);color:#923c29}.send-button{display:flex;align-items:center;gap:12px;background:var(--ink);border-color:var(--ink);color:white}.send-button:hover,.button.primary:hover{background:#243f5d}.send-button:disabled,.mic-button:disabled{opacity:.52;cursor:not-allowed}.page-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:16px 2px}.privacy{max-width:700px;margin:0;color:var(--muted);font-size:13px}.account-line{display:flex;align-items:center;gap:16px;margin:0;color:var(--muted);font-size:13px;white-space:nowrap}.account-line .text-button{font-size:13px}
:root{--persona:#a94d35;--wash:#f3e0d4}.crew-choice[data-id=hadi]{--persona:#a94d35;--wash:#f3e0d4}.crew-choice[data-id=mabrouka]{--persona:#71805a;--wash:#e6eadb}.crew-choice[data-id=moncef]{--persona:#47657d;--wash:#dfe8eb}.crew-choice[data-id=hammadi]{--persona:#ad7c3f;--wash:#f0e5ce}.portrait[data-id=hadi]{--persona:#a94d35;--wash:#f3e0d4}.portrait[data-id=mabrouka]{--persona:#71805a;--wash:#e6eadb}.portrait[data-id=moncef]{--persona:#47657d;--wash:#dfe8eb}.portrait[data-id=hammadi]{--persona:#ad7c3f;--wash:#f0e5ce}
@keyframes pulse{50%{opacity:.38}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(max-width:900px){main{padding-inline:24px}.crew-layout{grid-template-columns:1fr;gap:14px}.crew-rail{padding:5px 0}.crew-rail>.section-caption,.rail-note{display:none}.crew-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}.crew-choice{grid-template-columns:42px minmax(0,1fr);gap:8px;padding:8px}.crew-choice .portrait{width:42px;height:42px}.crew-check{display:none}.crew-name{font-size:16px}.crew-role{font-size:12px}.conversation-body{grid-template-columns:minmax(180px,.68fr) minmax(0,1.4fr)}.calc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.topbar{height:60px;padding-inline:16px}.top-label{display:none}main{padding-inline:16px}.intro{min-height:194px;padding:38px 0 30px}.table-stamp{width:72px;height:72px;font-size:7px}.table-stamp b{font-size:17px}.intro-text{font-size:16px}.crew-list{grid-template-columns:repeat(2,minmax(0,1fr))}.crew-choice{min-height:69px}.person-heading{min-height:106px;padding:16px;gap:13px}.portrait-large{width:60px;height:60px}.person-title h2{font-size:26px}.person-intro{font-size:14px}.person-tools{gap:6px;align-self:flex-start}.status-pill{padding:5px 7px;font-size:12px}.status-pill span{max-width:68px;overflow:hidden;text-overflow:ellipsis}.icon-button{width:35px;height:35px}.conversation-body{grid-template-columns:1fr}.events-panel{order:2;border-inline-end:0;border-top:1px solid var(--line);padding:14px 16px}.events-list{display:flex;gap:14px;overflow:auto;margin-top:12px}.event-item{min-width:145px;padding:0 0 0 14px;border-inline-start:1px solid #cdbda5;font-size:13px}.event-time{display:block}.empty-events{margin:12px 0}.chat-panel{order:1;min-height:130px;padding:15px 14px}.composer{padding:14px}.composer-bottom{align-items:flex-start;flex-direction:column}.compose-options{width:100%;justify-content:space-between}.compose-buttons{width:100%}.mic-button{flex:0 0 auto}.send-button{flex:1;justify-content:space-between}.calc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-footer{flex-direction:column;gap:10px}.account-line{white-space:normal}.gate{gap:13px}.notice-mark{width:42px;height:42px}}
@media(max-width:380px){.status-pill{max-width:96px}.status-pill span{max-width:47px}.person-heading{gap:10px;padding:12px}.portrait-large{width:52px;height:52px}.person-title h2{font-size:23px}.compose-options{gap:4px}.language-choice{gap:0}.language-choice span{min-width:32px;padding:0 5px}.speak-option{font-size:12px}}
.result-block{margin-top:14px;padding:12px 14px;border:1px solid var(--line);background:#fffdf8}.result-block h3{margin:0 0 7px;color:var(--ink);font-size:14px}.result-block p,.result-block ul{margin:5px 0;color:var(--muted);font-size:14px}.result-block dl{display:grid;grid-template-columns:minmax(90px,.7fr) 1.3fr;gap:4px 12px;margin:0;font-size:14px}.result-block dt{color:var(--muted)}.result-block dd{margin:0;overflow-wrap:anywhere}.source-list{padding-inline-start:20px}.source-list li+li{margin-top:12px}.source-list p{margin:4px 0}.source-list small{display:block;color:var(--muted)}.source-list a{display:block;overflow-wrap:anywhere;color:var(--ink);font-size:13px}.review-link,.event-cta{display:inline-flex;align-items:center;min-height:38px;margin-top:10px;padding:6px 11px;border:1px solid var(--ink);background:var(--ink);color:#fff;text-decoration:none;font-size:14px;font-weight:650}.event-cta{min-height:34px;padding:4px 8px;font-size:12px}.followup-button{display:block;min-height:36px;margin-top:8px;padding:5px 9px;border:1px solid var(--sage);background:#f0f4ed;color:#304a30;font-size:13px;font-weight:650;cursor:pointer}.followup-button:disabled{opacity:.55;cursor:wait}.done-tag{display:inline-block;margin-top:8px;padding:3px 7px;background:#e3ecdf;color:#354f34;font-size:12px}.latency{display:block;margin-top:6px;color:var(--muted);font-size:12px;text-align:end}.input-unit input[aria-invalid=true]{outline:2px solid #ad4034;outline-offset:-2px}.mic-help{padding:8px 10px;border-inline-start:3px solid var(--coral);background:#f9eee8}
.starter-prompts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.starter-prompt{min-height:38px;padding:7px 11px;border:1px solid var(--line);background:#fffdf8;color:var(--ink);font:500 14px/1.35 var(--sans);text-align:start;cursor:pointer}.starter-prompt:hover{border-color:var(--persona);background:var(--wash)}.starter-prompt:focus-visible{outline:3px solid var(--coral);outline-offset:2px}.result-panel>#resultContent{max-height:420px;overflow:auto}.event-item[data-type=followup]::before{background:var(--persona)}

:lang(ar) p,:lang(ar) li,:lang(ar) label,:lang(ar) input,:lang(ar) textarea{font-size:max(16px,1em)}

@media(max-width:640px){.events-panel,.events-list{min-width:0;max-width:100%}.events-list{overflow-x:auto;overscroll-behavior-inline:contain}.event-item{flex:0 0 145px;min-width:0;overflow-wrap:anywhere;word-break:normal}.event-item>*{max-width:100%;overflow-wrap:anywhere}}

