*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#0d0d0d;background:#fff}button,textarea{font:inherit}.app{height:100vh;display:flex;overflow:hidden}.sidebar{width:260px;flex:0 0 260px;background:#f9f9f9;padding:10px 10px 8px;display:flex;flex-direction:column;border-right:1px solid #f1f1f1;transition:.2s ease}.side-top{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 4px 4px}.brand-button{border:0;background:transparent;display:flex;align-items:center;gap:9px;padding:5px 6px;cursor:pointer}.brand-mark,.mini-logo{display:grid;place-items:center;background:#0d0d0d;color:white;font-weight:800;letter-spacing:-.7px}.brand-mark{width:29px;height:29px;border-radius:10px;font-size:11px}.brand-name{font-size:17px;font-weight:650}.icon-btn{width:34px;height:34px;border:0;border-radius:9px;background:transparent;display:grid;place-items:center;cursor:pointer}.icon-btn:hover,.nav-item:hover,.profile-row:hover{background:#ececec}.icon-btn svg,.nav-item svg,.composer svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav{display:flex;flex-direction:column;gap:2px;margin-top:8px}.nav-item{height:40px;border:0;background:transparent;border-radius:9px;padding:0 10px;display:flex;align-items:center;gap:11px;cursor:pointer;text-align:left}.nav-item.active{background:#ececec}.nav-item span{font-size:14px}.history{margin-top:22px;padding:0 6px;flex:1;overflow:auto}.history-title{font-size:12px;font-weight:600;color:#777;margin:0 6px 10px}.empty-history{font-size:12px;color:#999;padding:7px 6px;line-height:1.45}.side-bottom{padding-top:8px}.profile-row{width:100%;border:0;background:transparent;border-radius:10px;padding:8px;display:flex;align-items:center;gap:10px;cursor:pointer}.avatar{width:32px;height:32px;border-radius:50%;background:#ddd;display:grid;place-items:center;font-weight:700}.profile-copy{min-width:0;display:flex;flex:1;flex-direction:column;text-align:left}.profile-copy strong{font-size:13px}.profile-copy small{font-size:11px;color:#777;margin-top:2px}.dots{color:#777}.main{min-width:0;flex:1;display:flex;flex-direction:column;background:#fff}.topbar{height:56px;display:flex;align-items:center;padding:0 16px;position:relative;z-index:5}.model-title{border:0;background:transparent;font-size:18px;font-weight:650;cursor:pointer;padding:8px}.model-title span{color:#777;font-weight:500}.top-actions{margin-left:auto}.login-btn{border:0;background:#0d0d0d;color:#fff;border-radius:999px;padding:9px 15px;font-size:13px;font-weight:600;cursor:pointer}.workspace{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px 16px}.hero{text-align:center;margin-bottom:25px;max-width:680px}.mini-logo{width:42px;height:42px;border-radius:14px;margin:0 auto 17px;font-size:14px}.hero h1{font-size:30px;letter-spacing:-.8px;margin:0;font-weight:600}.hero p{font-size:14px;color:#777;margin:11px 0 0;line-height:1.5}.composer-wrap{width:min(768px,100%)}.composer{border:1px solid #e5e5e5;border-radius:28px;background:#fff;padding:13px 13px 10px;box-shadow:0 2px 12px rgba(0,0,0,.08)}textarea{display:block;width:100%;border:0;outline:0;resize:none;min-height:30px;max-height:180px;padding:3px 6px 8px;font-size:16px;line-height:1.5;background:transparent;color:#111}textarea::placeholder{color:#8a8a8a}.composer-bottom{display:flex;align-items:center;justify-content:space-between;min-height:34px}.composer-tools{display:flex;align-items:center;gap:6px}.round-tool,.tool-label{height:34px;border:1px solid #e8e8e8;background:#fff;cursor:pointer}.round-tool{width:34px;border-radius:50%;display:grid;place-items:center}.tool-label{border-radius:999px;padding:0 11px;display:flex;align-items:center;gap:6px;font-size:12px}.tool-label svg{width:16px}.round-tool:hover,.tool-label:hover{background:#f5f5f5}.send-btn{width:34px;height:34px;border:0;border-radius:50%;background:#0d0d0d;color:#fff;display:grid;place-items:center;cursor:pointer}.send-btn svg{width:18px}.send-btn:disabled{background:#d7d7d7}.suggestions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:18px}.suggestions button{border:1px solid #e7e7e7;background:#fff;border-radius:999px;padding:8px 12px;font-size:12px;color:#555;cursor:pointer}.suggestions button:hover{background:#f7f7f7}.disclaimer{text-align:center;color:#999;font-size:11px;margin-top:18px}.mobile-menu{display:none}.backdrop{display:none}.sidebar-collapsed .sidebar{margin-left:-260px}.sidebar-collapsed .mobile-menu{display:grid}@media(max-width:760px){.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:20;box-shadow:8px 0 30px rgba(0,0,0,.08);transform:translateX(-100%);margin:0!important}.sidebar.mobile-open{transform:translateX(0)}.mobile-menu{display:grid}.desktop-collapse{display:none}.topbar{padding:0 10px}.workspace{padding:20px 14px 12px;justify-content:center}.hero{margin-bottom:20px}.hero h1{font-size:27px}.hero p{font-size:13px}.suggestions{gap:6px}.suggestions button{font-size:11px}.backdrop.show{display:block;position:fixed;inset:0;background:rgba(0,0,0,.25);z-index:15}}/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"], html[data-theme="dark"] body, html[data-theme="dark"] .main{background:#212121;color:#ececec}html[data-theme="dark"] .sidebar{background:#171717;border-color:#171717}html[data-theme="dark"] .icon-btn:hover, html[data-theme="dark"] .nav-item:hover, html[data-theme="dark"] .profile-row:hover, html[data-theme="dark"] .nav-item.active{background:#2a2a2a}html[data-theme="dark"] .brand-mark, html[data-theme="dark"] .mini-logo, html[data-theme="dark"] .login-btn, html[data-theme="dark"] .send-btn{background:#ececec;color:#111}html[data-theme="dark"] .model-title{color:#ececec}html[data-theme="dark"] .model-title span, html[data-theme="dark"] .hero p, html[data-theme="dark"] .profile-copy small, html[data-theme="dark"] .history-title, html[data-theme="dark"] .empty-history, html[data-theme="dark"] .dots, html[data-theme="dark"] .disclaimer{color:#aaa}html[data-theme="dark"] .composer{background:#303030;border-color:#3b3b3b;box-shadow:none}html[data-theme="dark"] textarea{color:#ececec}html[data-theme="dark"] .round-tool, html[data-theme="dark"] .tool-label, html[data-theme="dark"] .suggestions button{background:#303030;border-color:#454545;color:#ddd}html[data-theme="dark"] .round-tool:hover, html[data-theme="dark"] .tool-label:hover, html[data-theme="dark"] .suggestions button:hover{background:#383838}
.parse-card{width:min(680px,100%);text-align:left;margin:0 auto;background:var(--card-bg,#fff);border:1px solid #e7e7e7;border-radius:22px;padding:22px;box-shadow:0 8px 28px rgba(0,0,0,.06)}
.parse-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px}
.parse-head h2{font-size:23px;letter-spacing:-.5px;margin:4px 0 0}
.eyebrow{font-size:11px;color:#888;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.status-pill{background:#effaf3;color:#267044;border:1px solid #d8efdf;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:600;white-space:nowrap}
.query-preview{background:#f7f7f7;border-radius:13px;padding:12px 14px;color:#555;font-size:13px;line-height:1.5;margin-bottom:14px}
.parse-grid{border-top:1px solid #eee}
.parse-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:11px 2px;border-bottom:1px solid #eee;font-size:13px}
.parse-row span{color:#777}.parse-row strong{font-weight:600;text-align:right}
.parse-empty{padding:15px 0;color:#777;font-size:13px}
.parse-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:19px}
.primary-btn,.secondary-btn{border-radius:999px;padding:10px 15px;font-size:13px;font-weight:650;cursor:pointer}
.primary-btn{background:#111;color:#fff;border:1px solid #111}.secondary-btn{background:#fff;color:#222;border:1px solid #ddd}
.step-note{font-size:13px;color:#666;line-height:1.55;margin:0 0 20px}
.field-label{display:block;font-size:12px;font-weight:650;margin:0 0 7px}
.text-input{width:100%;height:44px;border:1px solid #ddd;border-radius:12px;padding:0 13px;outline:none;background:#fff;color:#111}
.text-input:focus{border-color:#999;box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.frequency-row{display:flex;gap:8px;margin-top:12px}
.frequency{border:1px solid #ddd;background:#fff;border-radius:999px;padding:8px 11px;font-size:12px;cursor:pointer}
.frequency.active{background:#111;color:#fff;border-color:#111}
.inline-note{font-size:12px;margin-top:12px}.inline-note.error{color:#b42318}.inline-note.success{color:#18794e}
.loading-state{text-align:center}.loading-state h2{font-size:21px;margin:0}.loading-state p{font-size:13px;color:#777;margin-top:8px}
.spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.parse-card{padding:17px;border-radius:18px}.parse-head{align-items:center}.parse-head h2{font-size:20px}.parse-actions{flex-direction:column-reverse}.primary-btn,.secondary-btn{width:100%}.frequency-row{flex-wrap:wrap}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .parse-card{--card-bg:#262626;border-color:#3b3b3b;box-shadow:none}html[data-theme="dark"] .query-preview{background:#303030;color:#c8c8c8}html[data-theme="dark"] .parse-grid, html[data-theme="dark"] .parse-row{border-color:#3a3a3a}html[data-theme="dark"] .parse-row span, html[data-theme="dark"] .step-note, html[data-theme="dark"] .loading-state p{color:#aaa}html[data-theme="dark"] .status-pill{background:#20362a;color:#8cd7aa;border-color:#31513f}html[data-theme="dark"] .text-input, html[data-theme="dark"] .secondary-btn, html[data-theme="dark"] .frequency{background:#303030;color:#ececec;border-color:#494949}html[data-theme="dark"] .primary-btn, html[data-theme="dark"] .frequency.active{background:#ececec;color:#111;border-color:#ececec}

.history-item{width:100%;border:0;background:transparent;border-radius:8px;padding:8px 7px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px;color:inherit}
.history-item:hover{background:#ececec}.history-item span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.history-item small{font-size:10px;color:#888}
.account-modal{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:50;display:none;align-items:center;justify-content:center;padding:18px}
.account-modal.show{display:flex}.account-card{width:min(430px,100%);background:#fff;border-radius:20px;padding:22px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.18)}
.account-card h3{margin:0 0 8px;font-size:21px}.account-card p{margin:0 0 16px;color:#777;font-size:13px;line-height:1.5}.account-card .primary-btn{width:100%;margin-top:10px}.modal-close{position:absolute;right:12px;top:10px;width:34px;height:34px;border:0;background:transparent;border-radius:50%;font-size:24px;cursor:pointer}.modal-close:hover{background:#f2f2f2}
.saved-card{text-align:center}.saved-check{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;margin:0 auto 13px;background:#effaf3;color:#24734a;font-size:22px;font-weight:800}.saved-card .query-preview{text-align:left}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .history-item:hover{background:#2a2a2a}html[data-theme="dark"] .account-card{background:#262626;color:#eee}html[data-theme="dark"] .account-card p{color:#aaa}html[data-theme="dark"] .modal-close{color:#eee}html[data-theme="dark"] .modal-close:hover{background:#333}

.results-view{width:min(980px,100%);text-align:left;margin:0 auto}.results-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.results-head h2{margin:4px 0 0;font-size:25px;letter-spacing:-.5px}.results-head p{margin:7px 0 0;color:#777;font-size:13px;max-width:700px}.results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-height:62vh;overflow:auto;padding:2px 3px 12px}.result-card{border:1px solid #e6e6e6;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.04)}.result-image{height:175px;background:#f3f3f3;position:relative;overflow:hidden}.result-image img{width:100%;height:100%;object-fit:cover;display:block}.result-placeholder{height:100%;display:grid;place-items:center;font-size:38px}.score-badge{position:absolute;left:10px;top:10px;background:rgba(17,17,17,.88);color:#fff;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:700;backdrop-filter:blur(6px)}.result-body{padding:14px}.result-price{font-size:20px;font-weight:750;letter-spacing:-.3px}.result-body h3{font-size:14px;margin:7px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-meta,.result-place{font-size:12px;color:#707070;margin-top:5px}.result-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #eee;margin-top:13px;padding-top:11px;font-size:11px;color:#888}.result-link{color:#111;text-decoration:none;font-weight:650}.no-results{text-align:center;border:1px dashed #ddd;border-radius:18px;padding:45px 20px;color:#777}.no-results>div{font-size:30px}.no-results strong{display:block;color:#222;margin:10px 0 5px}.no-results p{font-size:12px;margin:0}.workspace:has(.results-view){justify-content:flex-start;overflow:auto}.workspace:has(.results-view) .composer-wrap{margin-top:18px}
@media(max-width:760px){.results-grid{grid-template-columns:1fr;max-height:none}.results-head{flex-direction:column}.results-head .secondary-btn{width:auto}.result-image{height:190px}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .result-card{background:#262626;border-color:#3a3a3a;box-shadow:none}html[data-theme="dark"] .result-image{background:#303030}html[data-theme="dark"] .result-meta, html[data-theme="dark"] .result-place, html[data-theme="dark"] .results-head p{color:#aaa}html[data-theme="dark"] .result-foot{border-color:#3b3b3b}html[data-theme="dark"] .result-link{color:#eee}html[data-theme="dark"] .no-results{border-color:#444;color:#aaa}html[data-theme="dark"] .no-results strong{color:#eee}
.auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.auth-actions .primary-btn,.auth-actions .secondary-btn{width:100%;margin:0}.account-card .text-input+.text-input{margin-top:9px}.plan-box{margin-top:16px;padding:14px;border:1px solid #e5e5e5;border-radius:14px;background:#fafafa;display:flex;flex-direction:column;gap:5px}.plan-box strong{font-size:14px}.plan-box span{font-size:12px;color:#777}.seller-badge{display:inline-flex;margin-top:9px;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:700;background:#f2f2f2;color:#555}.seller-owner{background:#eef9f2;color:#257044}.seller-agent{background:#eef4ff;color:#315f9f}.seller-question,.locked-results{margin-top:16px;border:1px solid #e6e6e6;border-radius:16px;padding:16px;background:#fff}.seller-question{display:flex;flex-direction:column;gap:8px}.seller-question>strong{font-size:14px}.seller-question>span{font-size:13px;color:#666}.seller-question>div{display:flex;gap:8px;flex-wrap:wrap}.locked-results{text-align:center;background:#fafafa}.locked-results strong{font-size:17px}.locked-results p{font-size:13px;color:#666;line-height:1.5;margin:7px auto 10px;max-width:580px}.locked-results .primary-btn{width:auto}.results-grid+.seller-question{margin-top:8px}
@media(max-width:600px){.auth-actions{grid-template-columns:1fr}.seller-question>div{flex-direction:column}.seller-question .secondary-btn,.locked-results .primary-btn{width:100%}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .plan-box, html[data-theme="dark"] .seller-question, html[data-theme="dark"] .locked-results{background:#2d2d2d;border-color:#444}html[data-theme="dark"] .plan-box span, html[data-theme="dark"] .seller-question>span, html[data-theme="dark"] .locked-results p{color:#aaa}html[data-theme="dark"] .seller-badge{background:#383838;color:#ccc}html[data-theme="dark"] .seller-owner{background:#20362a;color:#8cd7aa}html[data-theme="dark"] .seller-agent{background:#25354c;color:#9fc1f5}

/* Zholo brand + dark sidebar readability.
   Intentionally scoped: no layout/theme redesign. */
.brand-button,
.icon-btn,
.nav-item,
.profile-row {
  color: inherit;
}
.brand-button {
  min-width: 0;
}
.brand-logo {
  display: block;
  width: 118px;
  max-width: 100%;
  height: 30px;
  object-fit: contain;
  object-position: left center;
}
.mini-logo {
  width: 122px;
  height: 46px;
  margin: 0 auto 17px;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.mini-logo img {
  display:block;
  width: 118px;
  height: 41px;
  max-width: 100%;
  object-fit: contain;
  object-position:center;
}
/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .brand-logo, html[data-theme="dark"] .mini-logo img{
    filter: invert(1);
  }
  html[data-theme="dark"] .sidebar, html[data-theme="dark"] .sidebar button, html[data-theme="dark"] .sidebar .nav-item, html[data-theme="dark"] .sidebar .brand-button, html[data-theme="dark"] .sidebar .profile-row, html[data-theme="dark"] .sidebar .icon-btn{
    color: #ececec;
  }
  html[data-theme="dark"] .sidebar .history-title, html[data-theme="dark"] .sidebar .empty-history, html[data-theme="dark"] .sidebar .profile-copy small, html[data-theme="dark"] .sidebar .dots{
    color: #aaa;
  }



/* Chat history + folders */
.history-head{display:flex;align-items:center;justify-content:space-between;padding:0 6px;margin-bottom:8px}
.history-head .history-title{margin:0}
.history-add{width:28px;height:28px;border:0;background:transparent;border-radius:8px;display:grid;place-items:center;cursor:pointer;color:#666}
.history-add:hover{background:#e9e9e9;color:#111}
.history-add svg{width:17px;height:17px}
.history-subtitle{font-size:11px;font-weight:600;color:#8a8a8a;padding:10px 6px 6px}
.folder-list{display:grid;gap:2px}
.folder-block{border-radius:11px}
.folder-row,.history-row{display:flex;align-items:center;min-width:0;border-radius:10px;position:relative}
.folder-row:hover,.history-row:hover{background:#ededed}
.folder-open,.history-open{min-width:0;flex:1;border:0;background:transparent;display:flex;align-items:center;text-align:left;cursor:pointer;color:inherit}
.folder-open{height:36px;padding:0 5px 0 8px;gap:8px;border-radius:10px}
.folder-color-icon{width:17px;height:17px;flex:0 0 auto;overflow:visible}
.folder-color-icon .folder-icon-fill{fill:color-mix(in srgb,var(--folder-color) 24%,transparent);stroke:var(--folder-color);stroke-width:1.45;stroke-linejoin:round}
.folder-color-icon .folder-icon-line{fill:none;stroke:var(--folder-color);stroke-width:1.45;stroke-linecap:round;opacity:.78}
.folder-open>span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;font-weight:590}
.folder-open small{font-size:10px;color:#929292;min-width:16px;text-align:right}
.folder-chevron{width:15px!important;height:15px!important;color:#8b8b8b;transform:rotate(0);transition:transform .18s ease,color .18s ease;flex:0 0 auto}
.folder-chevron path{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.folder-block.open .folder-chevron{transform:rotate(90deg);color:#555}
.folder-items{padding:2px 0 3px 15px;margin-left:15px;border-left:1px solid #e5e5e5}
.folder-items .history-row{margin:1px 0 1px 3px}
.history-open{padding:6px 4px 6px 7px;gap:7px;text-decoration:none;flex-direction:row;align-items:center}
.history-item-icon{width:19px;height:19px;border-radius:6px;display:grid;place-items:center;flex:0 0 auto;color:#888;background:#f2f2f2}
.history-item-icon svg{width:12px;height:12px}
.history-item-icon path{fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.history-link-icon{color:#7d8795;background:#f1f3f5}
.history-item-copy{min-width:0;display:flex!important;flex:1;flex-direction:column;gap:1px}
.history-item-copy b{display:block;width:100%;font-size:11.5px;font-weight:520;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-item-copy small{font-size:9.5px;color:#999}
.history-more{width:28px;height:28px;border:0;background:transparent;border-radius:7px;color:#777;cursor:pointer;opacity:0;flex:0 0 auto}
.folder-row:hover .history-more,.history-row:hover .history-more,.history-more:focus{opacity:1}
.history-more:hover{background:#ddd;color:#111}

.history-menu{display:none;position:fixed;z-index:100;background:#fff;border:1px solid #ddd;border-radius:11px;box-shadow:0 12px 36px rgba(0,0,0,.16);padding:5px;width:190px}
.history-menu.show{display:grid}
.history-menu button{border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:7px;font-size:12px;cursor:pointer;color:#222}
.history-menu button:hover{background:#f2f2f2}
.history-menu button.danger{color:#c62828}

.library-card{max-width:430px}
.move-folder-list{display:grid;gap:6px;max-height:280px;overflow:auto;margin:12px 0}
.move-folder-option{border:1px solid #ddd;background:#fff;border-radius:10px;padding:10px 12px;text-align:left;cursor:pointer;font-size:13px}
.move-folder-option:hover,.move-folder-option.active{background:#f0f0f0;border-color:#bbb}

.sidebar-collapsed .main .topbar .mobile-menu{display:grid}

/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .history-add:hover, html[data-theme="dark"] .folder-row:hover, html[data-theme="dark"] .history-row:hover{background:#2a2a2a}
  html[data-theme="dark"] .history-more:hover{background:#333;color:#fff}
  html[data-theme="dark"] .history-menu{background:#252525;border-color:#3b3b3b}
  html[data-theme="dark"] .history-menu button{color:#eee}
  html[data-theme="dark"] .history-menu button:hover{background:#333}
  html[data-theme="dark"] .move-folder-option{background:#252525;border-color:#3b3b3b;color:#eee}
  html[data-theme="dark"] .move-folder-option:hover, html[data-theme="dark"] .move-folder-option.active{background:#333;border-color:#555}



/* Sidebar library layout refinements */
.history{
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.folders-section{
  flex:0 0 auto;
  overflow:visible;
  padding-bottom:6px;
}

.folders-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 6px 5px;
  font-size:11px;
  color:#8a8a8a;
  font-weight:600;
}

.folders-more{
  display:none;
  place-items:center;
  width:28px;
  height:24px;
  border:0;
  background:transparent;
  color:#777;
  border-radius:7px;
  cursor:pointer;
  font-size:15px;
  line-height:1;
}

.folders-more:hover{
  background:#e9e9e9;
  color:#111;
}

.folder-list{
  display:grid;
  gap:2px;
  overflow:visible !important;
  max-height:none !important;
}

.folders-overflow-title{
  padding:7px 10px 5px;
  font-size:10px;
  color:#999;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.folders-overflow-item{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.folders-overflow-item span{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.folders-overflow-item small{
  color:#999;
  flex:0 0 auto;
}

.history-section{
  min-height:0;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  overflow:hidden;
  border-top:1px solid rgba(127,127,127,.12);
  margin-top:3px;
  padding-top:3px;
}

.history-subtitle{
  flex:0 0 auto;
}

.history-scroll-list{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  touch-action:pan-y;
  scrollbar-width:none;
  -ms-overflow-style:none;

  /* approx. six compact chat rows */
  max-height:288px;
}

.history-scroll-list::-webkit-scrollbar{
  display:none;
  width:0;
  height:0;
}

.history-scroll-list .history-row{
  min-height:46px;
}

/* Never show a sidebar scrollbar itself */
.sidebar,
.sidebar .sidebar-inner,
.sidebar-content{
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.sidebar::-webkit-scrollbar,
.sidebar .sidebar-inner::-webkit-scrollbar,
.sidebar-content::-webkit-scrollbar{
  display:none;
  width:0;
}

/* Keep profile/footer fixed while only history list scrolls */
.sidebar-footer,
.profile-row{
  flex:0 0 auto;
}

/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .folders-more:hover{
    background:#2a2a2a;
    color:#fff;
  }
  html[data-theme="dark"] .history-section{
    border-top-color:rgba(255,255,255,.08);
  }



/* Folder colors */
.folder-color-picker{margin:12px 0 4px}
.folder-color-label{display:block;font-size:11px;color:#888;margin-bottom:8px}
.folder-color-options{display:flex;gap:8px;flex-wrap:wrap}
.folder-color-dot{width:25px;height:25px;border-radius:50%;border:2px solid transparent;background:var(--dot);cursor:pointer;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.folder-color-dot:hover{transform:scale(1.06)}
.folder-color-dot.selected{border-color:#fff;box-shadow:0 0 0 2px #555}

.folder-overflow-name{display:flex;align-items:center;gap:8px;min-width:0}
.folder-overflow-icon{width:15px;height:15px;flex:0 0 auto}.folder-overflow-icon path{fill:color-mix(in srgb,var(--folder-color) 22%,transparent);stroke:var(--folder-color);stroke-width:1.35;stroke-linejoin:round}

/* Profile popup should open above footer and use the same quiet ChatGPT-like menu */
.profile-row{position:relative}
#historyMenu button[data-profile-action]{font-size:13px;padding:10px 11px}

/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .folder-color-dot.selected{border-color:#1f1f1f;box-shadow:0 0 0 2px #ddd}


.folders-section-head-actions{justify-content:flex-end;padding-top:0;padding-bottom:3px}

/* Saved property links + result card menu */
.result-body{position:relative}
.result-more{
  position:absolute;
  top:10px;
  right:10px;
  width:32px;
  height:32px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#777;
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:15px;
  line-height:1;
}
.result-more:hover,.result-more:focus{background:#f0f0f0;color:#111;outline:none}
.result-body>.result-price{padding-right:38px}
.saved-link-open{text-decoration:none;color:inherit}
.saved-link-row .history-open span{font-weight:550}
.create-folder-inline{border-style:dashed}

/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .result-more{color:#aaa}
  html[data-theme="dark"] .result-more:hover, html[data-theme="dark"] .result-more:focus{background:#353535;color:#fff}


/* Conversational Brain response */
.chat-reply-card{max-width:760px;margin:0 auto;text-align:left}
.chat-reply-card .query-preview{margin-bottom:18px;opacity:.72}
.chat-answer{font-size:16px;line-height:1.75;color:var(--text,#171717);white-space:normal}

/* Menu slugs, folder section collapse and composer bookmark feedback */
a.brand-button,
a.model-title,
a.nav-item{
  text-decoration:none;
  color:inherit;
}

.history-collapse{
  min-width:0;
  flex:1;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 6px;
  cursor:pointer;
  text-align:left;
  color:inherit;
}
.history-collapse .history-title{margin:0}
.history-collapse-chevron{
  width:15px;
  height:15px;
  flex:0 0 auto;
  color:#8b8b8b;
  transform:rotate(90deg);
  transition:transform .18s ease,color .18s ease;
}
.history-collapse-chevron path{
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.history-collapse.is-collapsed .history-collapse-chevron{transform:rotate(0deg)}
.folders-section.is-collapsed{display:none}

.composer-notice{
  display:none;
  margin:9px 8px 0;
  font-size:12px;
  line-height:1.45;
  text-align:left;
}
.composer-notice.show{display:block}
.composer-notice.success{color:#257044}
.composer-notice.error{color:#b3261e}

/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .history-collapse-chevron{color:#aaa}
  html[data-theme="dark"] .composer-notice.success{color:#8cd7aa}
  html[data-theme="dark"] .composer-notice.error{color:#ff9a95}


/* 10-second live property search timer */
.search-timer-state{
  width:min(560px,100%);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:18px 16px 8px;
}
.search-timer-ring{
  --timer-progress:0deg;
  width:126px;
  height:126px;
  border-radius:50%;
  padding:7px;
  position:relative;
  display:grid;
  place-items:center;
  background:conic-gradient(#111 var(--timer-progress),#ececec 0deg);
  box-shadow:0 12px 34px rgba(0,0,0,.10);
  transition:background .08s linear;
}
.search-timer-ring::after{
  content:"";
  position:absolute;
  width:12px;
  height:12px;
  border-radius:50%;
  top:0;
  left:50%;
  margin-left:-6px;
  background:#111;
  box-shadow:0 0 0 5px rgba(17,17,17,.08);
  transform-origin:6px 63px;
  transform:rotate(var(--timer-progress));
}
.search-timer-core{
  width:100%;
  height:100%;
  border-radius:50%;
  display:grid;
  place-content:center;
  background:#fff;
  border:1px solid #f0f0f0;
}
.search-timer-core strong{
  display:block;
  font-size:42px;
  line-height:.92;
  letter-spacing:-2px;
  font-variant-numeric:tabular-nums;
}
.search-timer-core span{
  display:block;
  margin-top:7px;
  font-size:11px;
  letter-spacing:.08em;
  color:#888;
}
.search-timer-copy{margin-top:22px}
.search-timer-copy h2{
  margin:6px 0 0;
  font-size:23px;
  letter-spacing:-.45px;
}
.search-timer-copy p{
  min-height:20px;
  margin:9px 0 0;
  font-size:13px;
  color:#777;
}
.search-timer-dots{
  height:12px;
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:15px;
}
.search-timer-dots i{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#b8b8b8;
  animation:zholoSearchPulse 1.05s ease-in-out infinite;
}
.search-timer-dots i:nth-child(2){animation-delay:.14s}
.search-timer-dots i:nth-child(3){animation-delay:.28s}
@keyframes zholoSearchPulse{
  0%,100%{transform:translateY(0);opacity:.35}
  50%{transform:translateY(-5px);opacity:1}
}
@media(max-width:760px){
  .search-timer-ring{width:112px;height:112px}
  .search-timer-ring::after{transform-origin:6px 56px}
  .search-timer-core strong{font-size:38px}
  .search-timer-copy h2{font-size:20px}
}
/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .search-timer-ring{
    background:conic-gradient(#f1f1f1 var(--timer-progress),#3b3b3b 0deg);
    box-shadow:0 12px 34px rgba(0,0,0,.24);
  }
  html[data-theme="dark"] .search-timer-ring::after{
    background:#f1f1f1;
    box-shadow:0 0 0 5px rgba(255,255,255,.08);
  }
  html[data-theme="dark"] .search-timer-core{background:#212121;border-color:#343434}
  html[data-theme="dark"] .search-timer-core span, html[data-theme="dark"] .search-timer-copy p{color:#aaa}
  html[data-theme="dark"] .search-timer-dots i{background:#8c8c8c}


/* Persistent conversation thread — Brain V5 */
.workspace:has(.chat-shell){
  justify-content:flex-start;
  overflow:auto;
  padding-top:22px;
}
.hero.chat-mode{
  width:min(980px,100%);
  max-width:none;
  text-align:left;
  margin:0 auto 16px;
}
.chat-shell{width:100%;min-width:0}
.chat-thread{
  width:min(768px,100%);
  margin:0 auto;
  padding:4px 0 18px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.chat-message-row{display:flex;width:100%}
.chat-message-user{justify-content:flex-end}
.chat-message-assistant{justify-content:flex-start}
.chat-message-bubble{
  max-width:min(82%,680px);
  font-size:15px;
  line-height:1.65;
  overflow-wrap:anywhere;
}
.chat-message-user .chat-message-bubble{
  background:#f2f2f2;
  border-radius:20px 20px 5px 20px;
  padding:10px 15px;
  color:#171717;
}
.chat-message-assistant .chat-message-bubble{
  max-width:min(92%,720px);
  padding:4px 2px;
  color:#171717;
}
.chat-empty-thread{
  text-align:center;
  color:#999;
  font-size:13px;
  padding:28px 10px;
}
.chat-stage{
  width:min(980px,100%);
  margin:2px auto 12px;
  min-width:0;
}
.chat-stage:empty{display:none}
.chat-stage .parse-card{margin-left:auto;margin-right:auto}
.chat-stage .loading-state{padding-top:20px;padding-bottom:20px}
.compact-chat-loading .mini-logo{width:34px;height:34px;border-radius:11px;margin-bottom:12px}
.workspace:has(.chat-shell) .composer-wrap{
  position:sticky;
  bottom:0;
  z-index:4;
  padding-top:10px;
  padding-bottom:4px;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 18%,#fff 100%);
}
.workspace:has(.chat-shell) .disclaimer{margin-top:9px}

@media(max-width:760px){
  .workspace:has(.chat-shell){padding-top:10px}
  .hero.chat-mode{margin-bottom:8px}
  .chat-thread{gap:13px;padding-bottom:12px}
  .chat-message-bubble{max-width:88%;font-size:14px}
  .chat-message-assistant .chat-message-bubble{max-width:96%}
  .workspace:has(.chat-shell) .composer-wrap{padding-top:8px}
}

/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .chat-message-user .chat-message-bubble{background:#303030;color:#ececec}
  html[data-theme="dark"] .chat-message-assistant .chat-message-bubble{color:#ececec}
  html[data-theme="dark"] .workspace:has(.chat-shell) .composer-wrap{
    background:linear-gradient(to bottom,rgba(33,33,33,0),#212121 18%,#212121 100%);
  }


/* V8.1 — bottom composer + cleaner ChatGPT-like chat surface */
.app{height:100dvh}
.workspace{
  position:relative;
  justify-content:flex-start;
  overflow:hidden;
  padding:0 20px max(10px,env(safe-area-inset-bottom));
}
.hero:not(.chat-mode){
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  width:min(768px,100%);
  margin:0 auto;
  padding:28px 0;
}
.hero.chat-mode{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  width:100%;
  margin:0;
  padding:18px 0 28px;
}
.workspace:has(.chat-shell){
  justify-content:flex-start;
  overflow:hidden;
  padding-top:0;
}
.chat-shell{min-height:100%;padding-bottom:8px}
.chat-thread{padding:4px 0 16px}
.chat-stage{padding-bottom:8px}
.composer-wrap,
.workspace:has(.chat-shell) .composer-wrap{
  position:relative;
  flex:0 0 auto;
  bottom:auto;
  z-index:8;
  width:min(768px,100%);
  margin:0 auto;
  padding:10px 0 4px;
  background:#fff;
}
.composer{
  border:1px solid #e1e1e1;
  border-radius:26px;
  background:#f4f4f4;
  padding:12px 12px 9px;
  box-shadow:none;
}
.composer textarea{
  min-height:28px;
  padding:3px 7px 8px;
  font-size:16px;
  line-height:1.5;
}
.composer-bottom{min-height:34px}
.composer-tools{gap:4px}
.round-tool{
  width:34px;
  height:34px;
  border:0;
  background:transparent;
  color:#444;
}
.round-tool:hover{background:#e7e7e7}
.send-btn{width:34px;height:34px}
.composer-notice{
  position:absolute;
  left:12px;
  right:12px;
  bottom:calc(100% + 5px);
  margin:0;
  padding:7px 10px;
  border-radius:10px;
  background:rgba(255,255,255,.96);
  box-shadow:0 4px 18px rgba(0,0,0,.08);
}
.workspace:has(.results-view){justify-content:flex-start;overflow:hidden}
.workspace:has(.results-view) .composer-wrap{margin-top:0}
@media(max-width:760px){
  .workspace{padding:0 12px max(8px,env(safe-area-inset-bottom))}
  .hero:not(.chat-mode){padding:18px 0}
  .hero.chat-mode{padding:8px 0 18px}
  .workspace:has(.chat-shell){padding-top:0}
  .workspace:has(.chat-shell) .composer-wrap{padding-top:7px}
  .composer{border-radius:24px;padding:11px 10px 8px}
}
/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .composer-wrap, html[data-theme="dark"] .workspace:has(.chat-shell) .composer-wrap{background:#212121}
  html[data-theme="dark"] .composer{background:#303030;border-color:#3a3a3a}
  html[data-theme="dark"] .round-tool{background:transparent;color:#e7e7e7;border:0}
  html[data-theme="dark"] .round-tool:hover{background:#3b3b3b}
  html[data-theme="dark"] .composer-notice{background:rgba(48,48,48,.97)}



/* Stabilization: listing results live inside the conversation's single scroll surface. */
.chat-content-search-results .results-grid,
.chat-content-single-listing .results-grid{max-height:none;overflow:visible}

/* Saved searches modal — presentation only. */
.saved-search-modal-card{width:min(800px,100%);max-height:min(84vh,820px);padding:24px;display:flex;flex-direction:column;overflow:hidden}
.saved-search-modal-card>h3{padding-right:42px;margin-bottom:5px}
.saved-search-modal-card>p{margin-bottom:8px;max-width:590px}
.saved-search-list{display:flex;flex-direction:column;gap:12px;max-height:none;min-height:0;overflow-y:auto;margin:12px -5px 0 0;padding:1px 7px 8px 0;scrollbar-width:thin;scrollbar-color:#c8c8c8 transparent}
.saved-search-list::-webkit-scrollbar{width:6px}.saved-search-list::-webkit-scrollbar-track{background:transparent}.saved-search-list::-webkit-scrollbar-thumb{background:#c8c8c8;border-radius:999px}
.saved-watch-card{border:1px solid #e6e6e6;border-radius:16px;background:#fff;padding:16px;box-shadow:0 2px 10px rgba(0,0,0,.035)}
.saved-watch-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.saved-watch-copy{min-width:0;flex:1}.saved-watch-title{font-size:14px;font-weight:750;line-height:1.38;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.saved-watch-summary{font-size:11px;color:#858585;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved-watch-status{flex:0 0 auto;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:750}.saved-watch-status.is-on{background:#edf8f1;color:#247044}.saved-watch-status.is-off{background:#f2f2f2;color:#777}
.saved-watch-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}.saved-watch-stat{border:1px solid #ededed;border-radius:11px;padding:9px 10px;background:#fafafa;min-width:0}.saved-watch-stat span{display:block;font-size:9px;color:#8a8a8a;margin-bottom:3px}.saved-watch-stat strong{font-size:14px}.saved-watch-stat.is-positive{background:#f1faf4;border-color:#d9efdf}.saved-watch-stat.is-positive strong{color:#247044}
.saved-watch-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;padding:12px 0;border-bottom:1px solid #ededed}.saved-watch-meta>div{min-width:0}.saved-watch-meta span{display:block;font-size:9px;color:#929292;margin-bottom:3px}.saved-watch-meta strong{display:block;font-size:11px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved-watch-settings{display:grid;grid-template-columns:1fr 1fr 160px;gap:8px;margin-top:12px}.saved-watch-channel,.saved-watch-frequency{min-width:0;border:1px solid #e7e7e7;border-radius:12px;background:#fafafa;padding:9px 10px;display:flex;align-items:center;gap:8px;text-align:left;color:inherit}.saved-watch-channel{cursor:pointer}.saved-watch-channel>span:first-child{font-size:15px;opacity:.8}.saved-watch-channel>span:last-child{min-width:0}.saved-watch-channel strong{display:block;font-size:10px}.saved-watch-channel small{display:block;margin-top:2px;font-size:9px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.saved-watch-channel.is-active{background:#f1faf4;border-color:#d9efdf}.saved-watch-channel.push-ready{cursor:default}.saved-watch-frequency{display:block}.saved-watch-frequency>span{display:block;font-size:9px;color:#888;margin-bottom:3px}.saved-watch-frequency select{width:100%;border:0;background:transparent;color:inherit;font:inherit;font-size:10px;outline:0;padding:0}
.saved-watch-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.saved-watch-actions .secondary-btn{width:100%;min-height:38px;margin:0;padding:8px 12px;font-size:10px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;text-align:center}.saved-watch-main-action{font-weight:700}
.saved-watch-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.saved-watch-text-btn{border:0;background:transparent;color:#777;padding:5px 2px;font-size:10px;cursor:pointer}.saved-watch-text-btn:hover{color:#111}.saved-watch-text-btn.danger{color:#a33}.saved-watch-text-btn.danger:hover{color:#c22}
.saved-watch-expand{margin-top:10px;padding:10px;border-radius:10px;background:#fafafa;border:1px solid #ededed;font-size:10px;color:#777;line-height:1.5}
#savedSearchNote{flex:0 0 auto}

@media(min-width:681px){
  .saved-search-modal-card{width:min(980px,calc(100vw - 80px));max-width:980px}
  .saved-watch-settings{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) 180px;gap:10px}
  .saved-watch-channel,.saved-watch-frequency{min-height:58px;padding:10px 12px}
  .saved-watch-actions{grid-template-columns:repeat(2,minmax(210px,1fr));gap:9px}
  .saved-watch-actions .secondary-btn{font-size:11px;min-height:40px}
}
@media(max-width:680px){.account-modal#savedSearchModal{padding:10px}.saved-search-modal-card{width:100%;max-height:90vh;border-radius:18px;padding:18px 14px}.saved-search-list{margin-right:-2px;padding-right:4px}.saved-watch-card{padding:13px;border-radius:14px}.saved-watch-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.saved-watch-meta{grid-template-columns:1fr}.saved-watch-settings{grid-template-columns:1fr}.saved-watch-actions{grid-template-columns:1fr 1fr}.saved-watch-actions .secondary-btn{width:100%}.saved-watch-title{white-space:normal}.saved-watch-summary{white-space:normal}.saved-watch-footer{padding-top:2px}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .saved-search-list{scrollbar-color:#555 transparent}html[data-theme="dark"] .saved-search-list::-webkit-scrollbar-thumb{background:#555}html[data-theme="dark"] .saved-watch-card{background:#262626;border-color:#3b3b3b;box-shadow:none}html[data-theme="dark"] .saved-watch-summary, html[data-theme="dark"] .saved-watch-stat span, html[data-theme="dark"] .saved-watch-meta span, html[data-theme="dark"] .saved-watch-channel small, html[data-theme="dark"] .saved-watch-frequency>span, html[data-theme="dark"] .saved-watch-expand{color:#aaa}html[data-theme="dark"] .saved-watch-stat, html[data-theme="dark"] .saved-watch-channel, html[data-theme="dark"] .saved-watch-frequency, html[data-theme="dark"] .saved-watch-expand{background:#2e2e2e;border-color:#414141}html[data-theme="dark"] .saved-watch-stat.is-positive, html[data-theme="dark"] .saved-watch-channel.is-active{background:#20362a;border-color:#31513f}html[data-theme="dark"] .saved-watch-meta{border-color:#3c3c3c}html[data-theme="dark"] .saved-watch-status.is-off{background:#353535;color:#bbb}html[data-theme="dark"] .saved-watch-text-btn:hover{color:#eee}html[data-theme="dark"] .saved-watch-frequency select{background:#2e2e2e;color:#eee}

/* Seller Listing v1 */
.seller-draft-preview{margin-top:14px}.seller-draft-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}.seller-draft-photos img{width:100%;height:92px;object-fit:cover;border-radius:12px;background:#f1f1f1}.seller-draft-description{margin:12px 0 0;padding:12px;border-radius:12px;background:#f7f7f7;font-size:13px;line-height:1.55}.seller-publish-card .parse-actions{margin-top:16px}.seller-my-listings{display:grid;gap:9px;margin-top:14px}.seller-my-listing{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #e9e9e9;border-radius:13px;padding:11px 12px}.seller-my-listing>div{display:flex;min-width:0;flex-direction:column;gap:3px}.seller-my-listing strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seller-my-listing small{font-size:11px;color:#777}.seller-my-listing>span{font-size:13px;font-weight:700;white-space:nowrap}.public-listing-page{width:min(1080px,calc(100% - 28px));margin:0 auto;padding:28px 0 60px}.public-listing-back{display:inline-flex;margin-bottom:18px;color:inherit;text-decoration:none;font-weight:650}.public-listing-card{border:1px solid #e8e8e8;border-radius:24px;overflow:hidden;background:#fff}.public-listing-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:#eee}.public-listing-gallery img{width:100%;height:330px;object-fit:cover;background:#f3f3f3}.public-listing-gallery img:only-child{grid-column:1/-1}.public-listing-copy{padding:26px}.public-listing-copy h1{font-size:30px;margin:8px 0 10px}.public-listing-price{font-size:28px;font-weight:800}.public-listing-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.public-listing-meta span{padding:7px 10px;border-radius:999px;background:#f3f3f3;font-size:12px}.public-listing-place{color:#666;margin:14px 0}.public-listing-description{border-top:1px solid #eee;margin-top:18px;padding-top:18px;line-height:1.65}.public-listing-contact{margin-top:22px;padding:14px 16px;border-radius:14px;background:#f7f7f7;font-size:13px}
@media(max-width:760px){.seller-draft-photos{grid-template-columns:repeat(3,minmax(0,1fr))}.seller-draft-photos img{height:76px}.public-listing-page{padding-top:16px}.public-listing-gallery{grid-template-columns:1fr}.public-listing-gallery img{height:250px}.public-listing-copy{padding:18px}.public-listing-copy h1{font-size:24px}.public-listing-price{font-size:23px}.seller-my-listing{align-items:flex-start;flex-direction:column}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .seller-draft-description, html[data-theme="dark"] .public-listing-contact{background:#2b2b2b}html[data-theme="dark"] .seller-my-listing, html[data-theme="dark"] .public-listing-card{border-color:#3d3d3d;background:#212121}html[data-theme="dark"] .seller-my-listing small, html[data-theme="dark"] .public-listing-place{color:#aaa}html[data-theme="dark"] .public-listing-meta span{background:#303030}html[data-theme="dark"] .public-listing-description{border-color:#3b3b3b}

/* Zholo Listing buyer/seller chat v1 */
.nav-count-badge{display:inline-flex;min-width:18px;height:18px;padding:0 5px;margin-left:6px;align-items:center;justify-content:center;border-radius:999px;background:#111;color:#fff;font-size:10px;font-weight:800;vertical-align:middle}
.listing-interest-btn{width:100%;margin-top:10px}
.listing-chat-modal-card{width:min(920px,calc(100vw - 48px));max-width:920px;height:min(78vh,760px);padding:22px;display:flex;flex-direction:column;overflow:hidden}
.listing-chat-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-right:38px}
.listing-chat-modal-head h3{margin:0 0 5px}.listing-chat-modal-head p{margin:0;color:#777}
.listing-chat-content{min-height:0;flex:1;overflow:auto;margin-top:14px;padding-right:4px}
.listing-chat-section{display:grid;gap:10px;margin-bottom:18px}.listing-chat-section>h4{margin:0;font-size:13px;color:#777;text-transform:none}
.listing-chat-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e8e8e8;border-radius:16px;padding:10px;background:#fff}
.listing-chat-thumb{width:72px;height:58px;border-radius:12px;overflow:hidden;background:#f1f1f1;display:grid;place-items:center;font-size:22px}.listing-chat-thumb img{width:100%;height:100%;object-fit:cover}
.listing-chat-copy{min-width:0}.listing-chat-copy strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.listing-chat-copy small{display:block;color:#777;font-size:11px;margin-top:4px}.listing-chat-copy p{margin:5px 0 0;font-size:12px;color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.listing-chat-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.listing-chat-actions .primary-btn,.listing-chat-actions .secondary-btn{width:auto;margin:0;padding:8px 11px;font-size:12px}
.listing-chat-empty{padding:30px 16px;text-align:center;color:#777;border:1px dashed #ddd;border-radius:16px}
.listing-thread{height:100%;display:flex;flex-direction:column;min-height:0}.listing-thread-card{display:flex;align-items:center;gap:10px;padding:10px 0 13px;border-bottom:1px solid #eee}.listing-thread-card .listing-chat-thumb{width:58px;height:48px}.listing-thread-meta{min-width:0}.listing-thread-meta strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.listing-thread-meta small{display:block;color:#777;margin-top:3px}
.listing-thread-messages{flex:1;min-height:0;overflow:auto;padding:16px 4px;display:flex;flex-direction:column;gap:9px}.listing-message{max-width:min(76%,560px);padding:10px 12px;border-radius:16px;background:#f1f1f1;align-self:flex-start;line-height:1.45;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.listing-message.mine{background:#111;color:#fff;align-self:flex-end}.listing-message time{display:block;font-size:10px;opacity:.6;margin-top:5px}
.listing-thread-form{display:flex;gap:8px;padding-top:12px;border-top:1px solid #eee}.listing-thread-form textarea{min-height:44px;max-height:110px;border:1px solid #ddd;border-radius:16px;padding:10px 12px;background:transparent}.listing-thread-form .primary-btn{width:auto;min-width:96px;margin:0}
.public-listing-interest{margin-top:16px}.public-listing-interest .primary-btn{width:100%}.public-listing-interest-note{font-size:12px;color:#777;margin-top:8px}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .nav-count-badge{background:#ececec;color:#111}html[data-theme="dark"] .listing-chat-row{background:#262626;border-color:#3a3a3a}html[data-theme="dark"] .listing-chat-modal-head p, html[data-theme="dark"] .listing-chat-copy small, html[data-theme="dark"] .listing-thread-meta small, html[data-theme="dark"] .public-listing-interest-note{color:#aaa}html[data-theme="dark"] .listing-chat-copy p{color:#bbb}html[data-theme="dark"] .listing-chat-empty{border-color:#444;color:#aaa}html[data-theme="dark"] .listing-thread-card, html[data-theme="dark"] .listing-thread-form{border-color:#3a3a3a}html[data-theme="dark"] .listing-message{background:#353535}html[data-theme="dark"] .listing-message.mine{background:#ececec;color:#111}html[data-theme="dark"] .listing-thread-form textarea{border-color:#444;color:#eee}
@media(max-width:680px){.listing-chat-modal-card{width:100%;height:88vh;max-height:88vh;padding:16px 12px;border-radius:18px}.listing-chat-row{grid-template-columns:56px minmax(0,1fr);padding:9px}.listing-chat-thumb{width:56px;height:50px}.listing-chat-actions{grid-column:1/-1;justify-content:stretch}.listing-chat-actions .primary-btn,.listing-chat-actions .secondary-btn{flex:1}.listing-message{max-width:86%}.listing-thread-form{align-items:flex-end}.listing-thread-form .primary-btn{min-width:74px;padding:10px}}

/* Seller listing management hub */
.seller-my-listing-button{width:100%;font:inherit;color:inherit;text-align:left;background:transparent;cursor:pointer}
.seller-my-listing-button>span{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.seller-my-listing-button em{font-size:10px;color:#777;font-style:normal;font-weight:600}
.seller-listing-manager-card{width:min(1080px,calc(100vw - 44px));max-width:1080px;height:min(88vh,860px);padding:24px;display:flex;flex-direction:column;overflow:hidden}
.seller-manager-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-right:38px}.seller-manager-head h3{margin:4px 0 5px;font-size:24px}.seller-manager-head p{margin:0;color:#777}
.seller-manager-status{display:inline-flex;align-items:center;justify-content:center;min-width:88px;padding:7px 10px;border-radius:999px;background:#eef8f1;color:#24623b;font-size:12px;font-weight:800}.seller-manager-status[data-status="paused"]{background:#fff6e5;color:#8a5b00}.seller-manager-status[data-status="sold"],.seller-manager-status[data-status="archived"]{background:#f2f2f2;color:#666}.seller-manager-status[data-status="draft"]{background:#eef4ff;color:#315f9f}
.seller-manager-content{min-height:0;overflow:auto;margin-top:16px;padding-right:4px;display:grid;gap:14px}.seller-manager-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.seller-manager-stats>div{border:1px solid #e8e8e8;border-radius:14px;padding:12px;background:#fafafa}.seller-manager-stats span{display:block;font-size:11px;color:#777}.seller-manager-stats strong{display:block;margin-top:4px;font-size:19px}
.seller-manager-section{border:1px solid #e8e8e8;border-radius:18px;padding:16px;background:#fff}.seller-manager-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}.seller-manager-section-head h4{margin:0;font-size:15px}.seller-manager-section-head p{margin:4px 0 0;font-size:12px;color:#777;line-height:1.45}.seller-manager-public-link{width:auto!important;margin:0!important;white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center}
.seller-manager-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.seller-manager-field{display:flex;flex-direction:column;gap:5px}.seller-manager-field>span{font-size:11px;color:#777}.seller-manager-field .text-input{width:100%;margin:0;box-sizing:border-box}.seller-manager-field textarea.text-input{min-height:110px;resize:vertical;padding-top:10px}.seller-manager-field-wide{grid-column:1/-1}.seller-manager-save-row{grid-column:1/-1;display:flex;justify-content:flex-end}.seller-manager-save-row .primary-btn{width:auto;margin:0}
.seller-manager-photos{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.seller-manager-photo{position:relative;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:#f1f1f1}.seller-manager-photo img{width:100%;height:100%;object-fit:cover}.seller-manager-photo button{position:absolute;right:5px;top:5px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(20,20,20,.72);color:#fff;font-size:18px;cursor:pointer}
.seller-manager-status-actions{display:flex;gap:8px;flex-wrap:wrap}.seller-manager-status-actions .primary-btn,.seller-manager-status-actions .secondary-btn{width:auto;margin:0}.seller-manager-count{min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#f2f2f2;display:grid;place-items:center;font-size:12px;font-weight:800}.seller-manager-request-list{display:grid;gap:8px}.seller-manager-request{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #ededed;border-radius:13px;padding:10px 11px}.seller-manager-request>div:first-child{display:flex;min-width:0;flex-direction:column;gap:3px}.seller-manager-request strong{font-size:13px}.seller-manager-request small{font-size:11px;color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:560px}.seller-manager-request>div:last-child{display:flex;gap:7px;flex-wrap:wrap}.seller-manager-request .primary-btn,.seller-manager-request .secondary-btn{width:auto;margin:0;padding:8px 10px;font-size:12px}.seller-manager-empty{padding:14px;text-align:center;color:#888;border:1px dashed #ddd;border-radius:12px;font-size:12px}
@media(max-width:900px){.seller-manager-form{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-manager-photos{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:680px){.seller-listing-manager-card{width:100%;height:92vh;max-height:92vh;padding:16px 12px;border-radius:18px}.seller-manager-head{padding-right:32px}.seller-manager-head h3{font-size:20px}.seller-manager-status{min-width:auto}.seller-manager-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-manager-form{grid-template-columns:1fr}.seller-manager-field-wide,.seller-manager-save-row{grid-column:1}.seller-manager-save-row .primary-btn{width:100%}.seller-manager-photos{grid-template-columns:repeat(3,minmax(0,1fr))}.seller-manager-section-head{flex-direction:column}.seller-manager-public-link{width:100%!important;justify-content:center}.seller-manager-request{align-items:flex-start;flex-direction:column}.seller-manager-request>div:last-child{width:100%}.seller-manager-request .primary-btn,.seller-manager-request .secondary-btn{flex:1}.seller-my-listing-button>span{align-items:flex-start}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .seller-manager-head p, html[data-theme="dark"] .seller-manager-section-head p, html[data-theme="dark"] .seller-manager-field>span, html[data-theme="dark"] .seller-manager-stats span, html[data-theme="dark"] .seller-manager-request small, html[data-theme="dark"] .seller-my-listing-button em{color:#aaa}html[data-theme="dark"] .seller-manager-stats>div{background:#2b2b2b;border-color:#3d3d3d}html[data-theme="dark"] .seller-manager-section{background:#242424;border-color:#3b3b3b}html[data-theme="dark"] .seller-manager-request{border-color:#3b3b3b}html[data-theme="dark"] .seller-manager-count{background:#333}html[data-theme="dark"] .seller-manager-empty{border-color:#444;color:#aaa}

/* Buyer Request Marketplace v1 */
.saved-watch-market-btn{border:0;background:#111;color:#fff;border-radius:999px;padding:7px 11px;font-size:10px;font-weight:700;cursor:pointer;white-space:nowrap}.saved-watch-market-btn.is-active{background:#edf8f1;color:#247044}.saved-watch-market-btn:disabled{opacity:.55;cursor:default}
.buyer-market-modal-card{width:min(980px,calc(100vw - 48px));max-width:980px;max-height:82vh;padding:22px;display:flex;flex-direction:column;overflow:hidden}.buyer-market-head{padding-right:38px}.buyer-market-head h3{margin:3px 0 5px}.buyer-market-head p{margin:0;color:#777}.buyer-market-content{min-height:0;overflow:auto;margin-top:16px;padding-right:4px;display:grid;gap:12px}.buyer-market-request,.buyer-market-offer{border:1px solid #e7e7e7;border-radius:17px;background:#fff;padding:14px}.buyer-market-request-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.buyer-market-request-head>div{min-width:0}.buyer-market-request-head strong{display:block;font-size:14px;line-height:1.4}.buyer-market-request-head small{display:block;margin-top:4px;color:#777;font-size:11px}.buyer-match-score{border-radius:999px;background:#eef7f0;color:#237044;padding:5px 8px;font-size:10px;font-weight:800;white-space:nowrap}.buyer-match-score.big{font-size:11px;padding:6px 9px}.buyer-market-anon{margin-top:10px;padding:8px 10px;border-radius:10px;background:#fafafa;color:#777;font-size:10px}.buyer-market-listings{display:grid;gap:8px;margin-top:10px}.buyer-market-listing{display:grid;grid-template-columns:58px minmax(0,1fr) auto auto;gap:10px;align-items:center;border:1px solid #ededed;border-radius:13px;padding:8px}.buyer-market-thumb{width:58px;height:48px;border-radius:10px;overflow:hidden;background:#f1f1f1;display:grid;place-items:center}.buyer-market-thumb img{width:100%;height:100%;object-fit:cover}.buyer-market-listing strong,.buyer-market-offer-copy strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.buyer-market-listing small,.buyer-market-offer-copy small{display:block;margin-top:3px;color:#777;font-size:10px}.buyer-market-listing .primary-btn{width:auto;margin:0;padding:8px 11px;font-size:11px}.buyer-market-offer{display:grid;grid-template-columns:66px minmax(0,1fr) auto;gap:12px;align-items:center}.buyer-market-offer .buyer-market-thumb{width:66px;height:56px}.buyer-market-offer-copy{min-width:0}.buyer-market-offer-copy p{margin:5px 0 0;font-size:11px;color:#3d7a50}.buyer-market-offer-actions{display:flex;gap:7px}.buyer-market-offer-actions .primary-btn,.buyer-market-offer-actions .secondary-btn,.buyer-market-offer>.primary-btn{width:auto;margin:0;padding:8px 11px;font-size:11px}
@media(max-width:680px){.buyer-market-modal-card{width:100%;max-height:90vh;padding:16px 12px;border-radius:18px}.buyer-market-request-head{display:block}.buyer-match-score.big{display:inline-block;margin-top:8px}.buyer-market-listing{grid-template-columns:52px minmax(0,1fr) auto}.buyer-market-listing .buyer-match-score{grid-column:2}.buyer-market-listing .primary-btn{grid-column:3;grid-row:1/3}.buyer-market-thumb{width:52px;height:46px}.buyer-market-offer{grid-template-columns:56px minmax(0,1fr)}.buyer-market-offer .buyer-market-thumb{width:56px;height:50px}.buyer-market-offer-actions,.buyer-market-offer>.primary-btn,.buyer-market-offer>.seller-badge{grid-column:1/-1}.buyer-market-offer-actions .primary-btn,.buyer-market-offer-actions .secondary-btn{flex:1}.saved-watch-footer{flex-wrap:wrap}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .buyer-market-request, html[data-theme="dark"] .buyer-market-offer{background:#262626;border-color:#3b3b3b}html[data-theme="dark"] .buyer-market-head p, html[data-theme="dark"] .buyer-market-request-head small, html[data-theme="dark"] .buyer-market-listing small, html[data-theme="dark"] .buyer-market-offer-copy small, html[data-theme="dark"] .buyer-market-anon{color:#aaa}html[data-theme="dark"] .buyer-market-anon, html[data-theme="dark"] .buyer-market-thumb{background:#2e2e2e}html[data-theme="dark"] .buyer-market-listing{border-color:#414141}html[data-theme="dark"] .saved-watch-market-btn.is-active{background:#20362a;color:#a9e4bd}

/* Profile menu viewport safety + buyer request offer grouping */
.history-menu{scrollbar-width:thin;overscroll-behavior:contain}
.buyer-market-own-request{display:grid;gap:12px}
.buyer-market-own-offers{display:grid;gap:10px}
.buyer-market-no-offers{padding:12px 14px;border:1px dashed #ddd;border-radius:12px;color:#777;font-size:12px}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .buyer-market-no-offers{border-color:#444;color:#aaa}

/* Price offer / counter-offer v1 */
.listing-thread-card-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.listing-thread-card-actions .primary-btn,.listing-thread-card-actions .secondary-btn{width:auto;margin:0}
.price-offer-history{padding:12px 0;border-bottom:1px solid #eee}.price-offer-history-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.price-offer-history-head strong{font-size:13px}.price-offer-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:10px 12px;margin:7px 0;border:1px solid #e6e6e6;border-radius:14px;background:#fafafa}.price-offer-card.mine{background:#f5f5f5}.price-offer-card>div:first-child{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.price-offer-card small{color:#777;font-size:11px}.price-offer-card strong{font-size:16px}.price-offer-card time{grid-column:1/-1;font-size:10px;color:#999}.price-offer-status{font-size:10px;padding:3px 7px;border-radius:999px;background:#eee;color:#555}.price-offer-status.accepted{background:#e9f8ee;color:#17743a}.price-offer-status.rejected{background:#fdeeee;color:#9c2e2e}.price-offer-status.countered{background:#f4f0ff;color:#6342a7}.price-offer-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.price-offer-actions .primary-btn,.price-offer-actions .secondary-btn{width:auto;margin:0;padding:8px 10px;font-size:12px}.price-offer-actions .danger-lite{color:#9c2e2e}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .price-offer-history{border-color:#3a3a3a}html[data-theme="dark"] .price-offer-card{background:#252525;border-color:#3a3a3a}html[data-theme="dark"] .price-offer-card.mine{background:#2d2d2d}html[data-theme="dark"] .price-offer-card small, html[data-theme="dark"] .price-offer-card time{color:#aaa}html[data-theme="dark"] .price-offer-status{background:#3a3a3a;color:#ddd}html[data-theme="dark"] .price-offer-status.accepted{background:#173c25;color:#9be4b4}html[data-theme="dark"] .price-offer-status.rejected{background:#452222;color:#ffb4b4}html[data-theme="dark"] .price-offer-status.countered{background:#342a4b;color:#cdbcf5}
@media(max-width:680px){.listing-thread-card{align-items:flex-start;flex-wrap:wrap}.listing-thread-card-actions{width:100%;margin-left:68px;justify-content:flex-start}.listing-thread-card-actions .primary-btn,.listing-thread-card-actions .secondary-btn{flex:1}.price-offer-card{grid-template-columns:1fr}.price-offer-actions{justify-content:stretch}.price-offer-actions .primary-btn,.price-offer-actions .secondary-btn{flex:1}.price-offer-card time{grid-column:auto}}

/* Zholo price-offer modal — replaces browser prompt() */
.price-offer-modal{position:fixed;inset:0;z-index:160;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(12,12,12,.46);backdrop-filter:blur(6px)}
.price-offer-modal.show{display:flex}
.price-offer-modal-card{position:relative;width:min(430px,100%);background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:24px;padding:24px;box-shadow:0 28px 90px rgba(0,0,0,.22);animation:priceOfferIn .16s ease-out}
@keyframes priceOfferIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
.price-offer-modal-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;border-radius:50%;background:transparent;font-size:24px;line-height:1;color:#555;cursor:pointer}.price-offer-modal-close:hover{background:#f4f4f4}
.price-offer-modal-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#111;color:#fff;font-size:20px;font-weight:800;margin-bottom:14px}
.price-offer-modal-copy h3{margin:0 38px 5px 0;font-size:21px;line-height:1.25}.price-offer-modal-copy p{margin:0;color:#777;font-size:13px;line-height:1.5}
.price-offer-current{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 14px;padding:11px 13px;border-radius:14px;background:#f7f7f7}.price-offer-current span{font-size:12px;color:#777}.price-offer-current strong{font-size:15px}
.price-offer-field{display:block}.price-offer-field>span{display:block;margin:0 0 7px;font-size:12px;font-weight:700}
.price-offer-input-wrap{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid #dcdcdc;border-radius:15px;padding:0 13px;background:#fff;transition:border-color .15s,box-shadow .15s}.price-offer-input-wrap:focus-within{border-color:#999;box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.price-offer-input-wrap>span{font-size:18px;font-weight:800}.price-offer-input-wrap input{width:100%;min-width:0;border:0;outline:0;background:transparent;padding:13px 0;font:inherit;font-size:18px;font-weight:750;color:#111}.price-offer-input-wrap em{font-style:normal;color:#888;font-size:11px;font-weight:800}
.price-offer-field small{display:block;min-height:17px;margin-top:5px;color:#b42318;font-size:11px}
.price-offer-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:8px}.price-offer-modal-actions .primary-btn,.price-offer-modal-actions .secondary-btn{width:100%;margin:0;padding:11px 14px}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .price-offer-modal-card{background:#252525;border-color:#3b3b3b;color:#eee}html[data-theme="dark"] .price-offer-modal-close{color:#ddd}html[data-theme="dark"] .price-offer-modal-close:hover{background:#333}html[data-theme="dark"] .price-offer-current{background:#303030}html[data-theme="dark"] .price-offer-current span, html[data-theme="dark"] .price-offer-modal-copy p{color:#aaa}html[data-theme="dark"] .price-offer-input-wrap{background:#292929;border-color:#444}html[data-theme="dark"] .price-offer-input-wrap input{color:#f3f3f3}html[data-theme="dark"] .price-offer-input-wrap:focus-within{border-color:#777;box-shadow:0 0 0 3px rgba(255,255,255,.06)}html[data-theme="dark"] .price-offer-input-wrap em{color:#aaa}html[data-theme="dark"] .price-offer-modal-icon{background:#eee;color:#111}
@media(max-width:520px){.price-offer-modal{padding:12px}.price-offer-modal-card{border-radius:20px;padding:20px 16px}.price-offer-modal-copy h3{font-size:19px}.price-offer-modal-actions{grid-template-columns:1fr 1fr}}


/* Zholo viewing appointment v1 */
.viewing-history{padding:12px 0;border-bottom:1px solid #eee}
.viewing-history-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.viewing-history-head strong{font-size:13px}
.viewing-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:11px 12px;margin:7px 0;border:1px solid #e6e6e6;border-radius:14px;background:#fafafa}
.viewing-card.mine{background:#f7f7f7}
.viewing-card.accepted{border-color:#cfe8d7;background:#f5fbf7}
.viewing-card-main{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.viewing-card small{color:#777;font-size:11px}
.viewing-card strong{font-size:15px}
.viewing-card time{grid-column:1/-1;font-size:10px;color:#999}
.viewing-status{font-size:10px;padding:3px 7px;border-radius:999px;background:#eee;color:#555}
.viewing-status.accepted{background:#e9f8ee;color:#17743a}
.viewing-status.rejected{background:#fdeeee;color:#9c2e2e}
.viewing-status.countered{background:#eef2ff;color:#4754a8}
.viewing-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.viewing-actions .primary-btn,.viewing-actions .secondary-btn{width:auto;margin:0;padding:8px 10px;font-size:12px}
.viewing-actions .danger-lite{color:#9c2e2e}
.viewing-confirmed-banner{display:flex;align-items:center;gap:10px;margin:12px 0 4px;padding:11px 13px;border:1px solid #cfe8d7;border-radius:14px;background:#f2faf5;color:#195d32}
.viewing-confirmed-banner>span{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#dff4e6;font-weight:900}
.viewing-confirmed-banner small{display:block;font-size:10px;opacity:.75}
.viewing-confirmed-banner strong{display:block;font-size:13px;margin-top:2px}

.viewing-modal{position:fixed;inset:0;z-index:165;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(12,12,12,.46);backdrop-filter:blur(6px)}
.viewing-modal.show{display:flex}
.viewing-modal-card{position:relative;width:min(460px,100%);background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:24px;padding:24px;box-shadow:0 28px 90px rgba(0,0,0,.22);animation:priceOfferIn .16s ease-out}
.viewing-modal-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;border-radius:50%;background:transparent;font-size:24px;line-height:1;color:#555;cursor:pointer}
.viewing-modal-close:hover{background:#f4f4f4}
.viewing-modal-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#111;color:#fff;font-size:22px;font-weight:800;margin-bottom:14px}
.viewing-modal-copy h3{margin:0 38px 5px 0;font-size:21px;line-height:1.25}
.viewing-modal-copy p{margin:0;color:#777;font-size:13px;line-height:1.5}
.viewing-modal-fields{display:grid;grid-template-columns:1.25fr .75fr;gap:10px;margin-top:18px}
.viewing-modal-fields label>span{display:block;margin:0 0 7px;font-size:12px;font-weight:700}
.viewing-modal-fields input{width:100%;min-height:48px;border:1px solid #dcdcdc;border-radius:15px;padding:10px 12px;background:#fff;color:#111;font:inherit;outline:0}
.viewing-modal-fields input:focus{border-color:#999;box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.viewing-modal-error{display:block;min-height:18px;margin-top:6px;color:#b42318;font-size:11px}
.viewing-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:6px}
.viewing-modal-actions .primary-btn,.viewing-modal-actions .secondary-btn{width:100%;margin:0;padding:11px 14px}

/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .viewing-history{border-color:#3a3a3a}
  html[data-theme="dark"] .viewing-card{background:#252525;border-color:#3a3a3a}
  html[data-theme="dark"] .viewing-card.mine{background:#2d2d2d}
  html[data-theme="dark"] .viewing-card.accepted{background:#203126;border-color:#355f42}
  html[data-theme="dark"] .viewing-card small, html[data-theme="dark"] .viewing-card time{color:#aaa}
  html[data-theme="dark"] .viewing-status{background:#3a3a3a;color:#ddd}
  html[data-theme="dark"] .viewing-status.accepted{background:#173c25;color:#9be4b4}
  html[data-theme="dark"] .viewing-status.rejected{background:#452222;color:#ffb4b4}
  html[data-theme="dark"] .viewing-status.countered{background:#29304b;color:#bcc6ff}
  html[data-theme="dark"] .viewing-confirmed-banner{background:#1f3025;border-color:#355f42;color:#a9e7bb}
  html[data-theme="dark"] .viewing-confirmed-banner>span{background:#284433}
  html[data-theme="dark"] .viewing-modal-card{background:#252525;border-color:#3b3b3b;color:#eee}
  html[data-theme="dark"] .viewing-modal-close{color:#ddd}html[data-theme="dark"] .viewing-modal-close:hover{background:#333}
  html[data-theme="dark"] .viewing-modal-copy p{color:#aaa}
  html[data-theme="dark"] .viewing-modal-fields input{background:#292929;border-color:#444;color:#f3f3f3;color-scheme:dark}
  html[data-theme="dark"] .viewing-modal-fields input:focus{border-color:#777;box-shadow:0 0 0 3px rgba(255,255,255,.06)}
  html[data-theme="dark"] .viewing-modal-icon{background:#eee;color:#111}

@media(max-width:680px){
  .viewing-card{grid-template-columns:1fr}
  .viewing-actions{justify-content:stretch}
  .viewing-actions .primary-btn,.viewing-actions .secondary-btn{flex:1}
  .viewing-card time{grid-column:auto}
}
@media(max-width:520px){
  .viewing-modal{padding:12px}
  .viewing-modal-card{border-radius:20px;padding:20px 16px}
  .viewing-modal-copy h3{font-size:19px}
  .viewing-modal-fields{grid-template-columns:1fr}
}


/* Seller Dashboard v1 */
.seller-dashboard{max-width:1180px;width:100%}
.seller-dashboard-head,.seller-dashboard-section-head,.seller-dashboard-listing-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.seller-dashboard-head{margin-bottom:18px}
.seller-dashboard-head h2,.seller-dashboard-section h3{margin:3px 0 4px}
.seller-dashboard-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.seller-dashboard-summary>div{border:1px solid var(--line,#e7e9ee);border-radius:16px;padding:13px 14px;background:var(--card,#fff);min-width:0}
.seller-dashboard-summary span{display:block;font-size:12px;color:var(--muted,#687082);margin-bottom:5px}
.seller-dashboard-summary strong{font-size:24px;line-height:1}
.seller-dashboard-summary .is-hot{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);background:rgba(0,0,0,.025)}
.seller-dashboard-alerts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px}
.seller-dashboard-alert{border:1px solid var(--line,#e7e9ee);border-radius:16px;padding:14px;background:var(--card,#fff)}
.seller-dashboard-alert span,.seller-dashboard-alert small{display:block;color:var(--muted,#687082);font-size:12px}
.seller-dashboard-alert strong{display:block;font-size:18px;margin:5px 0}
.seller-dashboard-section{border-top:1px solid var(--line,#e7e9ee);padding-top:18px;margin-top:18px}
.seller-dashboard-section-head{align-items:center;margin-bottom:12px}
.seller-dashboard-section-head p{margin:2px 0 0;color:var(--muted,#687082);font-size:13px}
.seller-dashboard-list{display:grid;gap:10px}
.seller-dashboard-listing{display:grid;grid-template-columns:132px minmax(0,1fr);gap:14px;padding:12px;border:1px solid var(--line,#e7e9ee);border-radius:18px;background:var(--card,#fff)}
.seller-dashboard-listing>img,.seller-dashboard-no-photo{width:132px;height:112px;border-radius:14px;object-fit:cover;background:#f3f4f6;display:grid;place-items:center;color:#7d8490;font-weight:700}
.seller-dashboard-listing-main{min-width:0}
.seller-dashboard-listing-title strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seller-dashboard-listing-title small{display:block;color:var(--muted,#687082);font-size:12px;margin-top:4px}
.seller-dashboard-listing-title b{white-space:nowrap;font-size:16px}
.seller-dashboard-listing-stats{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.seller-dashboard-listing-stats span{font-size:12px;border:1px solid var(--line,#e7e9ee);border-radius:999px;padding:6px 9px;color:#505765;background:rgba(255,255,255,.5)}
.seller-dashboard-listing-actions{display:flex;flex-wrap:wrap;gap:8px}
.seller-dashboard-listing-actions .primary-btn,.seller-dashboard-listing-actions .secondary-btn{min-height:38px;padding:8px 12px}
.seller-dashboard-activity{display:grid;gap:8px}
.seller-dashboard-activity-row{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line,#e7e9ee);padding:10px 2px}
.seller-dashboard-activity-row:last-child{border-bottom:0}
.seller-dashboard-activity-row strong,.seller-dashboard-activity-row small{display:block}
.seller-dashboard-activity-row small,.seller-dashboard-activity-row time{font-size:12px;color:var(--muted,#687082)}
.seller-dashboard-activity-row>div:last-child{text-align:right;max-width:45%}
.seller-dashboard-activity-row span{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:3px}

@media(max-width:760px){
  .seller-dashboard-head,.seller-dashboard-section-head{align-items:stretch}
  .seller-dashboard-head{flex-direction:column}
  .seller-dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .seller-dashboard-alerts{grid-template-columns:1fr}
  .seller-dashboard-listing{grid-template-columns:92px minmax(0,1fr);gap:10px}
  .seller-dashboard-listing>img,.seller-dashboard-no-photo{width:92px;height:92px}
  .seller-dashboard-listing-title{gap:8px}
  .seller-dashboard-listing-title b{font-size:14px}
  .seller-dashboard-listing-stats span{padding:5px 7px}
  .seller-dashboard-activity-row{display:block}
  .seller-dashboard-activity-row>div:last-child{text-align:left;max-width:none;margin-top:5px}
}

/* Contact share — explicit two-sided consent */
.contact-share-modal{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(8,10,14,.58);backdrop-filter:blur(8px)}
.contact-share-modal.show{display:flex}
.contact-share-modal-card{position:relative;width:min(520px,100%);border:1px solid #e4e7ec;border-radius:24px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.2);padding:24px;color:#15171a}
.contact-share-modal-close{position:absolute;right:14px;top:14px;width:36px;height:36px;border:0;border-radius:50%;background:transparent;font-size:24px;line-height:1;color:#59606c;cursor:pointer}
.contact-share-modal-close:hover{background:#f1f3f5}
.contact-share-modal-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#15171a;color:#fff;font-size:23px;margin-bottom:14px}
.contact-share-modal-copy h3{margin:0 42px 5px 0;font-size:21px}
.contact-share-modal-copy p{margin:0 0 18px;color:#687082;font-size:13px;line-height:1.5}
.contact-share-option{display:flex;align-items:center;gap:11px;border:1px solid #e5e8ed;border-radius:15px;padding:12px 13px;margin-bottom:10px;cursor:pointer;background:#fafbfc}
.contact-share-option input{width:18px;height:18px;accent-color:#17191c}
.contact-share-option span{min-width:0}.contact-share-option strong,.contact-share-option small{display:block}.contact-share-option strong{font-size:13px}.contact-share-option small{font-size:12px;color:#747c89;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contact-share-phone-field{display:block;margin-top:12px}.contact-share-phone-field>span{display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:700;margin:0 2px 7px}.contact-share-phone-field em{font-style:normal;font-weight:500;color:#858c98}
.contact-share-phone-field input{width:100%;height:46px;border:1px solid #dfe3e8;border-radius:13px;padding:0 13px;font:inherit;outline:none}.contact-share-phone-field input:focus{border-color:#858c98;box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.contact-share-security{display:flex;gap:10px;margin-top:13px;padding:11px 12px;border-radius:13px;background:#f4f7f5;color:#58635c}.contact-share-security span{flex:0 0 auto}.contact-share-security p{margin:0;font-size:11px;line-height:1.45}
.contact-share-modal-error{display:block;min-height:18px;margin:7px 2px 0;color:#c43b3b;font-size:12px}
.contact-share-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:12px}
.contact-share-card{border:1px solid #e2e6eb;border-radius:18px;padding:14px 15px;margin:10px 0;background:#fafbfc}
.contact-share-card.accepted{border-color:#cde2d3;background:#f3faf5}
.contact-share-card.pending{background:#f8f9fb}
.contact-share-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.contact-share-card-head small,.contact-share-card-head strong{display:block}.contact-share-card-head small{color:#76808b;font-size:11px;margin-bottom:3px}.contact-share-card-head strong{font-size:15px}.contact-share-card-head>span{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#eaf4ed;color:#377447;font-weight:800}
.contact-share-card>p{margin:10px 0 0;color:#69717d;font-size:12px;line-height:1.45}
.contact-share-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.contact-share-details a{display:block;min-width:0;padding:10px 11px;border:1px solid #dce8df;border-radius:12px;background:#fff;color:inherit;text-decoration:none}.contact-share-details a:hover{border-color:#aebfb3}.contact-share-details small,.contact-share-details strong{display:block}.contact-share-details small{font-size:10px;color:#78827c;margin-bottom:3px}.contact-share-details strong{font-size:13px;overflow-wrap:anywhere}
.contact-share-card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
@media(max-width:560px){.contact-share-modal{padding:12px}.contact-share-modal-card{border-radius:20px;padding:20px 16px}.contact-share-modal-actions,.contact-share-card-actions{display:grid;grid-template-columns:1fr 1fr}.contact-share-modal-actions button,.contact-share-card-actions button{width:100%}.contact-share-details{grid-template-columns:1fr}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .contact-share-modal-card{background:#252525;border-color:#3b3b3b;color:#eee}html[data-theme="dark"] .contact-share-modal-close{color:#ddd}html[data-theme="dark"] .contact-share-modal-close:hover{background:#333}html[data-theme="dark"] .contact-share-modal-copy p{color:#aaa}html[data-theme="dark"] .contact-share-option{background:#292929;border-color:#404040}html[data-theme="dark"] .contact-share-option small, html[data-theme="dark"] .contact-share-phone-field em{color:#aaa}html[data-theme="dark"] .contact-share-phone-field input{background:#292929;border-color:#444;color:#f4f4f4}html[data-theme="dark"] .contact-share-security{background:#28302b;color:#b7c2ba}html[data-theme="dark"] .contact-share-card{background:#292929;border-color:#414141}html[data-theme="dark"] .contact-share-card.accepted{background:#203126;border-color:#355f42}html[data-theme="dark"] .contact-share-card.pending{background:#292929}html[data-theme="dark"] .contact-share-details a{background:#252525;border-color:#3d5644}html[data-theme="dark"] .contact-share-card>p, html[data-theme="dark"] .contact-share-card-head small{color:#aaa}


/* Real-estate sidebar accordion — navigation only */
.nav-group{display:flex;flex-direction:column;gap:2px}
.nav-group-toggle{width:100%}
.nav-group-toggle>span:nth-of-type(1){flex:1}
.nav-group-chevron{margin-left:auto;width:22px;height:22px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;color:#777;transition:transform .2s ease,background .18s ease,color .18s ease;transform:rotate(0deg);flex:0 0 22px}
.nav-group-chevron svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-group-toggle:hover .nav-group-chevron{background:#e8e8e8;color:#222}
.nav-group-toggle[aria-expanded="true"] .nav-group-chevron{transform:rotate(90deg)}
.nav-submenu{display:flex;flex-direction:column;gap:4px;padding:6px 0 8px 36px}
.nav-submenu[hidden]{display:none}
.nav-subitem{width:100%;min-height:34px;border:0;background:transparent;border-radius:10px;padding:7px 10px;color:#4b4b4b;text-decoration:none;display:flex;align-items:center;text-align:left;font-size:12.5px;font-weight:500;line-height:1.25;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}
.nav-subitem:hover{background:#ededed;color:#111;transform:translateX(1px)}
.nav-subitem.active{background:#e9e9e9;color:#111;font-weight:650}
.nav-subitem-with-badge{justify-content:space-between;gap:8px}
.nav-subitem .nav-count-badge{flex:0 0 auto}
@media(max-width:760px){.nav-submenu{padding-left:36px}.nav-subitem{min-height:38px;font-size:13px}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .nav-group-chevron{color:#aaa}html[data-theme="dark"] .nav-group-toggle:hover .nav-group-chevron{background:#2b2b2b;color:#eee}html[data-theme="dark"] .nav-subitem{color:#c8c8c8}html[data-theme="dark"] .nav-subitem:hover, html[data-theme="dark"] .nav-subitem.active{background:#2a2a2a;color:#fff}

/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .folder-items{border-left-color:#323232}
  html[data-theme="dark"] .history-item-icon{background:#292929;color:#aaa}
  html[data-theme="dark"] .history-link-icon{background:#282b2f;color:#aeb6c2}


/* Composer v9 — single-row ChatGPT-style pill, Zholo visual language */
.composer-wrap,
.workspace:has(.chat-shell) .composer-wrap{
  width:min(900px,100%);
  padding:10px 0 6px;
}
.composer{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  grid-template-rows:auto;
  align-items:end;
  column-gap:8px;
  min-height:64px;
  padding:8px 10px;
  border:1px solid #dedede;
  border-radius:34px;
  background:#f4f4f4;
  box-shadow:none;
}
.composer textarea{
  grid-column:2;
  grid-row:1;
  align-self:center;
  min-height:42px;
  max-height:150px;
  padding:9px 4px 8px;
  font-size:17px;
  line-height:1.45;
}
.composer-bottom{display:contents}
.composer-tools{
  grid-column:1;
  grid-row:1;
  align-self:end;
  display:flex;
  align-items:center;
  justify-content:center;
}
.round-tool{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#353535;
  transition:background .16s ease,transform .16s ease;
}
.round-tool:hover{background:#e4e4e4;transform:scale(1.02)}
.round-tool svg{width:24px;height:24px}
.send-btn{
  grid-column:3;
  grid-row:1;
  align-self:end;
  width:42px;
  height:42px;
  border-radius:50%;
  background:#111;
  color:#fff;
  transition:transform .16s ease,opacity .16s ease,background .16s ease;
}
.send-btn:hover:not(:disabled){transform:scale(1.03)}
.send-btn svg{width:20px;height:20px}
.send-btn:disabled{background:#d8d8d8;color:#fff;opacity:1}

@media(max-width:760px){
  .composer-wrap,
  .workspace:has(.chat-shell) .composer-wrap{width:100%;padding:7px 0 4px}
  .composer{
    grid-template-columns:40px minmax(0,1fr) 40px;
    min-height:58px;
    column-gap:6px;
    padding:7px 9px;
    border-radius:30px;
  }
  .composer textarea{min-height:40px;padding:8px 3px 7px;font-size:16px}
  .round-tool,.send-btn{width:40px;height:40px}
  .round-tool svg{width:23px;height:23px}
}

/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .composer{background:#2b2b2b;border-color:#3a3a3a}
  html[data-theme="dark"] .composer textarea{color:#f1f1f1}
  html[data-theme="dark"] .composer textarea::placeholder{color:#a8a8a8}
  html[data-theme="dark"] .round-tool{color:#f0f0f0}
  html[data-theme="dark"] .round-tool:hover{background:#3a3a3a}
  html[data-theme="dark"] .send-btn{background:#f2f2f2;color:#161616}
  html[data-theme="dark"] .send-btn:disabled{background:#525252;color:#aaa}



/* Composer add menu v1 — clean monochrome action sheet */
.history-menu.composer-add-menu{
  width:264px;
  padding:7px;
  border:1px solid #e1e1e1;
  border-radius:16px;
  background:rgba(255,255,255,.97);
  box-shadow:0 14px 44px rgba(0,0,0,.16);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  overflow:hidden!important;
}
.history-menu.composer-add-menu button{
  width:100%;
  min-height:48px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  gap:11px;
  border-radius:11px;
  color:#202020;
  font-size:13px;
  font-weight:600;
  line-height:1.25;
  transition:background .14s ease,transform .14s ease;
}
.history-menu.composer-add-menu button:hover{
  background:#f2f2f2;
  transform:translateX(1px);
}
.composer-add-icon{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#f1f1f1;
  color:#333;
}
.composer-add-icon svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.composer-add-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  text-align:left;
}
.composer-add-copy strong{font-size:13px;font-weight:650;color:inherit}
.composer-add-copy small{font-size:10.5px;font-weight:500;color:#888}
@media(max-width:760px){
  .history-menu.composer-add-menu{width:min(278px,calc(100vw - 24px));border-radius:15px}
  .history-menu.composer-add-menu button{min-height:50px}
}
/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .history-menu.composer-add-menu{background:rgba(38,38,38,.98);border-color:#404040;box-shadow:0 18px 50px rgba(0,0,0,.38)}
  html[data-theme="dark"] .history-menu.composer-add-menu button{color:#f0f0f0}
  html[data-theme="dark"] .history-menu.composer-add-menu button:hover{background:#333}
  html[data-theme="dark"] .composer-add-icon{background:#343434;color:#e8e8e8}
  html[data-theme="dark"] .composer-add-copy small{color:#aaa}



/* Agent 013 code-generated live identity */
.workspace{position:relative}
.agent-orb-trigger{position:relative;width:38px;height:38px;border:0;border-radius:999px;padding:0;display:grid;place-items:center;background:transparent;color:inherit;cursor:pointer;transition:background .16s ease,transform .16s ease}
.agent-orb-trigger:hover{background:rgba(127,127,127,.10)}
.agent-orb-trigger:active{transform:scale(.96)}
.agent-orb-avatar{width:30px;height:30px;border-radius:999px;overflow:hidden;background:#050608;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(127,127,127,.22)}
.agent-orb-svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.45;opacity:.9}
.agent-orb-svg circle{fill:currentColor;stroke:none}
.agent-title-dot{position:absolute;right:2px;bottom:3px;width:8px;height:8px;border-radius:999px;background:#46d37d;border:2px solid #fff;box-shadow:0 0 0 2px rgba(70,211,125,.10),0 0 10px rgba(70,211,125,.45)}
.agent-live-stage{position:absolute;inset:0 0 92px 0;z-index:40;display:flex;align-items:center;justify-content:center;padding:30px 20px;background:#fff;opacity:0;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease}
.agent-live-stage.is-visible{opacity:1;transform:none}
.agent-live-stage[hidden]{display:none!important}
.agent-live-close{position:absolute;right:24px;top:20px;width:38px;height:38px;border:1px solid rgba(127,127,127,.18);border-radius:999px;background:rgba(127,127,127,.08);color:inherit;display:grid;place-items:center;cursor:pointer}
.agent-live-close:hover{background:rgba(127,127,127,.14)}
.agent-live-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.agent-live-content{width:min(620px,100%);display:flex;flex-direction:column;align-items:center;text-align:center}
.agent-live-face{position:relative;width:min(360px,70vw);aspect-ratio:420/510;display:grid;place-items:center;overflow:visible;filter:drop-shadow(0 24px 46px rgba(0,0,0,.22));transform-origin:center 62%;animation:agentIdleFloat 5.2s ease-in-out infinite}
.agent-face-svg{width:100%;height:100%;overflow:visible}
.agent-network{stroke-width:1.35;opacity:.62;filter:drop-shadow(0 0 5px rgba(20,214,255,.3))}
.agent-face-points circle,.agent-orbit-dots circle{fill:#29e6ff;opacity:.86;filter:drop-shadow(0 0 4px #29e6ff);animation:agentNodePulse 2.4s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}
.agent-face-points circle:nth-child(3n){animation-delay:.55s}.agent-face-points circle:nth-child(4n){animation-delay:1.1s}
.agent-orbit-dots{animation:agentOrbit 12s linear infinite;transform-origin:210px 255px}
.agent-eye-line{fill:rgba(7,18,24,.75);stroke:#30e6ff;stroke-width:1.5;filter:drop-shadow(0 0 5px rgba(48,230,255,.7));transform-box:fill-box;transform-origin:center}
.agent-eye-core{fill:#d9fbff;filter:drop-shadow(0 0 8px #27e8ff);transform-box:fill-box;transform-origin:center;animation:agentPupilDrift 4.6s ease-in-out infinite}
.agent-nose-line{fill:none;stroke:url(#agentFaceLine);stroke-width:1.4;opacity:.75}
.agent-mouth-line{fill:none;stroke:#46ecff;stroke-width:2.1;stroke-linecap:round;filter:drop-shadow(0 0 5px rgba(70,236,255,.65));transition:opacity .06s ease,transform .06s ease;transform-box:fill-box;transform-origin:center}
.agent-mouth-open{opacity:0;fill:rgba(16,207,255,.08)}
.agent-live-face.mouth-a .agent-mouth-rest,.agent-live-face.mouth-e .agent-mouth-rest,.agent-live-face.mouth-o .agent-mouth-rest{opacity:.2}
.agent-live-face.mouth-a .agent-mouth-open,.agent-live-face.mouth-o .agent-mouth-open{opacity:1;transform:scaleY(1.04)}
.agent-live-face.mouth-e .agent-mouth-open{opacity:.75;transform:scaleY(.55)}
.agent-live-face.mouth-rest .agent-mouth-open{opacity:0}
.agent-live-face.is-blinking .agent-eye-line{transform:scaleY(.08)}
.agent-live-face.is-blinking .agent-eye-core{transform:scaleY(.05);opacity:.2}
.agent-live-glow{position:absolute;inset:8%;border-radius:48%;pointer-events:none;opacity:.2;box-shadow:0 0 45px 8px rgba(30,193,255,.18),0 0 86px 20px rgba(108,43,255,.12);z-index:-1}
.agent-live-content>strong{margin-top:14px;font-size:24px;line-height:1.25;letter-spacing:-.45px}
.agent-live-content>span{margin-top:7px;font-size:13px;color:#777}
.agent-voice-bars{height:28px;margin-top:8px;display:flex;align-items:center;justify-content:center;gap:4px;opacity:.35}
.agent-voice-bars i{display:block;width:3px;height:7px;border-radius:999px;background:currentColor}
.agent-live-stage.is-speaking .agent-live-face{animation:agentSpeakBob .82s ease-in-out infinite}
.agent-live-stage.is-speaking .agent-network{opacity:.9;animation:agentNetworkBreath .8s ease-in-out infinite alternate}
.agent-live-stage.is-speaking .agent-live-glow{animation:agentGlowSpeak .55s ease-in-out infinite alternate}
.agent-live-stage.is-speaking .agent-voice-bars{opacity:.9}
.agent-live-stage.is-speaking .agent-voice-bars i{animation:agentVoiceBar .68s ease-in-out infinite alternate}
.agent-live-stage.is-speaking .agent-voice-bars i:nth-child(2){animation-delay:.08s}.agent-live-stage.is-speaking .agent-voice-bars i:nth-child(3){animation-delay:.16s}.agent-live-stage.is-speaking .agent-voice-bars i:nth-child(4){animation-delay:.24s}.agent-live-stage.is-speaking .agent-voice-bars i:nth-child(5){animation-delay:.32s}
.agent-live-face.speech-pulse{filter:drop-shadow(0 24px 46px rgba(0,0,0,.22)) drop-shadow(0 0 12px rgba(34,222,255,.22))}
@keyframes agentIdleFloat{0%,100%{transform:translateY(0) rotate(-.35deg)}50%{transform:translateY(-7px) rotate(.35deg)}}
@keyframes agentSpeakBob{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-3px) scale(1.012)}}
@keyframes agentNodePulse{from{opacity:.34;transform:scale(.7)}to{opacity:1;transform:scale(1.28)}}
@keyframes agentOrbit{to{transform:rotate(360deg)}}
@keyframes agentPupilDrift{0%,100%{transform:translateX(-2px)}50%{transform:translateX(2px)}}
@keyframes agentNetworkBreath{from{filter:drop-shadow(0 0 4px rgba(20,214,255,.22))}to{filter:drop-shadow(0 0 10px rgba(20,214,255,.55))}}
@keyframes agentGlowSpeak{from{opacity:.2;transform:scale(.98)}to{opacity:.64;transform:scale(1.035)}}
@keyframes agentVoiceBar{from{height:6px}to{height:24px}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .agent-live-stage{background:#212121}html[data-theme="dark"] .agent-title-dot{border-color:#212121}html[data-theme="dark"] .agent-live-content>span{color:#aaa}html[data-theme="dark"] .agent-live-close{border-color:rgba(255,255,255,.10);background:rgba(255,255,255,.06)}html[data-theme="dark"] .agent-live-close:hover{background:rgba(255,255,255,.10)}
@media(max-width:680px){.agent-orb-trigger{width:36px;height:36px}.agent-orb-avatar{width:28px;height:28px}.agent-orb-svg{width:25px;height:25px}.agent-live-stage{inset:0 0 84px 0;padding:18px 14px}.agent-live-close{right:14px;top:12px;width:36px;height:36px}.agent-live-face{width:min(292px,78vw)}.agent-live-content>strong{font-size:21px}.agent-live-content>span{font-size:12px}}

.hero.agent-013-hidden{display:none!important}

/* Agent 013 Voice Dialogue v1 */
.agent-human-contours{stroke:rgba(63,220,255,.62);stroke-width:1.15;stroke-linecap:round;filter:drop-shadow(0 0 4px rgba(30,216,255,.16))}
.agent-human-contours .agent-brow{stroke-width:2;opacity:.86}
.agent-human-contours .agent-cheek{opacity:.45}
.agent-human-contours .agent-jaw{stroke-width:1.7;opacity:.72}
.agent-human-contours .agent-ear,.agent-human-contours .agent-neck{opacity:.42}
.agent-lip-mid{fill:none;stroke:#9df6ff;stroke-width:1.15;stroke-linecap:round;opacity:.78;transition:transform .08s ease,opacity .08s ease;transform-box:fill-box;transform-origin:center}
.agent-live-face.mouth-a .agent-lip-mid{transform:scaleY(1.7);opacity:.32}
.agent-live-face.mouth-e .agent-lip-mid{transform:scaleX(1.12) scaleY(.72)}
.agent-live-face.mouth-o .agent-lip-mid{transform:scaleX(.78) scaleY(1.5);opacity:.42}
.agent-live-stage.is-listening .agent-eye-core{animation:agentListeningEyes 1.15s ease-in-out infinite alternate}
.agent-live-stage.is-listening .agent-live-glow{opacity:.58;box-shadow:0 0 50px 10px rgba(39,215,145,.18),0 0 92px 24px rgba(34,180,255,.12)}
.agent-live-stage.is-listening .agent-network{filter:drop-shadow(0 0 7px rgba(55,221,160,.42))}
.agent-dialogue-status{margin-top:14px;min-height:26px;padding:5px 10px;border:1px solid rgba(127,127,127,.15);border-radius:999px;display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:650;letter-spacing:.01em;background:rgba(127,127,127,.06);color:#707070}
.agent-dialogue-status i{width:7px;height:7px;border-radius:50%;background:#35c77a;box-shadow:0 0 0 4px rgba(53,199,122,.10),0 0 10px rgba(53,199,122,.35)}
.agent-dialogue-status[data-mode="listening"]{color:#168756;border-color:rgba(49,196,119,.2);background:rgba(49,196,119,.07)}
.agent-dialogue-status[data-mode="listening"] i{background:#26ce75;animation:agentStatusPulse .75s ease-in-out infinite alternate}
.agent-dialogue-status[data-mode="thinking"]{color:#8b6d18;border-color:rgba(214,176,61,.22);background:rgba(214,176,61,.07)}
.agent-dialogue-status[data-mode="thinking"] i{background:#d6ae35;animation:agentStatusPulse .55s ease-in-out infinite alternate}
.agent-dialogue-status[data-mode="speaking"]{color:#1485a8;border-color:rgba(39,187,223,.22);background:rgba(39,187,223,.07)}
.agent-dialogue-status[data-mode="speaking"] i{background:#25c7e9;animation:agentStatusPulse .45s ease-in-out infinite alternate}
.agent-dialogue-status[data-mode="error"]{color:#bd4d4d;border-color:rgba(210,74,74,.22);background:rgba(210,74,74,.07)}
.agent-dialogue-status[data-mode="error"] i{background:#d94d4d;box-shadow:none}
.agent-voice-mic{margin-top:13px;min-width:188px;height:46px;padding:0 16px;border:1px solid rgba(127,127,127,.18);border-radius:999px;background:rgba(127,127,127,.075);color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:9px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease}
.agent-voice-mic:hover{background:rgba(127,127,127,.12);transform:translateY(-1px)}
.agent-voice-mic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.agent-voice-mic[aria-pressed="true"]{border-color:rgba(41,203,120,.35);background:rgba(41,203,120,.11);box-shadow:0 0 0 4px rgba(41,203,120,.05)}
.agent-voice-mic[aria-pressed="true"] svg{color:#25ba70}
.agent-live-transcript{width:min(520px,86vw);min-height:22px;margin-top:11px;font-size:12.5px;line-height:1.45;color:#777;white-space:normal;overflow-wrap:anywhere}
.agent-live-stage.is-listening .agent-voice-bars{opacity:.88}
.agent-live-stage.is-listening .agent-voice-bars i{background:#31ca7d;animation:agentVoiceBar .56s ease-in-out infinite alternate}
.agent-live-stage.is-listening .agent-voice-bars i:nth-child(2){animation-delay:.06s}.agent-live-stage.is-listening .agent-voice-bars i:nth-child(3){animation-delay:.12s}.agent-live-stage.is-listening .agent-voice-bars i:nth-child(4){animation-delay:.18s}.agent-live-stage.is-listening .agent-voice-bars i:nth-child(5){animation-delay:.24s}
@keyframes agentStatusPulse{from{transform:scale(.78);opacity:.55}to{transform:scale(1.18);opacity:1}}
@keyframes agentListeningEyes{from{transform:translateX(-1px) scale(1)}to{transform:translateX(1px) scale(1.13)}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .agent-dialogue-status{color:#bbb;background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.10)}html[data-theme="dark"] .agent-dialogue-status[data-mode="listening"]{color:#83d8aa}html[data-theme="dark"] .agent-dialogue-status[data-mode="thinking"]{color:#dcc479}html[data-theme="dark"] .agent-dialogue-status[data-mode="speaking"]{color:#85d5e8}html[data-theme="dark"] .agent-dialogue-status[data-mode="error"]{color:#e79797}html[data-theme="dark"] .agent-voice-mic{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.10)}html[data-theme="dark"] .agent-voice-mic:hover{background:rgba(255,255,255,.09)}html[data-theme="dark"] .agent-live-transcript{color:#aaa}
@media(max-width:680px){.agent-voice-mic{min-width:176px;height:44px}.agent-live-transcript{font-size:12px;margin-top:9px}.agent-dialogue-status{margin-top:11px}}


/* Theo realistic coded holographic face v1 */
.theo-face{width:min(392px,58vw);aspect-ratio:420/520;filter:drop-shadow(0 26px 58px rgba(0,0,0,.34));}
.theo-face-svg{overflow:visible}
.theo-aura{fill:rgba(77,204,225,.025);stroke:rgba(171,244,255,.08);stroke-width:1;filter:drop-shadow(0 0 40px rgba(116,228,242,.14))}
.theo-face-skin{stroke:rgba(231,250,255,.62);stroke-width:1.1;filter:drop-shadow(0 0 9px rgba(171,239,249,.22))}
.theo-hair-back,.theo-hair-front{filter:drop-shadow(0 0 8px rgba(220,247,255,.16))}
.theo-hair-front path:last-child{fill:none;stroke:rgba(230,248,255,.23);stroke-width:1.15;stroke-linecap:round}
.theo-cheek-shading ellipse{fill:rgba(15,18,22,.24);filter:blur(10px)}
.theo-cheek-shading .theo-forehead-light{fill:rgba(255,255,255,.09);filter:blur(16px)}
.theo-ears path{stroke:rgba(220,244,248,.35);stroke-width:.8}
.theo-brows path{fill:none;stroke:#262a30;stroke-width:8;stroke-linecap:round;opacity:.92}
.theo-eye-white{fill:#eef2f4!important;stroke:rgba(227,250,255,.85)!important;stroke-width:1.25!important;filter:drop-shadow(0 0 4px rgba(166,235,244,.34))!important;transition:transform .11s ease,opacity .11s ease}
.theo-iris{fill:url(#theoIris);stroke:rgba(234,254,255,.7);stroke-width:.7;filter:drop-shadow(0 0 5px rgba(119,228,241,.42));transform-box:fill-box;transform-origin:center;animation:agentPupilDrift 5s ease-in-out infinite}
.theo-pupil{fill:#081014!important;filter:none!important;animation:agentPupilDrift 5s ease-in-out infinite!important}
.theo-eye-glint{fill:#fff;opacity:.92;pointer-events:none}
.theo-lash{fill:none;stroke:#11151a;stroke-width:3.1;stroke-linecap:round;opacity:.9;transition:transform .1s ease;transform-box:fill-box;transform-origin:center}
.theo-face.is-blinking .theo-eye-white,.theo-face.is-blinking .theo-iris,.theo-face.is-blinking .theo-pupil,.theo-face.is-blinking .theo-eye-glint{transform:scaleY(.05)!important;opacity:.15}
.theo-face.is-blinking .theo-lash{transform:scaleY(.08)}
.theo-nose path{fill:none;stroke:rgba(52,58,66,.62);stroke-width:1.4;stroke-linecap:round;filter:drop-shadow(0 1px 1px rgba(255,255,255,.13))}
.theo-nose .theo-nostril{stroke:#333840;stroke-width:1.8;opacity:.75}
.theo-mouth .agent-mouth-rest{stroke:rgba(246,250,252,.5)!important;stroke-width:.75!important;opacity:1;filter:drop-shadow(0 0 3px rgba(255,255,255,.12));transition:opacity .07s ease,transform .07s ease}
.theo-mouth .theo-mouth-open{fill:#111419;stroke:#9dbbc1!important;stroke-width:1!important;opacity:0;transform-box:fill-box;transform-origin:center;filter:drop-shadow(0 0 5px rgba(118,222,235,.18));transition:opacity .07s ease,transform .07s ease}
.theo-mouth .theo-lower-lip{opacity:.76;transform-box:fill-box;transform-origin:center;transition:transform .07s ease}
.theo-mouth .agent-lip-mid{stroke:rgba(245,250,252,.56);stroke-width:.85;opacity:.75}
.theo-face.mouth-a .theo-mouth-open{opacity:1;transform:scaleY(1.04)}
.theo-face.mouth-e .theo-mouth-open{opacity:.82;transform:scaleX(1.08) scaleY(.55)}
.theo-face.mouth-o .theo-mouth-open{opacity:1;transform:scaleX(.76) scaleY(1.18)}
.theo-face.mouth-a .theo-lower-lip{transform:translateY(5px)}
.theo-face.mouth-e .theo-lower-lip{transform:translateY(2px) scaleX(1.08)}
.theo-face.mouth-o .theo-lower-lip{transform:translateY(6px) scaleX(.84)}
.theo-jaw-detail path{fill:none;stroke:rgba(230,248,250,.12);stroke-width:1;stroke-linecap:round}
.theo-neck path:last-child{fill:none;stroke:rgba(238,252,255,.16);stroke-width:1.1}
.theo-neural-mesh path{fill:none;stroke:url(#theoGlow);stroke-width:.72;opacity:.16}
.theo-neural-mesh circle{fill:#a9f6ff;opacity:.44;filter:drop-shadow(0 0 4px rgba(158,243,255,.6));animation:agentNodePulse 3s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}
.theo-orbit-dots circle{fill:#d9fbff!important;opacity:.62!important;filter:drop-shadow(0 0 5px rgba(174,244,255,.65))!important}
.agent-live-stage.is-speaking .theo-face-skin{filter:drop-shadow(0 0 12px rgba(149,235,246,.28))}
.agent-live-stage.is-listening .theo-eye-glint{fill:#cffff0}
.agent-live-stage.is-listening .theo-aura{stroke:rgba(70,225,155,.14);filter:drop-shadow(0 0 40px rgba(70,225,155,.12))}
@media(max-width:680px){.theo-face{width:min(330px,82vw)}}

/* Theo Live Portrait v1 — photoreal layered portrait */
.theo-live-portrait{
  width:min(430px,62vw);
  aspect-ratio:550/720;
  filter:drop-shadow(0 30px 68px rgba(0,0,0,.46));
  animation:theoPortraitIdle 5.8s ease-in-out infinite;
}
.theo-portrait-shell{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:34% 34% 28% 28%/24% 24% 18% 18%;
  background:#0d1220;
  box-shadow:0 0 0 1px rgba(140,221,255,.14),0 0 46px rgba(52,145,255,.12),inset 0 -50px 80px rgba(2,6,14,.22);
  transform:translateZ(0);
}
.theo-portrait-base,
.theo-portrait-eye,
.theo-portrait-mouth{
  position:absolute;
  display:block;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}
.theo-portrait-base{inset:0;width:100%;height:100%;object-fit:cover}
.theo-portrait-eye{transform-origin:center center;transition:transform .08s linear,opacity .08s linear;z-index:3}
.theo-portrait-eye-left{left:19.09%;top:32.64%;width:18.18%;height:11.11%}
.theo-portrait-eye-right{left:49.09%;top:32.64%;width:18.18%;height:11.11%}
.theo-portrait-mouth{left:30%;top:48.61%;width:30%;height:14.58%;z-index:4;transform-origin:50% 43%;transition:transform .07s linear,filter .1s linear,opacity .1s linear}
.theo-portrait-shimmer{position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(115deg,transparent 10%,rgba(120,220,255,.08) 42%,transparent 62%);transform:translateX(-130%);animation:theoPortraitShimmer 7s ease-in-out infinite}
.theo-portrait-vignette{position:absolute;inset:0;z-index:6;pointer-events:none;box-shadow:inset 0 0 70px rgba(3,7,16,.32),inset 0 -80px 90px rgba(3,7,16,.30)}
.theo-live-portrait.is-blinking .theo-portrait-eye{transform:scaleY(.06);filter:brightness(.82)}
.theo-live-portrait.mouth-rest .theo-portrait-mouth{transform:translateY(0) scaleX(1) scaleY(1)}
.theo-live-portrait.mouth-a .theo-portrait-mouth{transform:translateY(2.7%) scaleX(1.015) scaleY(1.20)}
.theo-live-portrait.mouth-e .theo-portrait-mouth{transform:translateY(1.4%) scaleX(1.075) scaleY(.82)}
.theo-live-portrait.mouth-o .theo-portrait-mouth{transform:translateY(3.2%) scaleX(.88) scaleY(1.30)}
.agent-live-stage.is-speaking .theo-live-portrait{animation:theoPortraitSpeak .78s ease-in-out infinite}
.agent-live-stage.is-speaking .theo-portrait-shell{box-shadow:0 0 0 1px rgba(130,232,255,.22),0 0 58px rgba(42,194,255,.19),inset 0 -50px 80px rgba(2,6,14,.20)}
.theo-live-portrait.speech-pulse .theo-portrait-shell{filter:brightness(1.025) saturate(1.025)}
@keyframes theoPortraitIdle{0%,100%{transform:translateY(0) rotate(-.18deg)}50%{transform:translateY(-5px) rotate(.18deg)}}
@keyframes theoPortraitSpeak{0%,100%{transform:translateY(-1px) scale(1)}50%{transform:translateY(-3px) scale(1.004)}}
@keyframes theoPortraitShimmer{0%,64%{transform:translateX(-130%);opacity:0}72%{opacity:1}87%{transform:translateX(130%);opacity:.8}100%{transform:translateX(130%);opacity:0}}
@media(max-width:680px){.theo-live-portrait{width:min(360px,84vw)}.theo-portrait-shell{border-radius:31% 31% 25% 25%/22% 22% 16% 16%}}

/* Theo Holographic Canvas v2 — refined feminine sparse particle / mesh hologram */
.theo-hologram-face{
  width:min(360px,58vw);
  aspect-ratio:520/620;
  animation:agentIdleFloat 5.4s ease-in-out infinite;
  filter:drop-shadow(0 28px 58px rgba(0,0,0,.28));
}
.theo-hologram-canvas{
  display:block;
  width:100%;
  height:100%;
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
  image-rendering:auto;
}
.agent-live-stage.is-speaking .theo-hologram-face{
  filter:drop-shadow(0 28px 58px rgba(0,0,0,.28)) drop-shadow(0 0 18px rgba(34,222,255,.2));
}
.agent-live-stage.is-listening .theo-hologram-face{
  filter:drop-shadow(0 28px 58px rgba(0,0,0,.28)) drop-shadow(0 0 18px rgba(42,213,148,.18));
}
@media(max-width:680px){.theo-hologram-face{width:min(315px,82vw)}}

/* Theo 3D Holographic Face v1 — procedural Three.js geometry, no image/GIF assets */

.theo-orb-frame{
  display:block;
  width:100%;
  height:100%;
  border:0;
  background:transparent;
  border-radius:inherit;
  overflow:hidden;
  pointer-events:none;
}
.theo-3d-canvas{
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:520/620;
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
  background:transparent;
}
.agent-live-stage.is-speaking .theo-hologram-face{filter:drop-shadow(0 26px 58px rgba(0,0,0,.32)) drop-shadow(0 0 24px rgba(52,228,255,.24))}
.agent-live-stage.is-listening .theo-hologram-face{filter:drop-shadow(0 26px 58px rgba(0,0,0,.32)) drop-shadow(0 0 24px rgba(62,227,161,.20))}


/* Theo polish v4 — responsive voice stage */
.agent-live-stage{
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.agent-live-content{min-height:100%;justify-content:center;padding-block:8px}
.theo-hologram-face{width:min(370px,58vw,48vh)}
@media(max-width:760px){
  .agent-live-stage{
    inset:0 0 78px 0;
    padding:
      max(10px,env(safe-area-inset-top))
      max(12px,env(safe-area-inset-right))
      max(12px,env(safe-area-inset-bottom))
      max(12px,env(safe-area-inset-left));
    align-items:flex-start;
  }
  .agent-live-content{
    width:100%;
    min-height:100%;
    justify-content:center;
    padding-top:32px;
    padding-bottom:14px;
  }
  .agent-live-close{
    position:fixed;
    right:max(12px,env(safe-area-inset-right));
    top:max(10px,env(safe-area-inset-top));
    z-index:3;
  }
  .theo-hologram-face{
    width:min(292px,76vw,42dvh);
    min-width:205px;
    flex:0 0 auto;
  }
  .theo-3d-canvas{max-height:42dvh}
  .agent-live-content>strong{margin-top:8px;font-size:clamp(19px,5.5vw,23px)}
  .agent-live-content>span{margin-top:5px;font-size:11.5px;line-height:1.35}
  .agent-voice-bars{margin-top:2px;height:20px}
  .agent-dialogue-status{margin-top:9px}
  .agent-voice-mic{margin-top:9px;height:44px;min-width:174px}
  .agent-live-transcript{width:min(94vw,520px);margin-top:8px;font-size:12px;max-height:18dvh;overflow:auto}
}
@media(max-width:420px){
  .agent-live-stage{inset:0 0 72px 0}
  .agent-live-content{padding-top:28px;padding-bottom:8px}
  .theo-hologram-face{width:min(250px,70vw,37dvh);min-width:185px}
  .theo-3d-canvas{max-height:37dvh}
  .agent-live-content>strong{font-size:19px}
  .agent-voice-mic{height:42px;min-width:166px;font-size:12.5px}
}
@media(max-height:680px) and (max-width:760px){
  .theo-hologram-face{width:min(220px,62vw,33dvh);min-width:175px}
  .theo-3d-canvas{max-height:33dvh}
  .agent-live-content>strong{font-size:18px;margin-top:4px}
  .agent-live-content>span{font-size:10.5px}
  .agent-dialogue-status{margin-top:6px}
  .agent-voice-mic{margin-top:6px;height:40px}
}

/* ZHOLO source provenance — compact answer foot + visible thinking sources */
.source-strip{min-width:0}
.source-strip-items{display:flex;align-items:center;min-width:0}
.source-logo{width:20px;height:20px;display:grid;place-items:center;flex:0 0 20px;border-radius:50%;overflow:hidden;background:#f2f2f2;border:1px solid rgba(0,0,0,.07)}
.source-logo img{width:100%;height:100%;object-fit:cover;background:#fff}
.source-logo b{width:100%;height:100%;place-items:center;font-size:8px;line-height:1;font-weight:800;background:#f0f0f0;color:#555}
/* While Zholo is thinking/searching: logo + actual site/domain. */
.source-thinking{margin:10px 0 0}
.source-thinking .source-strip-items{gap:12px;flex-wrap:wrap}
.source-thinking-item{display:inline-flex;align-items:center;gap:7px;color:var(--muted,#8a8a8a);text-decoration:none;font-size:12px;font-weight:650;line-height:1.2;min-width:0}
.source-thinking-item:hover{text-decoration:none;color:inherit}
.source-thinking-item .source-logo{width:21px;height:21px;flex-basis:21px}
.source-thinking-item>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.source-thinking-item>i{width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.38;animation:zholoSourcePulse 1.15s ease-in-out infinite}
.source-thinking-item:nth-child(2)>i{animation-delay:.12s}.source-thinking-item:nth-child(3)>i{animation-delay:.24s}.source-thinking-item:nth-child(4)>i{animation-delay:.36s}.source-thinking-item:nth-child(5)>i{animation-delay:.48s}.source-thinking-item:nth-child(6)>i{animation-delay:.60s}
/* After the answer: tiny source logos only, directly below the answer text. */
.chat-message-assistant{flex-direction:column;align-items:flex-start}
.chat-message-sources{margin-top:7px;max-width:min(680px,92vw)}
.chat-message-sources .source-foot{margin:0}
.source-foot{margin:7px 0 0}
.source-foot .source-strip-items{gap:5px;flex-wrap:wrap}
.source-foot-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;text-decoration:none;opacity:.72;transition:opacity .15s ease,transform .15s ease}
.source-foot-icon:hover{opacity:1;transform:translateY(-1px);text-decoration:none}
.source-foot-icon .source-logo{width:18px;height:18px;flex-basis:18px;border:0;background:transparent}
.source-foot-icon .source-logo b{font-size:7px}
.search-timer-state .source-thinking{grid-column:1/-1;margin-top:9px}
.results-view>.source-foot{margin:0 0 12px}
@keyframes zholoSourcePulse{0%,100%{opacity:.22;transform:scale(.82)}50%{opacity:.72;transform:scale(1)}}
@media(max-width:640px){.source-thinking .source-strip-items{gap:10px}.source-thinking-item>span{max-width:120px}.source-foot .source-strip-items{gap:5px}}
/* v66 explicit dark theme (converted from OS media query) */
html[data-theme="dark"] .source-logo{background:#333;border-color:#444}html[data-theme="dark"] .source-logo b{background:#333;color:#ddd}

/* v54 — ChatGPT-like full-height scroll containers (sidebar + main chat) */
.sidebar{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-width:thin;
  scrollbar-color:rgba(128,128,128,.50) transparent;
  scrollbar-gutter:stable;
}
.sidebar .history{
  flex:0 0 auto !important;
  overflow:visible !important;
}
.sidebar .history-section{
  flex:0 0 auto !important;
  overflow:visible !important;
}
.sidebar .history-scroll-list{
  max-height:none !important;
  overflow:visible !important;
  overscroll-behavior:auto !important;
  scrollbar-width:none !important;
}
.sidebar .history-scroll-list::-webkit-scrollbar{
  display:none !important;
  width:0 !important;
  height:0 !important;
}
.sidebar .side-bottom{
  position:sticky;
  bottom:0;
  z-index:7;
  background:inherit;
  padding-bottom:max(0px,env(safe-area-inset-bottom));
}
.main{
  min-height:0;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-width:thin;
  scrollbar-color:rgba(128,128,128,.50) transparent;
  scrollbar-gutter:stable;
}
.main .topbar{
  position:sticky;
  top:0;
  flex:0 0 56px;
  background:inherit;
}
.workspace:has(.chat-shell){
  flex:0 0 auto !important;
  min-height:calc(100dvh - 56px);
  overflow:visible !important;
}
.hero.chat-mode{
  flex:0 0 auto !important;
  min-height:0 !important;
  overflow:visible !important;
  scrollbar-gutter:auto !important;
}
.workspace:has(.chat-shell) .composer-wrap{
  position:sticky !important;
  bottom:0 !important;
  z-index:12;
}
.sidebar::-webkit-scrollbar,
.main::-webkit-scrollbar{
  display:block;
  width:7px;
  height:7px;
}
.sidebar::-webkit-scrollbar-track,
.main::-webkit-scrollbar-track{
  background:transparent;
}
.sidebar::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb{
  background:rgba(128,128,128,.50);
  border:2px solid transparent;
  background-clip:padding-box;
  border-radius:999px;
}
.sidebar::-webkit-scrollbar-thumb:hover,
.main::-webkit-scrollbar-thumb:hover{
  background:rgba(145,145,145,.78);
  border:2px solid transparent;
  background-clip:padding-box;
}
.sidebar::-webkit-scrollbar-button,
.main::-webkit-scrollbar-button{
  display:none;
  width:0;
  height:0;
}
@media(max-width:760px){
  .sidebar,.main{scrollbar-gutter:auto}
  .workspace:has(.chat-shell){min-height:calc(100dvh - 56px)}
}


/* v55 — legal document actions */
.chat-content-legal-actions{display:flex;justify-content:flex-start;width:100%;padding-left:0}
.legal-document-actions{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 8px;max-width:min(680px,92vw)}
.legal-document-actions .primary-btn,.legal-document-actions .secondary-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:38px;padding:8px 13px;border-radius:12px;font-size:13px;font-weight:700}
@media(max-width:760px){.legal-document-actions{max-width:100%}}


/* v60 — fixed bottom profile + initials avatar */
.sidebar{
  position:relative;
  height:100dvh;
  min-height:100dvh;
}
.sidebar .side-bottom{
  margin-top:auto !important;
  flex:0 0 auto !important;
  position:sticky !important;
  bottom:0 !important;
  left:0;
  right:0;
  z-index:20 !important;
  background:inherit !important;
  padding-top:8px;
  padding-bottom:max(8px,env(safe-area-inset-bottom)) !important;
}
.sidebar .profile-row{
  flex:0 0 auto;
}
.sidebar .profile-row .avatar{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:50%;
  background:#2563eb !important;
  color:#fff !important;
  font-size:12px;
  font-weight:750;
  letter-spacing:.2px;
  display:grid;
  place-items:center;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
}
/* v66 explicit dark theme (converted from OS media query) */

  html[data-theme="dark"] .sidebar .profile-row .avatar{
    background:#2563eb !important;
    color:#fff !important;
  }


/* v63 — authentication / registration form */
.auth-mode-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  padding:4px;
  margin:10px 0 14px;
  border-radius:14px;
  background:rgba(127,127,127,.10);
}
.auth-mode-tab{
  min-height:38px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
}
.auth-mode-tab.active{
  background:rgba(127,127,127,.18);
  font-weight:700;
}
#registerNameFields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.password-rules{
  display:grid;
  gap:5px;
  margin:-2px 0 10px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(127,127,127,.08);
  font-size:12px;
  line-height:1.35;
  opacity:.82;
}
.password-rules span.ok{
  opacity:1;
  font-weight:700;
}
@media(max-width:520px){
  #registerNameFields{grid-template-columns:1fr}
}

/* v64 — clean, strict auth UI. Scoped only to #accountModal. */
#accountModal .account-card{
  width:min(420px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  overflow-y:auto;
  padding:28px;
  border-radius:24px;
}
#accountModal .account-card h3{
  margin:0 42px 6px 0;
  font-size:28px;
  line-height:1.15;
  letter-spacing:-.4px;
}
#accountModal .account-card > p{
  margin:0 0 20px;
  font-size:13px;
  line-height:1.45;
}
#accountModal .auth-mode-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  padding:4px;
  margin:0 0 18px;
  border-radius:14px;
}
#accountModal .auth-mode-tab{
  min-height:42px;
  border-radius:11px;
  font-size:13px;
  font-weight:600;
}

/* Critical: hidden means hidden. Prevents registration fields leaking into login mode. */
#accountModal [hidden]{display:none !important;}

#accountModal #registerNameFields:not([hidden]){
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:0 0 10px;
}
#accountModal .text-input{
  display:block;
  width:100%;
  height:48px;
  margin:0 0 10px !important;
  padding:0 14px;
  border-radius:13px;
  font-size:14px;
}
#accountModal #registerNameFields .text-input{
  margin:0 !important;
  min-width:0;
}
#accountModal .password-rules:not([hidden]){
  display:grid;
  gap:7px;
  margin:2px 0 14px;
  padding:12px 14px;
  border-radius:13px;
  font-size:12px;
  line-height:1.35;
}
#accountModal .password-rules span{
  display:flex;
  align-items:flex-start;
  gap:7px;
}
#accountModal .auth-actions{
  display:block;
  margin:4px 0 0;
}
#accountModal .auth-actions .primary-btn{
  width:100%;
  min-height:46px;
  margin:0 !important;
  border-radius:13px;
}
#accountModal #accountNote{
  margin-top:12px;
  line-height:1.4;
}
#accountModal .modal-close{
  right:16px;
  top:16px;
}
@media(max-width:520px){
  #accountModal{padding:12px;}
  #accountModal .account-card{
    width:100%;
    max-height:calc(100dvh - 24px);
    padding:22px 18px;
    border-radius:20px;
  }
  #accountModal .account-card h3{font-size:24px;}
  #accountModal #registerNameFields:not([hidden]){
    grid-template-columns:1fr;
    gap:10px;
  }
}

/* v65 — account settings */
.settings-modal[hidden],.settings-modal [hidden],.auth-2fa-panel[hidden]{display:none!important}
.settings-card{width:min(860px,calc(100vw - 34px));max-height:calc(100dvh - 34px);overflow:hidden;padding:0;border-radius:24px}
.settings-head{padding:24px 26px 18px;border-bottom:1px solid rgba(127,127,127,.16)}
.settings-head h3{margin:0;font-size:24px;letter-spacing:-.35px}.settings-head p{margin:6px 0 0;color:#777;font-size:13px}
.settings-layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:520px;max-height:calc(100dvh - 150px)}
.settings-nav{padding:16px;border-right:1px solid rgba(127,127,127,.16);display:flex;flex-direction:column;gap:6px;overflow:auto}
.settings-nav-btn{width:100%;min-height:42px;border:0;border-radius:11px;background:transparent;color:inherit;padding:9px 11px;text-align:left;font-size:13px;cursor:pointer}
.settings-nav-btn:hover,.settings-nav-btn.active{background:rgba(127,127,127,.12)}.settings-nav-btn.active{font-weight:700}.settings-nav-btn.danger{color:#c23838}
.settings-content{padding:24px 26px;overflow-y:auto}.settings-section{display:none}.settings-section.active{display:block}.settings-section h4{margin:0 0 7px;font-size:20px}.settings-section>p{margin:0 0 20px;color:#777;font-size:13px;line-height:1.5}
.settings-field,.settings-grid label,.settings-confirm-box label{display:block}.settings-field>span,.settings-grid label>span,.settings-confirm-box label>span{display:block;margin:0 0 7px;font-size:12px;font-weight:700;color:#666}
.settings-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settings-card .text-input{width:100%;height:46px;margin:0 0 14px!important;border-radius:12px}.settings-save{min-width:180px;margin-top:4px}
.theme-choice{display:grid;grid-template-columns:1fr 1fr;gap:14px}.theme-choice>button{border:1px solid rgba(127,127,127,.22);border-radius:16px;background:transparent;color:inherit;padding:14px;text-align:left;cursor:pointer}.theme-choice>button.active{border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,.14)}.theme-choice strong,.theme-choice small{display:block}.theme-choice small{color:#777;margin-top:3px}.theme-preview{display:block;height:86px;border-radius:11px;margin-bottom:12px;border:1px solid rgba(127,127,127,.18)}.theme-preview.dark{background:linear-gradient(135deg,#171717 0 32%,#212121 32% 100%)}.theme-preview.light{background:linear-gradient(135deg,#f7f7f7 0 32%,#fff 32% 100%)}
.security-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px;border:1px solid rgba(127,127,127,.18);border-radius:14px;margin-bottom:14px}.security-row strong{font-size:14px}.security-row p{margin:5px 0 0;color:#777;font-size:12px;line-height:1.45;max-width:520px}.security-status{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:rgba(127,127,127,.12);font-size:11px;font-weight:700}.security-status.on{background:#e7f7ed;color:#247044}
.settings-confirm-box{margin-top:14px;padding:14px;border:1px solid rgba(127,127,127,.18);border-radius:14px;background:rgba(127,127,127,.05)}.settings-confirm-box .primary-btn,.settings-confirm-box .danger-btn{min-width:170px}
.settings-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.settings-stats>div{padding:18px 14px;border:1px solid rgba(127,127,127,.18);border-radius:14px}.settings-stats strong{display:block;font-size:24px}.settings-stats span{display:block;margin-top:5px;color:#777;font-size:11px}
.danger-zone{padding:18px;border:1px solid rgba(210,65,65,.30);border-radius:15px;background:rgba(210,65,65,.05)}.danger-zone strong{color:#b52f2f}.danger-zone p{font-size:13px;color:#777;line-height:1.5}.danger-btn{border:0;border-radius:11px;background:#c73838;color:#fff;min-height:42px;padding:0 14px;font-weight:700;cursor:pointer}.danger-btn:hover{background:#b82e2e}.danger-confirm{border-color:rgba(210,65,65,.30)}
.auth-2fa-panel{margin-top:2px}.auth-2fa-panel>label{display:block;font-size:12px;font-weight:700;margin-bottom:7px}.auth-2fa-panel .auth-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.auth-2fa-panel .secondary-btn{width:100%;min-height:46px;border-radius:13px}
@media(max-width:720px){.settings-card{width:100%;max-height:calc(100dvh - 20px);border-radius:20px}.settings-layout{grid-template-columns:1fr;max-height:calc(100dvh - 110px)}.settings-nav{flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid rgba(127,127,127,.16);padding:10px}.settings-nav-btn{width:auto;white-space:nowrap}.settings-content{padding:20px 16px}.settings-grid.two,.theme-choice,.settings-stats{grid-template-columns:1fr 1fr}.auth-2fa-panel .auth-actions{grid-template-columns:1fr!important}}
@media(max-width:480px){.settings-grid.two,.theme-choice,.settings-stats{grid-template-columns:1fr}.settings-head{padding:21px 18px 15px}.settings-stats{gap:8px}}

/* Explicit theme selection. These rules intentionally come last. */
html[data-theme="dark"],html[data-theme="dark"] body,html[data-theme="dark"] .main{background:#212121!important;color:#ececec!important;color-scheme:dark}
html[data-theme="dark"] .sidebar{background:#171717!important;border-color:#171717!important}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .workspace{background:#212121!important}
html[data-theme="dark"] .composer,html[data-theme="dark"] .account-card,html[data-theme="dark"] .parse-card,html[data-theme="dark"] .result-card{background:#262626!important;color:#ececec!important;border-color:#3b3b3b!important;box-shadow:none!important}
html[data-theme="dark"] .composer{background:#303030!important}html[data-theme="dark"] textarea,html[data-theme="dark"] input,html[data-theme="dark"] select{color:#ececec}
html[data-theme="dark"] .text-input,html[data-theme="dark"] .secondary-btn,html[data-theme="dark"] .round-tool,html[data-theme="dark"] .tool-label{background:#303030!important;color:#ececec!important;border-color:#494949!important}
html[data-theme="dark"] .icon-btn:hover,html[data-theme="dark"] .nav-item:hover,html[data-theme="dark"] .profile-row:hover,html[data-theme="dark"] .nav-item.active{background:#2a2a2a!important}
html[data-theme="dark"] .settings-head,html[data-theme="dark"] .settings-nav{border-color:#3a3a3a}html[data-theme="dark"] .settings-section>p,html[data-theme="dark"] .settings-head p,html[data-theme="dark"] .settings-field>span,html[data-theme="dark"] .settings-grid label>span,html[data-theme="dark"] .settings-confirm-box label>span,html[data-theme="dark"] .security-row p,html[data-theme="dark"] .settings-stats span,html[data-theme="dark"] .danger-zone p{color:#aaa}
html[data-theme="dark"] .settings-nav-btn:hover,html[data-theme="dark"] .settings-nav-btn.active{background:#303030}html[data-theme="dark"] .security-row,html[data-theme="dark"] .settings-stats>div,html[data-theme="dark"] .theme-choice>button,html[data-theme="dark"] .settings-confirm-box{border-color:#404040;background:#292929}
html[data-theme="dark"] .security-status.on{background:#20362a;color:#8cd7aa}

html[data-theme="light"],html[data-theme="light"] body,html[data-theme="light"] .main{background:#fff!important;color:#0d0d0d!important;color-scheme:light}
html[data-theme="light"] .sidebar{background:#f9f9f9!important;border-color:#f1f1f1!important}
html[data-theme="light"] .topbar,html[data-theme="light"] .workspace{background:#fff!important}
html[data-theme="light"] .composer,html[data-theme="light"] .account-card,html[data-theme="light"] .parse-card,html[data-theme="light"] .result-card{background:#fff!important;color:#0d0d0d!important;border-color:#e5e5e5!important}
html[data-theme="light"] textarea,html[data-theme="light"] input,html[data-theme="light"] select{color:#111}
html[data-theme="light"] .text-input,html[data-theme="light"] .secondary-btn,html[data-theme="light"] .round-tool,html[data-theme="light"] .tool-label{background:#fff!important;color:#111!important;border-color:#e5e5e5!important}
html[data-theme="light"] .icon-btn:hover,html[data-theme="light"] .nav-item:hover,html[data-theme="light"] .profile-row:hover,html[data-theme="light"] .nav-item.active{background:#ececec!important}
html[data-theme="light"] .settings-head,html[data-theme="light"] .settings-nav{border-color:#ececec}html[data-theme="light"] .settings-section>p,html[data-theme="light"] .settings-head p,html[data-theme="light"] .settings-field>span,html[data-theme="light"] .settings-grid label>span,html[data-theme="light"] .settings-confirm-box label>span,html[data-theme="light"] .security-row p,html[data-theme="light"] .settings-stats span,html[data-theme="light"] .danger-zone p{color:#777}
html[data-theme="light"] .settings-nav-btn:hover,html[data-theme="light"] .settings-nav-btn.active{background:#f1f1f1}html[data-theme="light"] .security-row,html[data-theme="light"] .settings-stats>div,html[data-theme="light"] .theme-choice>button,html[data-theme="light"] .settings-confirm-box{border-color:#e7e7e7;background:#fff}


/* v66 — Theme system: automatic OS mode + fully explicit manual themes */
.theme-auto-card{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:16px 17px;margin:0 0 18px;border:1px solid rgba(127,127,127,.18);
  border-radius:16px;background:rgba(127,127,127,.045)
}
.theme-auto-copy{min-width:0}.theme-auto-copy strong{display:block;font-size:14px}.theme-auto-copy p{margin:5px 0 0!important;font-size:12px!important;line-height:1.45!important;color:#777}
.theme-switch{position:relative;display:inline-flex;width:48px;height:28px;flex:0 0 auto;cursor:pointer}
.theme-switch input{position:absolute;opacity:0;pointer-events:none}
.theme-switch-track{position:absolute;inset:0;border-radius:999px;background:#c8c8c8;transition:.2s ease;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.theme-switch-track::after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.22);transition:.2s ease}
.theme-switch input:checked + .theme-switch-track{background:#3b82f6}.theme-switch input:checked + .theme-switch-track::after{transform:translateX(20px)}
.theme-switch input:focus-visible + .theme-switch-track{outline:3px solid rgba(59,130,246,.25);outline-offset:2px}
.theme-system-state{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:5px 8px;border-radius:999px;background:rgba(127,127,127,.10);font-size:11px;font-weight:650;color:#666}
.theme-manual-wrap{transition:.18s ease}.theme-manual-wrap.is-disabled{opacity:.46;filter:saturate(.45)}.theme-manual-wrap.is-disabled .theme-choice>button{cursor:not-allowed;pointer-events:none}
.theme-choice>button{position:relative;overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease}
.theme-choice>button:hover{transform:translateY(-1px)}
.theme-choice>button.active::after{content:"✓";position:absolute;right:12px;top:12px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#3b82f6;color:#fff;font-size:12px;font-weight:800}
.theme-preview{position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(127,127,127,.08)}
.theme-preview::before{content:"";position:absolute;left:10px;top:10px;width:27%;bottom:10px;border-radius:7px;background:rgba(127,127,127,.18)}
.theme-preview::after{content:"";position:absolute;left:36%;right:10px;bottom:12px;height:18px;border-radius:999px;background:rgba(127,127,127,.18)}

html[data-theme="dark"]{color-scheme:dark;background:#202020}
html[data-theme="dark"] body{background:#202020;color:#ececec}
html[data-theme="dark"] .settings-card{background:#252525;color:#ededed;box-shadow:0 24px 70px rgba(0,0,0,.44)}
html[data-theme="dark"] .theme-auto-card{background:#292929;border-color:#404040}
html[data-theme="dark"] .theme-auto-copy p,html[data-theme="dark"] .theme-system-state{color:#aaa}
html[data-theme="dark"] .theme-system-state{background:#333}
html[data-theme="dark"] .theme-preview.dark{background:linear-gradient(135deg,#111 0 31%,#232323 31% 100%)}
html[data-theme="dark"] .theme-preview.light{background:linear-gradient(135deg,#eee 0 31%,#fff 31% 100%)}
html[data-theme="dark"] ::selection{background:#496d9b;color:#fff}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8f8f8f}
html[data-theme="dark"] select{background-color:#303030}
html[data-theme="dark"] .history-menu{background:#2a2a2a!important;border-color:#424242!important;box-shadow:0 14px 38px rgba(0,0,0,.42)!important}
html[data-theme="dark"] .history-menu button{color:#e9e9e9!important}
html[data-theme="dark"] .history-menu button:hover{background:#373737!important}
html[data-theme="dark"] .modal-backdrop,html[data-theme="dark"] .account-modal{--modal-overlay:rgba(0,0,0,.55)}

html[data-theme="light"]{color-scheme:light;background:#fff}
html[data-theme="light"] body{background:#fff;color:#111}
html[data-theme="light"] .settings-card{background:#fff;color:#111;box-shadow:0 24px 70px rgba(25,35,50,.15)}
html[data-theme="light"] .theme-auto-card{background:#f8fafc;border-color:#e5e7eb}
html[data-theme="light"] .theme-auto-copy p,html[data-theme="light"] .theme-system-state{color:#667085}
html[data-theme="light"] .theme-system-state{background:#eef2f6}
html[data-theme="light"] .theme-preview.dark{background:linear-gradient(135deg,#171717 0 31%,#292929 31% 100%)}
html[data-theme="light"] .theme-preview.light{background:linear-gradient(135deg,#f2f4f7 0 31%,#fff 31% 100%)}
html[data-theme="light"] ::selection{background:#c9def8;color:#10243d}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#9298a1}
html[data-theme="light"] .history-menu{background:#fff!important;border-color:#e7e7e7!important;box-shadow:0 14px 38px rgba(20,30,45,.14)!important}
html[data-theme="light"] .history-menu button{color:#202020!important}
html[data-theme="light"] .history-menu button:hover{background:#f3f4f6!important}

html[data-theme="dark"] .sidebar::-webkit-scrollbar-thumb,html[data-theme="dark"] .main::-webkit-scrollbar-thumb{background:rgba(170,170,170,.46)!important}
html[data-theme="light"] .sidebar::-webkit-scrollbar-thumb,html[data-theme="light"] .main::-webkit-scrollbar-thumb{background:rgba(100,110,125,.30)!important}
@media(max-width:520px){.theme-auto-card{align-items:center}.theme-choice{grid-template-columns:1fr!important}}
/* v72 renovation room planner */
.renovation-planner-card{width:min(1180px,96vw);max-width:1180px;padding:22px}.renovation-planner-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}.renovation-planner-actions{display:flex;gap:8px;flex-wrap:wrap}.renovation-planner-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}.renovation-canvas-wrap{position:relative;min-height:560px;border:1px solid var(--border,#ddd);border-radius:18px;overflow:hidden;background:var(--card-bg,#fff)}#renovationCanvas{width:100%;height:560px;display:block;touch-action:none;background-image:linear-gradient(rgba(127,127,127,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(127,127,127,.12) 1px,transparent 1px);background-size:24px 24px}.renovation-canvas-hint{position:absolute;left:12px;bottom:10px;font-size:12px;opacity:.7;background:var(--card-bg,#fff);padding:6px 9px;border-radius:10px}.renovation-room-editor{border:1px solid var(--border,#ddd);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:12px}.renovation-room-editor label{display:flex;flex-direction:column;gap:6px;font-size:13px}.planner-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.renovation-plan-summary{padding:10px 12px;border-radius:12px;background:rgba(127,127,127,.08);font-weight:600}.planner-use-btn{margin-top:auto}.renovation-room-label{pointer-events:none}@media(max-width:850px){.renovation-planner-layout{grid-template-columns:1fr}.renovation-canvas-wrap{min-height:420px}#renovationCanvas{height:420px}.renovation-planner-head{flex-direction:column}.renovation-room-editor{max-height:none}}
/* v78 renovation precision fields */
.renovation-room-editor label small{font-size:11px;line-height:1.35;opacity:.66}.planner-check{flex-direction:row!important;align-items:center;gap:8px!important;padding:8px 0}.planner-check input{width:18px;height:18px;margin:0}

/* v79 quiet informational links */
.quiet-info-links{display:flex;align-items:center;justify-content:center;gap:6px;margin:12px auto 0;min-height:18px;font-size:10px;line-height:1.3;color:#a0a0a0;user-select:none}
.quiet-info-links a{color:inherit;text-decoration:none;transition:color .15s ease}
.quiet-info-links a:hover,.quiet-info-links a:focus-visible{color:#666;text-decoration:underline;text-underline-offset:2px}
html[data-theme="dark"] .quiet-info-links{color:#777}
html[data-theme="dark"] .quiet-info-links a:hover,html[data-theme="dark"] .quiet-info-links a:focus-visible{color:#aaa}
@media(max-width:520px){.quiet-info-links{font-size:9px;gap:5px;margin-top:10px}}

/* v80 — chat send button soft blue */
.send-btn,
html[data-theme="dark"] .send-btn{
  background:#3b82f6;
  color:#fff;
}
.send-btn:hover:not(:disabled),
html[data-theme="dark"] .send-btn:hover:not(:disabled){
  background:#3277e6;
}
.send-btn:disabled,
html[data-theme="dark"] .send-btn:disabled{
  background:#b8cff7;
  color:#fff;
}

/* v81 — keep the centered Zholo logo background transparent in dark theme */
html[data-theme="dark"] .mini-logo{
  background:transparent;
  color:inherit;
  box-shadow:none;
}

/* v83 — route/distance result card */
.distance-route-card{width:min(760px,100%);border:1px solid #e3e3e3;border-radius:18px;background:#fff;overflow:hidden}
.distance-route-head{padding:16px 18px 10px}.distance-route-head h3{margin:4px 0 0;font-size:16px;line-height:1.45;font-weight:650}.distance-route-head .eyebrow{font-size:11px;color:#777;text-transform:uppercase;letter-spacing:.04em}
.distance-route-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 18px 14px}.distance-route-stat{border:1px solid #e8e8e8;border-radius:14px;padding:12px 13px;display:flex;flex-direction:column;gap:3px;min-width:0}.distance-route-stat span{font-size:12px;color:#666}.distance-route-stat strong{font-size:20px;line-height:1.15}.distance-route-stat small{font-size:12px;color:#777}
.distance-route-map{height:330px;width:100%;background:#f1f1f1;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8;position:relative}.distance-route-map .leaflet-control-attribution{font-size:9px}.distance-route-map-error{height:100%;display:grid;place-items:center;text-align:center;padding:24px;color:#777;font-size:13px}
.distance-route-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 16px 12px;font-size:11px;color:#666}.distance-route-legend span{display:flex;align-items:center;gap:6px}.distance-route-legend em{margin-left:auto;font-style:normal;color:#999}.route-line{display:inline-block;width:24px;height:0;border-top:4px solid;border-radius:999px}.route-line-car{border-color:#3b82f6}.route-line-walk{border-color:#22a06b;border-top-style:dashed}
html[data-theme="dark"] .distance-route-card{background:#2b2b2b;border-color:#444}html[data-theme="dark"] .distance-route-stat{border-color:#454545;background:#303030}html[data-theme="dark"] .distance-route-head .eyebrow,html[data-theme="dark"] .distance-route-stat span,html[data-theme="dark"] .distance-route-stat small,html[data-theme="dark"] .distance-route-legend{color:#aaa}html[data-theme="dark"] .distance-route-map{background:#262626;border-color:#444}
@media(max-width:620px){.distance-route-stats{grid-template-columns:1fr}.distance-route-map{height:280px}.distance-route-legend em{width:100%;margin-left:0}}

/* v88 — strict route address clarification */
.route-clarification-card{width:min(760px,100%);border:1px solid #e3e3e3;border-radius:16px;background:#fff;padding:16px 18px;display:flex;flex-direction:column;gap:10px}.route-clarification-card h3{margin:0;font-size:15px}.route-clarification-card p{margin:0;font-size:13px;line-height:1.55;color:#555}.route-clarification-card small{font-size:11px;line-height:1.45;color:#888}.route-choice-list{display:grid;gap:8px}.route-choice-btn{width:100%;border:1px solid #e5e5e5;border-radius:12px;background:#fafafa;color:inherit;padding:10px 12px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:3px}.route-choice-btn strong{font-size:12px;line-height:1.45}.route-choice-btn span{font-size:11px;color:#777}.route-choice-btn:hover{background:#f3f3f3}.route-choice-btn:disabled{opacity:.55;cursor:default}html[data-theme="dark"] .route-clarification-card{background:#2b2b2b;border-color:#444}html[data-theme="dark"] .route-clarification-card p,html[data-theme="dark"] .route-clarification-card small,html[data-theme="dark"] .route-choice-btn span{color:#aaa}html[data-theme="dark"] .route-choice-btn{background:#303030;border-color:#454545}html[data-theme="dark"] .route-choice-btn:hover{background:#383838}


/* v89 — route mode clarity + keep tall route cards above sticky composer */
.route-mode-btn{font:inherit;color:inherit;text-align:left;cursor:pointer;background:transparent;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.route-mode-btn.active{border-color:#8fb7f6;background:#f7faff;box-shadow:inset 0 0 0 1px rgba(59,130,246,.12)}
.route-mode-btn:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}
html[data-theme="dark"] .route-mode-btn.active{border-color:#5d82bc;background:#303743}
.workspace:has(.chat-shell) .chat-stage{padding-bottom:124px!important}
.distance-route-card{margin-bottom:18px;position:relative;z-index:1}
.workspace:has(.chat-shell) .composer-wrap{z-index:12!important}
@media(max-width:760px){.workspace:has(.chat-shell) .chat-stage{padding-bottom:132px!important}.distance-route-card{margin-bottom:12px}}

/* v91 — confirm exact addresses before calculating/showing route */
.route-confirm-card{border:1px solid #e3e3e3;border-radius:18px;padding:18px;background:#fff;margin:10px 0 16px}.route-confirm-card h3{margin:0 0 14px;font-size:16px}.route-confirm-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.route-confirm-grid>div{border:1px solid #e9e9e9;border-radius:13px;padding:12px;min-width:0}.route-confirm-grid span{display:block;color:#777;font-size:11px;margin-bottom:5px}.route-confirm-grid strong{display:block;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.route-confirm-card p{margin:12px 0;color:#777;font-size:12px;line-height:1.5}.route-confirm-actions{display:flex;gap:8px;flex-wrap:wrap}.route-confirm-btn,.route-cancel-btn{border-radius:999px;padding:9px 13px;font-size:12px;font-weight:650;cursor:pointer}.route-confirm-btn{border:0;background:#2f80ed;color:#fff}.route-cancel-btn{border:1px solid #ddd;background:#fff;color:#444}.route-confirm-btn:disabled,.route-cancel-btn:disabled{opacity:.55;cursor:default}html[data-theme="dark"] .route-confirm-card{background:#2b2b2b;border-color:#454545}html[data-theme="dark"] .route-confirm-grid>div{border-color:#454545;background:#303030}html[data-theme="dark"] .route-confirm-grid span,html[data-theme="dark"] .route-confirm-card p{color:#aaa}html[data-theme="dark"] .route-cancel-btn{background:#303030;border-color:#505050;color:#ddd}@media(max-width:640px){.route-confirm-grid{grid-template-columns:1fr}.route-confirm-actions{flex-direction:column}.route-confirm-btn,.route-cancel-btn{width:100%;min-height:44px}}

/* v95 — Zholo public transport cards */
.transit-card{width:min(760px,100%);border:1px solid #e3e3e3;border-radius:18px;background:#fff;overflow:hidden;margin:10px 0 18px}.transit-head{padding:17px 18px 10px}.transit-head .eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#7a7a7a;margin-bottom:8px}.transit-head h3{font-size:16px;line-height:1.45;margin:0;overflow-wrap:anywhere}.transit-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 18px 14px}.transit-summary>div{border:1px solid #e8e8e8;border-radius:14px;padding:12px}.transit-summary span,.transit-summary small{display:block;color:#777;font-size:11px}.transit-summary strong{display:block;font-size:21px;margin:5px 0}.transit-steps{padding:0 18px 14px;display:flex;flex-direction:column;gap:8px}.transit-step{display:grid;grid-template-columns:34px 1fr;gap:10px;border:1px solid #ececec;border-radius:13px;padding:11px 12px}.transit-step-icon{font-size:18px}.transit-step strong{font-size:13px}.transit-step span,.transit-step p,.transit-step small{display:block;margin:3px 0 0;font-size:11px;color:#666;line-height:1.45}.transit-step-ride{border-color:#dce9fb;background:#f8fbff}.transit-alt-note{padding:0 18px 14px;color:#777;font-size:11px;line-height:1.5}.transit-map{border-top:1px solid #e5e5e5}.transit-stop-list{padding:0 18px 14px;display:flex;flex-direction:column;gap:8px}.transit-stop-row{display:grid;grid-template-columns:27px 1fr;gap:9px;border:1px solid #ececec;border-radius:13px;padding:10px 11px}.transit-stop-row>span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#f1f1f1;font-size:11px;font-weight:700}.transit-stop-row strong{font-size:13px}.transit-stop-row p,.transit-stop-row small{margin:3px 0 0;color:#777;font-size:11px;line-height:1.4}html[data-theme="dark"] .transit-card{background:#2b2b2b;border-color:#454545}html[data-theme="dark"] .transit-summary>div,html[data-theme="dark"] .transit-step,html[data-theme="dark"] .transit-stop-row{background:#303030;border-color:#454545}html[data-theme="dark"] .transit-step-ride{background:#2d333b;border-color:#44576f}html[data-theme="dark"] .transit-head .eyebrow,html[data-theme="dark"] .transit-summary span,html[data-theme="dark"] .transit-summary small,html[data-theme="dark"] .transit-step span,html[data-theme="dark"] .transit-step p,html[data-theme="dark"] .transit-step small,html[data-theme="dark"] .transit-alt-note,html[data-theme="dark"] .transit-stop-row p,html[data-theme="dark"] .transit-stop-row small{color:#aaa}html[data-theme="dark"] .transit-stop-row>span{background:#3a3a3a}@media(max-width:640px){.transit-summary{grid-template-columns:1fr}.transit-head,.transit-summary,.transit-steps,.transit-stop-list{padding-left:13px;padding-right:13px}.transit-map{min-height:280px}}

/* v107 — mobile chat layout polish (presentation only) */
@media (max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .app,.main,.workspace,.hero.chat-mode,.chat-shell,.chat-thread,.chat-stage,.composer-wrap,
  .results-view,.results-grid,.result-card,.parse-card,.distance-route-card,.route-confirm-card,
  .route-clarification-card,.transit-card{min-width:0;max-width:100%}

  .sidebar{width:min(86vw,320px);flex-basis:min(86vw,320px);padding-left:8px;padding-right:8px}
  .topbar{height:52px;min-height:52px;padding:0 8px;gap:4px}
  .topbar .icon-btn{width:36px;height:36px}
  .model-title{font-size:16px;padding:6px 7px}
  .login-btn{padding:8px 12px;font-size:12px;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  .workspace{width:100%;padding-left:8px!important;padding-right:8px!important;padding-bottom:max(6px,env(safe-area-inset-bottom))!important}
  .workspace:has(.chat-shell){min-height:calc(100dvh - 52px)!important}
  .hero.chat-mode{padding:5px 0 10px!important;overflow:visible!important}
  .chat-shell{width:100%;padding-bottom:0}
  .chat-thread{width:100%;gap:11px;padding:2px 2px 12px}
  .chat-message-row{width:100%;min-width:0}
  .chat-message-bubble{max-width:90%;font-size:14px;line-height:1.55;word-break:break-word;overflow-wrap:anywhere}
  .chat-message-user .chat-message-bubble{max-width:88%;padding:9px 12px;border-radius:17px 17px 5px 17px}
  .chat-message-assistant{width:100%}
  .chat-message-assistant .chat-message-bubble{width:100%;max-width:100%;padding:3px 2px}
  .chat-message-sources{max-width:100%;width:100%;overflow:hidden}
  .source-strip-items{max-width:100%;flex-wrap:wrap;row-gap:5px}
  .source-thinking-item>span{max-width:104px}

  .chat-stage{width:100%;margin:0 auto 8px;padding:0 0 112px!important;overflow:visible}
  .chat-stage>*{max-width:100%}

  .composer-wrap,.workspace:has(.chat-shell) .composer-wrap{
    width:100%!important;
    padding:6px 0 max(4px,env(safe-area-inset-bottom))!important;
    margin:0!important;
    position:sticky!important;
    bottom:0!important;
    z-index:20!important;
  }
  .composer{width:100%;border-radius:22px;padding:8px 8px 7px;min-height:54px}
  .composer textarea{min-height:36px;max-height:120px;padding:7px 4px 6px;font-size:16px;line-height:1.35}
  .composer-tools{min-width:0;gap:2px}
  .round-tool,.send-btn{width:38px;height:38px;flex:0 0 38px}
  .tool-label{max-width:42vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .quiet-info-links{margin-top:5px!important;padding-bottom:1px;white-space:normal;text-align:center;line-height:1.35}

  .results-view{width:100%}
  .results-head{gap:8px;margin-bottom:10px;padding:0 2px}
  .results-head h2{font-size:21px;line-height:1.2}
  .results-head p{font-size:12px;line-height:1.4}
  .results-grid{grid-template-columns:1fr!important;gap:10px!important;padding:0 0 8px!important;width:100%;overflow:visible!important}
  .result-card{width:100%;border-radius:15px}
  .result-image{height:185px}
  .result-body{padding:12px}
  .result-price{font-size:18px}
  .result-body h3{font-size:13px;margin:6px 0;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .result-meta,.result-place{font-size:11px;line-height:1.4;overflow-wrap:anywhere}
  .result-foot{gap:6px;flex-wrap:wrap;margin-top:10px;padding-top:9px}
  .result-link{margin-left:auto}

  .parse-card{padding:14px!important;border-radius:15px!important}
  .parse-head h2{font-size:19px}
  .parse-row,.query-preview{overflow-wrap:anywhere}

  .distance-route-card,.route-confirm-card,.route-clarification-card,.transit-card{width:100%;border-radius:14px;margin-left:0;margin-right:0}
  .distance-route-head{padding:13px 13px 8px}
  .distance-route-head h3{font-size:14px}
  .distance-route-stats{grid-template-columns:1fr 1fr!important;gap:7px;padding:0 12px 10px}
  .distance-route-stat{padding:9px 10px;border-radius:11px}
  .distance-route-stat strong{font-size:18px}
  .distance-route-map{height:245px!important}
  .distance-route-legend{gap:8px;padding:8px 12px 10px}
  .distance-route-legend em{width:100%;margin-left:0}

  .route-confirm-card{padding:13px;margin:6px 0 10px}
  .route-confirm-card h3{font-size:14px;margin-bottom:10px}
  .route-confirm-grid{grid-template-columns:1fr!important;gap:7px}
  .route-confirm-grid>div{padding:9px 10px;border-radius:11px}
  .route-confirm-actions{display:grid;grid-template-columns:1fr;gap:7px}
  .route-confirm-btn,.route-cancel-btn{width:100%;min-height:42px}
  .route-clarification-card{padding:13px;gap:8px}
  .route-choice-btn{padding:9px 10px;border-radius:11px}

  .transit-head{padding:13px 13px 8px!important}
  .transit-head h3{font-size:15px}
  .transit-summary{grid-template-columns:1fr 1fr!important;gap:7px;padding:0 12px 10px!important}
  .transit-summary>div{padding:9px 10px;border-radius:11px}
  .transit-summary strong{font-size:18px}
  .transit-steps{padding:0 12px 10px!important;gap:7px}
  .transit-step{grid-template-columns:28px minmax(0,1fr);gap:7px;padding:9px 10px;border-radius:11px}
  .transit-step-icon{font-size:16px}
  .transit-step strong{font-size:12px;overflow-wrap:anywhere}
  .transit-step span,.transit-step p,.transit-step small{font-size:10.5px;overflow-wrap:anywhere}
  .transit-stop-list{padding:0 12px 10px!important;gap:7px}
  .transit-stop-row{grid-template-columns:25px minmax(0,1fr);gap:7px;padding:9px 10px;border-radius:11px}
  .transit-stop-row strong{font-size:12px;overflow-wrap:anywhere}
  .transit-map{min-height:0!important;height:245px!important;overflow:hidden}
  .transit-map .leaflet-container{height:245px!important;min-height:245px!important}

  .leaflet-control-attribution{font-size:8px!important;max-width:76vw;white-space:normal!important;line-height:1.15}
  .leaflet-control-zoom a{width:32px!important;height:32px!important;line-height:32px!important}

  .seller-question,.locked-results{padding:12px;border-radius:14px}
  .legal-document-actions{width:100%;display:grid;grid-template-columns:1fr;gap:7px}
  .legal-document-actions .primary-btn,.legal-document-actions .secondary-btn{width:100%}
}

@media (max-width:390px){
  .workspace{padding-left:6px!important;padding-right:6px!important}
  .chat-message-user .chat-message-bubble{max-width:92%}
  .distance-route-stats,.transit-summary{grid-template-columns:1fr!important}
  .result-image{height:170px}
  .distance-route-map,.transit-map,.transit-map .leaflet-container{height:225px!important;min-height:225px!important}
  .tool-label{display:none}
}

/* v108 — mobile off-canvas sidebar / viewport width hard fix */
@media (max-width:760px){
  .app{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:block!important;
    overflow-x:hidden!important;
  }
  .sidebar{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    height:100dvh!important;
    min-height:100dvh!important;
    width:min(86vw,320px)!important;
    max-width:min(86vw,320px)!important;
    flex:none!important;
    margin:0!important;
    transform:translateX(-100%)!important;
    z-index:30!important;
  }
  .sidebar.mobile-open{
    transform:translateX(0)!important;
  }
  .main{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    flex:none!important;
    overflow-x:hidden!important;
  }
  .topbar,.workspace{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    transform:none!important;
  }
  .workspace{
    align-items:stretch!important;
  }
  .hero,.hero:not(.chat-mode),.hero.chat-mode,
  .chat-shell,.chat-thread,.chat-stage,.composer-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    transform:none!important;
  }
  .hero:not(.chat-mode){
    align-items:center!important;
    text-align:center!important;
  }
  body.sidebar-collapsed .sidebar,
  .sidebar-collapsed .sidebar{
    margin-left:0!important;
  }
}


/* v109 — composer speech-to-text microphone */
.composer{
  grid-template-columns:44px minmax(0,1fr) 44px 44px;
}
.composer-mic-btn{
  grid-column:3;
  grid-row:1;
  align-self:end;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:transparent;
  color:#4a4a4a;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.composer-mic-btn:hover{background:#e4e4e4;transform:scale(1.02)}
.composer-mic-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.composer-mic-btn.is-listening{
  background:#e9eefb;
  color:#2f7df4;
  animation:zholoComposerMicPulse 1.25s ease-in-out infinite;
}
.send-btn{grid-column:4}
@keyframes zholoComposerMicPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@media(max-width:760px){
  .composer{grid-template-columns:40px minmax(0,1fr) 40px 40px;column-gap:5px}
  .composer-mic-btn,.round-tool,.send-btn{width:40px;height:40px}
  .composer-mic-btn svg{width:20px;height:20px}
}
html[data-theme="dark"] .composer-mic-btn{color:#e4e4e4}
html[data-theme="dark"] .composer-mic-btn:hover{background:#3a3a3a}
html[data-theme="dark"] .composer-mic-btn.is-listening{background:#27395a;color:#7eb1ff}
@media(prefers-reduced-motion:reduce){.composer-mic-btn.is-listening{animation:none}}

/* v114 — grouped real-estate menu */
.real-estate-menu-v114{padding:8px 4px 10px 34px;display:flex;flex-direction:column;gap:9px}
.real-estate-menu-v114[hidden]{display:none!important}
.re-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.re-quick-action{position:relative;min-width:0;min-height:42px;border:1px solid #dedede;border-radius:12px;background:#fff;color:#333;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 6px;font-size:10.5px;font-weight:650;cursor:pointer;white-space:nowrap}
.re-quick-action svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.re-quick-action.is-primary{border-color:#9ac7ff;background:#edf6ff;color:#1674d2}
.re-quick-action:hover{background:#f4f4f4}
.re-quick-action.is-primary:hover{background:#e5f2ff}
.re-quick-action-with-badge{padding-right:16px}
.re-quick-badge{position:absolute;right:4px;top:3px;min-width:16px;height:16px;padding:0 4px;font-size:9px}
.re-menu-section{border:1px solid #e7e7e7;border-radius:13px;background:rgba(255,255,255,.72);overflow:hidden}
.re-menu-section>summary{list-style:none;min-height:40px;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;font-size:11.5px;font-weight:750;color:#242424}
.re-menu-section>summary::-webkit-details-marker{display:none}
.re-menu-section>summary svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform .18s ease;color:#777}
.re-menu-section[open]>summary svg{transform:rotate(180deg)}
.re-menu-items{padding:0 5px 6px}
.re-menu-item{min-height:34px!important;padding:6px 7px!important;border-radius:9px!important;gap:8px!important;font-size:11.5px!important;color:#4a4a4a!important}
.re-menu-item:hover{transform:none!important}
.re-item-icon{width:20px;flex:0 0 20px;display:grid;place-items:center;font-size:15px;line-height:1;color:#777}
.re-item-label{flex:1;text-align:left}
.real-estate-menu-v114 .nav-count-badge{margin-left:auto}
html[data-theme="dark"] .re-quick-action{background:#222;border-color:#383838;color:#ddd}
html[data-theme="dark"] .re-quick-action.is-primary{background:#172d43;border-color:#2e79ba;color:#73b8ff}
html[data-theme="dark"] .re-quick-action:hover{background:#2b2b2b}
html[data-theme="dark"] .re-quick-action.is-primary:hover{background:#1b3853}
html[data-theme="dark"] .re-menu-section{background:#1e1e1e;border-color:#313131}
html[data-theme="dark"] .re-menu-section>summary{color:#eee}
html[data-theme="dark"] .re-menu-section>summary svg{color:#888}
html[data-theme="dark"] .re-menu-item{color:#cfcfcf!important}
html[data-theme="dark"] .re-menu-item:hover{background:#292929!important;color:#fff!important}
html[data-theme="dark"] .re-item-icon{color:#9f9f9f}
@media(max-width:760px){
  .real-estate-menu-v114{padding:10px 8px 14px 44px;gap:10px}
  .re-quick-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .re-quick-action{min-height:44px;font-size:11px;border-radius:13px;padding:8px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .re-quick-action-with-badge{grid-column:1 / -1;padding-left:14px;padding-right:38px;justify-content:flex-start}
  .re-quick-badge{right:12px;top:50%;transform:translateY(-50%);min-width:20px;height:20px;font-size:10px}
  .re-menu-section{border-radius:14px}
  .re-menu-section>summary{min-height:44px;padding:10px 12px;font-size:12.5px}
  .re-menu-items{padding:0 6px 7px}
  .re-menu-item{min-height:42px!important;padding:8px 9px!important;font-size:13px!important}
  .re-item-icon{width:22px;flex-basis:22px;font-size:16px}
}

/* v116 — grouped real-estate menu width + quick-actions hardening (mobile + desktop) */
.real-estate-menu-v114{
  width:100%;
  max-width:none;
  padding:8px 0 10px!important;
  margin:0;
  align-self:stretch;
}
.re-quick-actions{
  width:100%;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:8px;
}
.re-quick-action{
  width:100%;
  min-width:0;
  padding-left:10px;
  padding-right:10px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.re-quick-action-with-badge{
  grid-column:1 / -1!important;
  justify-content:flex-start!important;
  padding-left:14px!important;
  padding-right:40px!important;
}
.re-quick-badge{
  right:12px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  min-width:20px!important;
  height:20px!important;
  font-size:10px!important;
}
.re-menu-section{width:100%}

@media(max-width:760px){
  .real-estate-menu-v114{
    width:100%;
    padding:10px 0 14px!important;
    margin:0!important;
  }
  .re-quick-actions,
  .re-menu-section{
    width:100%;
    max-width:none;
  }
}

/* v117 — dock composer at bottom after chat starts (desktop only, CSS-only) */
@media (min-width:761px){
  .workspace:has(.chat-shell){
    height:calc(100dvh - 56px)!important;
    min-height:0!important;
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    overflow:hidden!important;
    padding-bottom:10px!important;
  }
  .workspace:has(.chat-shell) .hero.chat-mode{
    flex:1 1 auto!important;
    min-height:0!important;
    width:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    margin:0!important;
    padding-bottom:18px!important;
  }
  .workspace:has(.chat-shell) .composer-wrap{
    position:static!important;
    flex:0 0 auto!important;
    margin-top:auto!important;
    margin-bottom:0!important;
    width:min(980px,100%)!important;
    padding:0!important;
    z-index:12!important;
  }
}

/* v119 — keep the expanded listing chat desktop-only; preserve stable mobile scrolling */
@media (min-width:681px){
  .listing-chat-modal-card{
    height:min(90dvh,900px);
    max-height:90dvh;
  }
  .listing-chat-content{
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
  }
  .listing-thread{
    height:auto;
    min-height:100%;
  }
  .listing-thread-messages{
    flex:0 0 auto;
    min-height:clamp(280px,38dvh,420px);
    max-height:46dvh;
    overflow:auto;
    scrollbar-gutter:stable;
  }
  .listing-thread-form{
    position:sticky;
    bottom:0;
    z-index:3;
    padding:12px 0 2px;
    background:var(--surface,#fff);
  }
  html[data-theme="dark"] .listing-thread-form{background:#252525}
}

/* v120 — single mobile chat scroll container; fixes frozen up/down scrolling */
@media (max-width:760px){
  html,body{
    height:100%;
    overflow:hidden!important;
    overscroll-behavior:none;
  }
  .app{
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
  }
  .main{
    height:100dvh!important;
    min-height:0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .main .topbar{
    position:relative!important;
    top:auto!important;
    flex:0 0 52px!important;
    z-index:10!important;
  }
  .workspace:has(.chat-shell){
    flex:1 1 auto!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    padding-bottom:max(4px,env(safe-area-inset-bottom))!important;
  }
  .workspace:has(.chat-shell) .hero.chat-mode{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain!important;
    touch-action:pan-y!important;
    scrollbar-gutter:auto!important;
    padding-bottom:12px!important;
  }
  .workspace:has(.chat-shell) .chat-stage{
    padding-bottom:12px!important;
  }
  .workspace:has(.chat-shell) .composer-wrap,
  .composer-wrap{
    position:relative!important;
    bottom:auto!important;
    flex:0 0 auto!important;
    margin:0!important;
    z-index:12!important;
    width:100%!important;
    background:inherit;
  }
}

/* v183 — Zholo dark sidebar polish: visual-only, no behavior changes */
html[data-theme="dark"] body,
html[data-theme="dark"] .main{
  background:#181a1d;
}

html[data-theme="dark"] .sidebar{
  background:#111316;
  border-right:1px solid rgba(255,255,255,.035);
}

html[data-theme="dark"] .nav-item,
html[data-theme="dark"] .nav-group-toggle,
html[data-theme="dark"] .profile-row,
html[data-theme="dark"] .icon-btn{
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}

html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .nav-group-toggle:hover,
html[data-theme="dark"] .profile-row:hover,
html[data-theme="dark"] .icon-btn:hover{
  background:#202329;
}

html[data-theme="dark"] .nav-item.active{
  background:#23272d;
}

/* New-chat button: softer elevated card, like the approved mockup */
html[data-theme="dark"] #newSearch{
  background:linear-gradient(180deg,#252931 0%,#22262c 100%);
  border:1px solid rgba(255,255,255,.045);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 5px 18px rgba(0,0,0,.12);
}

/* Folder group becomes one premium rounded panel */
html[data-theme="dark"] .history{
  margin-top:18px;
}

html[data-theme="dark"] .history-head{
  margin:0;
  padding:6px 2px 7px 4px;
  min-height:42px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

html[data-theme="dark"] .history-collapse{
  min-height:30px;
  padding:0 2px;
  gap:7px;
}

html[data-theme="dark"] .history-collapse .history-title{
  color:#d9dde3;
  font-size:12px;
  font-weight:650;
  letter-spacing:.01em;
}

html[data-theme="dark"] .history-collapse-chevron{
  color:#8f96a0;
}

/* Replace the heavy black folder-plus glyph with a clean plus action */
html[data-theme="dark"] .history-add{
  width:32px;
  height:32px;
  border:1px solid #5f738d;
  border-radius:10px;
  background:linear-gradient(180deg,#242a31 0%,#20242a 100%);
  color:#e9edf3;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 4px 12px rgba(0,0,0,.18);
}
html[data-theme="dark"] .history-add svg{display:none}
html[data-theme="dark"] .history-add::before{
  content:"+";
  display:block;
  font-size:24px;
  line-height:1;
  font-weight:300;
  transform:translateY(-1px);
}
html[data-theme="dark"] .history-add:hover{
  background:#2b3139;
  border-color:#8195ad;
  color:#fff;
  transform:translateY(-1px);
}
html[data-theme="dark"] .history-add:active{transform:translateY(0)}

html[data-theme="dark"] .folders-section{
  padding:0 0 6px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

html[data-theme="dark"] .folders-section-head-actions{
  min-height:0;
  padding:0;
}

html[data-theme="dark"] .folder-list{
  gap:5px;
}

html[data-theme="dark"] .folder-block{
  border-radius:11px;
}

html[data-theme="dark"] .folder-row{
  min-height:42px;
  border:1px solid transparent;
  border-radius:11px;
  background:rgba(255,255,255,.018);
  transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}

html[data-theme="dark"] .folder-row:hover{
  background:#20242a;
  border-color:#2c3239;
  box-shadow:0 5px 14px rgba(0,0,0,.10);
  transform:translateY(-1px);
}

html[data-theme="dark"] .folder-open{
  height:40px;
  padding:0 7px 0 9px;
  gap:9px;
}

html[data-theme="dark"] .folder-color-icon{
  width:19px;
  height:19px;
  filter:saturate(.72) brightness(1.08);
}

html[data-theme="dark"] .folder-open>span{
  color:#e5e7ea;
  font-size:12px;
  font-weight:620;
}

html[data-theme="dark"] .folder-open small{
  color:#8e959e;
  font-size:10px;
}

html[data-theme="dark"] .folder-chevron{
  color:#9098a2;
}
html[data-theme="dark"] .folder-block.open .folder-chevron{
  color:#c5cad1;
}

html[data-theme="dark"] .folder-items{
  margin-top:3px;
  border-left-color:#30353c;
}

/* History sits below the folder card with clean breathing room */
html[data-theme="dark"] .history-section{
  margin-top:14px;
  padding-top:0;
  border-top:0;
}

html[data-theme="dark"] .history-subtitle{
  padding:0 6px 7px;
  color:#8f959d;
  font-size:10.5px;
  font-weight:650;
  letter-spacing:.02em;
}

html[data-theme="dark"] .history-row{
  border-radius:10px;
  transition:background .15s ease;
}
html[data-theme="dark"] .history-row:hover{
  background:#1f2328;
}

html[data-theme="dark"] .history-item-icon{
  background:#22262b;
  color:#aab1ba;
  border:1px solid rgba(255,255,255,.035);
}

/* Footer/user row matches the quieter sidebar palette */
html[data-theme="dark"] .sidebar .side-bottom{
  background:linear-gradient(180deg,rgba(17,19,22,0) 0%,#111316 24%)!important;
  padding-top:18px;
}
html[data-theme="dark"] .sidebar .profile-row:hover{
  background:#202329;
}

/* Main welcome area and composer colors from the approved mockup */
html[data-theme="dark"] .hero h1{color:#f1f2f3}
html[data-theme="dark"] .hero p{color:#92979f}

html[data-theme="dark"] .composer{
  background:#272a2f;
  border-color:#3a3e45;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018),0 10px 30px rgba(0,0,0,.12);
}
html[data-theme="dark"] textarea::placeholder{color:#989da5}
html[data-theme="dark"] .send-btn{
  background:#3b82f6;
  color:#fff;
  box-shadow:0 5px 14px rgba(59,130,246,.23);
}
html[data-theme="dark"] .send-btn:hover:not(:disabled){background:#4a8df7}
html[data-theme="dark"] .send-btn:disabled{
  background:#383d44;
  color:#858b94;
  box-shadow:none;
}

@media(max-width:760px){
  html[data-theme="dark"] .history-head{border-radius:13px 13px 0 0}
  html[data-theme="dark"] .folders-section{border-radius:0}
}


/* v186 — robust sidebar chat-title fade + pointer; applies to folder chats and history */
.history-row .history-open{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  cursor:pointer!important;
}
.history-row .history-item-copy{
  position:relative!important;
  min-width:0!important;
  width:0!important;
  max-width:100%!important;
  flex:1 1 0%!important;
  overflow:hidden!important;
  cursor:pointer!important;
}
.history-row .history-item-copy b{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  padding-right:22px!important;
  cursor:pointer!important;
  -webkit-mask-image:linear-gradient(to right,#000 0%,#000 calc(100% - 34px),transparent 100%)!important;
  mask-image:linear-gradient(to right,#000 0%,#000 calc(100% - 34px),transparent 100%)!important;
  -webkit-mask-repeat:no-repeat!important;
  mask-repeat:no-repeat!important;
}
.folder-items .history-row .history-open,
.history-section .history-row .history-open{
  cursor:pointer!important;
}

/* v187 — make sidebar chat titles unmistakably interactive */
.folder-items .history-row,
.history-section .history-row,
.folder-items .history-row .history-open,
.history-section .history-row .history-open,
.folder-items .history-row .history-item-copy,
.history-section .history-row .history-item-copy,
.folder-items .history-row .history-item-copy b,
.history-section .history-row .history-item-copy b,
.folder-items .history-row .history-item-icon,
.history-section .history-row .history-item-icon{
  cursor:pointer!important;
}
.folder-items .history-row .history-open,
.history-section .history-row .history-open{
  pointer-events:auto!important;
  position:relative;
  z-index:1;
}
.folder-items .history-row .history-item-copy,
.folder-items .history-row .history-item-copy b,
.history-section .history-row .history-item-copy,
.history-section .history-row .history-item-copy b{
  pointer-events:none!important;
}

/* v188 — ChatGPT-like title reveal on hover: fade at rest, gently scroll long titles */
.history-row .history-item-copy{
  -webkit-mask-image:linear-gradient(to right,#000 0%,#000 calc(100% - 30px),transparent 100%)!important;
  mask-image:linear-gradient(to right,#000 0%,#000 calc(100% - 30px),transparent 100%)!important;
  -webkit-mask-repeat:no-repeat!important;
  mask-repeat:no-repeat!important;
}
.history-row .history-item-copy b{
  width:max-content!important;
  min-width:100%!important;
  max-width:none!important;
  padding-right:28px!important;
  overflow:visible!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
  transform:translateX(0);
  will-change:transform;
}
.folder-items .history-row:hover .history-item-copy b,
.history-section .history-row:hover .history-item-copy b{
  animation:zholoChatTitleReveal 4.8s ease-in-out .25s infinite alternate;
}
@keyframes zholoChatTitleReveal{
  0%,12%{transform:translateX(0)}
  88%,100%{transform:translateX(-42%)}
}
@media (prefers-reduced-motion:reduce){
  .folder-items .history-row:hover .history-item-copy b,
  .history-section .history-row:hover .history-item-copy b{animation:none!important}
}

/* v189 — exact dark surface colors from approved Zholo reference */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .main{
  background:#18191b!important;
}
html[data-theme="dark"] .sidebar{
  background:#131415!important;
  border-right-color:#1a1b1d!important;
}
html[data-theme="dark"] .composer{
  background:#28292a!important;
  border-color:#343638!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.015),0 10px 30px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] .composer-wrap,
html[data-theme="dark"] .workspace:has(.chat-shell) .composer-wrap{
  background:transparent!important;
}
html[data-theme="dark"] .workspace:has(.chat-shell) .composer-wrap{
  background:linear-gradient(to bottom,rgba(33,33,33,0),#212121 18%,#212121 100%)!important;
}

/* v191 — Travel submenu polish: compact, clean, no outer frame */
html[data-theme="dark"] .travel-nav-group{
  position:relative;
}

html[data-theme="dark"] .travel-nav-group .nav-group-toggle[aria-expanded="true"]{
  background:rgba(255,255,255,.025)!important;
}

html[data-theme="dark"] .travel-nav-group .travel-submenu{
  position:relative;
  gap:3px!important;
  margin:4px 0 7px 16px!important;
  padding:3px 6px 3px 13px!important;
  width:calc(100% - 16px)!important;
}

html[data-theme="dark"] .travel-nav-group .travel-submenu::before{
  content:"";
  position:absolute;
  left:2px;
  top:6px;
  bottom:6px;
  width:1px;
  border-radius:999px;
  background:linear-gradient(to bottom,rgba(255,255,255,.04),rgba(255,255,255,.13),rgba(255,255,255,.04));
}

html[data-theme="dark"] .travel-nav-group .travel-menu-item{
  min-height:38px!important;
  padding:5px 7px!important;
  gap:9px!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#cfd2d6!important;
  font-size:12.5px!important;
  font-weight:560!important;
  line-height:1.2!important;
  overflow:hidden;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease!important;
}

html[data-theme="dark"] .travel-nav-group .travel-menu-item > span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

html[data-theme="dark"] .travel-nav-group .travel-item-icon{
  width:26px!important;
  height:26px!important;
  flex:0 0 26px!important;
  border-radius:8px!important;
  background:#202328!important;
  border:1px solid rgba(255,255,255,.035)!important;
  color:#c7cbd0!important;
  font-size:11px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease!important;
}

html[data-theme="dark"] .travel-nav-group .travel-menu-item:hover{
  background:#1b1e22!important;
  border-color:rgba(255,255,255,.035)!important;
  color:#fff!important;
  transform:translateX(1px)!important;
}

html[data-theme="dark"] .travel-nav-group .travel-menu-item:hover .travel-item-icon{
  background:#272b31!important;
  border-color:rgba(255,255,255,.055)!important;
  color:#fff!important;
}

html[data-theme="dark"] .travel-nav-group .travel-menu-item.active{
  background:#20242a!important;
  border-color:rgba(255,255,255,.045)!important;
  color:#fff!important;
  font-weight:650!important;
}

html[data-theme="dark"] .travel-nav-group .travel-menu-item.active .travel-item-icon{
  background:#2a3038!important;
  border-color:rgba(126,169,255,.28)!important;
  color:#e8eefc!important;
}

html[data-theme="dark"] .travel-nav-group .nav-group-chevron{
  width:20px!important;
  height:20px!important;
  flex-basis:20px!important;
  border-radius:6px!important;
}

@media(max-width:760px){
  html[data-theme="dark"] .travel-nav-group .travel-submenu{
    margin-left:12px!important;
    width:calc(100% - 12px)!important;
    padding-left:12px!important;
  }
  html[data-theme="dark"] .travel-nav-group .travel-menu-item{
    min-height:40px!important;
    font-size:13px!important;
  }
}

/* v192 — Product submenu: same polished language as Travel, isolated styling */
html[data-theme="dark"] .product-nav-group{
  position:relative;
}

html[data-theme="dark"] .product-nav-group .nav-group-toggle[aria-expanded="true"]{
  background:rgba(255,255,255,.025)!important;
}

html[data-theme="dark"] .product-nav-group .product-submenu{
  position:relative;
  gap:3px!important;
  margin:4px 0 7px 16px!important;
  padding:3px 6px 3px 13px!important;
  width:calc(100% - 16px)!important;
}

html[data-theme="dark"] .product-nav-group .product-submenu::before{
  content:"";
  position:absolute;
  left:2px;
  top:6px;
  bottom:6px;
  width:1px;
  border-radius:999px;
  background:linear-gradient(to bottom,rgba(255,255,255,.04),rgba(255,255,255,.13),rgba(255,255,255,.04));
}

html[data-theme="dark"] .product-nav-group .product-menu-item{
  min-height:38px!important;
  padding:5px 7px!important;
  gap:9px!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#cfd2d6!important;
  font-size:12.5px!important;
  font-weight:560!important;
  line-height:1.2!important;
  overflow:hidden;
  cursor:pointer!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease!important;
}

html[data-theme="dark"] .product-nav-group .product-menu-item > span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

html[data-theme="dark"] .product-nav-group .product-item-icon{
  width:26px!important;
  height:26px!important;
  flex:0 0 26px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:8px!important;
  background:#202328!important;
  border:1px solid rgba(255,255,255,.035)!important;
  color:#c7cbd0!important;
  font-size:11px!important;
  line-height:1!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease!important;
}

html[data-theme="dark"] .product-nav-group .product-menu-item:hover{
  background:#1b1e22!important;
  border-color:rgba(255,255,255,.035)!important;
  color:#fff!important;
  transform:translateX(1px)!important;
}

html[data-theme="dark"] .product-nav-group .product-menu-item:hover .product-item-icon{
  background:#272b31!important;
  border-color:rgba(255,255,255,.055)!important;
  color:#fff!important;
}

html[data-theme="dark"] .product-nav-group .product-menu-item.active{
  background:#20242a!important;
  border-color:rgba(255,255,255,.045)!important;
  color:#fff!important;
  font-weight:650!important;
}

html[data-theme="dark"] .product-nav-group .product-menu-item.active .product-item-icon{
  background:#2a3038!important;
  border-color:rgba(126,169,255,.28)!important;
  color:#e8eefc!important;
}

html[data-theme="dark"] .product-nav-group .nav-group-chevron{
  width:20px!important;
  height:20px!important;
  flex-basis:20px!important;
  border-radius:6px!important;
}

@media(max-width:760px){
  html[data-theme="dark"] .product-nav-group .product-submenu{
    margin-left:12px!important;
    width:calc(100% - 12px)!important;
    padding-left:12px!important;
  }
  html[data-theme="dark"] .product-nav-group .product-menu-item{
    min-height:40px!important;
    font-size:13px!important;
  }
}

/* v193 — top-right overflow action: authenticated users get a quiet 3-dot menu. */
.top-actions{position:relative;display:flex;align-items:center;justify-content:flex-end}
.top-more{position:relative}
.top-more-btn{
  width:38px;height:38px;border:1px solid rgba(255,255,255,.10);border-radius:12px;
  background:rgba(255,255,255,.035);color:#d8dde4;display:grid;place-items:center;
  cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease;
  font-size:16px;letter-spacing:2px;line-height:1;padding:0 0 4px 2px;
}
.top-more-btn:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.16)}
.top-more-btn:active{transform:scale(.97)}
.top-more-menu{
  position:absolute;right:0;top:46px;z-index:80;min-width:156px;padding:6px;
  border:1px solid rgba(255,255,255,.10);border-radius:12px;background:#1b1d20;
  box-shadow:0 14px 34px rgba(0,0,0,.34);
}
.top-more-menu[hidden],.top-more[hidden]{display:none!important}
.top-more-menu-item{
  width:100%;border:0;border-radius:8px;background:transparent;color:#eceff3;
  display:flex;align-items:center;gap:10px;padding:10px 11px;cursor:pointer;text-align:left;
  font:inherit;font-size:13px;
}
.top-more-menu-item:hover{background:#25282d}
.top-more-menu-item svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 17px}
html[data-theme="light"] .top-more-btn{color:#222;border-color:rgba(0,0,0,.12);background:#fff}
html[data-theme="light"] .top-more-btn:hover{background:#f3f3f3}
html[data-theme="light"] .top-more-menu{background:#fff;border-color:rgba(0,0,0,.10);box-shadow:0 14px 34px rgba(0,0,0,.14)}
html[data-theme="light"] .top-more-menu-item{color:#222}
html[data-theme="light"] .top-more-menu-item:hover{background:#f2f2f2}


/* Theo topbar orb polish v231 — isolated visual refresh */
.agent-orb-trigger{width:42px;height:42px}
.agent-orb-avatar{
  width:34px;height:34px;overflow:visible;
  background:radial-gradient(circle at 38% 30%,rgba(126,236,255,.15),rgba(12,15,24,.96) 55%,#06070b 100%);
  box-shadow:inset 0 0 0 1px rgba(170,221,255,.16),0 3px 14px rgba(0,0,0,.20);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.agent-orb-trigger:hover .agent-orb-avatar{
  transform:translateY(-1px) scale(1.035);
  box-shadow:inset 0 0 0 1px rgba(182,229,255,.28),0 5px 18px rgba(0,0,0,.24),0 0 16px rgba(114,210,255,.10);
}
.agent-orb-svg{width:32px;height:32px;overflow:visible;opacity:1;stroke:none}
.agent-orb-svg .theo-orb-ring{fill:none;stroke:url(#theoOrbRing);stroke-width:1.45;opacity:.84}
.agent-orb-svg .theo-orb-orbit{fill:none;stroke:url(#theoOrbRing);stroke-width:.9;opacity:.36;stroke-linecap:round}
.agent-orb-svg .theo-orb-core{fill:url(#theoOrbCore);stroke:rgba(213,248,255,.32);stroke-width:.65;filter:drop-shadow(0 0 5px rgba(116,225,255,.34))}
.agent-orb-svg .theo-orb-spark{fill:#f6fdff;stroke:none;opacity:.95;filter:drop-shadow(0 0 5px rgba(173,238,255,.72))}
.agent-orb-svg .theo-orb-node{fill:#b8f6ff;stroke:none;filter:drop-shadow(0 0 4px rgba(111,232,255,.75))}
.agent-orb-svg .theo-orb-node-b{fill:#ceb8ff}
.agent-title-dot{right:1px;bottom:2px;width:9px;height:9px;border:2px solid var(--agent-dot-border,#fff);background:#48dc88;box-shadow:0 0 0 2px rgba(72,220,136,.10),0 0 11px rgba(72,220,136,.50)}
html[data-theme="dark"] .agent-title-dot{--agent-dot-border:#202020}
@media(max-width:680px){.agent-orb-trigger{width:40px;height:40px}.agent-orb-avatar{width:32px;height:32px}.agent-orb-svg{width:30px;height:30px}}

/* TEO voice mic v232 — bottom floating circular control */
.agent-live-stage>.agent-voice-mic{
  position:absolute!important;
  left:50%!important;
  bottom:24px!important;
  z-index:6!important;
  width:82px!important;
  min-width:82px!important;
  height:82px!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%!important;
  border:1px solid rgba(122,170,255,.36)!important;
  background:
    radial-gradient(circle at 50% 42%,rgba(255,255,255,.08),rgba(255,255,255,.025) 42%,rgba(7,12,24,.64) 73%),
    rgba(10,14,24,.58)!important;
  color:#f7fbff!important;
  display:grid!important;
  place-items:center!important;
  transform:translateX(-50%)!important;
  box-shadow:
    0 0 0 1px rgba(100,180,255,.08) inset,
    0 0 22px rgba(43,195,255,.18),
    0 0 42px rgba(111,71,255,.14),
    0 14px 34px rgba(0,0,0,.34)!important;
  overflow:visible!important;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,border-color .18s ease!important;
  isolation:isolate;
}
.agent-live-stage>.agent-voice-mic::before,
.agent-live-stage>.agent-voice-mic::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.agent-live-stage>.agent-voice-mic::before{
  inset:6px;
  padding:2px;
  background:conic-gradient(from 210deg,#1fe0ff,#438cff,#8b4dff,#1fe0ff);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  filter:drop-shadow(0 0 7px rgba(47,194,255,.55));
  opacity:.96;
}
.agent-live-stage>.agent-voice-mic::after{
  inset:-12px;
  border:1px solid rgba(72,166,255,.08);
  box-shadow:0 0 0 10px rgba(72,166,255,.025),0 0 0 20px rgba(121,74,255,.015);
  opacity:.9;
}
.agent-live-stage>.agent-voice-mic svg{
  width:28px!important;
  height:28px!important;
  position:relative;
  z-index:2;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 6px rgba(224,246,255,.28));
}
.agent-live-stage>.agent-voice-mic span{display:none!important}
.agent-live-stage>.agent-voice-mic:hover{
  background:
    radial-gradient(circle at 50% 42%,rgba(255,255,255,.11),rgba(255,255,255,.035) 42%,rgba(7,12,24,.67) 73%),
    rgba(10,14,24,.64)!important;
  transform:translateX(-50%) translateY(-2px) scale(1.025)!important;
  box-shadow:
    0 0 0 1px rgba(100,180,255,.10) inset,
    0 0 28px rgba(43,195,255,.25),
    0 0 54px rgba(111,71,255,.20),
    0 16px 38px rgba(0,0,0,.38)!important;
}
.agent-live-stage>.agent-voice-mic:active{transform:translateX(-50%) scale(.97)!important}
.agent-live-stage>.agent-voice-mic[aria-pressed="true"]{
  border-color:rgba(53,222,175,.48)!important;
  background:
    radial-gradient(circle at 50% 42%,rgba(75,255,205,.12),rgba(255,255,255,.025) 44%,rgba(7,20,18,.68) 74%),
    rgba(8,18,17,.64)!important;
  box-shadow:
    0 0 0 1px rgba(71,236,190,.11) inset,
    0 0 28px rgba(38,224,178,.26),
    0 0 54px rgba(43,195,255,.13),
    0 14px 34px rgba(0,0,0,.34)!important;
  animation:teoMicListening 1.2s ease-in-out infinite alternate;
}
.agent-live-stage>.agent-voice-mic[aria-pressed="true"]::before{
  background:conic-gradient(from 210deg,#2ce5bb,#27d9ff,#4d8eff,#2ce5bb);
}
.agent-live-stage>.agent-voice-mic[aria-pressed="true"] svg{color:#ecfffa!important}
@keyframes teoMicListening{
  from{filter:brightness(1);}
  to{filter:brightness(1.12);}
}
@media(max-width:680px){
  .agent-live-stage>.agent-voice-mic{
    width:70px!important;
    min-width:70px!important;
    height:70px!important;
    bottom:16px!important;
  }
  .agent-live-stage>.agent-voice-mic svg{width:25px!important;height:25px!important}
  .agent-live-stage>.agent-voice-mic::after{inset:-9px;box-shadow:0 0 0 8px rgba(72,166,255,.024),0 0 0 16px rgba(121,74,255,.014)}
}
