:root { --page-bottom-space: calc(var(--nx-footer-height) + 2rem); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--nx-background-gradient); background-attachment: fixed; color: var(--nx-color-text); font-family: var(--nx-font-sans); }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.login-shell { display: flex; min-height: 100vh; }
.login-main { align-items: center; display: flex; flex: 1 1 50%; justify-content: center; min-height: calc(100vh - var(--nx-footer-height)); min-width: 0; padding: 1.5rem 1.5rem calc(var(--nx-footer-height) + 1.5rem); position: relative; }
.login-theme-toggle { position: absolute; right: 1.25rem; top: 1.25rem; }
.login-panel { display: grid; gap: 1.05rem; max-width: 27.5rem; width: 100%; }
.login-heading { margin-bottom: .75rem; }
.login-heading h1 { font-size: 2.25rem; font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; }
.login-heading p { color: var(--nx-color-text-muted); line-height: 1.55; margin: 0; }
label { color: var(--nx-color-text-muted); display: grid; font-size: .82rem; gap: .45rem; }
input { background: var(--nx-color-surface-field); border: 1px solid var(--nx-color-border); border-radius: var(--nx-radius-sm); color: var(--nx-color-text); min-height: var(--nx-control-height); padding: .65rem .85rem; }
input:focus-visible { box-shadow: var(--nx-focus-ring); outline: none; }
.login-panel label { display: block; font-size: .875rem; font-weight: 500; }
.login-panel input { border-radius: var(--nx-radius-xs); box-shadow: 0 1px 2px rgba(2, 7, 13, .18); margin-top: .45rem; padding: .68rem 1rem; }
.login-submit, .primary-button { background: var(--nx-color-primary); border: 1px solid var(--nx-color-primary); border-radius: var(--nx-radius-sm); color: var(--nx-color-primary-contrast); min-height: var(--nx-control-height); padding: .6rem 1rem; }
.login-submit { font-weight: 500; margin-top: .3rem; width: 100%; }
.form-message { min-height: 1.25rem; margin: 0; }
.error-text { color: var(--nx-color-danger-text); }
.login-brand { align-items: center; background: radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--nx-color-text-muted) 10%, transparent), transparent 36%), linear-gradient(135deg, var(--nx-color-chrome) 0%, var(--nx-color-background) 52%, var(--nx-color-surface-muted) 100%); border-left: 1px solid var(--nx-color-border-muted); display: flex; flex: 1 1 50%; justify-content: center; min-width: 0; overflow: hidden; padding: clamp(2rem, 6vw, 5rem); }
.login-brand-content { max-width: 28rem; text-align: center; }
.login-brand-content img { height: auto; margin-bottom: 1.25rem; max-width: min(280px, 72vw); width: 100%; }
.login-brand-content h2 { font-size: 1.875rem; font-weight: 600; line-height: 1.2; margin: 0; }
.login-brand-content p { color: var(--nx-color-text-muted); line-height: 1.6; margin: .75rem 0 0; }
.dashboard { min-height: 100vh; padding-bottom: var(--page-bottom-space); }
.nx-icon-button svg { fill: none; height: 1.15rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 1.15rem; }
.dashboard-content { display: grid; gap: 1.25rem; margin: 0 auto; max-width: var(--nx-layout-max-width); padding: 1.5rem var(--nx-layout-side-gap); }
.summary-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-card { display: grid; gap: .75rem; min-height: 9rem; padding: 1.15rem 1.25rem; }
.summary-card > strong { font-size: 1.2rem; font-weight: 600; }
.eyebrow { color: var(--nx-color-text-subtle); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.summary-note, .panel-footer-row, #availabilityDescription { color: var(--nx-color-text-muted); font-size: .8rem; line-height: 1.5; }
.summary-action-row, .panel-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .55rem; }
.status-pill { border: 1px solid var(--nx-color-border); border-radius: 999px; padding: .35rem .65rem; }
.status-pill.enabled { background: var(--nx-color-success-surface); border-color: var(--nx-color-success); color: var(--nx-color-success-text); }
.status-pill.disabled { background: var(--nx-color-warning-surface); border-color: var(--nx-color-warning); color: var(--nx-color-warning-text); }
.compact-button, .panel-actions button, .slot-action { align-items: center; background: var(--nx-color-surface-field); border: 1px solid var(--nx-color-border); border-radius: var(--nx-radius-sm); color: var(--nx-color-text); display: inline-flex; justify-content: center; min-height: 2.35rem; padding: .45rem .75rem; text-decoration: none; }
.compact-button:hover, .panel-actions button:hover, .slot-action:hover { background: var(--nx-color-surface-hover); border-color: var(--nx-color-border-strong); }
.primary-link, .slot-action { background: var(--nx-color-primary); border-color: var(--nx-color-primary); color: var(--nx-color-primary-contrast); }
.panel { overflow: hidden; }
.panel-header, .small-panel-header { align-items: center; background: var(--nx-color-surface-panel); border-bottom: 1px solid var(--nx-color-border-muted); display: flex; justify-content: space-between; padding: 1.15rem 1.4rem; }
.panel-header h1, .small-panel-header h2 { font-size: 1.1rem; font-weight: 600; margin: .2rem 0 0; }
.panel-header p { margin: .55rem 0 0; }
.table-wrap { overflow-x: auto; padding: 1.25rem 1.5rem .75rem; }
table { border-collapse: collapse; width: 100%; }
.availability-table { border: 1px solid var(--nx-color-border-muted); border-collapse: separate; border-radius: var(--nx-radius-sm); border-spacing: 0; min-width: 42rem; overflow: hidden; }
th, td { border-bottom: 1px solid var(--nx-color-border-muted); padding: .85rem 1rem; text-align: left; }
th { background: var(--nx-color-surface-field); color: var(--nx-color-text-muted); font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
td { color: var(--nx-color-text-muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--nx-color-surface-hover) 58%, transparent); }
.slot-time { color: var(--nx-color-text); font-weight: 600; }
.slot-action:disabled { background: var(--nx-color-surface-muted); border-color: var(--nx-color-border-muted); color: var(--nx-color-text-subtle); cursor: default; }
.empty-cell { color: var(--nx-color-text-muted); padding: 1.4rem; text-align: center; }
.panel-footer-row { border-top: 1px solid var(--nx-color-border-muted); display: flex; justify-content: space-between; padding: .75rem 1rem; }
.toast { background: var(--nx-color-info-surface); border: 1px solid var(--nx-color-info); border-radius: var(--nx-radius-sm); bottom: calc(var(--nx-footer-height) + 1rem); color: var(--nx-color-info-text); left: 50%; margin: 0; max-width: min(34rem, calc(100vw - 2rem)); padding: .75rem 1rem; position: fixed; transform: translateX(-50%); z-index: 1000; }
.toast.error { background: var(--nx-color-danger-surface); border-color: var(--nx-color-danger); color: var(--nx-color-danger-text); }
.app-footer { bottom: 0; left: 0; position: fixed; right: 0; z-index: 100; }
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
@media (max-width: 920px) { .summary-grid { grid-template-columns: 1fr; } .panel-header { align-items: flex-start; flex-direction: column; gap: 1rem; } }
@media (max-width: 720px) { .login-shell { display: block; } .login-brand { display: none; } .dashboard-content { padding-top: 1rem; } .panel-actions { width: 100%; } .panel-actions button { flex: 1; } .panel-footer-row { gap: .4rem; flex-direction: column; } .nx-product-brand-copy { display: grid; } }
