:root{
  --beige:#efe6d8;
  --beige-2:#f8f3ec;
  --white:#ffffff;
  --gray:#6f6b65;
  --gray-2:#e7e2da;
  --black:#242321;
  --soft:#4b4843;
  --accent:#8a6f4d;
  --shadow:0 18px 45px rgba(45,38,30,.10);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  background:linear-gradient(180deg,var(--beige-2),#fff);
  color:var(--black);
  min-height:100vh;
}
.topbar{
  position:sticky;top:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 20px;
  background:rgba(248,243,236,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--gray-2);
}
.brand-mini,.ghost{border:0;background:transparent;color:var(--black);font-weight:700;cursor:pointer}
.brand-mini{font-size:1rem;letter-spacing:.08em}
.ghost{font-family:system-ui,sans-serif;border:1px solid var(--gray-2);border-radius:999px;padding:10px 14px}
.hidden{visibility:hidden}
.app-shell{width:min(1100px,100%);margin:0 auto;padding:28px 18px 50px}
.hero{text-align:center;padding:28px 0}
.hero h1{font-size:clamp(2.6rem,8vw,5.7rem);letter-spacing:.08em;margin:.2em 0;line-height:1.05}
.weekly-psalm{font-size:clamp(1.15rem,2.4vw,1.55rem);color:var(--soft);max-width:820px;margin:0 auto 24px;line-height:1.6}
.weekly-img{width:min(860px,100%);height:min(48vw,420px);object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow);background:#ddd}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}
.card,.panel{background:rgba(255,255,255,.88);border:1px solid var(--gray-2);border-radius:var(--radius);box-shadow:var(--shadow)}
.card{padding:28px;min-height:170px;text-align:left;cursor:pointer;transition:.2s transform,.2s box-shadow}
.card:hover{transform:translateY(-4px);box-shadow:0 24px 60px rgba(45,38,30,.14)}
.card .emoji{font-size:2.5rem;line-height:1}
.card h2{font-size:1.8rem;margin:16px 0 8px}
.muted{color:var(--gray);line-height:1.6}
.panel{padding:22px;margin:18px 0}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:18px 0}
.input,select,textarea{width:100%;padding:12px 14px;border:1px solid var(--gray-2);border-radius:14px;background:#fff;color:var(--black);font:inherit}
textarea{min-height:160px;font-family:ui-monospace,Consolas,monospace;font-size:.92rem}
.toolbar .input,.toolbar select{width:auto;min-width:220px}
.button{border:0;border-radius:999px;padding:12px 18px;background:var(--black);color:#fff;cursor:pointer;font-weight:700;text-decoration:none;display:inline-block}
.button.secondary{background:var(--beige);color:var(--black);border:1px solid var(--gray-2)}
.list{display:grid;gap:12px}
.list button,.row-card{padding:16px;border-radius:18px;border:1px solid var(--gray-2);background:#fff;text-align:left;cursor:pointer;color:var(--black);font:inherit}
.verse{padding:8px 0;border-bottom:1px solid #f1ede7;line-height:1.8;font-size:1.08rem}
.verse b{color:var(--accent);margin-right:6px}
.resource-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:16px}
.media{width:100%;border-radius:18px;background:#111;max-height:520px}
.pdf-frame{width:100%;height:70vh;border:1px solid var(--gray-2);border-radius:18px;background:#fff}
.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.admin-lock{max-width:540px;margin:40px auto}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.notice{background:#fff8e8;border:1px solid #e4c77c;border-radius:18px;padding:14px;line-height:1.6}
.footer{text-align:center;color:var(--gray);padding:26px 10px;border-top:1px solid var(--gray-2)}
code{background:#f4efe7;border:1px solid #e6dccd;border-radius:6px;padding:2px 5px}
@media(max-width:760px){
  .cards,.resource-grid,.admin-grid{grid-template-columns:1fr}
  .toolbar .input,.toolbar select{width:100%;min-width:0}
  .topbar{padding:12px}
  .app-shell{padding:18px 12px}
  .hero h1{font-size:2.8rem}
  .card{min-height:130px}
  .pdf-frame{height:65vh}
}
