/* Lighthouse · Green Chemicals. Brand colors, readable frosted surfaces. */
:root {
  --navy: #152149;
  --teal: #106b3b;
  --mint: #e0f3e8;
  --blue: #263b73;
  --border: rgba(21, 33, 73, .12);
  --muted: #526779;
  color: var(--navy);
  background: #eaf1f5;
  font-family: 'Segoe UI', Arial, sans-serif;
}
body {
  background: radial-gradient(ellipse at 90% 0%, rgba(21, 125, 76, .19), transparent 48%),
    radial-gradient(ellipse at 35% 75%, rgba(59, 93, 154, .13), transparent 55%),
    linear-gradient(135deg, #edf3f7, #f5f9f7 55%, #e9f1f6);
  background-attachment: fixed;
  color: var(--navy);
}
.brand { align-items: flex-start; flex-direction: column; gap: 16px; }
.brand-logo {
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(4, 19, 45, .13);
  width: 100%;
}
.brand-logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.brand-title { font-size: 1.7rem; letter-spacing: -.7px; font-weight: 700; line-height: 1.2; }
.brand-title small { font-size: .875rem; font-weight: 400; line-height: 1.55; letter-spacing: 0; margin-top: 5px; }
.sidebar {
  top: 14px; bottom: 14px; left: 14px; height: calc(100dvh - 28px);
  width: 240px; padding: 23px 18px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(21,33,73,.96), rgba(18,42,64,.93));
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 48px rgba(21,33,73,.2); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.shell { grid-template-columns: 268px minmax(0, 1fr); }
.sidebar .brand { padding: 0 5px 12px; gap: 12px; }
.sidebar .brand-title { color: #fff; }
.sidebar .brand small { color: #c6d8e3; }
.nav-label { color: #afc5d4; letter-spacing: 1.6px; font-size: .75rem; }
.nav { gap: 3px; }
.nav button { border-radius: 11px; min-height: 43px; padding: 10px 14px; font-size: .875rem; }
.nav button.active { background: linear-gradient(120deg, #13764a, #0e603c); color: #fff; box-shadow: 0 5px 16px rgba(0,0,0,.14); }
.nav button:hover { background-color: rgba(255,255,255,.11); }
.sidebar-bottom { border-color: rgba(255,255,255,.16); padding-top: 19px; }
.sidebar-bottom .btn.ghost { color: #e5edf3; border: 1px solid rgba(255,255,255,.16); width: 100%; justify-content: center; }
.sidebar-bottom .btn.ghost:hover { background: rgba(255,255,255,.12); }
.side-user small { color: #bed0df; }
.topbar {
  position: sticky; top: 0; z-index: 4; height: 80px;
  background: rgba(247,251,253,.75); border-bottom: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.topbar .line { gap: 16px; }
.avatar { background: #e0ede8; color: var(--teal); border: 1px solid rgba(16,107,59,.13); }
.sidebar .avatar { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.14); }
.logout-button { color: var(--navy); background: rgba(255,255,255,.8); border: 1px solid rgba(21,33,73,.18); font-size: .875rem; min-height: 42px; white-space: nowrap; }
.logout-button:hover { background: #fff; border-color: var(--teal); }
.mobile-brand { display: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.4px; }
.demo-ribbon { background: rgba(228,244,234,.8); color: #20573d; border-bottom: 1px solid rgba(16,107,59,.12); font-size: .875rem; }
.content { padding-top: 34px; }
h1, h2, h3, strong { color: inherit; }
.page-head h1 { letter-spacing: -1px; }
.page-head p { color: var(--muted); }
.eyebrow { color: var(--teal); letter-spacing: 1.7px; }
.card, .stat, .filter-bar, .table-wrap {
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.94);
  box-shadow: 0 8px 30px rgba(21,33,73,.055), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 19px;
}
.stat { padding: 23px; position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; top: 0; left: 23px; width: 30px; height: 3px; background: var(--teal); border-radius: 0 0 4px 4px; }
.stat-top { font-size: .875rem; }
.stat strong { font-size: 2.2rem; letter-spacing: -.8px; }
.stat small { font-size: .8125rem; }
.stat .icon { color: var(--teal); }
.btn { border-radius: 11px; min-height: 42px; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn.primary { background: linear-gradient(135deg, #137346, #0d5e37); border-color: #106b3b; box-shadow: 0 4px 12px rgba(16,107,59,.12); }
.btn.primary:hover { background: #0c5732; }
.btn.dark { background: var(--navy); }
input, select, textarea { border-radius: 10px; background: rgba(255,255,255,.82); border-color: rgba(21,33,73,.19); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
:focus-visible { outline: 3px solid #238e66; outline-offset: 3px; }
.course-band { background: linear-gradient(120deg, rgba(220,241,229,.95), rgba(233,239,248,.8)); border-radius: 18px 18px 0 0; }
.course-icon, .mini-icon { background: rgba(16,107,59,.09); color: var(--teal); border-radius: 12px; }
.notice { background: rgba(223,239,248,.78); border: 1px solid rgba(38,59,115,.1); border-radius: 12px; color: #29455d; }
.progress { accent-color: var(--teal); }
.progress::-webkit-progress-value { background: var(--teal); }
.badge { font-size: .8125rem; }
.badge.green { background: #d9efe1; color: #155c35; }
.badge.blue { background: #e2e9f6; color: #263b73; }
.integration-status { flex: 0 1 48%; min-width: 0; overflow-wrap: anywhere; }
.integration-status .badge { white-space: normal; }
.integration-status small { display: block; margin-top: 6px; }
.answer { border-radius: 13px; background: rgba(255,255,255,.62); }
.answer.chosen { background: #e6f3ec; border-color: var(--teal); }
.reading, .reading p { line-height: 1.7; }
dialog { background: rgba(250,253,252,.96); border: 1px solid #fff; border-radius: 22px; box-shadow: 0 28px 90px rgba(21,33,73,.22); backdrop-filter: blur(22px); }
dialog::backdrop { background: rgba(12,24,50,.38); backdrop-filter: blur(5px); }
.login { background: transparent; grid-template-columns: 1.08fr 1fr; padding: 22px; gap: 22px; }
.login-story {
  border-radius: 28px; border: 1px solid rgba(255,255,255,.26);
  background: radial-gradient(ellipse at 80% 90%, rgba(19,115,70,.52), transparent 55%), linear-gradient(145deg, #152149, #1d344c);
  box-shadow: 0 24px 64px rgba(21,33,73,.16); padding: 42px 48px;
}
.login-story .brand { flex-direction: row; align-items: center; gap: 20px; }
.login-story .brand-logo { width: 178px; flex-shrink: 0; }
.login-story .brand-title { font-size: 2rem; color: #fff; }
.login-story .brand small { color: #c9dbe5; max-width: 200px; }
.login-story .eyebrow { color: #8ed9b3; }
.login-story h1 { font-size: clamp(2.2rem, 3.5vw, 3.5rem); line-height: 1.14; letter-spacing: -1.5px; }
.login-story h1 span { color: #a0e1bb; }
.login-story p { color: #cddce6; font-size: 1rem; line-height: 1.75; }
.login-step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: 14px; padding: 15px 17px; }
.login-step b { color: #a0e1bb; }
.login-footer { color: #bed2df; }
.login-form { margin: auto; padding: 42px clamp(24px, 4vw, 60px); width: 100%; max-width: 600px; }
.login-form h2 { font-size: 2.1rem; letter-spacing: -.8px; }
.login-form .form-grid { padding: 25px; background: rgba(255,255,255,.65); border: 1px solid #fff; border-radius: 20px; backdrop-filter: blur(20px); box-shadow: 0 12px 32px rgba(21,33,73,.06); }
.demo-box { background: rgba(255,255,255,.45); border: 1px solid #fff; border-radius: 18px; }
.demo-grid .btn { background: rgba(255,255,255,.7); }
.login-note { font-size: .875rem; line-height: 1.65; }
@media (max-width: 1100px) {
  .login-story { padding: 35px; }
  .login-story .brand { flex-direction: column; align-items: flex-start; }
  .login-story .brand-logo { width: 170px; }
  .login-form { padding: 32px 20px; }
}
@media (max-width: 720px) {
  .shell { display: block; }
  .sidebar { width: 250px; z-index: 10; }
  .topbar { padding: 0 16px; height: 72px; }
  .topbar .line { gap: 8px; }
  .topbar .avatar { display: none; }
  .mobile-brand { display: inline; }
  .logout-button { padding: 9px 12px; gap: 7px; }
  .mobile-menu { padding: 8px; color: var(--navy); }
  .content { padding: 25px 18px; }
  .stat { padding: 19px 15px; }
  .stat::before { left: 15px; }
  .stat strong { font-size: 1.9rem; }
  .demo-ribbon { line-height: 1.5; padding: 12px 18px; }
  .login { padding: 12px; gap: 8px; grid-template-columns: minmax(0, 1fr); }
  .login-story { padding: 24px; border-radius: 22px; }
  .login-story .brand { flex-direction: row; align-items: center; gap: 14px; }
  .login-story .brand-logo { width: 114px; padding: 8px; border-radius: 12px; }
  .login-story .brand-title { font-size: 1.5rem; }
  .login-story .brand small { font-size: .75rem; }
  .login-story h1 { font-size: 2rem; letter-spacing: -.8px; margin-top: 28px; }
  .login-story p { margin-bottom: 0; }
  .login-form { padding: 25px 12px; }
  .login-form .form-grid { padding: 20px; }
}
@media (max-width: 360px) {
  .topbar { padding: 0 10px; }
  .mobile-brand { font-size: 1rem; }
  .logout-button { padding: 9px; }
  .login-story .brand { flex-direction: column; align-items: flex-start; }
}
@supports not (backdrop-filter: blur(1px)) {
  .card, .stat, .filter-bar, .table-wrap, .topbar, .login-form .form-grid { background: #f8fbfc; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
