/* Welcome screen: a quiet, centered workspace around the existing creation flow. */
body:has(.app[data-view=chat][data-empty=true]:not([hidden])){background:radial-gradient(ellipse at 14% 4%,#eee8fc 0,transparent 38%),radial-gradient(ellipse at 93% 90%,#ead9e3 0,transparent 48%),linear-gradient(130deg,#d3cbdf,#e9e3ef 55%,#d5c9df);min-height:100dvh;display:flow-root}
.app[data-view=chat][data-empty=true]{width:calc(100% - 48px);max-width:1600px;min-height:calc(100dvh - 48px);margin:24px auto;border:8px solid #ffffff70;border-radius:23px;overflow:hidden;grid-template-columns:216px minmax(0,1fr);font-family:'Login Inter',Inter,Arial,sans-serif;background:#f6f5f7;box-shadow:0 12px 60px #38234f0b}
.app[data-view=chat][data-empty=true] .sidebar{height:calc(100dvh - 64px);min-height:620px;top:0;padding:22px 12px 14px;background:#f6f5f7;border:0}
.app[data-view=chat][data-empty=true] .sidebar .brand{font-size:14px;margin:0 5px 24px;gap:8px}
.app[data-view=chat][data-empty=true] .workspace-label{display:none}
.app[data-view=chat][data-empty=true] .sidebar .wide{background:#202023;color:#fff;border-radius:8px;padding:11px;margin-bottom:14px}
.app[data-view=chat][data-empty=true] .side-nav{margin:0 0 22px}
.app[data-view=chat][data-empty=true] .side-nav button{padding:10px;font-size:12px;color:#6b6872}
.app[data-view=chat][data-empty=true] .side-nav button[aria-current]{background:#ece7f3;color:#59437d}
.app[data-view=chat][data-empty=true] .recent-label{margin:0 10px 8px;padding-top:16px;border-top:1px solid #e8e5ed;font-size:9px;letter-spacing:1px}
.app[data-view=chat][data-empty=true] .history button{font-size:11px;line-height:1.5;padding:8px 10px}
.app[data-view=chat][data-empty=true] .account{border:0;border-radius:10px;background:#ffffffbd;padding:10px 8px;margin-top:10px}
.account .avatar{position:relative;overflow:hidden;flex:none}.account .avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.app[data-view=chat][data-empty=true] .device-short{background:transparent;border-color:#e8e5ed;font-size:10px}
.app[data-view=chat][data-empty=true] .main-shell{min-width:0;background:#fff;border:1px solid #f0edf4;border-radius:16px;overflow:hidden}
.app[data-view=chat][data-empty=true] .topbar{height:64px;padding:0 26px;border:0;background:transparent;gap:12px}
.app[data-view=chat][data-empty=true] .topbar>div{margin-right:auto}
.app[data-view=chat][data-empty=true] .topbar .separator,.app[data-view=chat][data-empty=true] #page-title{display:none}
.app[data-view=chat][data-empty=true] .topbar .muted{font-size:12px;font-weight:550;color:#625776}
.app[data-view=chat][data-empty=true] .topbar .quiet-link{padding:8px 12px;background:#252329;color:#fff;border-radius:7px;font-size:10px}
.app[data-view=chat][data-empty=true] .chat-view{width:100%;max-width:780px;min-height:calc(100dvh - 130px);margin:0 auto;padding:clamp(18px,3vh,40px) 40px 20px}
.app[data-view=chat][data-empty=true] .intro{padding:0;margin:0 0 24px}
.home-orb{position:relative;width:76px;height:76px;margin:0 auto 16px;border-radius:50%;background:radial-gradient(circle at 32% 26%,#ffffffdd 0,#f0e6ff70 21%,#b28cee7a 57%,#e7d9fd33 69%,transparent 73%);filter:drop-shadow(0 3px 12px #af8bea38)}
.home-orb:before,.home-orb:after{content:'';position:absolute;border-radius:50%;pointer-events:none}
.home-orb:before{inset:1px 4px 6px 0;border:3px solid #c9acf273;box-shadow:inset 5px 3px 9px #ffffffcf,inset -5px -3px 10px #ac7ae385,0 0 6px #c6a5ed73;transform:rotate(-24deg)}
.home-orb:after{inset:7px -2px 0 6px;border:2px solid #c1a0e36b;box-shadow:inset -3px -2px 7px #fff9;transform:rotate(32deg)}
.home-orb span{position:absolute;inset:18px;border-radius:50%;background:#decdf273;filter:blur(8px)}
.app[data-view=chat][data-empty=true] .intro .home-greeting{margin:0 0 7px;font-size:23px;font-weight:500;letter-spacing:-.7px;line-height:1.3;color:#a184ce}
.app[data-view=chat][data-empty=true] .intro h1{font-size:clamp(25px,2.5vw,34px);font-weight:550;letter-spacing:-1.3px;margin:0;line-height:1.2;color:#262329}
.app[data-view=chat][data-empty=true] .intro .home-description{font-size:12px;margin:13px 0 0;color:#8a8295}
.app[data-view=chat][data-empty=true] .conversation{display:none}
.app[data-view=chat][data-empty=true] .composer-wrap{margin-top:0;padding-top:0}
.app[data-view=chat][data-empty=true] .composer{border:1px solid #e9e2f3;border-radius:16px;box-shadow:0 0 0 4px #f9f6fc,0 7px 25px #6c469907;overflow:hidden}
.app[data-view=chat][data-empty=true] .composer:focus-within{border-color:#b99cdb;box-shadow:0 0 0 4px #f4edfc}
.app[data-view=chat][data-empty=true] .composer textarea{min-height:92px;padding:18px 20px 8px;font-size:13px}
.app[data-view=chat][data-empty=true] .composer-toolbar{padding:8px 13px 13px;gap:8px}
.app[data-view=chat][data-empty=true] .chip{background:#f1e9fc;border-color:#e4d6f7;color:#8760b9;padding:7px 10px;font-size:10px}
.app[data-view=chat][data-empty=true] .segmented{background:#f7f5fa;font-size:10px}
.app[data-view=chat][data-empty=true] .base-select select{font-size:10px;max-width:145px;color:#84758f}
.app[data-view=chat][data-empty=true] .send{width:33px;height:33px;border-radius:50%;background:linear-gradient(145deg,#d7c4f3,#a67cd4);box-shadow:0 0 0 3px #f3ecfc,inset 0 0 0 1px #ffffff8a;color:#fff}
.app[data-view=chat][data-empty=true] .composer-foot{font-size:10px;padding:10px 2px;color:#9a91a5}
.home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;width:100%;gap:12px;margin:17px 0 0}
.home-shortcuts .starter{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;padding:17px 15px;border:1px solid #f0edf5;border-radius:12px;background:linear-gradient(140deg,#fff,#fcfbfe);transition:border-color .15s,transform .15s}
.home-shortcuts .starter:hover{border-color:#c8b2e7;transform:translateY(-2px)}
.home-shortcuts .starter-icon{margin-bottom:6px;display:flex;color:#94809f}.home-shortcuts .ui-icon{width:18px;height:18px}
.home-shortcuts .starter strong{font-size:11px;font-weight:550;line-height:1.4;color:#42384b}
.home-shortcuts .starter>span:last-child{font-size:10px;line-height:1.6;color:#958b9e}
.home-note{margin:auto 0 0;padding-top:28px;text-align:center;font-size:10px;color:#a79fad}.home-note span{color:#b6adbf}
.app:not([data-empty=true]) .home-shortcuts,.app:not([data-empty=true]) .home-note{display:none}
[data-theme=dark] body:has(.app[data-view=chat][data-empty=true]:not([hidden])){background:radial-gradient(ellipse at 10% 0,#3f334f,transparent 55%),linear-gradient(130deg,#25212e,#302535)}
[data-theme=dark] .app[data-view=chat][data-empty=true]{background:#25222c;border-color:#ffffff0b}
[data-theme=dark] .app[data-view=chat][data-empty=true] .sidebar{background:#25222c}
[data-theme=dark] .app[data-view=chat][data-empty=true] .main-shell{background:#1c1923;border-color:#342d3f}
[data-theme=dark] .app[data-view=chat][data-empty=true] .intro h1{color:#f2edf7}
[data-theme=dark] .app[data-view=chat][data-empty=true] .intro .home-greeting{color:#c4a5ee}
[data-theme=dark] .app[data-view=chat][data-empty=true] .side-nav button{color:#b8aec5}
[data-theme=dark] .app[data-view=chat][data-empty=true] .side-nav button[aria-current]{background:#393042;color:#dbc7f2}
[data-theme=dark] .app[data-view=chat][data-empty=true] .recent-label,[data-theme=dark] .app[data-view=chat][data-empty=true] .device-short{border-color:#3c3446}
[data-theme=dark] .app[data-view=chat][data-empty=true] .account{background:#302a39}
[data-theme=dark] .app[data-view=chat][data-empty=true] .topbar .muted{color:#c7b9d8}
[data-theme=dark] .app[data-view=chat][data-empty=true] .topbar .quiet-link{background:#d9caea;color:#261e30}
[data-theme=dark] .app[data-view=chat][data-empty=true] .composer{background:#26202f;border-color:#463752;box-shadow:0 0 0 4px #211b2a}
[data-theme=dark] .app[data-view=chat][data-empty=true] .composer textarea{color:#eee5f7}
[data-theme=dark] .app[data-view=chat][data-empty=true] .chip{background:#3b2d4d;border-color:#59416e;color:#d2b6ee}
[data-theme=dark] .app[data-view=chat][data-empty=true] .segmented{background:#332a3f}
[data-theme=dark] .home-shortcuts .starter{background:#241e2d;border-color:#352b40}
[data-theme=dark] .home-shortcuts .starter strong{color:#e1d5ec}
[data-theme=dark] .home-shortcuts .starter>span:last-child{color:#b1a0c1}
@media(max-width:1100px){.app[data-view=chat][data-empty=true]{width:calc(100% - 28px);margin:14px auto;grid-template-columns:196px minmax(0,1fr);min-height:calc(100dvh - 28px)}.app[data-view=chat][data-empty=true] .sidebar{height:calc(100dvh - 44px)}.app[data-view=chat][data-empty=true] .chat-view{padding-left:25px;padding-right:25px}.home-shortcuts{gap:8px}.home-shortcuts .starter{padding:14px 11px}}
@media(max-width:700px){.app[data-view=chat][data-empty=true]{width:100%;margin:0;min-height:100dvh;border:0;border-radius:0;grid-template-columns:1fr}.app[data-view=chat][data-empty=true] .sidebar{height:auto;min-height:0;padding:14px 16px;flex-wrap:wrap}.app[data-view=chat][data-empty=true] .sidebar .brand{margin:0 auto 0 0;font-size:13px}.app[data-view=chat][data-empty=true] .sidebar .wide{margin:0;padding:9px;font-size:10px}.app[data-view=chat][data-empty=true] .side-nav{margin:8px 0 0}.app[data-view=chat][data-empty=true] .side-nav button{padding:8px 4px;font-size:10px}.app[data-view=chat][data-empty=true] .sidebar-bottom{padding:4px 0 0}.app[data-view=chat][data-empty=true] .main-shell{border-radius:16px 16px 0 0}.app[data-view=chat][data-empty=true] .topbar{padding:12px 16px;height:auto;min-height:54px}.app[data-view=chat][data-empty=true] .topbar .quiet-link{font-size:9px;padding:7px}.app[data-view=chat][data-empty=true] .chat-view{padding:30px 21px 22px;min-height:0}.home-orb{width:65px;height:65px;margin-bottom:18px}.app[data-view=chat][data-empty=true] .intro{margin-bottom:25px}.app[data-view=chat][data-empty=true] .intro .home-greeting{font-size:21px}.app[data-view=chat][data-empty=true] .intro h1{font-size:26px;letter-spacing:-1px}.app[data-view=chat][data-empty=true] .composer textarea{min-height:110px;padding:16px}.app[data-view=chat][data-empty=true] .base-select{order:3;flex:1 1 65%}.app[data-view=chat][data-empty=true] .send{order:4}.home-shortcuts{grid-template-columns:1fr;gap:9px;margin-top:14px}.home-shortcuts .starter{display:grid;grid-template-columns:24px 1fr;gap:3px 10px;padding:14px}.home-shortcuts .starter-icon{grid-row:span 2;margin:0;align-self:center}.home-note{padding-top:28px}.home-note span{display:block;margin-top:4px}}
@media(prefers-reduced-motion:reduce){.home-shortcuts .starter{transition:none}.home-shortcuts .starter:hover{transform:none}}
@media(max-width:700px){.app[data-view=chat][data-empty=true] .topbar{display:grid;grid-template-columns:1fr auto auto auto;gap:9px}.app[data-view=chat][data-empty=true] .topbar>div{grid-column:1/-1;margin:0}.app[data-view=chat][data-empty=true] #mobile-history{width:100%;max-width:100%}.app[data-view=chat][data-empty=true] .topbar .theme-toggle{justify-self:start;margin:0}}
/* 27/10: "Descobertas em andamento" — resume a discovery where it stopped. */
.home-discoveries{width:100%;margin:22px 0 0}
.home-discoveries-head{display:flex;align-items:baseline;gap:10px;margin:0 0 10px}
.home-discoveries-head h2{margin:0;font-size:13px;font-weight:600;color:#42384b}
.home-discoveries-head small{font-size:12px;color:#94809f}
.home-discoveries-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.home-discovery{display:flex;flex-direction:column;gap:6px;padding:14px 15px;border:1px solid #f0edf5;border-radius:12px;background:#fff;min-width:0}
.home-discovery-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.home-discovery-top small{font-size:11px;color:#94809f;white-space:nowrap}
.home-discovery-state{font-size:10.5px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;border-radius:999px;padding:2px 8px;background:#ede9fe;color:#5b21b6}
.home-discovery.is-paused .home-discovery-state{background:#fef3c7;color:#92400e}
.home-discovery.is-ready .home-discovery-state{background:#dcfce7;color:#166534}
.home-discovery.is-working .home-discovery-state{background:#e0f2fe;color:#075985}
.home-discovery-title{font-size:13px;font-weight:600;line-height:1.4;color:#292536;overflow-wrap:anywhere}
.home-discovery-initiative{font-size:12px;color:#7b7587}
.home-discovery-note{margin:0;font-size:12px;color:#92400e}
.home-discovery-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:auto;padding-top:6px}
.home-discovery-actions .primary{padding:7px 13px;font-size:12px;border-radius:8px;text-decoration:none}
.home-discovery-task{font-size:12px;font-weight:600}
[data-theme=dark] .home-discovery{background:var(--surface);border-color:var(--line)}
[data-theme=dark] .home-discovery-title{color:var(--text)}
/* 30/10: who started each discovery, "Arquivar" and the undo bar. */
.home-discovery.is-stopped .home-discovery-state{background:#fee2e2;color:#991b1b}
.home-discovery-owner{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px;color:#6d657d}
.home-discovery-owner span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-discovery-face{position:relative;flex-shrink:0;width:20px;height:20px;border-radius:100%;background:#e6def4;color:var(--brand);display:grid;place-items:center;font-size:10px;font-weight:600;overflow:hidden}
.home-discovery-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.home-discovery-archive{margin-left:auto;border:0;background:transparent;padding:6px 8px;border-radius:8px;font-size:12px;font-weight:600;color:#7b7587}
.home-discovery-archive:hover{background:#f3f0f8;color:#42384b}
.home-discoveries-status{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 10px;padding:9px 12px;border-radius:10px;background:#f6f3fb;font-size:12px;color:#42384b}
.home-discoveries-status[hidden]{display:none}
.home-discovery-undo{border:0;background:transparent;padding:2px 4px;font-size:12px;font-weight:700;color:var(--brand);text-decoration:underline}
.home-discovery-error{color:#991b1b}
[data-theme=dark] .home-discovery-owner{color:var(--muted)}
[data-theme=dark] .home-discovery-face{background:#3a3150;color:#e9e2f8}
[data-theme=dark] .home-discovery-archive{color:var(--muted)}
[data-theme=dark] .home-discovery-archive:hover{background:#ffffff10;color:var(--text)}
[data-theme=dark] .home-discoveries-status{background:var(--surface);color:var(--text)}
[data-theme=dark] .home-discovery-undo{color:#c4b5fd}
[data-theme=dark] .home-discoveries-head h2{color:var(--text)}
/* 27/10: on the home page the queue keeps its 300px rail too. The home grid above won over the rail's columns, the
   queue fell into an extra column as wide as its longest line and took half the page. */
@media(min-width:1201px){.app[data-view=chat][data-empty=true][data-queue=rail]{grid-template-columns:216px minmax(0,1fr) 300px}}

/* 03/11: starting a discovery from a task of ClickUp. */
.discovery-clickup-row{display:flex;align-items:flex-start;gap:8px}.discovery-clickup-row[hidden],#discovery-clickup-card[hidden]{display:none}.discovery-clickup-row .faro-text{flex:1;min-width:0}.discovery-clickup-row button{flex:none;margin-top:8px;padding:11px 14px;font-size:13px}#discovery-clickup-status:empty{display:none}#discovery-clickup-card{margin:8px 0 12px}
