
:root {
  --bg: #0b0b10;
  --card: #151823;
  --muted: #97a0be;
  --text: #eaeaf0;
  --primary: #1a73e8;
  --primary-strong: #115ed0;
  --input: #0d0f16;
  --border: #2a3145;
  --danger: #ff6b6b;
  --success: #2ecc71;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
a { color: inherit; }
.hidden { display: none !important; }
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.user-info {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45vw;
  text-align: right;
  line-height: 1.15;
}
.btn, .action, .google-btn, .send-icon {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.btn, .action, .google-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 14px;
  box-shadow: 0 4px 14px rgba(26,115,232,.25);
}
.btn:hover, .action:hover, .google-btn:hover, .send-icon:hover {
  background: var(--primary-strong);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}
.menu-toggle {
  position: absolute;
  left: 16px;
  font-size: 22px;
  background: transparent;
  color: var(--text);
  border: 0;
  cursor: pointer;
  z-index: 1300;
}
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: #1e1e2f;
  box-shadow: 2px 0 12px rgba(0,0,0,.5);
  padding: 20px;
  transition: left .3s ease;
  z-index: 1100;
}
.sidebar.open { left: 0; }
.sidebar a {
  display: block;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}
.sidebar a:hover { background: var(--primary); }
.sidebar-spacer { height: 40px; }
.overlay,
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
}
.overlay.show { display: block; z-index: 1000; }
.modal {
  place-items: center;
  z-index: 2000;
}
.modal.show { display: grid; }
.card {
  width: min(94vw, 720px);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  position: relative;
}
.auth-card { max-width: 520px; }
.profile-card { max-width: 720px; }
.close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}
h1, h2 {
  margin: 8px 0 16px;
  text-align: center;
}
label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
}
input, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.pwd-wrap {
  position: relative;
}
.toggle-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--muted);
  border: 0;
  cursor: pointer;
}
.divider-wrap {
  margin: 12px 0 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.divider-wrap::before, .divider-wrap::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--border);
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
}
.home, .page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.brand-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 6px;
}
.logo-text {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .2px;
}
.feeling-wrap {
  position: relative;
  max-width: 560px;
  width: 100%;
}
.send-icon {
  position: absolute;
  right: 10px;
  bottom: 12px;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  box-shadow: none;
  padding: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.field label { margin-top: 0; }
.field-span { grid-column: 1 / -1; }
.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.page-card {
  width: min(94vw, 900px);
}
.version-badge {
  position: fixed;
  right: 12px;
  bottom: 12px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  z-index: 3000;
  cursor: pointer;
}
.version-panel {
  position: fixed;
  right: 12px;
  bottom: 56px;
  width: min(360px, calc(100vw - 24px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  z-index: 3000;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
