/* ============================================== OUTLET / TIP LINE THEME
   Clean, journalistic, neutral. Deliberately NOT the ARG horror palette —
   this is a working newsroom tool. Planted tips must feel like real source
   material, so nothing here should read as "spooky game".
   ===================================================================== */

:root {
  --o-bg: #fafafa;
  --o-surface: #ffffff;
  --o-text: #1a1a1a;
  --o-muted: #6b7280;
  --o-line: #e5e7eb;
  --o-accent: #c0392b;
  --o-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--o-bg);
  color: var(--o-text);
  font-family: var(--o-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--o-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.o-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.o-center {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px 18px;
}

.o-card {
  background: var(--o-surface);
  border: 1px solid var(--o-line);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  width: 100%;
}

.o-btn {
  display: inline-block;
  font-family: var(--o-font);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border: 1px solid var(--o-accent);
  background: var(--o-accent);
  color: #fff;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.o-btn:hover { background: #a93226; text-decoration: none; }
.o-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.o-btn-ghost { background: transparent; color: var(--o-text); border-color: var(--o-line); }
.o-btn-ghost:hover { background: #f3f4f6; }
.o-btn-sm { padding: 6px 14px; font-size: 13px; }

textarea, input[type="password"], input[type="text"] {
  width: 100%;
  font-family: var(--o-font);
  font-size: 15px;
  color: var(--o-text);
  background: #fff;
  border: 1px solid var(--o-line);
  border-radius: 7px;
  padding: 12px 14px;
  outline: none;
}
textarea:focus, input:focus { border-color: var(--o-accent); box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
textarea { resize: vertical; min-height: 150px; }

/* ---- public submit page ---- */
.o-submit { max-width: 520px; padding: 40px 36px; text-align: left; }
.o-brand { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; text-align: center; }
.o-tagline { color: var(--o-muted); text-align: center; margin-top: 4px; font-size: 14px; }
.o-rule { border: none; border-top: 1px solid var(--o-line); margin: 24px 0; }
.o-lead { font-weight: 600; margin-bottom: 4px; }
.o-fine { color: var(--o-muted); font-size: 14px; margin-top: 0; }
.o-actions { margin-top: 18px; display: flex; justify-content: center; }
.o-note { margin-top: 18px; padding: 12px 14px; border-radius: 7px; font-size: 14px; }
.o-note.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.o-note.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---- login ---- */
.o-login { max-width: 380px; padding: 36px 32px; }
.o-login h1 { font-size: 20px; margin: 0 0 4px; }
.o-field-label { font-size: 13px; font-weight: 600; color: var(--o-muted); margin: 16px 0 6px; }

/* ---- inbox ---- */
.o-topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--o-surface); border-bottom: 1px solid var(--o-line);
}
.o-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; max-width: 860px; margin: 0 auto; }
.o-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.o-title small { display:block; font-weight: 400; font-size: 12px; color: var(--o-muted); letter-spacing: 0; }
.o-inbox { max-width: 860px; margin: 0 auto; padding: 24px 20px 60px; }
.o-disclaimer { color: var(--o-muted); font-size: 13px; margin: 0 0 18px; }

.o-tip {
  background: var(--o-surface); border: 1px solid var(--o-line); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 14px;
}
.o-tip-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.o-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--o-accent); padding: 2px 8px; border-radius: 999px;
}
.o-badge.read { background: #e5e7eb; color: #6b7280; }
.o-time { color: var(--o-muted); font-size: 13px; }
.o-tip-body { font-size: 15.5px; color: #111827; white-space: pre-wrap; }
.o-tip.is-new { border-color: var(--o-accent); box-shadow: 0 0 0 3px rgba(192,57,43,0.08); }
.o-tip-actions { margin-top: 14px; display: flex; gap: 10px; }
.o-empty { color: var(--o-muted); text-align: center; padding: 60px 0; }

.o-newcount {
  background: var(--o-accent); color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 2px 9px; margin-left: 8px;
}
[x-cloak] { display: none !important; }
