/* Shared 1C Bridge theme; portal.css retains existing component behavior. */
body{font:1rem/1.6 Inter,"Segoe UI",Arial,sans-serif}
button,input,textarea,select{font:inherit}
button,a.secondary{border-radius:7px;min-height:42px;font-size:.875rem}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e8a02e;outline-offset:3px}
button:disabled{cursor:not-allowed}
a.secondary{color:var(--ink);background:white;padding:.65rem 1rem}
button.secondary{background:white}
button.text-button:hover{color:var(--accent);background:var(--soft)}
h1{font-size:2rem;letter-spacing:-.045em;margin-bottom:.65rem}
h2{font-size:1.35rem;letter-spacing:-.025em}
h3{font-size:1.05rem}
p{line-height:1.65}
label{font-size:.875rem;margin:1.15rem 0 .4rem}
.eyebrow{font-size:.75rem;letter-spacing:.09em;margin-bottom:.65rem}
.hint,.fine,.check-message,.history-toolbar,.history-entry-heading,.job-timing,.job-detail,.readiness-hint,.help-note{font-size:.875rem}
.job-id,.job-status,.queue-state{font-size:.75rem}
.fine{font-size:.8rem}
input[readonly],textarea[readonly]{background:#f6f8fc;color:#294264;font-size:.875rem}
input:not([type=checkbox]),textarea{border-radius:7px;border-color:#c9d4e4}
input:focus,textarea:focus{border-color:var(--accent);outline-color:#2055e54d}
.header{height:80px;padding:0 2rem;gap:1rem;position:relative;z-index:2}
.brand{font-size:1.45rem;letter-spacing:-.05em}
.brand-mark{width:35px;height:35px;border-radius:7px;font-size:1.5rem}
.brand small{font-size:.75rem;letter-spacing:.035em;font-weight:450;margin-top:.4rem}
.header-right{font-size:.875rem;gap:1.2rem}
.local-badge{font-size:.75rem;padding:.25rem .65rem;border-radius:5px;background:#f6f8fc}
#user-email{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
main{max-width:none;padding:0;min-height:calc(100vh - 145px)}
.auth-layout{max-width:1030px;margin:0 auto;padding:4.5rem 2rem;gap:5rem;min-height:calc(100vh - 160px)}
.intro h1{font-size:3rem;line-height:1.12;letter-spacing:-.05em}
.intro .lead{font-size:1.05rem}
.onboarding li{gap:1rem;margin:1.4rem 0}
.onboarding li>span{font-size:.8rem;background:var(--soft);border-color:#cbd9fc}
.onboarding p{font-size:.875rem}
.onboarding strong{font-size:.95rem}
.auth-card{padding:2rem;box-shadow:0 15px 40px #193f7808}
.tabs{margin-bottom:1.75rem;border-radius:7px}
.tab{font-size:.875rem}
.auth-card .muted{font-size:.95rem}
.auth-help{border-top:1px solid var(--line);padding-top:1rem;margin-top:1.5rem;font-size:.875rem}
.auth-help summary{color:var(--accent);cursor:pointer}
.auth-help p{font-size:.875rem;color:var(--muted);margin:1rem 0 0}
.password-toggle{padding:.35rem 0!important;min-height:36px!important;font-size:.8rem!important}
#workspace{display:grid;grid-template-columns:232px minmax(0,1fr);max-width:1600px;margin:0 auto}
.sidebar{border-right:1px solid var(--line);padding:2rem 1rem;display:flex;flex-direction:column;gap:1.5rem;background:#fff;min-height:calc(100vh - 145px)}
.sidebar-caption{font-size:.75rem;letter-spacing:.05em;color:var(--muted);margin:0 .7rem}
.sidebar nav{display:flex;flex-direction:column;gap:.4rem}
.sidebar nav a{display:flex;align-items:center;gap:.65rem;padding:.75rem .7rem;border-radius:6px;color:#40516c;text-decoration:none;font-size:.875rem;font-weight:550;line-height:1.4}
.sidebar nav a span{font-size:1.1rem;width:1.35rem;text-align:center;color:#6880a1;flex-shrink:0}
.sidebar nav a[aria-current=page]{color:var(--accent);background:var(--soft)}
.sidebar nav a[aria-current=page] span{color:var(--accent)}
.sidebar nav a:hover{background:#f1f5fc}
.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:1.25rem .7rem .5rem}
.sidebar-bottom strong{font-size:.875rem}
.sidebar-bottom p,.sidebar-bottom a{font-size:.875rem}
.sidebar-bottom p{color:var(--muted);margin:.4rem 0 1rem}
.sidebar-bottom small{display:block;font-size:.75rem;color:var(--muted);margin-top:.4rem}
#view-outlet{min-width:0;padding:2.5rem clamp(1.5rem,3vw,3rem) 3rem}
.view-panel{min-width:0}
.workspace-heading{margin-bottom:1.8rem;align-items:center}
.workspace-heading .muted{font-size:.95rem}
.workspace-heading>button{flex-shrink:0}
.summary{font-size:.875rem;gap:1.25rem;padding:.9rem 0;margin-bottom:1.2rem}
.summary span:nth-child(3){font-size:.8rem}
.summary a{font-size:.875rem}
.sync-bar{font-size:.875rem;margin:0 0 1.5rem;align-items:center}
.sync-bar small{font-size:.75rem}
.sync-bar button{font-size:.875rem}
.connection-toolbar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1.2rem}
.connection-toolbar label{margin:0;font-weight:500;white-space:nowrap}
.connection-toolbar input{max-width:370px;padding:.6rem .8rem;font-size:.875rem}
.connection-toolbar p{flex-basis:100%;font-size:.875rem;margin:0}
.connections{gap:1.3rem}
.connection{padding:1.4rem;box-shadow:0 3px 9px #22395803}
.connection-heading{gap:.75rem;margin-bottom:1.2rem;align-items:flex-start}
.database-icon{width:38px;height:38px;border-radius:8px;font-size:.95rem}
.connection-title h2{font-size:1.05rem;line-height:1.5;margin:0}
.connection-id{display:none}
.status{font-size:.75rem;padding:.3rem .6rem;border-radius:5px;margin-top:.15rem}
.status.online{color:#116948;background:#e9f6ef}
dl>div{font-size:.875rem;gap:1rem;line-height:1.5}
dt{max-width:45%;white-space:normal}
.connection-readiness{padding:.9rem;border-radius:7px;font-size:.875rem;margin-top:1.1rem}
.connection-readiness[data-tone=positive]{background:#f0f8f4;border-color:#cce5d7}
.connection-readiness[data-tone=positive] strong{color:#146a4a}
.readiness-hint{font-size:.8rem;color:#516279;line-height:1.6}
.technical-details{margin:1rem 0;font-size:.875rem;color:var(--muted)}
summary{cursor:pointer}
.technical-details .hint{font-size:.8rem;margin-bottom:0}
.technical-details .endpoint{font-size:.75rem;margin-top:.4rem}
.technical-details label{font-size:.8rem}
.connection-actions{gap:.35rem;margin-top:1rem;padding-top:1rem}
.connection-actions button{font-size:.875rem;padding:.5rem .6rem;min-height:38px}
.connection-actions .copy-url{display:none}
.connection-actions .remove{font-size:.8rem}
.empty{padding:2.5rem 1.5rem;margin-bottom:1.5rem}
.empty-symbol{font-size:1.1rem;border-radius:8px}
.empty p{font-size:1rem}
.analytics-section{background:var(--soft);border-color:#d8e3ff;padding:1.5rem;margin-top:1.5rem}
.analytics-section h2{font-size:1.2rem}
.analytics-section .muted{font-size:.95rem;max-width:48rem}
.analytics-section .hint{margin-bottom:0;font-size:.8rem;max-width:58rem}
.help-note{padding-top:1rem;margin-top:1.25rem}
.help-note summary{font-weight:550;color:var(--muted)}
.help-note p{margin:.75rem 0}
.analytics-entry{background:white;border-radius:9px;padding:1.4rem;margin:1rem 0}
.analytics-entry h3{font-size:1.05rem;margin:0 0 .7rem}
.analytics-entry p{font-size:.875rem}
.analytics-entry .hint{font-size:.8rem}
.analytics-entry .actions{gap:.5rem;flex-wrap:wrap}
.analytics-entry .actions button{font-size:.875rem;padding:.5rem .75rem}
.analytics-entry .actions button:nth-last-child(-n+2){color:var(--muted);border-color:transparent;background:transparent}
.analytics-list{margin:1.5rem 0}
#analytics-base{max-width:440px;border-radius:7px;font-size:.95rem}
.base-choice{gap:.75rem;margin:.5rem 0;padding:.8rem;border:1px solid var(--line);border-radius:6px;font-size:.95rem}
.base-choice:has(input:checked){background:var(--soft);border-color:#a4baff}
#profile-form legend{font-size:.875rem}
.guide-steps{padding:0;list-style:none;max-width:850px}
.guide-steps>li{display:flex;gap:1.3rem;border-bottom:1px solid var(--line);padding:1.5rem 0}
.guide-steps>li>span{display:grid;place-items:center;border:1px solid #b8cafd;background:var(--soft);color:var(--accent);border-radius:50%;width:2rem;height:2rem;flex-shrink:0;font-size:.875rem;margin-top:.15rem}
.guide-steps h2{font-size:1.2rem}
.guide-steps p{font-size:.95rem;color:var(--muted)}
.guide-steps .hint{font-size:.875rem;margin-top:1rem;margin-bottom:0}
.guide-steps blockquote{font-size:.95rem;line-height:1.7;margin:1rem 0 0;background:var(--soft);padding:1rem;border-left:3px solid #7fa1ff}
.guide-note{padding:1.5rem;margin-top:2rem;max-width:850px}
.guide-note details{border-top:1px solid var(--line);padding:1rem 0}
.guide-note details:last-child{padding-bottom:0}
.guide-note summary{font-size:.95rem;font-weight:550}
.guide-note p{font-size:.95rem;color:var(--muted);margin:1rem 0 0}
.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:start}
.account-card{padding:1.5rem}
.account-card p{font-size:.95rem}
.account-card .hint{font-size:.875rem}
.account-card h3{padding-top:1rem;border-top:1px solid var(--line)}
dialog{border-radius:12px;padding:1.8rem;box-shadow:0 24px 90px #10264d3d;max-height:90dvh}
dialog::backdrop{background:#10213c66}
dialog p{font-size:.95rem}
dialog .hint,dialog .warning,dialog .error{font-size:.875rem}
dialog .fine{font-size:.8rem}
.dialog-heading{gap:1rem}
.dialog-heading h2{overflow-wrap:anywhere}
.dialog-heading>button{flex-shrink:0}
.copy-row{align-items:stretch}
.copy-row button{font-size:.875rem}
.warning{border-radius:7px}
.dialog-notice{position:sticky;bottom:0;padding:.8rem 1rem;background:var(--soft);color:var(--accent);border:1px solid #c8d8ff;border-radius:7px;font-size:.875rem;z-index:3}
.notice{position:fixed;left:50%;transform:translateX(-50%);top:1rem;max-width:calc(100vw - 2rem);width:max-content;z-index:20;border-color:#c5d5ff;border-radius:7px;box-shadow:0 6px 30px #23396314;font-size:.95rem}
.result-scroll table{font-size:.875rem}
.result-scroll th,.result-scroll td{padding:.65rem .85rem}
.result-scroll details p{font-size:.875rem}
.history-toolbar button{font-size:.875rem}
.history-entry{border-radius:7px}
.check-message[data-state=success]{color:#146a4a}

/* Guided setup, verified registration and support center */
.auth-progress{display:flex;align-items:center;gap:8px;margin:20px 0 8px;color:#849084;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.auth-progress span{display:flex;align-items:center;gap:6px;white-space:nowrap}.auth-progress i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#edf0ea;font-style:normal;color:#778276}
.auth-progress b{height:1px;flex:1;background:#dfe5da}.auth-progress span.active{color:#536b38}.auth-progress span.active i{background:#d8edb8;color:#3e5e23;box-shadow:0 0 0 3px #eaf5d8}.auth-progress span.complete{color:#6c7d61}.auth-progress span.complete i{background:#6f8c4c;color:white}
.auth-email-preview{margin:8px 0 14px;padding:9px 11px;border-radius:9px;background:#eef5e5;color:#536b38;font-size:11px;overflow-wrap:anywhere}
.password-strength{display:grid;grid-template-columns:1fr auto;gap:7px 10px;align-items:center;margin:-10px 0 17px}.password-strength span{height:4px;border-radius:99px;background:linear-gradient(90deg,#cf6e62 var(--strength,0%),#e8ece4 var(--strength,0%))}.password-strength small{font-size:10px;color:var(--muted)}
.password-strength[data-score="1"]{--strength:25%}.password-strength[data-score="2"]{--strength:50%}.password-strength[data-score="3"]{--strength:75%}.password-strength[data-score="4"]{--strength:100%}.password-strength[data-score="3"] span,.password-strength[data-score="4"] span{background:linear-gradient(90deg,#6f8c4c var(--strength),#e8ece4 var(--strength))}
.registration-trust{display:grid;gap:6px;margin:18px 0 0;padding:14px;border-radius:12px;background:#f7f9f4;color:#607052;font-size:10px}.registration-trust span::first-letter{color:#6f8c4c}
.auth-help a{display:inline-block;margin-top:8px}
.quick-start{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;align-items:center;gap:24px;padding:24px 26px;margin:-6px 0 24px;background:linear-gradient(120deg,#f7f9f2,#eef5e4);border-color:#dbe7cd;position:relative;overflow:hidden}
.quick-start:after{content:"↗";position:absolute;right:185px;top:-42px;font-size:120px;color:#dbe8cb55;font-weight:800;transform:rotate(-8deg);pointer-events:none}.quick-start h2{font-size:20px;margin-bottom:4px}.quick-start .eyebrow{margin-bottom:7px}.quick-start p{margin:0;font-size:12px}.quick-start-progress{position:relative;z-index:1}.quick-start-progress>span{display:block;height:7px;background:#dce5d2;border-radius:99px;overflow:hidden;margin-bottom:8px}.quick-start-progress i{display:block;width:0;height:100%;background:#6f8c4c;border-radius:inherit;transition:width .3s}.quick-start-progress strong{font-size:11px;color:#5d6d52}.quick-start[data-complete=true]{background:linear-gradient(120deg,#f4f8ed,#e2efd1)}
.onboarding-overview{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:24px;padding:24px;margin-bottom:24px;background:linear-gradient(120deg,#fbfcf8,#f1f6e9)}.onboarding-score{width:84px;height:84px;border-radius:50%;background:#dcebc7;display:grid;place-content:center;text-align:center;color:#48622d;box-shadow:inset 0 0 0 7px #eef5e4}.onboarding-score strong{font-size:23px;line-height:1}.onboarding-score span{font-size:9px;text-transform:uppercase;letter-spacing:.1em;margin-top:5px}.onboarding-overview h2{font-size:20px;margin:0 0 4px}.onboarding-overview p{margin-bottom:14px}.progress-track{height:8px;background:#e1e7da;border-radius:99px;overflow:hidden}.progress-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,#89aa62,#577638);transition:width .3s}.onboarding-overview small{display:block;color:var(--muted);margin-top:7px}
.setup-journey{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:980px}.setup-step{display:flex;gap:16px;padding:22px;min-height:210px;transition:border-color .2s,transform .2s,box-shadow .2s}.setup-step[data-state=current]{border-color:#95b66e;box-shadow:0 12px 28px -22px #415d26;transform:translateY(-2px)}.setup-step[data-state=complete]{background:#f8fbf4;border-color:#d4e3c3}.setup-state{display:grid;place-items:center;width:34px;height:34px;border:1px solid #d4dbcc;border-radius:50%;flex:0 0 auto;color:#718069;font-size:12px;font-weight:700}.setup-step[data-state=current] .setup-state{background:#6f8c4c;border-color:#6f8c4c;color:#fff}.setup-step[data-state=complete] .setup-state{background:#dcecc7;border-color:#c8ddb0;color:#4f702f}.setup-step .eyebrow{margin:1px 0 7px}.setup-step h2{font-size:18px}.setup-step p{font-size:12px;color:var(--muted)}.setup-step blockquote{font-size:11px;margin:15px 0 0;padding:10px 12px;background:#f2f6ed;border-left:2px solid #8aa968}.section-title{margin-top:38px;font-size:20px}.button-link{display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:11px 17px;font-weight:600;text-decoration:none;background:#eef2ef;color:var(--ink);border:1px solid var(--line)}
.support-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:20px 38px;padding:26px;margin-bottom:22px;background:linear-gradient(120deg,#f8faf4,#eef4e7)}.support-hero h2{font-size:22px}.support-hero p{margin:0}.support-hero label{margin:0}.support-hero input{grid-column:2}.support-hero #support-search-empty{grid-column:2;margin:0}.support-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.support-topic{padding:0 21px}.support-topic summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:20px 0;list-style:none}.support-topic summary::-webkit-details-marker{display:none}.support-topic summary span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#eef4e8;color:#658047;font-size:10px}.support-topic summary strong{font-size:14px}.support-topic p{font-size:12px;color:var(--muted);padding:0 0 18px;margin:0}.support-topic .text-button{font-size:11px;padding:0 0 18px}.support-contact{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.65fr);gap:10px 30px;padding:27px;margin-top:22px}.support-contact>div:first-child{grid-row:1/4}.support-contact label{margin:0}.support-contact .actions{flex-wrap:wrap}.support-contact .hint{margin:0}.support-contact select{width:100%}
.diagnostic-flow{display:grid;gap:8px;margin:18px 0}.diagnostic-flow>div{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:11px;background:#f5f7f3;border:1px solid #e4e8df}.diagnostic-flow>div>span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#e2e7dd;color:#71806a;font-size:11px;font-weight:700}.diagnostic-flow strong,.diagnostic-flow small{display:block}.diagnostic-flow strong{font-size:12px}.diagnostic-flow small{color:var(--muted);font-size:10px;margin-top:2px}.diagnostic-flow>div[data-state=success]{background:#f2f8e9;border-color:#d6e5c1}.diagnostic-flow>div[data-state=success]>span{background:#6f8c4c;color:#fff}.diagnostic-flow>div[data-state=waiting]{background:#fff9e9;border-color:#eadcac}.diagnostic-flow>div[data-state=waiting]>span{background:#d8ae4b;color:#fff}.diagnostic-flow>div[data-state=error]{background:#fff2ef;border-color:#ebc8c0}.diagnostic-flow>div[data-state=error]>span{background:#b85d4f;color:#fff}.diagnostic-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}.diagnostic-actions>*{font-size:11px}.view-panel h1[tabindex="-1"]:focus{outline:none}
footer{font-size:.8rem;padding:1.2rem 2rem;background:white}
.skip-link{position:fixed;top:-100%;left:1rem;background:var(--ink);color:white;padding:.8rem;z-index:100}
.skip-link:focus{top:1rem}
@media(min-width:1600px){#workspace{border-inline:1px solid var(--line)}}
@media(max-width:1200px){#workspace{grid-template-columns:210px minmax(0,1fr)}.connections{grid-template-columns:1fr}.summary a{margin-left:0}.account-grid{grid-template-columns:1fr}.connection{padding:1.5rem}.sidebar nav a{font-size:.875rem}}
@media(max-width:800px){.header{padding:0 1.25rem}.brand small{display:none}.header-right{gap:.65rem}#user-email{max-width:170px;font-size:.8rem}.auth-layout{gap:2rem;padding:3rem 1.5rem}.intro h1{font-size:2.4rem}#workspace{display:block}.sidebar{min-height:0;border-right:0;border-bottom:1px solid var(--line);padding:.5rem 1rem;background:white}.sidebar-caption,.sidebar-bottom{display:none}.sidebar nav{flex-direction:row;overflow-x:auto;gap:.4rem}.sidebar nav a{white-space:nowrap;padding:.65rem .75rem}.sidebar nav a span{display:none}#view-outlet{padding:2rem 1.5rem}.workspace-heading{gap:1rem}.account-grid{grid-template-columns:1fr}}
@media(max-width:900px){.quick-start{grid-template-columns:1fr auto}.quick-start-progress{grid-column:1}.quick-start:after{right:40px}.setup-journey,.support-grid{grid-template-columns:1fr}.support-hero,.support-contact{grid-template-columns:1fr}.support-hero input,.support-hero #support-search-empty{grid-column:1}.support-contact>div:first-child{grid-row:auto}}
@media(max-width:600px){.auth-layout{padding:2rem 1rem;flex-direction:column-reverse}.auth-card{padding:1.5rem}.intro{padding:1rem}.intro h1{font-size:2.2rem}.intro .lead{font-size:1rem}.header{height:70px;padding:0 1rem}.brand{font-size:1.2rem;gap:.6rem}.brand-mark{width:30px;height:30px;font-size:1.2rem}#user-email{max-width:120px}.header-right{gap:.3rem}#logout{padding:.5rem;font-size:.8rem}.local-badge{display:none}#view-outlet{padding:1.5rem 1rem}.workspace-heading{align-items:stretch;flex-direction:column}.workspace-heading h1{font-size:1.7rem}.workspace-heading .muted{font-size:.95rem}.summary{gap:.75rem 1rem}.summary span:nth-child(3){display:block;flex-basis:100%}.summary a{flex-basis:100%}.sync-bar{flex-direction:column;align-items:flex-start;gap:.6rem}.sync-bar button{min-height:38px}.connection-toolbar{gap:.5rem}.connection-toolbar input{max-width:none}.connection{padding:1.1rem}.connection-heading{gap:.65rem;flex-wrap:wrap}.connection-title{flex-basis:calc(100% - 60px)}.status{margin-left:calc(38px + .65rem)}.connection-actions button{font-size:.875rem}.guide-steps>li{gap:.8rem}.guide-steps h2{font-size:1.1rem}.account-card{padding:1.2rem}dialog{padding:1.25rem}.copy-row{flex-wrap:wrap}.copy-row input{flex-basis:100%}.copy-row button{min-height:38px}.actions{flex-wrap:wrap}.result-scroll{max-height:50dvh}footer{padding:1rem;flex-direction:row;flex-wrap:wrap;gap:.5rem 1rem}footer span{display:none}}
@media(max-width:600px){.auth-progress{gap:5px}.auth-progress span{font-size:8px}.auth-progress i{width:20px;height:20px}.quick-start{grid-template-columns:1fr;padding:21px}.quick-start-progress{grid-column:auto}.quick-start button{justify-self:start}.quick-start:after{right:-12px;top:-20px}.onboarding-overview{grid-template-columns:1fr;text-align:center}.onboarding-score{margin:auto}.onboarding-overview .progress-track{text-align:left}.setup-step{padding:19px;min-height:auto}.support-hero,.support-contact{padding:21px}.support-topic{padding:0 17px}.button-link{min-height:42px}.diagnostic-actions>*{width:100%}}
@media(max-width:600px){.summary span:nth-child(3){display:none}.sync-bar{flex-direction:row;align-items:center;gap:.75rem}.sync-bar>div{min-width:0}.sync-bar small{display:none}.sync-bar button{flex-shrink:0;font-size:.8rem;padding:.5rem .6rem}.sync-bar p{font-size:.8rem}.connection-toolbar label{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:600px){.header{height:auto;min-height:70px;flex-wrap:wrap;padding-block:.75rem}.workspace-heading h1{overflow-wrap:anywhere}.account-card{min-width:0}}

/* Reversible local design study. Functional styles above remain the baseline. */
:root{--bg:#f5f6f2;--surface:#fff;--ink:#252c23;--muted:#626c5d;--line:#dde3d6;--accent:#4b692e;--accent-dark:#3b5621;--soft:#eef4e5;--danger:#af3c3c;--radius:20px;--lime:#d1f58c}
body{font-family:"Segoe UI",Arial,sans-serif;background:radial-gradient(ellipse at 100% 0,#e4edd74d,transparent 45%),var(--bg)}
button,input,textarea,select{font-family:inherit}
button,a.secondary{border-radius:10px;min-height:44px;font-size:13px;transition:background .18s,box-shadow .18s,transform .18s}
button.primary{background:var(--lime);color:#2b391c;border:1px solid #badc81;box-shadow:inset 0 1px 1px #f8ffe6,0 3px 4px #6e852416}
button.primary:hover{background:#c1e877;box-shadow:0 5px 12px #82945c25}
button.primary:active{transform:translateY(1px)}
button.secondary,a.secondary{border-color:#d8e0ce;background:#fff;color:#424f36;box-shadow:0 1px 3px #32472105}
button.secondary:hover,a.secondary:hover{background:#f4f8ee;border-color:#bcccaa}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline-color:#719a42}
button.text-button:hover{color:#3e6024;background:#ecf3e2}
h1,h2,h3{font-weight:600}
h1{letter-spacing:-.055em;font-size:34px}
h2{letter-spacing:-.035em}
.eyebrow{font-size:10px;letter-spacing:.12em;color:#71825f;font-weight:600}
input:not([type=checkbox]),textarea{border-radius:11px;border-color:#d9e0d2;background:#fcfdfb;box-shadow:inset 0 1px 2px #23382003}
input:focus,textarea:focus{outline-color:#9abb7040;border-color:#87a865}
input[readonly],textarea[readonly]{background:#f5f7f1;color:#465b36}
.header{height:84px;background:#fcfdf9db;backdrop-filter:blur(12px);border-bottom:1px solid #e0e5d8;padding-inline:32px}
.brand{font-size:21px;gap:10px;letter-spacing:-.06em}
.brand-mark{width:37px;height:37px;background:#283224;color:#dbf6b3;border-radius:12px;font-size:29px;letter-spacing:-3px;line-height:1;padding-bottom:5px;box-shadow:inset 0 1px 1px #ffffff35,0 3px 4px #18261312}
.brand small{font-size:8px;letter-spacing:.1em;color:#78836a;margin-top:6px}
.header-right{gap:15px}
.local-badge{border-radius:50px;border-color:#d5e1c7;color:#61764a;background:#f2f8e9;font-size:10px;padding:5px 11px}
#user-email{font-size:12px;color:#5c6952}
#logout{font-size:12px}
.panel{border-color:#e0e5d9;border-radius:20px}
.auth-layout{max-width:1160px;grid-template-columns:1.12fr 1fr;align-items:center;gap:72px;padding:48px 32px;min-height:calc(100vh - 148px)}
.intro{position:relative;border:1px solid #343f2c;border-radius:28px;padding:34px;background:radial-gradient(ellipse at 80% 35%,#4e623d,#252f22 72%);color:#f0f5e9;overflow:hidden}
.intro h1{font-size:38px;letter-spacing:-.055em;line-height:1.14}
.intro h1 span{color:#d2eca9}
.intro .eyebrow{font-size:9px;letter-spacing:.08em;color:#c1d5a5;margin-bottom:20px}
.intro .lead{font-size:13px;line-height:1.8;color:#c0cbb3;margin-bottom:0}
.auth-sculpture{position:relative;height:190px;max-width:350px;margin:8px auto 12px;perspective:800px}
.auth-platform{position:absolute;width:235px;height:139px;left:calc(50% - 117px);top:50px;background:linear-gradient(135deg,#72805e,#3c4e31);border:1px solid #8c9c7270;border-radius:23px;transform:rotateX(55deg) rotateZ(-26deg);box-shadow:0 7px 0 #24331b,0 9px 0 #6c7b5430,0 25px 27px #10190d40}
.auth-arch{position:absolute;left:calc(50% - 64px);top:16px;width:128px;height:124px;border:34px solid #d1f295;border-bottom:0;border-radius:75px 75px 3px 3px;transform:rotateY(-20deg) rotateZ(-8deg);box-shadow:7px -3px 0 #a9c276,12px -5px 0 #738e4d,inset 6px 2px 0 #76934e;filter:drop-shadow(0 20px 14px #14221150)}
.auth-node{position:absolute;display:grid;place-items:center;width:44px;height:42px;background:linear-gradient(140deg,#f5ffe4,#bfcfac);color:#3d5630;box-shadow:4px 5px 0 #799064,8px 12px 12px #12200e40;border:1px solid #e0ebcf;border-radius:11px;font-size:21px;transform:rotate(-10deg)}
.node-one{left:13%;top:112px;font-size:16px}.node-ai{right:11%;top:87px;transform:rotate(8deg)}
.auth-connection{position:absolute;bottom:0;width:100%;text-align:center;font-size:9px;color:#bdd3a0;letter-spacing:.08em}
.intro .onboarding{margin:18px 0 0}
.intro .onboarding li{margin:15px 0;gap:12px}
.intro .onboarding li>span{width:26px;height:26px;font-size:9px;background:#37472b;color:#c5e49b;border-color:#536445}
.intro .onboarding strong{font-size:12px;font-weight:550;color:#e9f2de}
.intro .onboarding p{font-size:11px;color:#b6c5a5;line-height:1.6}
.intro>.fine{font-size:10px;line-height:1.7;color:#b2c49b;border-top:1px solid #4a5a3c;padding-top:17px;margin-top:18px}
.auth-card{padding:32px;background:#ffffffc9;border:1px solid #fff;box-shadow:0 20px 45px -25px #4e613331,inset 0 1px 0 white;border-radius:24px}
.auth-card h2{font-size:26px;letter-spacing:-.045em}
.auth-card .muted{font-size:13px}
.tabs{padding:5px;background:#eef2e8;border:1px solid #e7edde;border-radius:12px;margin-bottom:28px}
.tab{border-radius:8px;min-height:40px;font-size:12px}
.tab.active{box-shadow:0 2px 4px #37472813;color:#3c5629}
.auth-card label{font-size:12px}
.auth-card .hint,.auth-card .fine,.auth-help,.auth-help p{font-size:11px}
.auth-card input{min-height:48px}
.auth-card #auth-submit{min-height:49px}
.auth-flow-actions{display:flex;justify-content:space-between;gap:12px;margin-top:10px;flex-wrap:wrap}
.auth-flow-actions .text-button,.forgot-password{font-size:11px;padding:7px 0;min-height:34px}
.forgot-password{display:block;margin:7px 0 0 auto}
.auth-status{padding:10px 12px;border-radius:10px;background:#eef5e5;color:#496331}
.auth-help{margin-top:20px;border-color:var(--line)}
#workspace{grid-template-columns:224px minmax(0,1fr);max-width:1600px}
.sidebar{padding:28px 15px;background:#fbfcf8;border-color:#e2e7db;gap:24px}
.sidebar-caption{font-size:9px;color:#7b886c;letter-spacing:.1em;margin:0 13px}
.sidebar nav{gap:6px}
.sidebar nav a{font-size:12px;gap:12px;padding:13px 12px;border-radius:11px;color:#626f55;font-weight:500}
.sidebar nav a span{font-size:17px;color:#859673;width:20px}
.sidebar nav a[aria-current=page]{color:#384f25;background:linear-gradient(100deg,#e8f1da,#f1f6e9);box-shadow:inset 0 0 0 1px #dce8cb,0 2px 3px #516c2605}
.sidebar nav a[aria-current=page] span{color:#527236}
.sidebar nav a:hover{background:#edf3e5}
.sidebar-bottom{padding:18px 13px;background:linear-gradient(135deg,#f4f8ec,#e9f1dd);border:1px solid #dce6cc;border-radius:17px}
.sidebar-bottom strong{font-size:12px;font-weight:600}
.sidebar-bottom p,.sidebar-bottom a{font-size:11px}
.sidebar-bottom small{font-size:10px}
#view-outlet{padding:36px clamp(24px,3vw,48px) 48px}
.workspace-heading{margin-bottom:24px}
.workspace-heading .muted{font-size:13px}
.workspace-heading .eyebrow{margin-bottom:10px}
.summary{display:grid;grid-template-columns:1fr 1fr 1.3fr 1.5fr;gap:0;border:1px solid #e0e7d6;border-radius:17px;background:#ffffffa8;padding:20px 8px;margin-bottom:20px;box-shadow:0 4px 10px #40552604;font-size:12px}
.summary>span,.summary>a{padding:0 14px;margin:0;border-left:1px solid #e6ecdf;font-size:11px}
.summary>span:first-child{border:0}
.summary strong{font-size:20px;font-weight:550;letter-spacing:-.04em;margin-right:4px}
.summary span:nth-child(3){font-size:11px}
.summary a{line-height:1.65;align-self:center}
.sync-bar{margin-bottom:20px}
.sync-bar p{font-size:12px;color:#637653}
.sync-bar small{font-size:10px}
.sync-bar button{font-size:11px;min-height:36px;padding:8px 13px}
.connection-toolbar{gap:12px;margin:22px 0 18px}
.connection-toolbar label{font-size:12px;color:#637057}
.connection-toolbar input{font-size:12px;max-width:340px;min-height:40px;background:#ffffffab}
.connections{gap:22px}
.connection{position:relative;border:1px solid #fff;background:linear-gradient(135deg,#fff,#fafcf6);padding:24px;border-radius:22px;box-shadow:0 8px 24px -14px #40532930;transition:box-shadow .2s,border-color .2s}
.connection:hover{box-shadow:0 12px 30px -15px #40532940;border-color:#dde8ce}
.connection-heading{gap:13px;margin-bottom:20px}
.database-icon{width:43px;height:43px;border-radius:13px;background:linear-gradient(135deg,#f0f8df,#d9e9c0);color:#5b7a3e;border:1px solid #f4ffe6;box-shadow:2px 3px 0 #bacda2,4px 7px 8px #44602e12;transform:rotate(-5deg);font-size:15px}
.connection-title h2{font-size:16px;line-height:1.4;font-weight:600;letter-spacing:-.02em}
.status{background:#f0f2eb;border:1px solid #e3e7da;color:#747c68;border-radius:30px;font-size:10px;padding:4px 8px}
.status.online{background:#edf6df;border-color:#d6e7bc;color:#52772d}
dl>div{font-size:12px;line-height:1.65}
dt{color:#768168}
dd{color:#4b5b3c}
.connection-readiness{border-radius:13px;padding:13px;background:#f4f6ef;border-color:#e3e9d9}
.connection-readiness strong{font-size:12px}
.connection-readiness[data-tone=positive]{background:#f0f7e7;border-color:#d5e6c0}
.connection-readiness[data-tone=positive] strong{color:#52732f}
.readiness-hint{font-size:11px;line-height:1.7;color:#6e7b60}
.queue-state{font-size:10px;color:#7c886e}
.technical-details{font-size:11px;margin-top:15px}
.technical-details .hint{font-size:11px}
.connection-actions{gap:5px}
.connection-actions button{font-size:11px;min-height:36px;padding:7px 9px;border-radius:8px}
.connection-actions .remove{font-size:10px}
.empty{position:relative;overflow:hidden;padding:44px 24px;border:1px solid #fff;background:radial-gradient(ellipse at 50% 15%,#e9f4d780,transparent 60%),#fff;box-shadow:0 10px 25px -20px #40532930}
.empty-symbol{background:linear-gradient(125deg,#f5fde9,#daeac1);border:1px solid #ecf8d9;color:#577938;box-shadow:3px 5px 0 #c3d3ae,8px 14px 18px #4a642312;transform:rotate(-5deg);border-radius:17px;margin-bottom:28px;font-size:17px}
.empty h2{font-size:24px}.empty p{font-size:13px}
.analytics-section{background:linear-gradient(115deg,#ecf4df,#e1edcf);border-color:#dce7cd;position:relative;overflow:hidden;padding:27px;margin-top:27px;box-shadow:inset 0 1px 0 #fbfff4}
.analytics-section:after{content:'✳';position:absolute;right:25px;top:0;font-size:140px;line-height:1;color:#94b56b21;pointer-events:none;transform:rotate(-15deg)}
.analytics-section h2{font-size:20px}
.analytics-section .muted{font-size:13px}
.analytics-section .hint{font-size:10px;max-width:850px}
.analytics-section .actions{position:relative;z-index:1}
.help-note{font-size:11px}
.billing-loading{padding:28px;color:#647356}
.billing-summary{display:flex;justify-content:space-between;gap:28px;align-items:center;padding:28px;background:linear-gradient(125deg,#eef6e2,#fff);border-color:#dce8cc}
.billing-summary h2{font-size:26px;margin:5px 0}.billing-summary dl{display:flex;gap:32px;margin:0}.billing-summary dl>div{display:grid;gap:5px}.billing-summary dd{font-size:26px;font-weight:600;margin:0;color:#405c2c}.billing-summary dt{font-size:11px}
.billing-planned{padding:14px 17px;border:1px solid #d9e6c5;border-radius:13px;background:#f4f8ec;color:#526b3c;font-size:12px}
.billing-actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:22px 0}.billing-card{padding:24px;display:flex;flex-direction:column}.billing-card h2{font-size:19px}.billing-card>p:not(.eyebrow){font-size:12px;color:#6f7c62;min-height:52px}.billing-card form{display:grid;gap:10px;margin-top:auto}.billing-card label{font-size:11px}.billing-card input{min-height:43px}.billing-card button{width:100%}.billing-card .actions{display:flex;align-items:center;flex-wrap:wrap}.billing-price{font-size:18px!important;color:#405c2c!important;font-weight:600;min-height:0!important;margin:3px 0 8px}
.billing-history{padding:27px}.billing-history-heading{display:flex;justify-content:space-between}.billing-history h3{font-size:16px;margin-top:28px}.billing-history-list{display:grid;gap:9px}.billing-history-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;padding:14px 0;border-bottom:1px solid #e6ebdf}.billing-history-list article strong{font-size:12px}.billing-history-list article p{margin:0;font-size:11px;color:#78836d}.billing-history-list article small,.billing-history-list article a{grid-column:2;grid-row:1/3;align-self:center;font-size:10px;max-width:220px;text-align:right;color:#748166}
.analytics-entry{border-radius:18px;border-color:#e2e8da;box-shadow:0 8px 20px -17px #3d52283a}
.analytics-entry h3{font-size:17px}
.analytics-entry p{font-size:12px}
.analytics-entry .hint{font-size:11px}
.analytics-entry .actions button{font-size:11px}
.base-choice{border-radius:11px;font-size:13px}
.base-choice:has(input:checked){background:#edf5e1;border-color:#b9d199}
.base-choice input{accent-color:#64863f}
.guide-steps h2{font-size:18px}.guide-steps p{font-size:13px}.guide-steps .hint{font-size:12px}
.guide-steps>li>span{background:#ebf3df;color:#5d7c3d;border-color:#d0dfbe}
.guide-steps blockquote{background:#eef5e4;border-color:#b4d18d;font-size:13px;border-radius:0 12px 12px 0}
.account-card{padding:27px;box-shadow:0 8px 22px -18px #3d522832}
.account-card p{font-size:13px}.account-card .hint{font-size:11px}
dialog{border:1px solid #e1e8d8;border-radius:23px;box-shadow:0 35px 100px #14231040;padding:28px;background:#fefefa}
dialog::backdrop{background:#202b1b66;backdrop-filter:blur(7px)}
dialog h2{font-size:23px}
dialog p{font-size:13px}
dialog .hint,dialog .warning,dialog .error{font-size:12px}
dialog .fine{font-size:11px}
dialog label{font-size:12px}
.copy-row button{font-size:12px}
.dialog-notice,.notice{border-color:#d1e3b7;background:#f1f8e7;color:#48692b;border-radius:12px}
.result-scroll{border-color:#dce5d0;border-radius:13px}
.result-scroll table{font-size:12px}
.result-scroll th{background:#edf4e2;color:#4b6631}
.result-scroll td{color:#536347}
.history-entry{border-radius:13px;border-color:#e1e8d6}
footer{background:#f9fbf6;border-color:#e0e6d7;font-size:10px;padding:18px 32px}
@media(min-width:1600px){#workspace{border-color:#e0e6d7}}
@media(max-width:1200px){#workspace{grid-template-columns:205px minmax(0,1fr)}.auth-layout{gap:40px}.summary{grid-template-columns:1fr 1fr}.summary>span,.summary>a{padding:10px 16px;border:0}.summary>span:nth-child(2),.summary>a{border-left:1px solid #e6ecdf}.summary>span:nth-child(3),.summary>a{border-top:1px solid #e6ecdf}.summary{padding:6px}.intro h1{font-size:34px}.connections{grid-template-columns:1fr}.billing-actions-grid{grid-template-columns:1fr}}
@media(max-width:800px){.header{padding-inline:20px}.auth-layout{gap:26px;padding:32px 20px}.intro{padding:26px}.intro h1{font-size:29px}.intro .eyebrow{font-size:8px}.auth-card{padding:24px}#workspace{display:block}.sidebar{padding:8px 12px;min-height:0}.sidebar nav{gap:5px;scrollbar-width:thin;scrollbar-color:#cedabc transparent}.sidebar nav a{padding:11px 13px;font-size:11px;flex-shrink:0}.sidebar nav a span{display:none}#view-outlet{padding:27px 22px 36px}.summary{grid-template-columns:1fr 1fr 1.3fr 1.5fr;padding:17px 3px}.summary>span,.summary>a{padding:0 12px;border:0!important}.summary>span+span,.summary>a{border-left:1px solid #e6ecdf!important}.summary>span:nth-child(3),.summary>a{border-top:0}.header-right{gap:10px}.brand small{display:none}}
@media(max-width:600px){.header{min-height:72px;height:auto;padding:15px 18px;gap:10px}.brand{font-size:18px}.brand-mark{width:32px;height:32px;font-size:26px}.header-right{gap:5px}#user-email{font-size:10px;max-width:110px}#logout{font-size:11px}.auth-layout{display:flex;flex-direction:column-reverse;padding:26px 18px;gap:24px}.auth-card{padding:25px 22px;border-radius:22px}.intro{padding:27px 25px;border-radius:23px}.intro h1{font-size:31px}.intro .lead{font-size:13px}.intro .eyebrow{font-size:9px}.auth-sculpture{height:180px}.auth-card .tabs{margin-bottom:23px}.sidebar{padding:8px 10px}.sidebar nav a{font-size:11px;min-height:42px;padding:10px 12px}#view-outlet{padding:27px 18px}.workspace-heading{gap:19px;margin-bottom:23px}.workspace-heading h1{font-size:30px}.workspace-heading .muted{font-size:12px}.workspace-heading>button{align-self:flex-start}.summary{grid-template-columns:1fr 1fr;padding:6px}.summary>span,.summary>a{padding:11px 13px;border:0!important}.summary>span:nth-child(2){border-left:1px solid #e6ecdf!important}.summary>a{grid-column:1/-1;border-top:1px solid #e6ecdf!important;text-align:center;font-size:11px}.summary>span:nth-child(3){display:none}.summary strong{font-size:22px}.sync-bar{gap:10px}.sync-bar p{font-size:11px;line-height:1.6}.sync-bar button{min-height:40px;font-size:10px}.connection-toolbar{margin-top:23px}.connection-toolbar label{font-size:12px}.connection-toolbar input{max-width:none;font-size:12px;min-height:44px}.connection{padding:21px;border-radius:19px}.connection-title{flex-basis:calc(100% - 62px)}.connection-title h2{font-size:16px}.database-icon{width:40px;height:40px}.connection-heading{gap:12px}.status{margin-left:52px}.connection-actions{gap:6px}.connection-actions button{min-height:42px;font-size:11px}.connection-actions .remove{font-size:11px}.analytics-section{padding:23px;border-radius:19px}.analytics-section h2{font-size:20px}.analytics-section .muted{font-size:12px}.analytics-section .actions{flex-wrap:wrap}.analytics-section .actions button{font-size:11px}.analytics-section .hint{font-size:10px}.analytics-section:after{font-size:110px;right:3px}.empty{padding:34px 20px}.empty h2{font-size:23px}.empty p{font-size:12px}.billing-summary{display:grid;padding:22px}.billing-summary dl{gap:20px}.billing-summary dd{font-size:22px}.billing-history{padding:22px}.billing-history-list article{grid-template-columns:1fr}.billing-history-list article small,.billing-history-list article a{grid-column:1;grid-row:auto;text-align:left;max-width:none}.guide-steps>li{gap:12px}.guide-steps h2{font-size:17px}.guide-steps p,.guide-steps .hint{font-size:12px}.account-card{padding:23px}.account-card h2{font-size:21px}dialog{padding:24px 20px;border-radius:20px;width:calc(100vw - 24px);max-height:90dvh}.wide-dialog{width:calc(100vw - 24px)}.dialog-heading h2{font-size:21px}.dialog-heading{gap:12px}.copy-row button{min-height:44px}.result-scroll table{font-size:11px}footer{font-size:10px;padding:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
