:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #fff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --subtle: #94a3b8;
  --border: #e5eaf1;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --violet: #7c3aed;
  --green: #10b981;
  --orange: #f59e0b;
  --sidebar: #111827;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup > span:last-child { display: grid; gap: 1px; }
.brand-lockup strong { font-size: 15px; letter-spacing: -.01em; }
.brand-lockup small { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.brand-lockup-light { color: #fff; }
.brand-lockup-light small { color: #94a3b8; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 8px 20px rgba(37, 99, 235, .28); }
.eyebrow { display: block; margin-bottom: 10px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: #93c5fd; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 750; transition: .2s; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 10px 24px rgba(37, 99, 235, .22); }
.button-primary:hover { transform: translateY(-1px); }
.button-ghost { color: var(--muted); background: transparent; }
.button-ghost:hover { color: var(--text); background: #f1f5f9; }
.button-block { width: 100%; height: 52px; margin-top: 22px; }
.alert { margin: 20px 0; padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 13px; line-height: 1.5; }
.alert-danger { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.login-body { overflow-x: hidden; background: #fff; }
.login-layout { display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(440px, .95fr); min-height: 100vh; }
.login-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 46px 9%; overflow: hidden; background: radial-gradient(circle at 10% 100%, rgba(124, 58, 237, .52), transparent 42%), linear-gradient(145deg, #101827 0%, #172554 58%, #1e3a8a 100%); }
.login-brand-copy { position: relative; z-index: 2; max-width: 600px; margin: auto 0; }
.login-brand-copy h1 { margin: 0 0 24px; color: #fff; font-size: clamp(42px, 5vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.login-brand-copy p { max-width: 530px; margin: 0; color: #cbd5e1; font-size: 18px; line-height: 1.65; }
.brand-orb { position: absolute; border-radius: 50%; opacity: .55; }
.brand-orb-one { right: -120px; top: 10%; width: 340px; height: 340px; background: radial-gradient(circle, rgba(6, 182, 212, .55), transparent 70%); }
.brand-orb-two { left: 35%; bottom: -180px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); }
.login-form-panel { display: grid; place-items: center; padding: 48px 10%; background: #fff; }
.login-card { width: min(100%, 440px); }
.mobile-brand { display: none; margin-bottom: 52px; }
.login-card h2 { margin: 0 0 8px; font-size: 36px; letter-spacing: -.04em; }
.login-subtitle { margin: 0; color: var(--muted); line-height: 1.65; }
.login-assurances { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 26px; color: #047857; font-size: 11px; font-weight: 700; }
.login-help { margin: 28px 0 0; color: var(--subtle); font-size: 11px; text-align: center; }
.app-layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; z-index: 50; display: flex; flex-direction: column; height: 100vh; padding: 22px 14px; overflow: hidden; color: #cbd5e1; background: var(--sidebar); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 18px; }
.sidebar-close { display: none; }
.sidebar-nav { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 4px; padding-right: 5px; overflow-y: auto; }
.nav-section { padding: 22px 13px 8px; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 11px; color: #9ca3af; font-size: 13px; font-weight: 650; }
.nav-item i { display: grid; place-items: center; width: 25px; margin-right: 9px; color: #6b7280; font-style: normal; font-size: 17px; }
.nav-item small { margin-left: auto; color: #64748b; font-size: 9px; text-transform: uppercase; }
.nav-item:hover:not(.disabled) { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(37, 99, 235, .28), rgba(37, 99, 235, .08)); }
.nav-item.active i { color: #60a5fa; }
.nav-item.disabled { opacity: .65; }
.sidebar-footer { padding: 14px 8px 4px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-status { display: flex; align-items: center; gap: 10px; }
.sidebar-status > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(16,185,129,.1); }
.sidebar-status div { display: grid; gap: 2px; }
.sidebar-status strong { color: #d1d5db; font-size: 11px; }
.sidebar-status small { color: #64748b; font-size: 10px; }
.sidebar-backdrop { display: none; }
.app-main-column { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; height: 72px; padding: 0 30px; border-bottom: 1px solid rgba(226,232,240,.8); background: rgba(255,255,255,.9); backdrop-filter: blur(16px); }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; color: var(--muted); background: transparent; }
.menu-button { display: none; margin-right: 10px; }
.environment-badge { padding: 6px 10px; border-radius: 999px; color: #92400e; background: #fffbeb; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--primary)); font-size: 11px; font-weight: 800; }
.user-copy { display: grid; gap: 1px; }
.user-copy strong { max-width: 180px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { max-width: 220px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.app-content { min-height: calc(100vh - 72px); padding: 32px; }
.page { width: min(1400px, 100%); margin: 0 auto; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-header h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: -.04em; }
.page-header p { margin: 0; color: var(--muted); font-size: 13px; }
.security-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #a7f3d0; border-radius: 999px; color: #047857; background: #ecfdf5; font-size: 10px; font-weight: 750; }
.security-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.platform-notice { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 20px; border: 1px solid #bfdbfe; border-radius: var(--radius); background: linear-gradient(135deg, #fff, #eff6ff); }
.notice-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #047857; background: #ecfdf5; font-weight: 900; }
.platform-notice strong { font-size: 14px; }
.platform-notice p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; min-height: 230px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.app-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--primary); background: #eff6ff; font-size: 22px; }
.app-card h2 { margin: 3px 0 8px; font-size: 17px; }
.app-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.app-card footer { grid-column: 1 / -1; align-self: end; padding-top: 16px; border-top: 1px solid var(--border); }
.app-status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-preparing { color: #1d4ed8; background: #eff6ff; }
.status-next { color: #6d28d9; background: #f5f3ff; }
.status-planned { color: var(--muted); background: #f1f5f9; }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { min-height: 260px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.panel-kicker { color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.panel h2 { margin: 8px 0 20px; }
.panel dl { display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: 12px; }
.panel dt { color: var(--muted); font-weight: 700; }
.panel dd { margin: 0; overflow-wrap: anywhere; }
.panel ol { display: grid; gap: 14px; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-state { display: grid; place-items: center; max-width: 600px; margin: 12vh auto; padding: 50px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; text-align: center; }
.empty-state h1 { margin: 18px 0 8px; }
.empty-state p { margin: 0 0 24px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: var(--violet); background: #f5f3ff; font-size: 26px; }
@media (max-width: 1050px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .mobile-brand { display: flex; }
  .login-form-panel { min-height: 100vh; padding: 36px 22px; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 268px; transform: translateX(-105%); transition: transform .2s; }
  .sidebar-visible .sidebar { transform: none; }
  .sidebar-close, .menu-button { display: grid; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(15,23,42,.46); }
  .sidebar-visible .sidebar-backdrop { display: block; }
  .app-content { padding: 24px 18px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .app-grid, .access-grid { grid-template-columns: 1fr; }
  .user-copy { display: none; }
}
@media (max-width: 520px) {
  .topbar { padding: 0 14px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 210px; }
  .login-assurances { grid-template-columns: 1fr; }
  .topbar-actions { gap: 4px; }
  .button-ghost { padding: 0 10px; font-size: 11px; }
}
