@font-face { font-family: "Lexend"; src: url("fonts/Lexend.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --navy:#162A52; --gold:#C48C30; --gold-light:#E8B860; --gold-text:#8A5A12; --gold-tint:#FBF1DF;
  --navy-tint:#E8EDF5; --slate:#3D5A80; --ink:#1B2233; --muted:#4A5468; --line:#E3D9C6;
  --line-strong:#B9AC93; --paper:#FFFFFF; --screen:#FAF6EE; --field:#FFFDF8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; background:#E9E3D6; color:var(--ink); font-family:"Lexend", system-ui, sans-serif;
  font-size:17px; line-height:1.55; letter-spacing:.01em; }
#app { max-width:720px; margin:0 auto; min-height:100vh; background:var(--screen); display:flex; flex-direction:column; }
button, input, textarea, select { font:inherit; color:inherit; }
button { cursor:pointer; }
.top { position:sticky; top:0; z-index:20; background:var(--paper); }
.app-banner { background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; gap:10px;
  font-size:21px; font-weight:700; letter-spacing:.015em; padding:calc(env(safe-area-inset-top) + 10px) 16px 11px; border-bottom:4px solid var(--gold); }
.app-icon { width:38px; height:38px; border-radius:10px; background:#fff; display:inline-flex; align-items:center; justify-content:center; box-shadow:0 0 0 2px var(--gold-light); }
.app-icon img { width:32px; }
.app-header { display:flex; align-items:center; justify-content:center; position:relative; border-bottom:1px solid var(--line); padding:6px 16px; min-height:52px; }
.app-name { margin:0; color:var(--navy); font-size:22px; font-weight:700; }
.icon-btn { position:absolute; right:6px; top:50%; transform:translateY(-50%); min-width:44px; min-height:44px; border:0; background:transparent; color:var(--navy);
  display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:12px; font-weight:600; padding:2px 4px; }
.tabs { display:flex; overflow-x:auto; scrollbar-width:none; border-bottom:1px solid var(--line); -webkit-overflow-scrolling:touch; }
.tabs::-webkit-scrollbar { display:none; }
.tab { flex:1 1 auto; min-width:44px; min-height:52px; border:0; border-bottom:4px solid transparent; background:var(--paper); color:var(--muted);
  font-size:13px; font-weight:550; line-height:1.2; padding:6px 3px; text-align:center; white-space:nowrap; }
@media (min-width:500px){ .tab { font-size:15px; padding:6px 6px; } }
.tab.active { color:var(--navy); font-weight:750; background:var(--gold-tint); border-bottom-color:var(--gold); }
.test-banner { background:var(--gold-tint); color:var(--navy); border-bottom:1.5px solid var(--gold); font-size:15px; font-weight:600; text-align:center; padding:8px 14px; }
.content { flex:1; padding:16px 14px 24px; display:flex; flex-direction:column; gap:16px; outline:none; }
.section-title { color:var(--navy); font-size:19px; font-weight:700; border-left:4px solid var(--gold); padding-left:10px; margin:6px 0 0; line-height:1.3; }
.card { background:var(--paper); border:1px solid var(--line); border-radius:14px; box-shadow:0 1px 3px rgba(22,42,82,.08); padding:16px; }
.kicker { color:var(--gold-text); font-size:14px; font-weight:700; margin:0 0 4px; }
.meta { color:var(--muted); font-size:15px; }
.name { font-weight:700; font-size:17px; }
p { margin:6px 0; }
.hero { height:180px; border-radius:14px; overflow:hidden; border:2px solid var(--gold); box-shadow:0 2px 8px rgba(22,42,82,.18); }
.hero img { width:100%; height:100%; object-fit:cover; object-position:50% 15%; display:block; }
.verse-card { background:linear-gradient(160deg,#1E3868 0%,var(--navy) 70%); border:0; border-left:6px solid var(--gold); color:#fff; }
.verse-card .kicker { color:var(--gold-light); }
.verse-ref { font-size:18px; font-weight:700; margin:2px 0; }
.verse-text { font-size:19px; line-height:1.6; }
.pill { display:inline-block; font-size:14px; font-weight:700; border:1.5px solid currentColor; border-radius:999px; padding:2px 10px; }
.verse-card .pill { color:var(--gold-light); }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.spread { justify-content:space-between; }
.btn { min-height:48px; border:1.5px solid var(--navy); background:var(--paper); color:var(--navy); border-radius:10px; font-size:17px; font-weight:650; padding:10px 16px; }
.btn.primary { background:var(--navy); color:#fff; }
.btn.gold { background:var(--gold); border-color:var(--gold); color:var(--navy); font-weight:750; }
.btn.small { min-height:44px; background:var(--gold-tint); border-color:var(--gold); color:var(--navy); font-size:16px; font-weight:700; padding:6px 14px; }
.btn.small.on { background:var(--navy); color:#fff; border-color:var(--navy); }
.btn.block { width:100%; }
.btn.onnavy { background:transparent; color:#fff; border-color:var(--gold-light); }
.media { position:relative; border-radius:12px; overflow:hidden; background:#F1EADB; }
.media img { width:100%; height:100%; object-fit:cover; display:block; }
.media.video { height:200px; border:2px solid var(--navy); padding:0; width:100%; }
.media.photo { max-height:260px; margin-top:10px; }
.media.photo img { max-height:260px; }
.play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:64px; height:64px; border-radius:50%; background:rgba(255,255,255,.95);
  border:3px solid var(--gold); display:flex; align-items:center; justify-content:center; }
.caption { position:absolute; left:10px; bottom:10px; color:#fff; background:rgba(22,42,82,.9); font-size:14px; padding:3px 10px; border-radius:6px; }
.post-head { display:flex; gap:12px; align-items:center; }
.avatar { width:44px; height:44px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; border:2px solid #fff; box-shadow:0 0 0 1.5px var(--line-strong); }
.av-navy { background:var(--navy); color:#fff; } .av-gold { background:var(--gold); color:var(--navy); } .av-slate { background:var(--slate); color:#fff; }
.actions { display:flex; border-top:1px solid var(--line); margin-top:12px; padding-top:4px; }
.action { flex:1; min-height:44px; border:0; background:transparent; color:var(--muted); font-size:15px; font-weight:600; }
.action.on { color:var(--navy); }
.tag { display:inline-block; font-size:14px; font-weight:700; border-radius:6px; padding:2px 8px; }
.tag.pending { background:#FFF4D6; color:#6B4A00; border:1.5px solid var(--gold); }
.tag.sample { background:var(--navy-tint); color:var(--navy); border:1px solid #C9D3E3; }
.tag.hidden { background:var(--gold-tint); color:var(--gold-text); border:1px solid var(--gold); }
.seg-wrap { display:flex; border:1.5px solid var(--navy); border-radius:10px; overflow:hidden; }
.seg { flex:1; min-height:48px; border:0; border-right:1.5px solid var(--navy); background:var(--paper); color:var(--navy); font-size:15px; font-weight:650; padding:6px 4px; line-height:1.2; }
.seg:last-child { border-right:0; }
.seg.active { background:var(--navy); color:#fff; }
.label { color:var(--navy); font-size:15px; font-weight:700; margin-bottom:6px; display:block; }
.notice { background:var(--gold-tint); border:1.5px dashed var(--gold); border-radius:12px; padding:16px; color:var(--navy); font-weight:600; text-align:center; }
.progress { height:16px; background:var(--navy-tint); border:1px solid #C9D3E3; border-radius:999px; overflow:hidden; }
.progress > div { height:100%; background:linear-gradient(90deg,var(--gold),#D9A548); }
.list-item { display:flex; gap:12px; align-items:center; background:var(--paper); border:1px solid var(--line); border-left:5px solid var(--gold); border-radius:12px; padding:12px 14px; min-height:56px; }
.list-item.navy-edge { border-left-color:var(--navy); }
.check { width:28px; height:28px; border-radius:50%; border:1.5px solid var(--navy); background:var(--navy-tint); display:flex; align-items:center; justify-content:center; color:var(--navy); flex-shrink:0; }
.check.done { background:var(--navy); color:#fff; }
textarea, input[type=text], input[type=search] { width:100%; min-height:48px; border:1.5px solid var(--line-strong); background:var(--field); border-radius:10px; padding:10px 12px; font-size:17px; }
textarea { min-height:110px; resize:vertical; }
textarea:focus, input:focus, button:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.check-row { display:flex; align-items:center; gap:12px; min-height:44px; font-size:17px; }
.check-row input { width:26px; height:26px; accent-color:var(--navy); }
.cal { width:100%; border-collapse:collapse; text-align:center; }
.cal th { font-size:13px; color:var(--muted); font-weight:600; padding:4px 0; }
.cal td { padding:2px 0; }
.day { width:40px; height:40px; margin:0 auto; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; position:relative; }
.day.today { background:var(--navy); color:#fff; box-shadow:0 0 0 2px var(--gold); }
.day.marked::after { content:""; position:absolute; bottom:1px; width:8px; height:8px; border-radius:50%; background:var(--gold); }
.qa { border-top:1px solid var(--line); padding-top:12px; margin-top:12px; }
.qa:first-of-type { border-top:0; margin-top:0; padding-top:0; }
.q { color:var(--navy); font-weight:700; }
.bulletin-head { background:var(--gold-tint); border:1.5px solid var(--gold); }
.accent-card { border-left:5px solid var(--navy); }
.logo-strip { background:var(--paper); border-top:1px solid var(--line); display:flex; justify-content:center; padding:20px 24px calc(14px + env(safe-area-inset-bottom)); }
.logo-strip img { height:36px; width:auto; }
.overlay { position:fixed; inset:0; z-index:50; background:rgba(22,42,82,.55); display:flex; align-items:flex-end; justify-content:center; }
.overlay[hidden] { display:none; }
.sheet { background:var(--screen); width:100%; max-width:720px; max-height:92vh; overflow:auto; border-radius:18px 18px 0 0; border-top:5px solid var(--gold);
  padding:20px 18px calc(20px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:14px; }
@media (min-width:600px){ .overlay{ align-items:center; } .sheet{ border-radius:18px; max-width:560px; } }
.sheet h2 { margin:0; color:var(--navy); font-size:22px; }
.greet-hello { font-size:26px; font-weight:700; color:var(--navy); margin:0; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(150%); background:var(--navy); color:#fff; padding:12px 18px; border-radius:12px;
  border-left:5px solid var(--gold); font-size:16px; z-index:60; transition:transform .25s, visibility .25s; max-width:90vw; visibility:hidden; pointer-events:none; }
.toast.show { transform:translateX(-50%) translateY(0); visibility:visible; }
.switch-row { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:52px; }
.switch { position:relative; width:64px; height:36px; flex-shrink:0; }
.switch input { opacity:0; width:100%; height:100%; position:absolute; margin:0; z-index:1; }
.switch span { position:absolute; inset:0; background:#C9C2B3; border-radius:999px; transition:.2s; }
.switch span::after { content:""; position:absolute; left:4px; top:4px; width:28px; height:28px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + span { background:var(--navy); }
.switch input:checked + span::after { left:32px; }
.preview-img { max-width:100%; max-height:200px; border-radius:10px; display:block; }
.sr { position:absolute; left:-9999px; }

.offline { background:#FFF4D6; color:#6B4A00; text-align:center; font-weight:700; font-size:15px; padding:6px 12px; border-bottom:1.5px solid var(--gold); }
.offline[hidden] { display:none; }
html.big #view, html.big .sheet, html.big .test-banner { zoom:1.18; }
@media (prefers-reduced-motion: reduce) { * { transition:none !important; scroll-behavior:auto !important; } }
