* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  background: #ffffff;
  border-bottom: 1px solid #dbe1e7;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-title {
  font-size: 30px;
  font-weight: 700;
  color: #44732e;
  letter-spacing: 0.08em;
}

.logo-subtitle {
  font-size: 9px;
  color: #6b7280;
  /*letter-spacing: 0.02em;*/
}

.tutorial-btn {
  display: inline-block;
  padding: 12px 18px;
  border: 2px solid #44732e;
  border-radius: 10px;
  color: #44732e;
  text-decoration: none;
  font-weight: 600;
  background: #fff;
}

.layout {
  display: flex;
  gap: 28px;
  padding: 28px 32px;
  flex: 1;
}

.sidebar {
  width: 260px;
  background: #ffffff;
  border: 1px solid #dbe1e7;
  border-radius: 16px;
  padding: 20px;
  align-self: flex-start;
}

.sidebar h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 24px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-item {
  text-decoration: none;
  color: #497037;
  font-size: 20px;
  padding: 8px 0;
}

.menu-item::before {
  content: "▸";
  color: #63a644;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  width: 18px;
}

.menu-item.disabled::before {
  color: #cbd5e1;
}

.menu-item.active {
  font-weight: 700;
}

.menu-item.disabled {
  color: #9ca3af;
  pointer-events: none;
  cursor: not-allowed;
}

.menu-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 26px;
  margin-top: -2px;
}

.submenu-item {
  text-decoration: none;
  color: #1f2937;
  font-size: 18px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.submenu-item::before {
  content: "•";
  color: #2563eb;
  font-size: 18px;
  width: 12px;
  display: inline-block;
}

.submenu-item.disabled {
  color: #9ca3af;
  pointer-events: none;
  cursor: not-allowed;
}

.submenu-item.disabled::before {
  color: #cbd5e1;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-card {
  width: min(1150px, 100%);
  min-height: 280px;
  background: #ffffff;
  border: 1px solid #dbe1e7;
  border-radius: 22px;
  padding: 35px;
  margin-top: 10px;
}

.intro-card h1 {
  margin-top: 0;
  text-align: center;
  font-size: 28px;
}

.intro-card p {
  font-size: 18px;
  line-height: 1.6;
}

.action-row {
  margin-top: 40px;
}

.login-btn,
.secondary-btn {
  display: inline-block;
  min-width: 220px;
  text-align: center;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.login-btn {
  background: #44732e;
  color: #ffffff;
}

.secondary-btn {
  background: #e5e7eb;
  color: #111827;
  margin-top: 12px;
}

.full {
  width: 100%;
}

.status-note {
  margin-top: 18px;
  font-size: 16px;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 12px 16px;
}

.hidden {
  display: none;
}

.footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 22px 32px 28px;
}

.powered-by {
  font-size: 12px;
  font-weight: 700;
}

.footer-logos {
  display: flex;
  gap: 2px;
}

.footer-logo {
  min-width: 30px;
  padding: 5px 5px;
  /*border: 1px solid #cbd5e1;
  border-radius: 10px;*/
  background: none;
  text-align: center;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid #dbe1e7;
  border-radius: 18px;
  padding: 28px;
}

.login-card h1 {
  margin-top: 0;
  margin-bottom: 10px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-card label {
  font-weight: 700;
  margin-top: 8px;
}

.login-card input {
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .menu-item {
    font-size: 20px;
  }

  .intro-card h1 {
    font-size: 28px;
  }
}
.home-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-panel {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dbe1e7;
  border-radius: 18px;
  padding: 10px;
}

.app-frame {
  width: 100%;
  height: 900px;
  /*min-height: 700px;
  max-height: 1200px;*/
  border: none;
  border-radius: 12px;
  background: #fff;
  /*overflow: auto;*/
}

.hidden {
  display: none !important;
}