:root {
  color: #f7f9fc;
  background: #07101f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 15% 10%, rgb(33 94 165 / 28%), transparent 35rem),
    radial-gradient(circle at 90% 85%, rgb(50 166 138 / 18%), transparent 30rem),
    #07101f;
}

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}

.card {
  width: min(100%, 42rem);
  padding: clamp(2rem, 7vw, 4.5rem);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 2rem;
  background: linear-gradient(145deg, rgb(20 37 64 / 94%), rgb(10 24 43 / 90%));
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 35%);
  backdrop-filter: blur(1.25rem);
}

.mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 3rem;
  border-radius: 1rem;
  color: #06111e;
  background: linear-gradient(135deg, #8ee8cb, #76b7ff);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 0.8rem 2rem rgb(86 186 211 / 22%);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #8ee8cb;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.message {
  max-width: 30rem;
  margin: 1.5rem 0 0;
  color: #b8c6d9;
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.65;
}

.login-form { display: grid; gap: 0.75rem; margin-top: 2rem; max-width: 24rem; }
.login-form label { color: #b8c6d9; font-size: 0.78rem; }
.login-form input { width: 100%; border: 1px solid rgb(255 255 255 / 16%); border-radius: 0.8rem; padding: 0.9rem 1rem; color: #fff; background: rgb(255 255 255 / 7%); font: inherit; outline: none; }
.login-form input:focus { border-color: #8ee8cb; box-shadow: 0 0 0 0.2rem rgb(142 232 203 / 10%); }
.login-form button { border: 0; border-radius: 0.8rem; padding: 0.9rem 1rem; color: #06111e; background: #8ee8cb; font: inherit; font-weight: 700; cursor: pointer; }
.login-form button:disabled { opacity: 0.45; cursor: not-allowed; }
.login-form button.secondary { color: #b8c6d9; background: transparent; font-weight: 500; }
.form-message { min-height: 1.2rem; margin: 0.8rem 0 0; color: #b8c6d9; font-size: 0.8rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(142 232 203 / 18%);
  border-radius: 999px;
  color: #d5e4ee;
  background: rgb(142 232 203 / 6%);
  font-size: 0.85rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #73e5b9;
  box-shadow: 0 0 0 0.3rem rgb(115 229 185 / 12%);
}

@media (max-width: 30rem) {
  .shell {
    display: block;
    padding: 0;
  }

  .card {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(1.5rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: linear-gradient(155deg, rgb(18 37 63 / 78%), rgb(7 16 31 / 95%) 60%);
    box-shadow: none;
  }

  .mark {
    width: 3rem;
    height: 3rem;
    margin-bottom: 2.2rem;
  }

  .login-card h1 { font-size: clamp(2.4rem, 14vw, 3.4rem); }
  .login-card .message { margin-top: 1rem; font-size: 1rem; line-height: 1.5; }
  .login-form { max-width: none; margin-top: 1.6rem; }
  .login-form input, .login-form button { min-height: 3.25rem; font-size: 1rem; }
  .form-message { min-height: 2.5rem; margin-top: 0.7rem; line-height: 1.45; }
  .status { margin-top: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

[hidden] { display: none !important; }
button { font: inherit; }
.cabinet { min-height: 100dvh; display: grid; grid-template-columns: 16rem 1fr; background: #07101f; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 1.5rem 1rem; border-right: 1px solid rgb(255 255 255 / 8%); background: rgb(8 20 37 / 88%); }
.brand { display: flex; align-items: center; gap: 0.75rem; padding: 0 0.5rem; font-size: 1.05rem; font-weight: 750; }
.mini-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 0.7rem; color: #06111e; background: linear-gradient(135deg, #8ee8cb, #76b7ff); font-weight: 850; }
.sidebar nav { display: grid; gap: 0.35rem; margin-top: 3rem; }
.nav-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.9rem; border: 0; border-radius: 0.8rem; color: #8fa2b9; background: transparent; text-align: left; cursor: pointer; }
.nav-item span { width: 1.2rem; color: #8ee8cb; font-size: 1.1rem; }
.nav-item.active { color: #fff; background: rgb(142 232 203 / 10%); }
.sidebar-note { display: grid; gap: 0.45rem; margin-top: auto; padding: 1rem; border: 1px solid rgb(118 183 255 / 15%); border-radius: 1rem; color: #a9bad0; background: rgb(118 183 255 / 5%); font-size: 0.75rem; line-height: 1.5; }
.sidebar-note b { color: #fff; font-size: 0.8rem; }
.workspace { min-width: 0; padding: clamp(1.5rem, 4vw, 3.5rem); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.topbar h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.account-menu { display: flex; align-items: center; gap: 0.7rem; }
.account-menu > div { display: grid; gap: 0.2rem; }
.account-menu small { color: #8fa2b9; font-size: 0.72rem; }
.account-menu button { border: 0; color: #8fa2b9; background: transparent; cursor: pointer; font-size: 1.2rem; }
.avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; color: #06111e; background: #8ee8cb; font-size: 0.78rem; font-weight: 800; }
.hero-panel { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; min-height: 16rem; padding: clamp(1.8rem, 5vw, 3.5rem); border: 1px solid rgb(255 255 255 / 9%); border-radius: 1.7rem; background: radial-gradient(circle at 82% 30%, rgb(142 232 203 / 18%), transparent 18rem), linear-gradient(125deg, #152c4a, #0a1c32); box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 20%); }
.hero-panel h2 { max-width: 40rem; margin: 0.8rem 0 1rem; font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.045em; }
.hero-panel p { max-width: 36rem; margin: 0; color: #aebed2; line-height: 1.6; }
.hero-tag { color: #8ee8cb; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-orbit { flex: 0 0 auto; display: grid; place-items: center; width: 9rem; height: 9rem; margin-left: 2rem; border: 1px solid rgb(142 232 203 / 30%); border-radius: 50%; box-shadow: 0 0 0 1.3rem rgb(142 232 203 / 4%), 0 0 0 2.7rem rgb(142 232 203 / 3%); }
.hero-orbit span { margin-bottom: -1rem; font-size: 3rem; font-weight: 800; }
.hero-orbit small { color: #8ee8cb; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0; }
.metrics article, .dashboard-card { padding: 1.4rem; border: 1px solid rgb(255 255 255 / 8%); border-radius: 1.2rem; background: rgb(16 32 54 / 78%); }
.metrics article { display: grid; gap: 0.7rem; }
.metrics span { color: #91a3ba; font-size: 0.8rem; }
.metrics strong { font-size: 2.2rem; letter-spacing: -0.04em; }
.metrics small { color: #91a3ba; }
.metrics .positive { color: #8ee8cb; }
.dashboard-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-head h2, .focus-card h2 { margin: 0.3rem 0 0; font-size: 1.25rem; }
.section-head button, .focus-card button { border: 0; color: #8ee8cb; background: transparent; cursor: pointer; }
.agenda { display: grid; margin-top: 1rem; }
.agenda article { display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgb(255 255 255 / 7%); }
.agenda time { color: #8ee8cb; font-size: 0.82rem; font-weight: 700; }
.agenda article span { display: grid; gap: 0.25rem; }
.agenda small { color: #899cb3; }
.agenda i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #f0c677; }
.agenda i.green { background: #8ee8cb; }.agenda i.blue { background: #76b7ff; }
.focus-card { display: flex; flex-direction: column; background: linear-gradient(150deg, rgb(28 57 76 / 95%), rgb(14 35 57 / 90%)); }
.focus-card > p:not(.eyebrow) { color: #aebed2; line-height: 1.6; }
.progress { overflow: hidden; height: 0.45rem; margin-top: auto; border-radius: 2rem; background: rgb(255 255 255 / 9%); }
.progress span { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8ee8cb, #76b7ff); }
.focus-card > small { margin: 0.7rem 0 1.2rem; color: #8fa2b9; }
.focus-card > button { align-self: flex-start; padding: 0; }

@media (max-width: 58rem) {
  .cabinet { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; padding: 1rem; }
  .sidebar nav { display: flex; margin: 0 0 0 auto; }.sidebar-note { display: none; }.nav-item { font-size: 0; }.nav-item span { font-size: 1.2rem; }
  .metrics, .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) {
  .workspace { padding: 1.1rem; }.topbar { align-items: flex-start; margin-bottom: 1.5rem; }.account-menu > div { display: none; }
  .hero-panel { min-height: 20rem; align-items: flex-start; }.hero-orbit { position: absolute; right: -2rem; bottom: -2rem; opacity: 0.55; }
  .metrics { grid-template-columns: 1fr 1fr; }.metrics article:first-child { grid-column: 1 / -1; }
}
