@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root { color-scheme: dark; font-family: Manrope, system-ui, sans-serif; background: #0b0b0d; color: #f2f2f2; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ff4d6d; outline-offset: 3px; }
.muted { color: #a8a8b0; }
.eyebrow { margin: 0; color: #ff4d6d; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.login-layout { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 0, #261017 0, #0b0b0d 42%); }
.login-card { width: min(100%, 430px); border: 1px solid #4c2029; background: #151518; border-radius: 18px; padding: 32px; box-shadow: 0 18px 65px #0009; }
.login-logo { width: 160px; height: 56px; object-fit: contain; object-position: left center; margin-bottom: 20px; }
.login-card h1 { margin: 5px 0 6px; font-size: 28px; letter-spacing: -.04em; }
.login-card > .muted { margin: 0 0 24px; font-size: 14px; line-height: 1.55; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: #0b0b0d; margin-bottom: 22px; }
.mode-switch button { border: 0; border-radius: 7px; background: transparent; color: #9e9ea6; padding: 10px 8px; font-size: 13px; font-weight: 700; }
.mode-switch button.active { background: #2b171c; color: #fff; box-shadow: inset 0 0 0 1px #6b2635; }
.login-form { display: grid; gap: 10px; }
.login-form label { font-size: 13px; font-weight: 700; }
.login-form input, .login-form select, .topbar select { width: 100%; border: 1px solid #414148; background: #0d0d10; color: #f2f2f2; border-radius: 9px; padding: 11px 12px; }
.login-form input::placeholder { color: #777781; }
.login-form .primary { margin-top: 8px; border: 1px solid #ef3656; border-radius: 9px; color: #fff; background: #d90429; padding: 12px; font-weight: 800; }
.login-form .primary:hover { background: #ee123a; }
.login-form .primary:disabled { opacity: .55; cursor: wait; }
.shift-box { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 9px; border: 1px solid #38383f; background: #101013; color: #c9c9ce; font-size: 12px; min-height: 42px; }
.shift-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #7c7c85; }
.shift-dot.active { background: #11b55c; box-shadow: 0 0 10px #11b55c99; }
.error { margin: 16px 0 0; padding: 10px 12px; background: #40171d; border: 1px solid #a73c4b; color: #ffb5c0; border-radius: 9px; font-size: 13px; }
.workspace { height: 100vh; display: grid; grid-template-columns: 214px minmax(0, 1fr); }
.sidebar { min-height: 0; display: flex; flex-direction: column; background: #151518; border-right: 1px solid #2c2c31; padding: 18px 9px 12px; }
.sidebar-brand { color: #f2f2f2; text-decoration: none; display: flex; align-items: center; gap: 8px; padding: 0 8px 22px; font-weight: 800; font-size: 13px; }
.sidebar-brand img { width: 38px; height: 34px; object-fit: contain; }
.sidebar-section-label { padding: 7px 10px 10px; text-transform: uppercase; color: #83838d; letter-spacing: .1em; font-size: 10px; font-weight: 800; }
.sidebar nav { display: grid; gap: 4px; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; color: #c5c5cc; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 10px 12px; font-size: 13px; font-weight: 700; }
.nav-button:hover { background: #242428; color: #fff; }
.nav-button.active { color: #ff4d6d; background: #301a21; border-color: #5b2533; }
.nav-icon { width: 18px; font-size: 17px; line-height: 1; text-align: center; }
.subnav { display: grid; gap: 2px; margin: 0 0 8px 30px; padding-left: 9px; border-left: 1px solid #38383f; }
.subnav button { width: 100%; border: 0; background: transparent; color: #a5a5ad; text-align: left; border-radius: 6px; padding: 8px 6px; font-size: 12px; }
.subnav button:hover { color: #fff; background: #252529; }
.subnav button.active { color: #ff718a; font-weight: 700; }
.sidebar-spacer { flex: 1; }
.sidebar-footer { border-top: 1px solid #303036; padding: 12px 7px 0; display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 11px; color: #a0a0aa; }
.sidebar-footer button { border: 1px solid #4c4c55; background: #222227; color: #eee; border-radius: 7px; padding: 7px 9px; font-size: 11px; }
.content-shell { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 72px; flex: none; border-bottom: 1px solid #2c2c31; background: #151518; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px; }
.page-heading h2 { font-size: 18px; margin: 1px 0 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-right label { color: #9e9ea7; font-size: 12px; }
.topbar select { width: 190px; padding: 8px 10px; font-size: 12px; }
.topbar select:disabled { opacity: .75; }
.role-pill { border: 1px solid #60303c; border-radius: 7px; padding: 7px 10px; background: #2b181e; color: #ff9aab; font-size: 11px; font-weight: 700; white-space: nowrap; }
.module-space { flex: 1; min-height: 0; background: #0b0b0d; }
.module-space iframe { display: block; width: 100%; height: 100%; border: 0; background: #0b0b0d; }
.menu-toggle { display: none; border: 1px solid #4b4b54; background: #202025; color: #fff; border-radius: 7px; padding: 7px 10px; }
@media (max-width: 760px) {
  .workspace { display: block; }
  .sidebar { position: fixed; z-index: 10; left: 0; top: 0; bottom: 0; width: 220px; box-shadow: 0 15px 45px #0009; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .content-shell { height: 100vh; }
  .menu-toggle { display: block; }
  .topbar { height: 64px; padding: 0 12px; gap: 10px; }
  .page-heading h2 { font-size: 15px; }
  .topbar-right label, .role-pill { display: none; }
  .topbar select { width: 120px; }
}
