:root {
  --bg: #f5fbfa;
  --panel: #ffffff;
  --panel-soft: #ecfdf5;
  --text: #10201d;
  --muted: #62746f;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --amber: #f59e0b;
  --red: #dc2626;
  --green: #16a34a;
  --blue: #2563eb;
  --border: #d9e7e4;
  --shadow: 0 18px 55px rgba(15, 118, 110, .11);
  --radius: 22px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-hero { padding: 56px; background: radial-gradient(circle at 20% 20%, rgba(20,184,166,.22), transparent 32%), linear-gradient(135deg, #0f766e, #0b3b38); color: white; display: flex; flex-direction: column; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.04em; font-size: 1.2rem; }
.logo { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); }
.login-hero h1 { max-width: 700px; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: 1.05; letter-spacing: -.065em; margin: 70px 0 18px; }
.login-hero p { color: #c7fffa; font-size: 1.12rem; max-width: 650px; }
.hero-points { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 34px; }
.hero-points span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 14px; font-weight: 750; }
.login-panel { padding: 42px; display: grid; place-items: center; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card { width: min(100%, 480px); padding: 30px; }
h1,h2,h3 { line-height: 1.12; letter-spacing: -.04em; margin: 0; }
p { color: var(--muted); }
.field { display: grid; gap: 7px; margin: 14px 0; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; background: #fbfffe; padding: 12px 13px; color: var(--text); outline: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 17px; background: var(--primary); color: white; font-weight: 900; cursor: pointer; box-shadow: 0 12px 24px rgba(15,118,110,.2); transition: .2s ease; }
.btn:hover { transform: translateY(-1px); background: var(--primary-dark); }
.btn.secondary { color: var(--primary); background: #e7fffb; box-shadow: none; border: 1px solid var(--border); }
.btn.danger { background: var(--red); }
.btn.full { width: 100%; }
.demo-logins { display: grid; gap: 10px; margin-top: 18px; }
.demo-logins button { text-align: left; border: 1px dashed var(--border); background: #f8fffd; border-radius: 16px; padding: 12px; cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 282px 1fr; }
.sidebar { background: #0b1f1c; color: #d7f5f0; padding: 22px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { color: white; }
.user-box { padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.06); }
.user-box strong { display: block; color: white; }
.user-box small { color: #9edbd2; }
.nav { display: grid; gap: 8px; }
.nav button { color: #b9ded9; text-align: left; border: 0; background: transparent; padding: 12px 13px; border-radius: 14px; cursor: pointer; font-weight: 800; }
.nav button:hover, .nav button.active { color: white; background: rgba(20,184,166,.18); }
.main { padding: 28px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.topbar h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.grid { display: grid; gap: 18px; }
.stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat { padding: 20px; }
.stat strong { display: block; font-size: 2rem; color: var(--primary); letter-spacing: -.05em; }
.stat span { color: var(--muted); font-weight: 800; }
.two-col { grid-template-columns: 1.15fr .85fr; align-items: start; }
.panel { padding: 22px; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head p { margin: 5px 0 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-weight: 900; font-size: .78rem; }
.badge.pending { color: #92400e; background: #fef3c7; }
.badge.review { color: #1d4ed8; background: #dbeafe; }
.badge.need { color: #991b1b; background: #fee2e2; }
.badge.done { color: #166534; background: #dcfce7; }
.badge.draft { color: #475569; background: #e2e8f0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-btn { border: 1px solid var(--border); background: #fbfffe; color: var(--text); border-radius: 12px; padding: 8px 10px; cursor: pointer; font-weight: 800; }
.mini-btn:hover { border-color: var(--primary); color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.timeline { display: grid; gap: 12px; }
.timeline-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.timeline-dot { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--panel-soft); color: var(--primary); font-weight: 900; }
.timeline-item strong { display: block; }
.timeline-item small { color: var(--muted); }
.upload-zone { border: 2px dashed var(--border); border-radius: 18px; padding: 20px; background: #f8fffd; }
.empty { padding: 30px; border: 1px dashed var(--border); border-radius: 18px; text-align: center; color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 14px 18px; border-radius: 16px; color: white; background: #0b1f1c; box-shadow: var(--shadow); font-weight: 800; z-index: 100; animation: pop .22s ease; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }
.note { padding: 14px; border-radius: 16px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-weight: 700; }
@media (max-width: 980px) { .login-shell, .app-shell, .two-col, .stats { grid-template-columns: 1fr; } .sidebar { height: auto; position: static; } .hero-points, .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .login-hero, .login-panel, .main { padding: 22px; } .topbar { flex-direction: column; align-items: stretch; } .actions .btn, .actions .mini-btn { width: 100%; } }
