/* Adapted from Cockpit's current light web shell and sign-in palette. */
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #25313d; background: #f6f7f9; font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #36699b; outline-offset: 3px; }
#loading { display: grid; min-height: 100dvh; place-items: center; color: #526170; }
#auth-overlay { display: flex; min-height: 100vh; min-height: 100dvh; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; padding: clamp(24px, 6vw, 36px); background: #fff; border: 1px solid #e0e5ec; border-radius: 8px; box-shadow: 0 8px 24px rgba(37,49,61,.06); }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px; }
.auth-logo h1 { font-size: 24px; letter-spacing: -.5px; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; color: #fff; background: #36699b; border-radius: 7px; font-weight: 750; font-size: 17px; letter-spacing: -1px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; margin-bottom: 7px; color: #526170; font-size: 13px; }
.auth-field input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; background: #fff; color: #25313d; border: 1px solid #b9c9da; border-radius: 5px; font-size: 16px; outline: none; }
.auth-field input:focus { border-color: #36699b; box-shadow: 0 0 0 3px #e8eef5; }
.auth-btn { width: 100%; min-height: 44px; color: #fff; border: 0; border-radius: 5px; background: #36699b; font-weight: 600; }
.auth-btn:hover:not(:disabled) { background: #34495d; }
.auth-error { color: #a83232; background: #fff1f1; border: 1px solid #efcaca; border-radius: 5px; padding: 12px; overflow-wrap: anywhere; }
#web-shell { --sidebar-width: 250px; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; transition: grid-template-columns 300ms ease; }
#web-shell.sidebar-collapsed { --sidebar-width: 64px; }
#app-sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; border-right: 1px solid #e0e5ec; }
.sidebar-header { display: flex; align-items: center; gap: 8px; min-height: 88px; padding: 16px 12px; }
.web-brand { display: flex; flex: 1; align-items: center; gap: 10px; color: #202c37; font-size: 23px; font-weight: 750; letter-spacing: -1px; }
.icon-button { border: 0; background: transparent; color: #526170; min-width: 36px; min-height: 36px; border-radius: 6px; }
.icon-button:hover { background: #f1f3f6; }
nav { flex: 1; padding: 12px 18px; }
.section-label { color: #7c8794; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; padding: 0 12px; margin: 0 0 10px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 10px 12px; border-left: 2px solid #36699b; border-radius: 0 6px 6px 0; background: #f1f3f6; color: #36699b; font-weight: 650; }
.nav-item:hover { background: #edf3fa; }
.nav-item > :first-child { width: 20px; flex-shrink: 0; font-size: 20px; text-align: center; }
.sidebar-footer { padding: 12px 8px 18px; margin: 0 10px; border-top: 1px solid #e0e5ec; }
#sign-out { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 36px; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: #526170; }
#sign-out:hover { background: #f1f3f6; }
.sidebar-collapsed .sidebar-label, .sidebar-collapsed .web-brand { display: none; }
.sidebar-collapsed .sidebar-header { justify-content: center; padding: 12px 4px; }
.sidebar-collapsed nav { padding-inline: 8px; }
.sidebar-collapsed .nav-item { justify-content: center; padding-inline: 6px; }
.sidebar-collapsed .sidebar-footer { margin-inline: 4px; padding-inline: 4px; }
.sidebar-collapsed #sign-out { justify-content: center; padding-inline: 4px; }
#workspace { min-width: 0; overflow: auto; padding: 28px; }
#workspace header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
h1 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
.eyebrow { margin: 0 0 8px; color: #7c8794; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
#current-user { color: #738090; font-size: 13px; overflow-wrap: anywhere; }
.welcome { padding: 28px; background: #fff; border: 1px solid #e0e5ec; border-radius: 8px; }
.welcome h2 { font-size: 18px; margin: 0 0 10px; }
.welcome p { color: #738090; line-height: 1.6; margin: 0; }
@media (max-width: 700px) {
    #workspace { padding: 20px 16px; }
    .welcome { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    #web-shell { transition: none; }
}
