:root {
  --primary: #0f766e;
  --primary-dark: #0d5e58;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); }
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }
#login-screen { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f766e, #115e59); padding: 20px; }
.login-card { background: white; padding: 32px; border-radius: 16px; width: 100%; max-width: 400px; text-align: center; box-shadow: var(--shadow); }
.logo { font-size: 48px; }
.login-card h1 { margin: 8px 0 4px; }
.subtitle { color: var(--muted); margin-bottom: 20px; }
input, textarea, select { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; }
.btn { border: none; border-radius: 8px; padding: 12px 16px; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--primary); color: white; width: 100%; }
.btn.ghost { background: transparent; border: 1px solid var(--border); margin: 4px; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.success { background: var(--success); color: white; }
.btn.danger { background: var(--danger); color: white; }
.demo-accounts { margin-top: 16px; font-size: 13px; color: var(--muted); }
.topbar { background: var(--primary); color: white; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.brand { font-weight: 700; }
.user-info { display: flex; align-items: center; gap: 10px; font-size: 14px; }
#logout-btn { background: rgba(255,255,255,0.2); color: white; }
.tabs { display: flex; overflow-x: auto; background: white; border-bottom: 1px solid var(--border); position: sticky; top: 52px; z-index: 90; }
.tab { flex: 0 0 auto; padding: 12px 16px; background: none; border: none; border-bottom: 3px solid transparent; color: var(--muted); cursor: pointer; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
#content { padding: 16px; max-width: 800px; margin: 0 auto; }
.card { background: white; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.list-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.meta { font-size: 13px; color: var(--muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.green { background: #dcfce7; color: #166534; }
.badge.blue { background: #dbeafe; color: #1e40af; }
.badge.orange { background: #ffedd5; color: #9a3412; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photo-thumb { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.photo-thumb img { width: 100%; height: 140px; object-fit: cover; }
.message { padding: 10px 14px; border-radius: 12px; margin-bottom: 8px; max-width: 80%; }
.message.me { background: #ccfbf1; margin-left: auto; }
.message.them { background: #f1f5f9; }
.btn-group { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }