/* Shared GSO presentation for desktop, tablet and phone. Native controls only. */
:root { color-scheme: light; --gso-surface:#ffffff; --gso-soft:#f2f6f2; --gso-border:#dee7e0; --gso-accent:#1b5540; }
body { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.app-shell { font-family:"Segoe UI",Arial,sans-serif; }
.app-content { max-width:1780px; margin-inline:auto; animation:none; }
.app-content .panel { border-radius:16px; background:var(--gso-surface); box-shadow:0 3px 18px #183d2d07; }
.app-content h1 { letter-spacing:-.035em; }
.app-content :is(input,select,textarea) { accent-color:var(--gso-accent); }
.app-content :is(input,select,textarea):focus-visible { outline:3px solid #d9e9c6; outline-offset:2px; border-color:#7b9c72; }
.java-table-wrap { max-width:100%; min-width:0; overscroll-behavior-x:contain; scrollbar-width:thin; }
.java-table-wrap:focus-visible { outline:3px solid #c4d8b4; outline-offset:3px; }
.java-table-wrap td { vertical-align:middle; }
.java-table-wrap tbody tr { transition:background-color .15s ease; }
.plant-api-table-item { border-radius:10px; }
.api-history-note { line-height:1.5; overflow-wrap:anywhere; }
.page-heading .java-actions,.admin-overview-heading .java-actions { align-items:center; flex-wrap:wrap; }
.plant-api-popup,.api-test-popup,.plant-delete-popup { max-width:calc(100vw - 32px); max-height:calc(100svh - 32px); overflow:auto; overscroll-behavior:contain; }
.api-test-response pre,.api-test-popup pre { white-space:pre-wrap; overflow-wrap:anywhere; }
@media (min-width:901px) {
 .app-sidebar .nav-toggle { display:none; }
 .app-topbar { border-bottom-color:#e2eae3; }
 .app-content { padding-inline:clamp(28px,3.2vw,52px); }
 .page-heading h1,.admin-overview h1 { font-size:clamp(30px,2.5vw,40px); }
 .app-content .page-heading { padding-bottom:6px; }
}
@media (max-width:1100px) and (min-width:761px) {
 .app-content { padding-inline:24px; }
 .admin-api-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .profile-layout { grid-template-columns:1fr; }
}
@media (max-width:900px) {
 .app-shell { display:block; padding-top:76px; }
 .app-shell .app-sidebar { position:fixed; top:0; left:0; right:0; bottom:auto; width:100%; height:76px; z-index:40; display:block; border-bottom:1px solid #ffffff16; }
 .app-sidebar .sidebar-brand { display:flex; justify-content:flex-start; gap:14px; height:76px; min-height:76px; padding:12px 18px; padding-right:110px; border:0; }
 .sidebar-brand .brand-logo { width:112px; height:50px; object-fit:contain; border-radius:10px; flex-shrink:0; }
 .sidebar-brand > span:last-child { font-size:10px; max-width:105px; }
 .app-sidebar .nav-toggle { display:block; position:absolute; width:1px; height:1px; min-height:0; margin:0; padding:0; opacity:0; left:0; top:0; border:0; }
 .app-sidebar .mobile-nav-label { display:flex; align-items:center; justify-content:center; position:absolute; right:16px; top:16px; width:78px; height:44px; padding:0; margin:0; font-size:13px; gap:7px; color:#f2f7ee; border:1px solid #ffffff30; border-radius:10px; background:#ffffff09; cursor:pointer; }
 .mobile-nav-label::before { content:none; }
 .mobile-nav-symbol { font-size:0; }
 .mobile-nav-symbol::before { content:"☰"; font-size:15px; }
 .nav-toggle:checked + .mobile-nav-label .mobile-nav-symbol::before { content:"✕"; }
 .mobile-nav-label .nav-close-text { display:none; }
 .nav-toggle:checked + .mobile-nav-label .nav-open-text { display:none; }
 .nav-toggle:checked + .mobile-nav-label .nav-close-text { display:inline; }
 .nav-toggle:focus-visible + .mobile-nav-label { outline:3px solid #cce4aa; outline-offset:3px; }
 .app-sidebar .nav-toggle:not(:checked) ~ .nav-body { display:none; }
 .app-sidebar .nav-toggle:checked ~ .nav-body { display:flex; position:absolute; top:76px; left:0; right:0; max-height:calc(100svh - 76px); height:auto; overflow-y:auto; padding:18px; margin:0; background:#10392e; border-bottom:1px solid #51725f; box-shadow:0 20px 30px #0b2b3330; }
 .nav-body .nav-section-title { margin-top:0; margin-bottom:12px; }
 .nav-body .nav-link { min-height:46px; padding:12px 14px; }
 .nav-body .nav-spacer { display:none; }
 .nav-body .sidebar-status { margin-top:18px; }
 .nav-body .system-footer-sidebar { margin-top:16px; }
 .app-shell .app-main { width:100%; margin:0; min-width:0; }
 .app-main .app-topbar { position:relative; top:auto; height:64px; min-height:64px; padding:10px 18px; gap:10px; }
 .app-topbar .environment-badge { display:flex; font-size:9px; letter-spacing:.04em; white-space:nowrap; }
 .topbar-account { gap:9px; min-width:0; }
 .workspace-profile > span:last-child { display:none; }
 .workspace-profile .workspace-avatar { width:32px; height:32px; font-size:13px; }
 .topbar-account .primary-action,.topbar-account .secondary-action { min-height:40px; padding:8px 12px; font-size:12px; }
 .notification-menu summary { font-size:10px; padding:8px; }
 .notification-panel { position:fixed; top:140px; right:12px; left:auto; width:min(380px,calc(100vw - 24px)); min-width:0; max-height:65svh; overflow:auto; z-index:45; }
 .profile-layout { grid-template-columns:1fr; }
}
@media (max-width:760px) {
 .app-content { padding:26px 16px max(36px,env(safe-area-inset-bottom)); }
 .app-content h1,.admin-overview h1 { font-size:28px; line-height:1.2; }
 .app-content h2 { line-height:1.35; }
 .app-content .section-label { font-size:10px; }
 .app-content .page-heading,.admin-overview-heading { gap:18px; align-items:stretch; flex-direction:column; margin-bottom:24px; }
 .page-heading .java-actions,.admin-overview-heading .java-actions { width:100%; justify-content:flex-start; display:flex; gap:8px; }
 .page-heading .java-actions > :is(a,form),.admin-overview-heading .java-actions > :is(a,form) { flex:1 1 auto; }
 .page-heading .java-actions form button,.admin-overview-heading .java-actions form button { width:100%; }
 .app-content :is(.primary-action,.secondary-action,button) { min-height:44px; }
 .app-content :is(input,select,textarea),.signup-form input,.auth-field input,.account-tools-form input:not([type=checkbox]) { font-size:16px; }
 .app-content .panel { padding:18px; border-radius:14px; }
 .admin-overview-context { font-size:10px; margin-bottom:24px; gap:8px; line-height:1.6; }
 .admin-api-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .admin-api-card { min-width:0; padding:16px; border-radius:14px; }
 .admin-api-card h2 { font-size:12px; padding-right:15px; }
 .admin-api-card::before { width:6px; height:6px; top:20px; right:18px; box-shadow:none; }
 .admin-api-card > strong { font-size:32px; margin:14px 0 10px; }
 .admin-api-card p { font-size:11px; min-height:34px; line-height:1.5; margin-bottom:10px; }
 .admin-api-card a { font-size:11px; padding-top:10px; }
 .admin-api-activity { margin-top:20px; }
 .admin-api-activity > header { padding:20px 18px; }
 .admin-api-activity .java-table-wrap { margin-inline:12px; }
 .app-content .java-table-wrap:not([data-plant-table=true])::before { content:"Swipe table to see more →"; display:block; position:sticky; left:0; padding:9px 12px; background:#f7faf6; color:#708676; font-size:10px; border-bottom:1px solid #e3eae3; }
 .java-table-wrap:not([data-plant-table=true]) table { min-width:680px; }
 .app-content .java-table-wrap th { font-size:10px; padding:12px; }
 .app-content .java-table-wrap td { padding:14px 12px; font-size:13px; }
 .app-content .java-table-wrap[data-plant-table=true] { border:0; border-radius:0; background:transparent; overflow:visible; }
 .app-content .java-table-wrap[data-plant-table=true] table { display:block; width:100%; min-width:0; table-layout:auto; }
 .java-table-wrap[data-plant-table=true] thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .java-table-wrap[data-plant-table=true] tbody { display:block; }
 .java-table-wrap[data-plant-table=true] tr.plant-record { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid #dce6dd; border-radius:14px; margin-bottom:16px; padding:16px; background:#fff; overflow:visible; }
 .app-content .java-table-wrap[data-plant-table=true] .plant-record td { display:block; min-width:0; padding:8px; border:0; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
 .plant-record td[data-label]::before { content:attr(data-label); display:block; color:#7a8c7e; font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; margin-bottom:5px; }
 .plant-record td:nth-child(3) { grid-column:1/-1; order:-1; font-size:20px !important; font-weight:650; padding-bottom:12px !important; }
 .plant-record td:nth-child(n+6) { grid-column:1/-1; }
 .plant-record td:last-child::before { display:none; }
 .plant-record .plant-api-table-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:12px; margin-top:8px; border:1px solid #e3eade; background:#f8faf5; border-radius:10px; }
 .plant-api-table-item .plant-api-controls { min-width:0; }
 .plant-api-controls button { width:auto; min-width:55px; padding:8px 12px; }
 .plant-api-name-result .plant-api-dataset-button { width:100%; text-align:left; min-height:36px; padding:8px; }
 .plant-record .plant-row-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
 .plant-row-actions > :is(a,button) { width:100%; margin:0; min-height:44px; }
 .location-filter-panel,.api-filter-panel { padding:16px; }
 .location-query h2 { font-size:19px; }
 .plant-config-filters.location-query { padding-top:18px; }
 .location-query > footer .java-actions { justify-content:stretch; }
 .location-query > footer .java-actions > * { flex:1; }
 .location-query > footer p { font-size:11px; }
 .location-choice { padding:12px; }
 .location-value { min-height:42px; }
 .plant-editor-header,.plant-editor-footer { flex-direction:column; align-items:stretch; gap:16px; }
 .plant-editor-footer .java-actions { width:100%; display:flex; }
 .plant-editor-footer .java-actions > * { flex:1; }
 .plant-details-grid,.profile-fields,.plant-api-grid { grid-template-columns:1fr; }
 .plant-editor-aside { order:2; }
 .plant-editor .plant-editor-card { padding:0; }
 .plant-editor-card > header,.plant-connections-body,.plant-details-body { padding:20px; }
 .api-test-popup[open] { width:calc(100vw - 24px); max-width:calc(100vw - 24px); max-height:calc(100svh - 32px); padding:24px 20px; border-radius:18px; }
 .api-test-popup h2 { font-size:23px; }
 .api-test-metrics { grid-template-columns:1fr; gap:8px; }
 .api-test-metrics > div { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px; }
 .plant-api-popup { width:calc(100vw - 24px); max-width:calc(100vw - 24px); max-height:calc(100svh - 24px); border-radius:16px; }
 .plant-api-popup-header { padding:20px; gap:12px; }
 .plant-api-popup-icon { display:none; }
 .plant-api-popup h2 { font-size:22px; }
 .plant-api-popup-toolbar { padding:14px 20px; }
 .plant-api-popup .plant-api-heading { display:none; }
 .plant-api-popup .plant-api-scroll { max-height:52svh; margin:0 16px; }
 .plant-api-popup .plant-api-item { grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:14px 8px; }
 .plant-api-item > strong { grid-column:1; }
 .plant-api-item > span { grid-column:1/-1; grid-row:2; font-size:11px; overflow-wrap:anywhere; word-break:break-word; }
 .plant-api-item > form { grid-column:2; grid-row:1; }
 .plant-api-popup-footer { padding:16px 20px; }
 .plant-delete-popup { width:calc(100vw - 32px); padding:24px; }
 .java-pagination { gap:10px; flex-wrap:wrap; }
 .account-tools-card { padding:20px !important; }
 .account-tools-option { padding:14px; }
 .account-guide-step { padding:20px !important; gap:12px; }
 .account-guide-step h2 { font-size:18px; }
 .account-guide-step p { font-size:13px; }
}
@media (max-width:480px) {
 body.auth-page .auth-story { padding:22px; }
 body.auth-page .auth-brand-logo { width:112px; }
 body.auth-page .auth-story-copy { margin-top:18px; }
 body.auth-page .auth-story h1 { font-size:23px; line-height:1.22; }
 body.auth-page .auth-eyebrow { font-size:8px; margin-bottom:10px; }
 body.auth-page .auth-access { padding:26px 22px max(28px,env(safe-area-inset-bottom)); }
 .auth-form-heading h2 { font-size:26px; line-height:1.2; }
 .auth-tabs a,.auth-google-button,.auth-submit { min-height:48px; }
 .auth-form { gap:20px; }
 .signup-layout { width:100%; margin:0; border-radius:0; border:0; box-shadow:none; }
 .signup-story { padding:22px; }
 .signup-logo { width:112px; }
 .signup-story-copy { margin-top:18px; }
 .signup-story h2 { font-size:23px; }
 .signup-story-description { font-size:12px; }
 .signup-card { padding:28px 22px max(32px,env(safe-area-inset-bottom)); }
 .signup-heading h1 { font-size:27px; }
 .signup-form { grid-template-columns:1fr; }
 .app-main .app-topbar { padding-inline:12px; gap:6px; }
 .environment-badge { max-width:100px; line-height:1.5; white-space:normal !important; }
 .topbar-account { gap:7px; }
 .topbar-account button { min-height:38px; padding:8px 10px; font-size:11px; }
 .app-content .page-heading > .java-actions { display:grid; grid-template-columns:1fr 1fr; }
 .app-content .page-heading > .java-actions > :last-child { grid-column:1/-1; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
.profile-read-details { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr); gap: 18px 24px; margin: 28px 0; }
.profile-read-details dt { color: #6c8277; font-size: 14px; }
.profile-read-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .profile-read-details { grid-template-columns: 1fr; gap: 6px; }
  .profile-read-details dd { margin-bottom: 16px; }
}
.profile-email-change { margin-top:32px; padding-top:28px; border-top:1px solid var(--gso-border); }
.profile-email-change form { display:grid; gap:16px; margin:22px 0; }
.profile-email-change form button { justify-self:start; }
.verification-steps { display:flex; list-style:none; padding:0; margin:24px 0; gap:12px; }
.verification-steps li { flex:1; display:flex; align-items:center; gap:9px; color:#83928b; padding-bottom:14px; border-bottom:2px solid #e6ece8; }
.verification-steps li > span { display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px; border-radius:50%; background:#edf1ee; font-size:12px; font-weight:700; }
.verification-steps small { font-size:12px; line-height:1.35; }
.verification-steps .is-current { color:#174f3d; border-color:#287a59; font-weight:700; }
.verification-steps .is-current > span { background:#19533f; color:white; box-shadow:0 0 0 4px #edf5e7; }
.verification-steps .is-complete { color:#347357; border-color:#b8d6c2; }
.verification-steps .is-complete > span { background:#e4f0df; }
.verification-resend { border:1px solid #dfe8e2; border-radius:12px; background:#f8faf8; padding:16px 20px; }
.verification-resend summary { cursor:pointer; color:#245c47; font-weight:600; font-size:13px; }
.verification-resend form { margin-bottom:0; }
.profile-email-change .verification-card { max-width:540px; margin:24px auto; padding:32px; gap:16px; border:1px solid #dce7de; border-radius:20px; background:linear-gradient(160deg,#f6faf3 0%,#fff 45%); box-shadow:0 12px 34px #173e2e08; text-align:center; }
.verification-mail-icon { display:grid; place-items:center; width:62px; height:62px; margin:0 auto 4px; background:#e4efda; border:1px solid #d9e8cc; border-radius:18px; color:#1d6045; font-size:29px; }
.profile-email-change .verification-eyebrow { margin:0; color:#5f7b69; font-size:10px; font-weight:700; letter-spacing:.16em; }
.profile-email-change .verification-card h3 { margin:0; color:#173d30; font-size:26px; letter-spacing:-.025em; }
.profile-email-change .verification-description { margin:0; color:#728278; font-size:13px; line-height:1.6; }
.verification-recipient { display:grid; gap:4px; padding:12px 16px; border:1px solid #e2eae1; border-radius:10px; background:#f5f8f2; }
.verification-recipient span { color:#7b8a80; font-size:11px; }
.verification-recipient strong { color:#28513e; font-size:14px; overflow-wrap:anywhere; }
.verification-meta { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; }
.verification-meta span { padding:5px 10px; border-radius:20px; background:#eef3ed; color:#5f7767; font-size:11px; }
.verification-card label { text-align:left; font-size:12px; color:#466751; }
.app-content .verification-code-input { width:100%; min-height:70px; margin-top:8px; text-align:center; font-family:"Segoe UI",Arial,sans-serif; font-size:30px; font-weight:650; letter-spacing:.35em; padding:12px 10px 12px 20px; background:#fff; border:1.5px solid #a7c3ad; border-radius:12px; box-shadow:0 0 0 4px #f2f6ed; }
.verification-code-input::placeholder { color:#b9c7bc; opacity:1; }
.profile-email-change .verification-help { margin:0; font-size:12px; color:#78867e; line-height:1.6; }
.verification-actions { display:grid; gap:10px; margin-top:4px; }
.profile-email-change .verification-actions :is(button,a) { width:100%; justify-self:stretch; justify-content:center; min-height:46px; }
.verification-actions a { background:transparent; border-color:transparent; color:#678071; box-shadow:none; }
.profile-email-change .verification-assurance { margin:4px 0 0; padding-top:16px; border-top:1px solid #e7ede7; color:#7e8e82; font-size:11px; line-height:1.6; }
#change-password { scroll-margin-top:110px; }
@media(max-width:600px) {
 .verification-steps { gap:8px; }
 .verification-steps li { flex-direction:column; text-align:center; gap:9px; }
 .verification-steps small { font-size:10px; }
 .profile-email-change .verification-card { padding:24px 16px; border-radius:15px; }
 .app-content .verification-code-input { font-size:27px; letter-spacing:.28em; min-height:64px; }
}
body:has(.profile-security-overlay) { overflow:hidden; }
.profile-security-actions { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:20px; }
.profile-security-actions > div { padding:20px; border:1px solid #dfe8e0; border-radius:14px; background:#f8faf7; }
.profile-security-actions strong { color:#204d3b; }
.profile-security-actions p { color:#718578; font-size:13px; line-height:1.6; }
.profile-security-overlay { position:fixed; inset:0; z-index:5000; display:flex; align-items:center; justify-content:center; padding:24px; background:#0b2f2580; backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); }
.profile-security-dialog { position:relative; inset:auto; display:block; width:min(620px,100%); max-width:100%; max-height:calc(100dvh - 48px); overflow-y:auto; overscroll-behavior:contain; margin:0; padding:28px 30px; border:1px solid #d8e5d8; border-radius:22px; box-shadow:0 28px 90px #05271940; background:#fff; color:#214737; font-family:"Segoe UI",Arial,sans-serif; }
.profile-security-dialog > header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.profile-security-dialog > header > span { font-size:10px; font-weight:700; letter-spacing:.16em; color:#688675; }
.profile-dialog-close { display:grid; place-items:center; width:36px; height:36px; border:1px solid #dce7de; border-radius:50%; color:#54715f; background:#f5f8f3; font-size:24px; text-decoration:none; }
.profile-dialog-close:hover { background:#e8f1e1; }
.profile-dialog-close:focus-visible { outline:3px solid #b4ce93; outline-offset:3px; }
.profile-security-dialog .profile-email-change { margin:0; padding:0; border:0; scroll-margin:0; }
.profile-security-dialog .profile-email-change > h2 { margin:0 0 12px; font-size:27px; line-height:1.25; letter-spacing:-.025em; }
.profile-security-dialog p { font-size:13px; line-height:1.65; color:#708376; }
.profile-security-dialog .verification-steps { margin:20px 0; }
.profile-security-dialog label { display:grid; gap:8px; font-size:13px; font-weight:600; color:#416650; }
.profile-security-dialog input { box-sizing:border-box; width:100%; min-width:0; min-height:48px; border:1px solid #cbdcce; border-radius:10px; padding:12px 14px; font:400 15px "Segoe UI",Arial,sans-serif; color:#214b38; background:#fff; }
.profile-security-dialog input:focus { outline:3px solid #e2edcf; outline-offset:1px; border-color:#89ac74; }
.profile-security-dialog .verification-code-input { min-height:68px; margin-top:0; text-align:center; font-size:30px; font-weight:650; letter-spacing:.35em; padding-left:24px; border:1.5px solid #a7c3ad; box-shadow:0 0 0 4px #f2f6ed; }
.profile-security-dialog .verification-card { max-width:100%; margin:20px 0 0; padding:24px; box-shadow:none; }
.profile-security-dialog :is(button,.primary-action,.secondary-action) { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:44px; padding:11px 18px; border:1px solid #cbdcce; border-radius:10px; color:#23543e; background:white; text-decoration:none; font:600 13px "Segoe UI",Arial,sans-serif; cursor:pointer; }
.profile-security-dialog :is(button,.primary-action) { background:#19543f; border-color:#19543f; color:white; }
.profile-security-dialog :is(button,a):focus-visible { outline:3px solid #b9d49b; outline-offset:3px; }
.profile-security-dialog .profile-dialog-notice { padding:12px 14px; border:1px solid #d2e3c5; border-radius:10px; color:#3e663d; background:#f0f7e9; }
.profile-security-dialog .profile-error { padding:12px 14px; border:1px solid #f2c7bd; border-radius:10px; color:#ad3828; background:#fff4f0; }
.profile-security-dialog .verification-actions a { background:transparent; border-color:transparent; }
@media(max-width:600px) {
 .profile-security-actions { grid-template-columns:1fr; }
 .profile-security-overlay { padding:12px; }
 .profile-security-dialog { padding:22px 18px; border-radius:17px; max-height:calc(100dvh - 24px); }
 .profile-security-dialog input { font-size:16px; }
 .profile-security-dialog .verification-card { padding:20px 14px; }
 .profile-security-dialog .verification-code-input { font-size:27px; letter-spacing:.28em; }
}
