:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
  --green: #0e513d;
  --ink: #183f34;
  --muted: #6a7c76;
  --line: #dce5e1;
  --danger: #a02c2c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(15,81,61,.10), transparent 40%),
    #f4f7f5;
}
.unified-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 20px;
}
.unified-login-card {
  width: min(680px, 100%);
  padding: 44px;
  background: #fff;
  border: 1px solid rgba(14,81,61,.10);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(22,69,55,.11);
}
.unified-brand {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 32px;
}
.unified-brand img {
  display: block;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  object-fit: cover;
  border-radius: 26px;
}
.unified-brand h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
}
.unified-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
#unified-login-form {
  display: grid;
  gap: 18px;
}
#unified-login-form label {
  display: grid;
  gap: 8px;
  font-weight: 750;
}
#unified-login-form input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
#unified-login-form input:focus {
  outline: 3px solid rgba(14,81,61,.12);
  border-color: var(--green);
}
#unified-login-button {
  margin-top: 4px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
#unified-login-button:disabled {
  opacity: .65;
  cursor: wait;
}
.login-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}
#unified-login-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--danger);
  font-weight: 700;
}
@media (max-width: 600px) {
  .unified-login-card {
    padding: 30px 22px;
    border-radius: 22px;
  }
  .unified-brand {
    gap: 18px;
  }
  .unified-brand img {
    width: 90px;
    height: 90px;
    flex-basis: 90px;
    border-radius: 21px;
  }
}

/* 7A-3B2B UNIFIED APPLICATION SHELL */
.o2-app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #f4f7f5;
}

.o2-sidebar {
  min-height: 100vh;
  padding: 24px 18px;
  background: #103f33;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.o2-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 850;
}

.o2-sidebar-brand img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  object-fit: cover;
}

.o2-user-block {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-radius: 13px;
  background: rgba(255,255,255,.08);
}

.o2-user-block span {
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

.o2-module-nav {
  display: grid;
  gap: 5px;
}

.o2-module-nav a {
  padding: 10px 12px;
  border-radius: 9px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
}

.o2-module-nav a:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}

.o2-logout-button {
  margin-top: auto;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.o2-app-main {
  padding: clamp(26px, 5vw, 58px);
}

.o2-welcome {
  max-width: 820px;
  margin-bottom: 30px;
}

.o2-eyebrow {
  margin: 0 0 7px;
  color: #8a9d96;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}

.o2-welcome h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 52px);
  color: #153f34;
}

.o2-welcome p:last-child {
  color: #667a73;
}

.o2-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 16px;
}

.o2-module-card {
  min-height: 136px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid rgba(15,81,61,.11);
  border-radius: 18px;
  background: #fff;
  color: #173f34;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(24,63,52,.055);
}

.o2-module-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(24,63,52,.09);
}

.o2-module-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  background: #e8f1ed;
  color: #0e513d;
  font-weight: 900;
}

.o2-module-body {
  display: grid;
  gap: 6px;
}

.o2-module-body strong {
  font-size: 17px;
}

.o2-module-body small {
  color: #6b7f77;
  line-height: 1.45;
}

.o2-app-status {
  color: #9b2c2c;
  font-weight: 700;
}

.o2-unified-home-link {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  padding: 9px 13px;
  border-radius: 999px;
  background: #103f33;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

@media (max-width: 760px) {
  .o2-app-shell {
    grid-template-columns: 1fr;
  }

  .o2-sidebar {
    min-height: auto;
  }

  .o2-module-nav {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
