/* The Cloud workspace shares the site's type and brand assets. */
body.cloud-page { background: #f5f7f6; }
.cloud-page #main { min-height: 100dvh; }
.portal-shell { --cloud-ink:#183c32; --cloud-muted:#687d74; --cloud-line:#e0e7e3; --cloud-green:#245d48; --cloud-soft:#edf3ef; color:var(--cloud-ink); font:14px/1.5 var(--font-body); }
.portal-shell [hidden] { display:none !important; }
.portal-shell h1,.portal-shell h2,.portal-shell h3 { font-family:var(--font-body); text-wrap:initial; }
.portal-shell button,.portal-shell select,.portal-shell textarea { font-family:var(--font-body); }
.portal-shell button,.portal-shell a { transition:background .16s ease,color .16s ease,box-shadow .16s ease; }
.portal-shell :is(button,a,input,textarea,select,summary,[role=button]):focus-visible { outline:3px solid #86bba1; outline-offset:3px; }
.portal-shell button:disabled { cursor:default; opacity:.45; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.cloud-top { height:72px; display:flex; justify-content:space-between; align-items:center; gap:20px; padding:0 32px; border-bottom:1px solid var(--cloud-line); background:#fff; }
.cloud-brand { display:flex; align-items:center; gap:9px; font-size:20px; font-weight:750; letter-spacing:-.7px; text-decoration:none; }
.cloud-brand span { margin-left:5px; padding-left:14px; border-left:1px solid var(--cloud-line); color:var(--cloud-muted); font-size:13px; font-weight:450; letter-spacing:0; }
.cloud-top-actions { white-space:nowrap; display:flex; align-items:center; gap:24px; font-size:12px; }
.cloud-top-actions a { text-decoration:none; color:var(--cloud-muted); }
.cloud-top-actions button { white-space:nowrap; padding:7px 12px; border:1px solid var(--cloud-line); border-radius:7px; background:white; color:var(--cloud-ink); font-size:12px; }
.portal-login { min-height:calc(100dvh - 72px); display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; max-width:1060px; margin:0 auto; padding:64px 42px; gap:80px; }
.login-art { width:100%; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; background:radial-gradient(circle,#e5eee7 0%,#f5f7f6 68%); }
.login-art svg { width:100%; color:#82a98e; stroke-width:1.5; }
.login-card { width:100%; max-width:370px; padding:0; }
.login-card h1 { font-size:36px; font-weight:600; letter-spacing:-1.5px; margin:0 0 9px; }
.login-card>p:first-of-type { color:var(--cloud-muted); margin:0 0 35px; font-size:15px; }
.portal-shell label { display:grid; gap:7px; font-size:12px; font-weight:600; }
.login-card label { margin:18px 0; }
.portal-shell input:not([type=checkbox]),.portal-shell select { width:100%; min-width:0; height:43px; padding:9px 12px; border:1px solid #cad7cf; border-radius:7px; background:white; color:var(--cloud-ink); font-size:14px; }
.portal-shell input::placeholder { color:#889c91; }
.password-field { position:relative; }
.password-field input { padding-right:64px !important; }
.password-field button { position:absolute; top:7px; right:5px; border:0; padding:6px 10px; border-radius:4px; color:var(--cloud-muted); background:transparent; font-size:11px; }
.portal-primary,.portal-secondary { display:inline-flex; justify-content:center; align-items:center; gap:20px; min-height:42px; padding:10px 17px; border:1px solid transparent; border-radius:7px; font-size:13px; font-weight:600; line-height:1.5; cursor:pointer; }
.portal-primary { background:var(--cloud-green); color:white; box-shadow:0 2px 2px #183c3210; }
.portal-primary:hover { background:#1a4c3a; }
.portal-secondary { border-color:#d0ded4; background:white; color:var(--cloud-ink); }
.portal-secondary:hover { background:var(--cloud-soft); }
.login-card>.portal-primary { width:100%; justify-content:space-between; margin-top:12px; }
.portal-text { border:0; padding:6px 0; background:transparent; color:var(--cloud-green); font-size:12px; font-weight:600; text-decoration:none; cursor:pointer; }
.portal-text:hover { color:#133a2b; }
.portal-error,.panel-error { color:#a63535; font-size:12px; padding:10px 12px; background:#fff0ef; border-radius:6px; overflow-wrap:anywhere; }
.portal-app { display:grid; grid-template-columns:208px minmax(0,1fr); min-height:calc(100dvh - 72px); }
.portal-rail { display:flex; flex-direction:column; gap:26px; padding:28px 15px 24px; background:#f0f4f1; border-right:1px solid var(--cloud-line); }
.tenant-mark { display:flex; align-items:center; gap:11px; padding:0 10px; }
.workspace-avatar { display:grid; place-items:center; width:34px; height:34px; border:1px solid #d0ded2; border-radius:10px; background:#e3ede1; font:500 18px var(--font-display); }
.tenant-mark div { display:grid; gap:2px; }
.tenant-mark strong { font-size:12px; font-weight:600; }
.tenant-mark div span { color:var(--cloud-muted); font:10px var(--font-mono); }
.portal-rail nav { display:grid; gap:5px; }
.portal-rail nav button { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 14px; border:0; border-radius:7px; background:transparent; color:#60776a; text-align:left; font-size:13px; font-weight:500; }
.portal-rail nav button svg { width:18px; height:18px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.portal-rail nav button:hover { background:#e5ece7; color:var(--cloud-ink); }
.portal-rail nav button.active { background:#fff; color:var(--cloud-green); box-shadow:0 1px 3px #1637290b; font-weight:650; }
.rail-bottom { display:flex; align-items:center; gap:9px; margin-top:auto; padding:14px 10px 0; border-top:1px solid var(--cloud-line); color:var(--cloud-muted); }
.rail-bottom code { font-size:10px; overflow-wrap:anywhere; }
.status-dot { width:6px; height:6px; border-radius:50%; background:#55a577; flex:0 0 auto; }
.portal-workspace { min-width:0; background:#fff; padding:0 44px 48px; }
.workspace-head { display:flex; justify-content:space-between; align-items:center; gap:20px; min-height:91px; border-bottom:1px solid var(--cloud-line); }
.workspace-head h1 { margin:0; font-size:23px; font-weight:600; letter-spacing:-.7px; outline:none; }
.workspace-account { display:flex; align-items:center; gap:11px; color:var(--cloud-muted); font-size:12px; }
.account-dot { width:25px; height:25px; border-radius:50%; background:linear-gradient(135deg,#cae4c0,#e5eabc); border:3px solid #f6f8ee; }
.portal-view { padding-top:34px; max-width:1080px; margin:0 auto; }
.chat-view { max-width:1200px; padding-top:24px; }
.chat-layout { display:grid; grid-template-columns:minmax(220px,280px) minmax(0,1fr); min-height:620px; height:calc(100dvh - 210px); max-height:860px; overflow:hidden; border:1px solid #dfe8e1; border-radius:17px; background:#fbfcfa; box-shadow:0 12px 40px #193b2710; }
.chat-context { display:flex; flex-direction:column; min-width:0; padding:32px 24px 25px; border-right:1px solid #dfe8e1; background:linear-gradient(155deg,#edf4eb,#f5f7ed 65%,#f9f9f3); }
.chat-context-mark { width:56px; height:56px; display:grid; place-items:center; border:1px solid #cbded0; border-radius:16px; background:#fff9; color:#3e7961; }
.chat-context-mark svg { width:40px; height:40px; }
.chat-context h2 { margin:25px 0 9px; font:500 27px/1.13 var(--font-display); letter-spacing:-.8px; color:#21493b; }
.chat-context>p { margin:0; color:#607a6b; font-size:13px; line-height:1.55; }
.chat-context-rule { height:1px; margin:30px 0 22px; background:#d3e0d2; }
.chat-context-label { margin-bottom:11px; color:#708878; font:10px var(--font-mono); text-transform:uppercase; letter-spacing:.1em; }
.chat-prompt { width:100%; display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin:0 0 8px; padding:13px 12px; border:1px solid #d6e4d7; border-radius:10px; background:#ffffffb8; color:#24533f; text-align:left; font-size:12px; line-height:1.4; cursor:pointer; }
.chat-prompt:hover { background:#fff; border-color:#a9c8ae; box-shadow:0 3px 12px #244b310d; }
.chat-prompt span { color:#6da17e; font-size:14px; }
.chat-context .chat-privacy { margin-top:auto; padding-top:22px; color:#758b7c; font-size:11px; }
.chat-main { min-width:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; background:#fff; }
.chat-main-top { display:flex; justify-content:space-between; align-items:center; min-height:58px; padding:0 26px; border-bottom:1px solid #edf0eb; color:#375c47; font-size:12px; font-weight:650; }
.chat-live-dot { display:inline-block; width:7px; height:7px; margin-right:8px; border-radius:50%; background:#57a677; box-shadow:0 0 0 3px #e6f3e9; }
.chat-scroll { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-color:#d5dfd7 transparent; }
.chat-empty { max-width:450px; margin:auto; padding:65px 25px; text-align:center; }
.chat-empty-icon { width:52px; height:52px; display:grid; place-items:center; margin:0 auto 19px; border:1px solid #d8e7da; border-radius:15px; background:#f0f6ee; color:#4d8a68; font:27px var(--font-display); }
.chat-empty h2 { margin:0 0 9px; color:#254538; font:500 23px/1.2 var(--font-display); letter-spacing:-.35px; }
.chat-empty p { margin:0; color:#78897d; font-size:13px; line-height:1.55; }
.chat-empty-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:22px; }
.chat-empty-actions button { padding:8px 12px; border:1px solid #d7e5d8; border-radius:30px; background:#f7faf5; color:#3b6e50; font-size:11px; cursor:pointer; }
.chat-empty-actions button:hover { background:#ebf5e9; }
.chat-empty .chat-mobile-privacy { margin-top:22px; color:#9ba99c; font-size:10px; }
.chat-thread { display:grid; align-content:start; gap:28px; max-width:760px; margin:auto; padding:30px 34px 45px; }
.chat-message { min-width:0; max-width:90%; }
.chat-message.user { justify-self:end; max-width:min(82%,520px); padding:13px 17px; border:1px solid #dcebdd; border-radius:14px 14px 4px 14px; background:#f1f7f0; }
.chat-message.assistant { justify-self:start; }
.chat-message-label { display:block; margin-bottom:7px; color:#6a9277; font:10px var(--font-mono); text-transform:uppercase; letter-spacing:.08em; }
.chat-message.user .chat-message-label { color:#759986; }
.chat-message-body { color:#243e33; font-size:14px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.chat-message.pending .chat-message-body { color:#82998a; animation:chat-breathe 1.3s ease-in-out infinite alternate; }
@keyframes chat-breathe { from{opacity:.55} to{opacity:1} }
.chat-evidence { margin-top:16px; padding-top:11px; border-top:1px solid #e9eee9; }
.chat-evidence summary { width:fit-content; color:#4d8060; font-size:11px; font-weight:650; cursor:pointer; }
.chat-evidence code { display:block; max-height:150px; overflow:auto; margin:12px 0 5px; padding:12px; border:1px solid #e1e9e3; border-radius:8px; background:#f8faf8; color:#2d5140; font:11px/1.55 var(--font-mono); white-space:pre-wrap; overflow-wrap:anywhere; }
.chat-composer-wrap { padding:14px 24px 17px; border-top:1px solid #edf0eb; background:#fff; }
.chat-composer-wrap .panel-error { margin:0 0 9px; }
.chat-composer { display:flex; align-items:flex-end; gap:8px; padding:8px 9px 8px 16px; border:1px solid #cadccc; border-radius:14px; background:#fff; box-shadow:0 2px 10px #253f3109; }
.chat-composer:focus-within { border-color:#77a886; box-shadow:0 0 0 3px #94bea334; }
.chat-composer textarea { flex:1; min-width:0; max-height:110px; min-height:34px; resize:vertical; padding:7px 0; border:0; outline:0; background:transparent; color:#244739; font-size:14px; line-height:1.45; }
.chat-composer textarea:focus-visible { outline:none; }
.chat-composer button { width:36px; height:36px; flex:0 0 auto; display:grid; place-items:center; border:0; border-radius:9px; background:#245d48; color:#fff; cursor:pointer; }
.chat-composer button:hover { background:#184a38; }
.chat-composer button svg { width:20px; height:20px; }
.chat-composer-hint { display:block; margin:7px 2px 0; color:#9ba99c; font-size:10px; }
@media(max-width:1000px) { .chat-layout{grid-template-columns:minmax(190px,230px) minmax(0,1fr)} .chat-context{padding:26px 18px} }
@media(max-width:700px) { .chat-view{padding-top:12px} .chat-layout{display:flex;flex-direction:column;min-height:0;height:calc(100dvh - 238px);max-height:none;border-radius:12px} .chat-context{display:none} .chat-main{flex:1;min-height:0} .chat-main-top{min-height:49px;padding:0 16px} .chat-thread{gap:23px;padding:23px 18px 30px} .chat-empty{padding:40px 18px} .chat-message{max-width:95%} .chat-composer-wrap{padding:10px 12px 12px} .chat-composer-hint{display:none} }
@media(max-width:700px) { .portal-rail nav{display:flex;overflow-x:auto;scrollbar-width:none} .portal-rail nav button{min-width:62px;flex:1 0 auto} .portal-rail nav::-webkit-scrollbar{display:none} }
@media(max-width:360px) { .portal-rail nav button{min-width:57px;font-size:9px} .chat-layout{height:calc(100dvh - 224px)} }
.section-intro { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 26px; }
.section-intro h2 { margin:0 0 7px; font-size:21px; font-weight:500; letter-spacing:-.45px; }
.section-intro p { margin:0; color:var(--cloud-muted); font-size:13px; }
.step-chip { color:#83978b; font:11px var(--font-mono); }
.dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:295px; padding:28px; border:1px dashed #b8cdbc; border-radius:12px; background:#f8faf7; cursor:pointer; transition:background .2s,border-color .2s; }
.dropzone:hover,.dropzone.dragging { border-color:#4e9566; background:#edf6ee; }
.drop-icon { display:grid; place-items:center; width:47px; height:47px; margin-bottom:18px; border-radius:13px; background:white; box-shadow:0 2px 10px #3763330d; color:#4b7656; }
.drop-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.dropzone strong { font-size:17px; font-weight:500; }
.dropzone>span { margin-top:3px; color:var(--cloud-muted); font-size:12px; }
.dropzone button { margin:17px 0 19px; min-height:36px; padding:7px 14px; font-size:12px; }
.dropzone small { color:#748b7b; font-size:10px; text-align:center; }
.dropzone small span { margin-left:12px; }
.format-note { color:var(--cloud-muted); font-size:10px; margin:9px 0 0; }
.file-summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 17px; margin-top:20px; border:1px solid var(--cloud-line); border-radius:8px; background:#fff; }
.file-summary strong { font-size:13px; overflow-wrap:anywhere; }
.file-summary span { display:block; margin-top:2px; font-size:11px; color:var(--cloud-muted); }
.portal-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-top:21px; }
.portal-actions>[role=status] { font-size:12px; color:var(--cloud-muted); }
.upload-progress { height:3px; margin-top:12px; border-radius:3px; background:#e4eee5; overflow:hidden; }
.upload-progress span { display:block; height:100%; width:45%; background:#6b9b73; animation:portal-progress 1s ease-in-out infinite alternate; }
.inspect-card { margin-top:22px; padding:18px; border:1px solid var(--cloud-line); border-radius:9px; background:#f7faf6; }
.inspect-card strong { font-size:18px; font-weight:500; }
.inspect-card p { color:var(--cloud-muted); font-size:12px; margin:5px 0 0; }
.schema-table-wrap,.result-table { width:100%; overflow:auto; border:1px solid var(--cloud-line); border-radius:9px; }
.portal-shell table { width:100%; border-collapse:collapse; font-size:12px; }
.portal-shell th { position:sticky; top:0; padding:12px 16px; background:#f4f7f4; color:#687e6e; font:500 11px var(--font-body); letter-spacing:0; text-transform:none; white-space:nowrap; }
.portal-shell td { padding:12px 16px; border-top:1px solid #eef2ee; border-bottom:0; }
.portal-shell tbody tr:hover { background:#f9fbf8; }
.mapping-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:25px; }
.mapping-advanced { grid-column:1/-1; color:var(--cloud-muted); font-size:12px; }
.mapping-advanced summary { cursor:pointer; padding:4px 0; width:fit-content; }
.mapping-advanced label { max-width:300px; margin-top:12px; }
.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; min-height:235px; padding:30px; color:var(--cloud-muted); text-align:center; }
.empty-state strong { font-size:13px; font-weight:450; }
.empty-symbol { font-size:28px; color:#a5bda9; font-weight:300; }
.query-view { max-width:none; }
.query-toolbar { display:flex; align-items:center; gap:16px; margin-bottom:16px; }
.query-toolbar select { width:auto; min-width:118px; }
.query-toolbar>.portal-primary { margin-left:auto; }
.query-scope { color:var(--cloud-muted); font-size:11px; }
.query-toolbar kbd { font:10px var(--font-mono); color:#c1d9c5; padding-left:13px; border-left:1px solid #ffffff35; }
.query-editor { width:100%; min-height:245px; max-height:65vh; padding:24px; resize:vertical; border:1px solid #d8e5db; border-radius:9px; background:#f5f8f5; color:#234c3b; font:13px/1.8 var(--font-mono) !important; tab-size:2; }
.result-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:13px 0; }
.query-meta { color:var(--cloud-muted); font:11px var(--font-mono); overflow-wrap:anywhere; }
.result-table { max-height:48vh; }
.result-table td { max-width:380px; font:11px/1.6 var(--font-mono); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.query-history { margin-top:22px; font-size:12px; color:var(--cloud-muted); }
.query-history summary { cursor:pointer; width:fit-content; }
.query-history summary span { margin-left:8px; color:#9aaba0; }
.vector-layout { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start; }
.vector-layout .portal-card { display:grid;gap:16px; }
.vector-layout .portal-card h3 { margin:0;font-size:18px; }
.vector-layout .portal-note { margin:0;line-height:1.6;overflow-wrap:anywhere; }
.vector-layout .portal-primary { justify-self:start; }
.vector-picker { display:flex;align-items:center;gap:11px;min-height:43px;padding:5px 9px;border:1px solid #cad7cf;border-radius:7px;cursor:pointer;overflow:hidden; }
.vector-picker input[type=file] { position:absolute;width:1px !important;height:1px !important;padding:0 !important;opacity:0;pointer-events:none; }
.vector-picker:focus-within { outline:3px solid #86bba1;outline-offset:3px; }
.vector-picker-button { display:inline-flex;align-items:center;min-height:29px;padding:4px 10px;border:1px solid #d0ded4;border-radius:5px;background:#f7faf7;font-size:11px;white-space:nowrap; }
.vector-picker>span:last-child { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--cloud-muted);font-size:11px; }
.vector-layout textarea { width:100%;min-height:93px;padding:10px 12px;border:1px solid #cad7cf;border-radius:7px;background:#fff;color:var(--cloud-ink);font:12px/1.6 var(--font-mono);resize:vertical; }
.vector-options { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
.vector-results { margin-top:28px; }
.vector-results .section-intro { margin-bottom:14px; }
.vector-results h3 { margin:0;font-size:18px; }
.vector-results .portal-note { margin-top:10px; }
@media(max-width:850px) { .vector-layout{grid-template-columns:1fr} }
@media(max-width:700px) { .portal-rail nav{grid-template-columns:repeat(5,minmax(0,1fr))} .portal-rail nav button{font-size:9px;gap:4px;padding:7px 1px} .portal-rail nav button svg{width:17px;height:17px} }
.query-history>div { display:grid; gap:6px; margin-top:12px; }
.history-row { min-width:0; width:100%; display:flex; align-items:center; gap:15px; padding:11px 13px; border:1px solid var(--cloud-line); border-radius:6px; background:white; text-align:left; }
.history-row span { color:var(--cloud-muted); font-size:10px; flex-shrink:0; }
.history-row code { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--cloud-ink); }
.endpoint-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.portal-card { padding:23px; border:1px solid var(--cloud-line); border-radius:10px; background:white; }
.compact h3 { margin:0 0 20px; font-size:17px; font-weight:500; }
.compact fieldset { display:flex; gap:18px; padding:0; margin:18px 0 23px; border:0; }
.compact legend { margin-bottom:8px; color:var(--cloud-muted); font-size:11px; }
.compact fieldset label { display:flex; align-items:center; gap:7px; font-size:12px; font-weight:450; }
.compact input[type=checkbox] { accent-color:var(--cloud-green); width:15px; height:15px; }
.portal-note { font-size:11px; color:var(--cloud-muted); margin:16px 0 21px; }
.secret-reveal { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; gap:18px; align-items:center; margin-top:20px; padding:17px; border:1px solid #dec893; border-radius:9px; background:#fffbef; }
.secret-reveal strong { font-size:12px; }
.secret-reveal p { font-size:10px; color:#8a7547; margin:4px 0 0; }
.secret-reveal code { display:block; overflow:auto; white-space:nowrap; padding:10px; background:white; border-radius:5px; font-size:11px; }
.list-heading,.session-datasets h3 { font-size:13px; font-weight:600; margin:30px 0 13px; }
.resource-list { display:grid; gap:9px; }
.resource-list .empty-state { min-height:90px; border:1px dashed var(--cloud-line); border-radius:8px; padding:16px; font-size:12px; }
.resource-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:15px 17px; border:1px solid var(--cloud-line); border-radius:8px; }
.resource-row>div:first-child { min-width:0; }
.resource-row strong { display:block; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.resource-row code,.resource-row span { display:block; margin-top:4px; color:var(--cloud-muted); font-size:10px; overflow-wrap:anywhere; }
.resource-actions { display:flex; align-items:center; flex-shrink:0; gap:12px; }
.resource-actions button { font-size:11px; white-space:nowrap; }
.resource-actions .danger { color:#ab4f45; }
.resource-actions [data-confirming] { padding:6px 8px; border-radius:5px; background:#fff0ef; }
.portal-toast { position:fixed; left:50%; bottom:25px; transform:translateX(-50%); max-width:min(90vw,480px); padding:12px 20px; border:1px solid #d4e4d9; border-radius:9px; background:#fff; color:var(--cloud-ink); box-shadow:0 8px 35px #17352618; font-size:12px; z-index:20; }
@keyframes portal-progress { from{transform:translateX(-90%)}to{transform:translateX(220%)} }
@media(min-width:1600px) { .portal-workspace{padding-right:5vw;padding-left:5vw;} }
@media(max-width:1000px) { .portal-app{grid-template-columns:174px minmax(0,1fr)} .portal-workspace{padding:0 26px 40px} .portal-rail{padding-right:10px;padding-left:10px} .query-scope{display:none} .portal-login{gap:40px} .secret-reveal{grid-template-columns:1fr auto auto} .secret-reveal>div{grid-column:1/-1} }
@media(max-width:700px) { .cloud-top{height:62px;padding:0 18px} .cloud-brand{font-size:18px} .cloud-top-actions{gap:15px} .portal-app{display:flex;flex-direction:column;min-height:calc(100dvh - 62px)} .portal-rail{position:sticky;top:0;z-index:5;padding:8px 12px;gap:0;border-right:0;border-bottom:1px solid var(--cloud-line)} .tenant-mark,.rail-bottom{display:none} .portal-rail nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px} .portal-rail nav button{flex-direction:column;justify-content:center;gap:5px;padding:9px 3px;font-size:10px;min-height:57px;text-align:center} .portal-rail nav button svg{width:18px;height:18px} .portal-workspace{flex:1;padding:0 20px 36px} .workspace-head{min-height:75px} .workspace-head h1{font-size:21px} .portal-view{padding-top:25px} .portal-login{display:block;max-width:430px;min-height:calc(100dvh - 62px);padding:60px 28px} .login-art{display:none} .login-card{max-width:none} .login-card h1{font-size:33px} .section-intro h2{font-size:20px} .section-intro p{font-size:12px} .mapping-form{grid-template-columns:1fr} .endpoint-layout{grid-template-columns:1fr} .dropzone{min-height:280px;padding:25px 14px} .dropzone small span{display:block;margin:5px 0 0} .query-toolbar{gap:8px} .query-toolbar select{min-width:0;width:110px;font-size:12px} .query-toolbar kbd{display:none} .query-editor{padding:17px;font-size:12px !important;min-height:240px} .resource-row{align-items:flex-start;flex-direction:column;gap:10px} .resource-actions{width:100%;justify-content:flex-end} .secret-reveal{grid-template-columns:minmax(0,1fr) auto;gap:12px} .secret-reveal code{grid-column:1/-1;grid-row:2} .secret-reveal>div{grid-column:1} .secret-reveal [data-dismiss-secret]{grid-row:1;grid-column:2} .portal-toast{bottom:15px} }
@media(prefers-reduced-motion:reduce) { .portal-shell *, .portal-shell *::before { animation:none !important;transition:none !important;scroll-behavior:auto !important; } }

.dropzone.has-file { min-height:190px; }
.dropzone.has-file .drop-icon { display:none; }
@media(max-width:360px) { .cloud-top{padding:0 12px} .cloud-brand{gap:7px;font-size:16px} .cloud-brand span{padding-left:8px;margin-left:0;font-size:11px} .cloud-top-actions{gap:10px} .cloud-top-actions button{padding:7px 9px} .section-intro>.portal-text{white-space:nowrap} }
.auth-page { min-height:calc(100dvh - 72px); display:flex; align-items:center; justify-content:center; padding:60px 25px; }
.auth-page .login-card { max-width:390px; }
.auth-page .portal-primary { text-decoration:none; }
.auth-links { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; margin-top:23px !important; color:var(--cloud-muted); font-size:12px; }
.auth-links a { color:var(--cloud-green); text-decoration:none; }
.auth-links a:hover { text-decoration:underline; }
.legacy-account { margin:20px 0 5px; color:var(--cloud-muted); font-size:11px; }
.legacy-account summary { cursor:pointer; width:fit-content; }
.legacy-account label { margin:12px 0; }
.mfa-secret { display:block; padding:12px; border:1px solid var(--cloud-line); border-radius:7px; background:white; overflow-wrap:anywhere; }
.auth-success { padding:14px; border-radius:7px; background:#eaf4e9; color:var(--cloud-green); font-size:13px; }
.admin-workspace { max-width:1240px; margin:auto; padding:40px 30px; }
.admin-workspace h1 { font-size:28px; margin:0 0 10px; }
.admin-tenant-id { display:block; font:10px var(--font-mono); color:var(--cloud-muted); margin-top:4px; }
.admin-action { max-width:500px; margin-top:25px; }
.admin-action h2 { font-size:20px; margin:0 0 20px; }
@media(max-width:700px) { .auth-page{min-height:calc(100dvh - 62px);padding:44px 24px;align-items:flex-start} .admin-workspace{padding:30px 20px} .cloud-top-actions [data-account-link]{font-size:11px} }
@media(max-width:700px) {
  .cloud-top:has([data-admin-signout]:not([hidden])) .cloud-brand span,
  .cloud-top:has([data-account-link]:not([hidden])) .cloud-brand span,
  .cloud-top-actions:has([data-account-link]:not([hidden])) > a[href="/guide/"] { display:none; }
  .workspace-account { min-width:0; max-width:40%; }
  .workspace-account>span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .workspace-head h1 { flex-shrink:0; }
  .portal-rail nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .portal-rail nav button { gap:4px; padding:8px 1px; font-size:9px; }
}
@media(max-width:700px) {
  .portal-rail nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; }
  .portal-rail nav button { min-width:0; min-height:42px; flex-direction:row; justify-content:center; gap:6px; padding:7px 4px; font-size:10px; white-space:nowrap; }
  .portal-rail nav button svg { width:16px; height:16px; }
  .chat-layout { min-height:380px; height:calc(100dvh - 283px); }
}
@media(max-width:360px) {
  .portal-rail nav button { font-size:9px; gap:4px; }
  .chat-layout { height:calc(100dvh - 269px); }
}
