:root {
  --primary: #7A2734;
  --primary-dark: #5C1D27;
  --tint: #F3E4E6;
  --surface-muted: #F5F5F5;
  --text: #222222;
  --text-muted: #6B6B6B;
  --border: #DDDDDD;
  --green: #2E7D32;
  --amber: #B8860B;
  --red: #B02A2A;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--primary);
  color: var(--text);
}
.wrap { max-width: 1000px; margin: 0 auto; padding: 32px 20px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.auth-card { max-width: 380px; margin: 60px auto; text-align: center; }
.stema { width: 90px; height: auto; margin-bottom: 8px; }
.stema-sm { width: 36px; height: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { margin: 0; }
h1 { color: var(--primary); margin: 0 0 4px; }
.muted { color: var(--text-muted); font-size: 14px; }
.error { color: var(--red); font-weight: bold; font-size: 14px; }
form { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
label { font-size: 13px; color: var(--text-muted); text-align: left; }
input[type=email], input[type=password], input[type=text] {
  padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px;
}
button {
  margin-top: 10px; padding: 11px; border: none; border-radius: 6px;
  background: var(--primary); color: #fff; font-weight: bold; font-size: 15px; cursor: pointer;
}
button:hover { background: var(--primary-dark); }
.qr { margin: 12px auto; width: 200px; height: 200px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--primary);
}
.topbar form { flex-direction: row; align-items: center; gap: 10px; margin: 0; }
.link-btn { background: none; color: var(--primary); border: 1px solid var(--primary); padding: 6px 12px; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.proj-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.proj-head { display: flex; align-items: center; gap: 8px; }
.proj-head h2 { font-size: 16px; margin: 0; color: var(--text); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-live .dot { background: var(--green); }
.status-in_progress .dot { background: var(--amber); }
.status-down .dot { background: var(--red); }
.open-btn {
  margin-top: auto; text-align: center; padding: 9px; border-radius: 6px;
  background: var(--tint); color: var(--primary-dark); font-weight: bold; text-decoration: none; font-size: 14px;
}
.open-btn:hover { background: var(--primary); color: #fff; }
.open-btn.disabled { background: var(--surface-muted); color: var(--text-muted); cursor: default; }
.status-line { font-size: 12px; color: var(--text-muted); margin: -4px 0 4px; }
