:root {
  --pws-navy: #1B3A5C;
  --pws-steel: #4682B4;
  --pws-red: #E1251B;
  --bg: #F5F7FA;
  --panel: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B7280;
  --line: #D8DEE4;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); }
body { min-height: 100vh; display: flex; flex-direction: column; }

header { background: #000; color: white; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
header img.logo { height: 64px; }
header .title { font-weight: 600; font-size: 16px; letter-spacing: 0.02em; }

main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }

.card { width: min(440px, 100%); background: var(--panel); padding: 28px 32px; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(27,58,92,0.08); }
.card h1 { margin: 0 0 6px; font-size: 22px; color: var(--pws-navy); }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

.card input { width: 100%; padding: 11px 13px; font-size: 15px; border: 1px solid var(--line); border-radius: 5px; outline: none; }
.card input:focus { border-color: var(--pws-steel); }
.card button.primary { margin-top: 12px; width: 100%; padding: 11px; background: var(--pws-navy); color: white; border: 0; border-radius: 5px; font-size: 15px; font-weight: 600; cursor: pointer; }
.card button.primary:hover { background: #14304D; }
.card button.primary:disabled { background: #99A8BC; cursor: not-allowed; }

.err { margin-top: 10px; color: var(--pws-red); font-size: 13px; min-height: 18px; }
.help { margin-top: 16px; font-size: 12px; color: var(--muted); }
.help a { color: var(--pws-steel); }

#welcome-link { display: inline-block; margin-top: 14px; padding: 10px 16px; background: var(--pws-navy); color: white; border-radius: 5px; text-decoration: none; font-weight: 600; }
#welcome-link:hover { background: #14304D; }

footer { padding: 18px 20px; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* Admin dashboard */
.admin-wrap { width: 100%; max-width: 1000px; }
.admin-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; padding: 0 4px; }
.admin-head h1 { margin: 0; font-size: 22px; color: var(--pws-navy); }
.admin-sub { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 6px 12px; border-radius: 4px; font: inherit; font-size: 12px; cursor: pointer; }
button.ghost:hover { border-color: var(--pws-navy); color: var(--pws-navy); }

.project-section { margin-bottom: 24px; }
.section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 0 4px 8px; }
.project-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.tile { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: border-color 120ms ease, transform 120ms ease; }
.tile:hover { border-color: var(--pws-navy); transform: translateY(-1px); }
.tile-name { font-weight: 600; color: var(--pws-navy); font-size: 15px; }
.tile-meta { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 4px; }
.tile-url { font-size: 12px; color: var(--muted); margin-top: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; text-align: center; }

