/* VozLivre visual system. Loaded after the legacy styles. */
:root{--surface:#fff;--canvas:#f4f7f6;--canvas-soft:#f8faf9;--text:#243b34;--text-strong:#17382d;--line:#dce7e2;--hover:#edf5f1;--selected:#e7f5ed;--message:#f1f6f3;--outgoing:#e1f4e9;--input:#fff;--shadow:0 12px 32px #163c2920;--green:#087b61;--dark:#153d33;--border:var(--line);--muted:#687d74;color-scheme:light}
html[data-theme=dark]{--surface:#1b2825;--canvas:#101a18;--canvas-soft:#172320;--text:#dbe8e1;--text-strong:#f1f8f3;--line:#334a40;--hover:#293e35;--selected:#264b3b;--message:#15211e;--outgoing:#24503b;--input:#21312c;--shadow:0 16px 40px #0008;--green:#45c99b;--dark:#e2f6eb;--border:var(--line);--muted:#a8beb1;color-scheme:dark}
html{background:var(--canvas)}body{background:var(--canvas);color:var(--text);font-family:'DM Sans',system-ui,sans-serif}h1,h2,h3,.brand,.stat b{font-family:'DM Sans',system-ui,sans-serif;letter-spacing:-.025em;color:var(--text-strong)}p,.meta,.help,.subtitle,.breadcrumb{color:var(--muted)}button,.button,input,select,textarea{border-radius:10px}button,.button{background:var(--surface);border-color:var(--line);color:var(--text);transition:background .16s,border-color .16s,transform .16s}button:hover,.button:hover{background:var(--hover)}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:2px}.primary,.button.primary{background:#087b61;color:#fff;border-color:#087b61}.primary:hover,.button.primary:hover{background:#066d55}.panel,.stat,.funnel-card,.asset-card,.step,.flow-node,.team-card,.chat-shell{background:var(--surface);border-color:var(--line);box-shadow:0 2px 12px #173d3109}.pill{background:var(--hover);color:var(--text)}.pill.green{background:#dcf3e7;color:#14674c}.pill.amber{background:#fff0cc;color:#76500b}.pill.red{background:#ffe8e5;color:#9c3931}
.sidebar{width:228px;background:var(--surface);border-color:var(--line);padding:18px 12px;transition:width .18s}.sidebar-brand-row{display:flex;align-items:center;gap:8px;padding:4px 7px 10px}.sidebar .brand{font-size:1.24rem;min-width:0;flex:1;gap:9px}.brandmark{flex:none;width:34px;height:34px;font-size:1.8rem}.brand-name{white-space:nowrap}.brand-name .local{margin-left:6px}.chrome-button{width:32px;height:32px;padding:0;border-color:transparent;background:transparent;font-size:1.1rem;flex:none}.workspace{margin:28px 11px 10px;font-size:.66rem}.sidebar nav{gap:3px}.sidebar nav a{padding:11px 12px;gap:13px;border-radius:10px;font-size:.86rem;min-height:42px;color:var(--muted)}.sidebar nav a:hover{background:var(--hover);color:var(--text-strong)}.sidebar nav a.active{background:var(--selected);color:#087b61}.nav-icon{display:block;width:19px;height:19px;flex:none}.sidebar nav a>span:first-child{width:20px;display:grid;place-items:center}.sidebar-bottom{padding-top:12px}.connection-link{border-color:var(--line);color:var(--text);font-size:.73rem}.sidebar-bottom small{color:var(--muted);padding-top:10px}.signed-user{color:var(--muted)}.main{margin-left:228px;transition:margin-left .18s}.sidebar-collapsed .sidebar{width:68px;padding-inline:7px}.sidebar-collapsed .main{margin-left:68px}.sidebar-collapsed .sidebar-brand-row{padding-inline:5px;flex-direction:column}.sidebar-collapsed .brand{flex:none}.sidebar-collapsed .brand-name,.sidebar-collapsed .workspace,.sidebar-collapsed .nav-label,.sidebar-collapsed #connection-label,.sidebar-collapsed .connection-arrow,.sidebar-collapsed .signed-user strong,.sidebar-collapsed .sidebar-bottom small{display:none}.sidebar-collapsed .sidebar nav a{justify-content:center;padding-inline:8px}.sidebar-collapsed .sidebar-bottom .connection-link{justify-content:center}.sidebar-collapsed .signed-user{justify-content:center}.sidebar-collapsed .signed-user button{font-size:.65rem;padding:5px}
header{height:68px;background:var(--surface);border-color:var(--line);padding:0 26px;gap:20px}header .header-account,header .header-actions{display:flex;align-items:center;gap:9px;min-width:0}header .header-account label,header .theme-control{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:.74rem;white-space:nowrap}header #account-select{width:195px;max-width:24vw;padding:8px 10px}header .theme-control select{width:116px;padding:8px 10px}.breadcrumb{white-space:nowrap}.breadcrumb span{margin:0 7px}main{padding:24px 28px;max-width:none;min-height:calc(100vh - 110px)}.page-head{margin-bottom:19px}.page-head h1{font-size:1.55rem;margin-bottom:4px}.page-head .subtitle{font-size:.84rem}footer{padding:9px 28px 16px;color:var(--muted)}
.page-chat header{height:60px}.page-chat main{padding:12px 16px 8px;min-height:0}.page-chat .page-head{margin-bottom:10px;min-height:38px}.page-chat .page-head h1{font-size:1.13rem;margin:0}.page-chat .page-head .subtitle,.page-chat footer{display:none}.page-chat .chat-shell{height:calc(100dvh - 130px);min-height:420px;grid-template-columns:minmax(215px,270px) minmax(0,1fr);border-radius:14px}.chat-list{background:var(--surface);border-color:var(--line)}.chat-chips{border-color:var(--line);padding:10px}.chat-search{padding:9px 10px}.chat-search input{padding:9px 11px;background:var(--input);border-color:var(--line)}.chat-item{background:var(--surface);border-bottom:1px solid var(--line);border-left-width:3px;padding:10px 40px 10px 11px;min-height:80px}.chat-item:hover{background:var(--hover)}.chat-item.active,.chat-item.unread,.chat-item.unread.active{background:var(--selected)}.chat-item-top{display:flex!important;gap:5px;align-items:baseline;margin:0!important}.chat-item-top strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem;color:var(--text-strong)}.chat-item-top time{font-size:.65rem;color:var(--muted);font-weight:400}.chat-item small{margin-top:2px}.chat-item .chat-account-tag{font-size:.66rem;margin-top:3px}.chat-item .chat-preview{margin-top:3px;font-size:.73rem;color:var(--muted)}.chat-item .unread-badge{top:40px;right:10px}.chat-title{padding:10px 16px;border-color:var(--line);border-top-width:3px;min-height:65px;background:var(--surface)}.chat-title h3{font-size:.94rem}.chat-title .meta{font-size:.7rem}.chat-title .pill{font-size:.67rem;padding:2px 8px}.messages{background:var(--message);padding:17px;min-height:0}.bubble{background:var(--surface);border-color:var(--line);color:var(--text);box-shadow:0 1px 4px #0000000d}.chat-shell .bubble.out{background:var(--outgoing);border-color:var(--chip-color);color:var(--text)}.bubble small{color:var(--muted)}.composer{background:var(--surface);border-color:var(--line);padding:9px 12px;flex-wrap:nowrap;align-items:center}.composer textarea{flex:1 1 auto;min-width:0;min-height:42px;height:42px;max-height:100px;padding:8px 10px;background:var(--input);border-color:var(--line)}.composer button{padding:9px 11px;min-height:40px}.chat-shelf{background:var(--surface);border-color:var(--line)}.shelf-drawer,dialog{background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:var(--shadow)}dialog .dialog-head h2{color:var(--text-strong)}input,textarea,select{background:var(--input);color:var(--text);border-color:var(--line)}label{color:var(--text)}.flow-canvas-wrap{background-color:var(--canvas-soft);background-image:radial-gradient(var(--line) 1px,transparent 1px);border-color:var(--line)}.flow-node{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}.flow-node-head{color:var(--text-strong)}.flow-fields small,.flow-node-foot{color:var(--muted)}.flow-output-row{color:var(--muted)}.library-group{background:var(--canvas-soft);border-color:var(--line)}.asset-card img{background:var(--canvas)}.upload,.qrbox{background:var(--canvas-soft);border-color:var(--line)}.shelf-open{background:transparent}.shelf-item strong,.shelf-quick-item>span:last-child{color:var(--text-strong)}
html[data-theme=dark] .sidebar nav a.active{color:#8ee5bb}html[data-theme=dark] .pill.green{background:#214c39;color:#a1e5bf}html[data-theme=dark] .pill.amber{background:#4e3a1d;color:#ffdc9b}html[data-theme=dark] .pill.red{background:#542c2a;color:#ffc4bc}html[data-theme=dark] .flow-port-in{background:var(--surface)}html[data-theme=dark] .flow-canvas .flow-port{border-color:var(--surface)}html[data-theme=dark] .shelf-item.type-flow,html[data-theme=dark] .shelf-quick-item.type-flow{background:#463122;color:#efad73}html[data-theme=dark] .shelf-item.type-funnel,html[data-theme=dark] .shelf-quick-item.type-funnel{background:#362c4c;color:#bd9af5}html[data-theme=dark] .shelf-item.type-audio,html[data-theme=dark] .shelf-quick-item.type-audio{background:#21394b;color:#8dc5f4}html[data-theme=dark] .shelf-item.type-image,html[data-theme=dark] .shelf-quick-item.type-image{background:#244536;color:#91e4ae}html[data-theme=dark] .shelf-item.type-text,html[data-theme=dark] .shelf-quick-item.type-text{background:#2e3934;color:#c5d5cb}html[data-theme=dark] .shelf-item.type-document,html[data-theme=dark] .shelf-quick-item.type-document{background:#492a38;color:#f5abc9}html[data-theme=dark] .shelf-item.type-video,html[data-theme=dark] .shelf-quick-item.type-video{background:#41382a;color:#ebc988}html[data-theme=dark] .shelf-icon{background:#ffffff18}html[data-theme=dark] .library-group.type-audio{background:#1b3040}html[data-theme=dark] .library-group.type-image{background:#1b3428}html[data-theme=dark] .library-group.type-document{background:#372531}html[data-theme=dark] .library-group.type-video{background:#393021}html[data-theme=dark] .note{background:#1d3b30;border-color:#34694f;color:#c4e6d0}html[data-theme=dark] .note.amber{background:#3d321e;border-color:#6a5426;color:#efd9a9}html[data-theme=dark] .note p{color:inherit}html[data-theme=dark] .auth-screen{background:#0e1716ed}html[data-theme=dark] .auth-card{background:var(--surface);border-color:var(--line)}
@media(max-width:1180px){header .breadcrumb{display:none}header{padding-inline:16px}.page-chat .chat-shell{grid-template-columns:220px minmax(0,1fr)}.composer button{font-size:.76rem;padding-inline:8px}}
@media(max-width:800px){header #account-select{width:150px}header #account-add{font-size:.75rem}.theme-control{font-size:0!important}.page-chat .composer{flex-wrap:wrap}.page-chat .composer textarea{flex:1 1 100%}.page-chat .chat-shell{height:calc(100dvh - 126px)}}
@media(max-width:720px){.sidebar,.sidebar-collapsed .sidebar{position:static;width:auto;padding:10px}.sidebar-brand-row,.sidebar-collapsed .sidebar-brand-row{flex-direction:row}.sidebar-collapsed .brand-name,.sidebar-collapsed .nav-label{display:inline}.sidebar .workspace,.sidebar-bottom{display:none}.sidebar nav,.sidebar-collapsed .sidebar nav{display:flex;overflow:auto;gap:4px;margin:6px 0 0}.sidebar nav a,.sidebar-collapsed .sidebar nav a{padding:8px 10px;min-height:38px;white-space:nowrap}.main,.sidebar-collapsed .main{margin-left:0}header{height:auto;min-height:58px;padding:8px 12px;gap:8px}header .header-account{flex:1;gap:5px}header #account-select{max-width:130px}.header-account label{font-size:0!important}.header-actions #top-connect{display:none}main{padding:16px}.page-chat main{padding:8px}.page-chat .chat-shell{grid-template-columns:1fr;grid-template-rows:140px minmax(0,1fr);height:calc(100dvh - 172px);min-height:500px}.page-chat .chat-list{max-height:140px}.page-chat .chat-main{min-height:0}.page-chat .messages{min-height:0}.page-chat .composer{gap:5px}.page-chat .composer button{font-size:.73rem}.page-head h1{font-size:1.35rem}}
.sidebar nav a .nav-label{width:auto;flex:1;display:block;font-size:inherit;min-width:0}.sidebar-collapsed .sidebar nav a .nav-label{display:none}html[data-theme=dark] button:not(.primary):not(.shelf-open):not(.shelf-star):not(.shelf-label):not(.shelf-quick-item),html[data-theme=dark] .button:not(.primary){background:var(--surface);color:var(--text);border-color:var(--line)}html[data-theme=dark] button:not(.primary):not(.shelf-quick-item):hover,html[data-theme=dark] .button:not(.primary):hover{background:var(--hover)}html[data-theme=dark] .chrome-button{background:transparent!important}html[data-theme=dark] .chat-item.active,html[data-theme=dark] .chat-item.unread{background:color-mix(in srgb,var(--chip-color) 22%,var(--surface))}html[data-theme=dark] .chat-item.active .chat-item-top strong,html[data-theme=dark] .chat-item.unread .chat-item-top strong{color:var(--text-strong)}html[data-theme=dark] .chat-shell .chat-title .pill,html[data-theme=dark] .chat-chip small{background:color-mix(in srgb,var(--chip-color) 24%,var(--surface));color:#a4e6ce}html[data-theme=dark] .chat-shell .bubble.out{background:var(--outgoing)}
@media(max-width:720px){.sidebar-collapsed .sidebar nav a .nav-label{display:inline;width:auto;flex:none}}
html[data-theme=dark] .script-label textarea,html[data-theme=dark] .review-comparison textarea{background:var(--input)}html[data-theme=dark] .voice-choice:has(input:checked){background:var(--selected);border-color:var(--green)}html[data-theme=dark] .voice-avatar{background:#295243;color:#b3efd2}html[data-theme=dark] .voice-avatar-1{background:#293c5b;color:#b4d1ff}html[data-theme=dark] .voice-avatar-2{background:#3e2e50;color:#dec1f3}html[data-theme=dark] .review-panel{background:var(--canvas-soft);border-color:var(--line)}html[data-theme=dark] .new-card{background:var(--canvas-soft);border-color:var(--line);color:var(--text)}html[data-theme=dark] .flow-mini span{background:var(--hover);border-color:var(--line);color:var(--text)}html[data-theme=dark] .empty strong{color:var(--text-strong)}html[data-theme=dark] .audit-row{border-color:var(--line)}html[data-theme=dark] .team-chip{border-color:var(--line)}html[data-theme=dark] .shelf-drawer .shelf-item strong{color:var(--text-strong)}
@media(max-width:720px){header #account-add{font-size:0;padding:8px;min-width:34px;width:34px;height:34px}header #account-add::before{content:'+';font-size:1.1rem}header .theme-control select{width:97px;font-size:.75rem}header #account-select{max-width:138px}.page-chat .chat-shell{height:calc(100dvh - 244px);min-height:450px}.page-chat .page-head{min-height:35px}.page-chat .chat-list{max-height:140px}}
.batch-followups:not([hidden]){margin:14px 0 18px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--canvas-soft)}.batch-followups textarea{min-height:105px;line-height:1.55}.batch-followups label+label{margin-top:14px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-height:36px}.theme-toggle-icon{font-size:1.2rem;line-height:1}.theme-toggle-label{font-size:.78rem}html[data-theme=dark] .theme-toggle{background:#264b3b!important;border-color:#3b7960!important;color:#d9f8e8!important}@media(max-width:1080px){.theme-toggle{width:36px;min-width:36px;padding:7px}.theme-toggle-label{display:none}}@media(max-width:720px){header .theme-control{display:none!important}.theme-toggle{flex:none}}
