:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #1d2922;
  background: #edf3ee;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, #d5e5d9, transparent 40rem),
    linear-gradient(145deg, #f8faf8, #e5eee8);
}

[hidden] {
  display: none !important;
}

.screen {
  min-height: 100vh;
}

.screen-centered {
  display: grid;
  padding: 24px;
  place-items: center;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(36, 77, 54, 0.12);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(24, 55, 38, 0.12);
}

.loading-card {
  width: min(100%, 430px);
  padding: 46px;
  text-align: center;
}

.logo {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  place-items: center;
  color: white;
  font-size: 25px;
  font-weight: 800;
  background: #244d36;
  border-radius: 18px;
}

.overline {
  margin: 0 0 8px;
  color: #5b7764;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.light {
  color: rgba(255, 255, 255, 0.75);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: #183826;
}

.spinner {
  width: 32px;
  height: 32px;
  margin: 28px auto 0;
  border: 4px solid #d7e4da;
  border-top-color: #244d36;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-layout {
  display: grid;
  width: min(100%, 1000px);
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border-radius: 28px;
}

.intro {
  display: flex;
  min-height: 570px;
  padding: 70px;
  flex-direction: column;
  justify-content: center;
  color: white;
  background: linear-gradient(145deg, #356044, #173b26);
}

.intro h1 {
  color: white;
  font-size: 44px;
}

.intro p:last-child {
  max-width: 500px;
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.85;
}

.login-card {
  padding: 60px;
  border-radius: 0;
}

.description {
  color: #6b7c70;
  line-height: 1.6;
}

form {
  display: grid;
  gap: 11px;
  margin-top: 30px;
}

label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

input {
  min-height: 52px;
  padding: 0 14px;
  font: inherit;
  background: #f7faf8;
  border: 1px solid #cbd8ce;
  border-radius: 11px;
  outline: none;
}

input:focus {
  background: white;
  border-color: #3d7650;
  box-shadow: 0 0 0 4px rgba(61, 118, 80, 0.13);
}

button {
  min-height: 50px;
  margin-top: 14px;
  padding: 0 20px;
  color: white;
  font: inherit;
  font-weight: 750;
  background: #244d36;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.error {
  padding: 12px;
  color: #8b2424;
  background: #fff0f0;
  border: 1px solid #f1cccc;
  border-radius: 10px;
}

.security {
  margin-top: 23px;
  color: #758278;
  font-size: 12px;
  text-align: center;
}

.protected {
  padding: 28px;
}

header {
  display: flex;
  width: min(100%, 1240px);
  margin: 0 auto 28px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.account {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account > div {
  display: grid;
  text-align: right;
}

.account span {
  color: #6b7c70;
  font-size: 13px;
}

.button-secondary {
  min-height: 43px;
  margin: 0;
  color: #244d36;
  background: #e5efe8;
}

.welcome {
  display: flex;
  width: min(100%, 1240px);
  margin: auto;
  padding: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.welcome p:last-child {
  margin-bottom: 0;
  color: #63756a;
  line-height: 1.6;
}

.connected {
  display: flex;
  flex-shrink: 0;
  padding: 13px 16px;
  align-items: center;
  gap: 10px;
  color: #28543a;
  font-weight: 700;
  background: #edf7ef;
  border-radius: 999px;
}

.connected span {
  width: 10px;
  height: 10px;
  background: #75be87;
  border-radius: 50%;
}

.modules {
  display: grid;
  width: min(100%, 1240px);
  margin: 25px auto 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.module {
  min-height: 210px;
  padding: 25px;
}

.module b {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  place-items: center;
  color: #41654c;
  background: #e8f0ea;
  border-radius: 10px;
}

.module p {
  min-height: 50px;
  color: #69796e;
  font-size: 14px;
  line-height: 1.5;
}

.module small {
  color: #738177;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .login-layout {
    width: min(100%, 520px);
    grid-template-columns: 1fr;
  }

  .intro {
    display: none;
  }

  .login-card {
    padding: 40px;
    border-radius: 24px;
  }

  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .protected {
    padding: 18px;
  }

  header,
  .welcome,
  .account {
    align-items: stretch;
    flex-direction: column;
  }

  .account > div {
    text-align: left;
  }

  .modules {
    grid-template-columns: 1fr;
  }
}

/* V8-SHELL-0.2.0 */

.app-frame {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  padding: 26px 18px;
  flex-direction: column;
  color: white;
  background: linear-gradient(180deg, #173b26, #244d36);
}

.sidebar-brand {
  display: flex;
  padding: 0 8px 30px;
  align-items: center;
  gap: 12px;
}

.sidebar-brand > div:last-child {
  display: grid;
}

.sidebar-brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.sidebar-logo {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

.main-navigation {
  display: grid;
  gap: 7px;
}

.navigation-button {
  display: flex;
  min-height: 50px;
  margin: 0;
  padding: 0 14px;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.76);
  text-align: left;
  background: transparent;
}

.navigation-button:hover,
.navigation-button.active {
  color: white;
  background: rgba(255, 255, 255, 0.13);
}

.navigation-number {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.11);
  border-radius: 8px;
}

.sidebar-footer {
  display: flex;
  margin-top: auto;
  padding: 18px 10px 4px;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.online-dot {
  width: 9px;
  height: 9px;
  background: #79c78c;
  border-radius: 50%;
}

.workspace {
  min-width: 0;
}

.topbar {
  width: auto;
  margin: 0;
  padding: 25px 32px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(36, 77, 54, 0.09);
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
}

.workspace-content {
  padding: 30px 32px 45px;
}

.workspace-section {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.status-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.status-card {
  display: grid;
  min-height: 140px;
  padding: 23px;
  align-content: center;
}

.status-card strong {
  margin: 9px 0 5px;
  color: #244d36;
  font-size: 18px;
}

.status-card small {
  color: #738177;
}

.status-label {
  color: #6d7e72;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.placeholder-card {
  max-width: 720px;
  padding: 44px;
}

.placeholder-card p:not(.overline) {
  color: #63756a;
  line-height: 1.7;
}

.placeholder-card .button-secondary {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    z-index: 5;
    top: 0;
    padding: 12px 15px;
  }

  .sidebar-brand,
  .sidebar-footer {
    display: none;
  }

  .main-navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .navigation-button {
    min-height: 46px;
    padding: 0 8px;
    justify-content: center;
    font-size: 12px;
  }

  .navigation-number {
    display: none;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .topbar,
  .workspace-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .main-navigation {
    overflow-x: auto;
  }

  .navigation-button {
    min-width: 92px;
  }
}

/* V8-LIVE-STATUS-0.5.0 */

.status-card {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.status-card.is-online {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(236, 247, 239, 0.98)
  );
  border-color: rgba(55, 125, 75, 0.28);
}

.status-card.is-offline {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 241, 241, 0.98)
  );
  border-color: rgba(164, 63, 63, 0.28);
}

.status-card.is-offline strong {
  color: #8a3030;
}


/* V8-MOBILE-NAVIGATION-0.7.0 */

.mobile-menu-button,
.mobile-menu-close,
.mobile-sidebar-header,
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 900px) {
  body.mobile-navigation-open {
    overflow: hidden;
  }

  .app-frame {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: fixed;
    z-index: 40;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: min(84vw, 320px);
    min-height: 100vh;
    padding: 18px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 16px 0 40px rgba(16, 31, 22, 0.25);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-brand,
  .sidebar-footer {
    display: flex;
  }

  .mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-bottom: 12px;
    color: #ffffff;
  }

  .mobile-menu-close {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 28px;
  }

  .main-navigation {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .navigation-button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0 15px;
    justify-content: flex-start;
    font-size: 14px;
  }

  .navigation-number {
    display: inline;
  }

  .mobile-menu-overlay {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(8, 18, 12, 0.55);
    backdrop-filter: blur(2px);
  }

  .mobile-menu-overlay[hidden] {
    display: none;
  }

  .workspace {
    min-width: 0;
  }

  .topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
  }

  .mobile-menu-button {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(36, 77, 54, 0.18);
    border-radius: 12px;
    background: #ffffff;
  }

  .mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #244d36;
  }

  .topbar > div:first-of-type {
    min-width: 0;
  }

  .topbar h1 {
    overflow: hidden;
    font-size: clamp(21px, 6vw, 28px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account {
    gap: 8px;
  }

  .account > div {
    max-width: 145px;
  }

  .account strong,
  .account span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #logout-button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .account {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    padding-top: 9px;
    justify-content: space-between;
    border-top: 1px solid rgba(36, 77, 54, 0.1);
  }

  .account > div {
    max-width: calc(100vw - 135px);
    text-align: left;
  }

  .workspace-content {
    padding-top: 18px;
  }

  .welcome {
    padding: 25px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}
