/* p7-ux: an approachable home and an application directory, in the existing theme. */
:root{--ux-line:#ffffff16;--ux-good:#82bd9a;--ux-warn:#e8bd73;--ux-bad:#efa29b;--ux-radius:14px}
:root[data-theme=light]{--ux-line:#23253620;--ux-good:#34734e;--ux-warn:#885b0c;--ux-bad:#a7312a}
.rail{gap:8px;padding:12px 0}.rail-brand{margin-bottom:12px}.rail-main,.rail-pins{display:flex;flex-direction:column;gap:6px;align-items:center}.rail-pins:not(:empty){border-top:1px solid var(--ux-line);padding-top:14px;margin-top:8px}.rail-pin{position:relative}.rail-button{border-radius:11px;min-height:40px;height:40px}.rail-button.active{background:var(--panel);box-shadow:inset 0 0 0 1px var(--ux-line);color:var(--text);position:relative}.rail-button.active:before{content:"";position:absolute;left:-10px;top:13px;width:3px;height:14px;border-radius:3px;background:var(--text)}.user-menu{border-color:var(--ux-line);padding:8px;border-radius:12px}.user-menu button{min-height:44px}.avatar{border-color:var(--ux-line)}
.page.ux-home{max-width:1120px;padding:28px 48px 24px;justify-content:flex-start;gap:0}.home-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.home-wordmark{display:flex;align-items:center;gap:8px;font-weight:600;font-size:17px}.home-wordmark img{width:24px;height:24px}.home-wordmark small{font-size:12px;font-weight:400;margin-left:4px}.home-position{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.home-position select{font-size:12px;padding:5px 24px 5px 8px;border-color:var(--ux-line);background:transparent;color:var(--text)}
.ux-home .home-task-area{width:100%;margin:0 0 26px;text-align:left}.ux-home .home-greeting{color:var(--muted);font-size:14px;margin:0 0 4px}.ux-home .home-task-area h1{font-size:32px;font-weight:600;line-height:1.4;margin:0 0 20px;letter-spacing:-.7px}.ux-home .ai-composer{padding:18px 20px 14px;border:1px solid var(--ux-line);border-radius:16px;background:var(--panel);box-shadow:0 4px 20px #00000008}.ux-home .ai-composer:focus-within{border-color:var(--accent)}.ux-home .ai-composer textarea{width:100%;min-height:66px;height:66px;max-height:160px;resize:vertical;font-size:16px;padding:0;background:none;border:0;line-height:1.8;border-radius:0;outline:none}.ux-home .composer-bottom{margin-top:10px}.ux-home .send-button{margin-left:auto;width:38px;height:38px;background:var(--text);color:var(--bg)}.home-compose-hint{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.home-compose-hint svg{width:14px;height:14px}.home-questions{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:12px;min-width:0;color:var(--muted);font-size:12px}.home-questions button{font-size:12px;color:var(--muted);padding:5px 10px;border-radius:7px;border:1px solid var(--ux-line);text-align:left}.home-questions button:hover{background:var(--hover);color:var(--text)}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;min-width:0}.section-heading h2{margin:0;font-size:15px;font-weight:600;line-height:1.5}.section-heading small,.section-heading .text-button{font-size:11px}.section-heading svg{width:14px;height:14px}.home-health{margin-bottom:26px}.home-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-health-grid:has(>.home-health-card:only-child){grid-template-columns:1fr}.home-health-card{text-align:left;padding:14px 18px;border:1px solid var(--ux-line);border-radius:var(--ux-radius);background:transparent;min-width:0}.home-health-card:hover{background:var(--panel)}.home-health-card>span{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.home-health-card>span svg{width:16px;height:16px}.home-health-card>span svg:last-child{margin-left:auto;width:13px}.home-health-card strong{display:block;font-size:32px;font-weight:600;line-height:1.3;margin:5px 0 2px;font-variant-numeric:tabular-nums}.home-health-card strong small{font-size:12px;font-weight:400;margin-left:6px}.home-health-card p{font-size:11px;color:var(--muted);margin:0}.home-health-card.warn p{color:var(--ux-warn)}.home-health-card.bad p{color:var(--ux-bad)}.health-ok,.monitor-pending{display:flex;align-items:center;gap:10px;border:1px solid var(--ux-line);border-radius:12px;padding:18px;width:100%;font-size:14px;text-align:left;flex-wrap:wrap;margin:0}.health-ok>svg:first-child{color:var(--ux-good)}.health-ok>svg:last-child{margin-left:auto;width:16px}.monitor-pending{color:var(--muted)}.monitor-pending .text-button{margin-left:auto;font-size:12px}.home-bottom{display:grid;grid-template-columns:1fr 1fr;gap:32px}.home-bottom>section{min-width:0}.home-empty{font-size:12px;color:var(--muted);margin:10px 0 0;line-height:1.8}.home-recent{display:flex;gap:10px;align-items:center;padding:10px 0;width:100%;text-align:left;border-bottom:1px solid var(--border);font-size:12px}.home-recent>span:nth-child(2){flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-recent small{font-size:10px;white-space:nowrap}.home-recent>svg{width:13px;color:var(--muted)}.home-apps{display:flex;gap:8px;flex-wrap:wrap}.home-apps>button{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:64px;flex:1;max-width:90px;font-size:11px;padding:0 4px}.home-apps>button>span{width:46px;height:46px;border:1px solid var(--ux-line);border-radius:12px;display:grid;place-items:center;background:var(--panel)}.home-apps b{font-weight:400;white-space:nowrap}.home-apps>button:hover>span{background:var(--hover)}
.apps-page,.monitor-page{max-width:1200px}.apps-search{width:min(520px,100%);min-width:0}.apps-search input{width:100%}.app-categories{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 28px}.app-categories button{font-size:12px;padding:7px 12px;border:1px solid transparent;border-radius:8px;color:var(--muted);min-height:36px}.app-categories button[aria-pressed=true]{border-color:var(--ux-line);background:var(--panel);color:var(--text)}.app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.app-card{border:1px solid var(--ux-line);border-radius:var(--ux-radius);padding:20px;min-width:0;display:flex;flex-direction:column}.app-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.app-symbol{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--ux-line);border-radius:10px;background:var(--panel)}.app-category{font-size:10px;color:var(--muted)}.app-card h2{font-size:16px;font-weight:600;margin:16px 0 6px}.app-card p{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 20px;flex:1}.app-card footer{display:flex;justify-content:space-between;gap:8px;align-items:center}.app-card .text-button,.app-pin{font-size:12px}.app-pin{border-radius:6px;padding:6px 8px;color:var(--muted)}.app-pin:hover{background:var(--hover);color:var(--text)}.app-pin[aria-pressed=true]{color:var(--text)}.apps-empty{color:var(--muted);font-size:14px;padding:40px 0}
.monitor-timestamp{margin:-22px 0 28px;font-size:12px;color:var(--muted)}.monitor-stale{padding:10px 14px;border:1px solid color-mix(in srgb,var(--ux-warn),transparent 65%);border-radius:8px;color:var(--ux-warn);font-size:12px;margin:12px 0 20px}.monitor-block{margin:28px 0}.monitor-lamp{display:inline-block;width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--ux-good)}.monitor-lamp.warn{background:var(--ux-warn)}.monitor-lamp.bad{background:var(--ux-bad)}.monitor-sites{border:1px solid var(--ux-line);border-radius:12px;padding:0 18px}.monitor-site{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--border);min-width:0}.monitor-site:last-child{border:0}.monitor-site>div{flex:1;min-width:0}.monitor-site b{font-size:14px;font-weight:500;overflow-wrap:anywhere}.monitor-site p{margin:3px 0 0;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.monitor-site .text-button{font-size:12px;white-space:nowrap}.monitor-servers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.monitor-server{padding:18px;border:1px solid var(--ux-line);border-radius:12px}.monitor-server h3{display:flex;align-items:center;gap:9px;font-size:14px;margin:0 0 16px;font-weight:500;overflow-wrap:anywhere}.monitor-meter{display:block;margin:12px 0}.monitor-meter>span{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.monitor-meter b{font-weight:400;color:var(--text)}.monitor-meter progress{display:block;appearance:none;width:100%;height:5px;border:0;border-radius:4px;overflow:hidden;margin-top:6px;background:var(--hover);accent-color:var(--muted)}.monitor-meter progress::-webkit-progress-bar{background:var(--hover)}.monitor-meter progress::-webkit-progress-value{background:var(--muted);border-radius:4px}.monitor-meter progress::-moz-progress-bar{background:var(--muted)}.monitor-meter progress.warn::-webkit-progress-value{background:var(--ux-warn)}.monitor-meter progress.bad::-webkit-progress-value{background:var(--ux-bad)}.monitor-server>p{font-size:11px;color:var(--muted);margin:14px 0 0}.monitor-todo{display:flex;gap:12px;align-items:flex-start;padding:18px 0;border-bottom:1px solid var(--ux-line)}.monitor-todo>.monitor-lamp{margin-top:7px}.monitor-todo>div{flex:1;min-width:0}.monitor-todo h3{font-size:14px;font-weight:500;margin:0;overflow-wrap:anywhere}.monitor-todo p{font-size:12px;color:var(--muted);margin:6px 0;overflow-wrap:anywhere}.monitor-todo p b{color:var(--text);font-weight:400}.monitor-todo small{font-size:10px}.monitor-todo>.secondary{font-size:12px;min-height:34px;padding:6px 12px}.monitor-todo.bad h3{color:var(--ux-bad)}.monitor-empty{font-size:13px;color:var(--muted);padding:12px 0}.monitor-details{display:flex;align-items:center;gap:18px;border-top:1px solid var(--ux-line);padding-top:18px;margin-top:32px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.monitor-details .text-button{font-size:12px}
@media(max-width:1100px){.page.ux-home{padding:24px 28px}.home-bottom{gap:24px}.app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.monitor-servers{grid-template-columns:repeat(2,minmax(0,1fr))}.home-questions{gap:6px}.home-questions button{padding:4px 8px}}
@media(max-width:760px){.page.ux-home{padding:24px 20px}.home-top{margin-bottom:28px;gap:8px}.home-wordmark small{display:none}.home-position{font-size:11px;gap:4px}.home-position select{max-width:90px}.ux-home .home-task-area h1{font-size:26px;margin-bottom:18px}.ux-home .ai-composer{padding:16px}.ux-home .ai-composer textarea{height:100px}.home-compose-hint{font-size:10px}.home-bottom{grid-template-columns:minmax(0,1fr);gap:28px}.home-health-grid{grid-template-columns:minmax(0,1fr)}.home-health-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:14px}.home-health-card>span{grid-column:1;grid-row:1}.home-health-card>span svg:last-child{display:none}.home-health-card strong{grid-column:2;grid-row:1/3;margin:0;font-size:30px;align-self:center}.home-health-card p{grid-row:2;grid-column:1}.section-heading{gap:8px}.section-heading small{font-size:10px;text-align:right}.app-grid{grid-template-columns:minmax(0,1fr)}.app-categories{gap:4px;margin:16px 0 22px}.app-categories button{padding:6px 8px;font-size:11px}.app-card{padding:18px}.monitor-servers{grid-template-columns:minmax(0,1fr)}.monitor-todo{flex-wrap:wrap}.monitor-todo>.secondary{margin-left:19px}.monitor-site{gap:8px}.monitor-timestamp{margin-top:-12px}.health-ok{font-size:13px;padding:14px}.health-ok small{font-size:10px}.rail{gap:6px}.rail-main,.rail-pins{gap:4px}.rail-pins:not(:empty){padding-top:10px;margin-top:4px}.monitor-details{gap:12px}}

/* Hide immediately at the CSS breakpoint, before the media-query event runs. */
@media(max-width:760px){.workbench:not(.mobile-sidebar-open) .sidebar,.workbench:not(.mobile-sidebar-open) .sidebar-backdrop{display:none!important}}
