/* Bethel MokjangON Phase1 leader demo standalone CSS */
/* System fonts only, no external assets or webfonts. */
:root{
  --cream:#f7f7f2;
  --forest:#215f45;
  --forest-dark:#17452f;
  --forest-ink:#102e21;
  --card:#fffefb;
  --line:#e2ded0;
  --ink:#1c231f;
  --muted:#45564c;
  --accent:#e8f1ea;
  --danger:#8a3326;
  --focus:#0b6b3e;
  --radius:16px;
  --shadow:0 2px 14px rgba(23,69,47,.12);
}
*{box-sizing:border-box}
html{font-size:18px;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:#f7f7f2;
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic","Segoe UI",system-ui,sans-serif;
  font-size:18px;
  line-height:1.65;
}
[hidden]{display:none!important}
a{color:var(--forest-dark)}
button,input,select,textarea{font:inherit}
:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:3px;
  border-radius:8px;
}
.app-shell{
  width:100%;
  max-width:550px;
  margin:0 auto;
  min-height:100vh;
  background:#f7f7f2;
  padding:0 18px 96px;
}
/* Leader weekly submit (migrated from inline style for CSP style-src self) */
#submitWeek{
  display:block;
  width:100%;
  min-height:64px;
  margin:18px 0 0;
  background:#215f45;
  color:#fff;
  font-size:19px;
  font-weight:800;
  border:0;
  border-radius:14px;
  padding:12px;
  cursor:pointer;
}
#submitWeek:hover{
  background:#17452f;
}
.sheet-choice,.reason-choice{
  font-size:18px;
  min-height:56px;
}
/* Pastor page scoped styles (migrated from inline style for CSP style-src self) */
body[data-page=pastor]{
  background:#faf6ec;
  color:#24352c;
  font-size:19px;
  line-height:1.7;
}
body[data-page=pastor] .topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:#2f7d5b;
  color:#fff;
  padding:14px 18px;
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  font-size:19px;
}
body[data-page=pastor] .topbar a{
  color:#fff;
}
body[data-page=pastor] .topbar button{
  font-size:18px;
  padding:8px 16px;
  border-radius:10px;
  border:1px solid #fff;
  background:#fff;
  color:#215f45;
  cursor:pointer;
}
body[data-page=pastor] .notice{
  position:sticky;
  top:0;
  z-index:9;
  background:#fff8d6;
  color:#5a4a00;
  padding:12px 18px;
  border-bottom:2px solid #e6cf5b;
  font-size:18px;
  line-height:1.6;
}
body[data-page=pastor] .wrap{
  max-width:1100px;
  margin:0 auto;
  padding:22px 18px 36px;
}
body[data-page=pastor] .cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin:22px 0;
}
body[data-page=pastor] .card{
  background:#ffffff;
  border:1px solid #d9e6dc;
  border-radius:14px;
  padding:20px 14px;
  text-align:center;
  line-height:1.6;
}
body[data-page=pastor] .card span{
  font-size:18px;
  color:#34463c;
}
body[data-page=pastor] .card strong{
  display:block;
  font-size:32px;
  line-height:1.3;
  color:#215f45;
  margin-top:4px;
}
body[data-page=pastor] .panels{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:18px;
}
body[data-page=pastor] .panel{
  background:#ffffff;
  border:1px solid #d9e6dc;
  border-radius:14px;
  padding:20px 18px;
  margin-bottom:18px;
}
body[data-page=pastor] .panel h2{
  margin:0 0 10px;
  font-size:21px;
  color:#215f45;
}
body[data-page=pastor] .panel p{
  margin:8px 0;
  font-size:18px;
}
body[data-page=pastor] ul.compact{
  margin:0;
  padding-left:22px;
  line-height:1.7;
  font-size:18px;
}
body[data-page=pastor] ul.compact li{
  margin-bottom:8px;
}
body[data-page=pastor] table.simple{
  width:100%;
  border-collapse:collapse;
  font-size:18px;
  line-height:1.65;
}
body[data-page=pastor] table.simple th,body[data-page=pastor] table.simple td{
  border-bottom:1px solid #e3ece5;
  padding:10px 8px;
  text-align:left;
}
body[data-page=pastor] .note{
  background:#eef6f0;
  border:1px solid #cfe3d4;
  border-radius:12px;
  padding:18px 20px;
  margin-top:18px;
  font-size:18px;
  line-height:1.7;
  color:#24352c;
}
body[data-page=pastor] .note p{
  margin:8px 0;
}
@media (max-width:760px){
  body[data-page=pastor] .cards{grid-template-columns:repeat(2,1fr);}
  body[data-page=pastor] .panels{grid-template-columns:1fr;}
  body[data-page=pastor] .wrap{padding:18px 14px 36px;}
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 2px 10px;
  color:var(--forest-ink);
  font-size:20px;
  font-weight:800;
  letter-spacing:-.02em;
}
.brand::before{
  display:none!important;
}
.hero{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff 0%,#eef4ee 46%,#dcead9 100%);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:22px 20px 64px;
  margin:8px 0 16px;
  color:var(--forest-ink);
}
.hero h1,.hero h2{
  margin:0 0 6px;
  font-size:26px;
  line-height:1.35;
  letter-spacing:-.02em;
}
.hero p{
  margin:0;
  font-size:18px;
  color:#24352c;
}
.hero::before{
  content:"";
  position:absolute;
  left:-10%;
  right:-10%;
  bottom:-34px;
  height:110px;
  background:radial-gradient(60% 90% at 20% 100%,#215f45 0 60%,transparent 61%),radial-gradient(55% 85% at 68% 100%,#3a7d5c 0 60%,transparent 61%),radial-gradient(50% 80% at 90% 100%,#9db8a5 0 60%,transparent 61%);
  opacity:.9;
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute;
  right:22px;
  top:18px;
  width:34px;
  height:52px;
  background:linear-gradient(var(--forest),var(--forest)) center/8px 52px no-repeat,linear-gradient(var(--forest),var(--forest)) center/28px 8px no-repeat;
  opacity:.22;
  border-radius:4px;
  pointer-events:none;
}
nav.primary-tabs{
  display:block;
  width:100%;
  margin:14px 0 18px;
}
nav.primary-tabs > [role=tablist]{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:100%;
  gap:12px;
  margin:0;
}
.primary-tabs button{
  width:100%;
  min-height:64px;
  border-radius:14px;
  border:2px solid var(--forest);
  background:#fffefb;
  color:var(--forest-dark);
  font-size:19px;
  font-weight:800;
  padding:12px;
  cursor:pointer;
}
.primary-tabs button[aria-selected="true"]{
  background:#215f45;
  color:#ffffff;
  box-shadow:var(--shadow);
}
.primary-tabs button[aria-pressed="true"]{
  background:#215f45;
  color:#ffffff;
  box-shadow:var(--shadow);
}
.member-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:0;
  padding:0;
  list-style:none;
}
.member-card{
  display:grid;
  grid-template-columns:76px 1fr;
  gap:14px;
  align-items:start;
  background:#fffefb;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.avatar{
  width:76px;
  height:76px;
  min-width:72px;
  min-height:72px;
  border-radius:50%;
  background:var(--accent);
  border:2px solid var(--forest);
  color:var(--forest-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:800;
  flex-shrink:0;
}
.member-card .avatar{
  min-width:76px;
  min-height:76px;
  background:radial-gradient(circle at 50% 32%,#f5d9b8 0 22%,#d9a06b 23% 24%,transparent 25%),radial-gradient(circle at 50% 78%,#2f6b4f 0 34%,#1d4a34 35% 100%),linear-gradient(180deg,#eef4ee,#dcead9);
  background-color:#eef4ee;
  overflow:hidden;
  position:relative;
}
.member-card:nth-child(2n) .avatar{background:radial-gradient(circle at 50% 32%,#f2cfae 0 22%,#c98f5f 23% 24%,transparent 25%),radial-gradient(circle at 50% 78%,#3a7d5c 0 34%,#214f39 35% 100%),linear-gradient(180deg,#fff8ea,#e8dfc8);background-color:#fff8ea}
.member-card:nth-child(3n) .avatar{background:radial-gradient(circle at 50% 32%,#eebd8d 0 22%,#a76a3b 23% 24%,transparent 25%),radial-gradient(circle at 50% 78%,#215f45 0 34%,#102e21 35% 100%),linear-gradient(180deg,#eef4ee,#cfdccf);background-color:#eef4ee}
#sheetPortrait{
  width:76px;
  height:76px;
  min-width:76px;
  min-height:76px;
  border-radius:50%;
  border:2px solid var(--forest);
  background:radial-gradient(circle at 50% 32%,#f5d9b8 0 22%,#d9a06b 23% 24%,transparent 25%),radial-gradient(circle at 50% 78%,#2f6b4f 0 34%,#1d4a34 35% 100%),linear-gradient(180deg,#eef4ee,#dcead9);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:800;
  color:var(--forest-dark);
}
.member-name{
  margin:0;
  font-size:24px;
  line-height:1.3;
  letter-spacing:-.01em;
}
.member-role{
  margin:2px 0 6px;
  font-size:18px;
  color:var(--muted);
  line-height:1.4;
}
.member-prayer{
  margin:8px 0 0;
  font-size:17px;
  line-height:1.6;
  color:#2c3b32;
}
.card-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:2px 12px;
  align-items:start;
  min-width:0;
}
.card-body .member-name{grid-column:1;grid-row:1;min-width:0}
.card-body .member-role{grid-column:1;grid-row:2;min-width:0}
.card-body .member-prayer{grid-column:1/-1;grid-row:3;min-width:0}
.card-body .status-pill{
  grid-column:2;
  grid-row:1;
  justify-self:end;
  align-self:start;
  margin:0 0 0 4px;
  min-height:52px;
  max-width:132px;
  white-space:normal;
  text-align:center;
  line-height:1.3;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  min-width:96px;
  padding:10px 18px;
  border-radius:999px;
  border:2px solid var(--forest);
  background:#ffffff;
  color:var(--forest-dark);
  font-size:18px;
  font-weight:800;
  cursor:pointer;
}
.status-pill[aria-pressed="true"]{
  background:#215f45;
  color:#fff;
}
.status-pill[data-status="present"]{
  background:#215f45;
  border-color:#215f45;
  color:#fff;
}
.status-pill[data-status="absent"]{
  background:#fdecea;
  border-color:#8a3326;
  color:#8a3326;
}
.status-pill[data-status="pending"]{
  background:#eef0ee;
  border-color:#8a938c;
  color:#3d4a43;
}
.status-pill[data-status="unmarked"]{
  background:#f7f7f2;
  border-color:#c9c5b2;
  color:#45564c;
}
.status-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:20px 0 8px;
}
.pager button{
  min-height:56px;
  min-width:56px;
  padding:12px 20px;
  border-radius:12px;
  border:2px solid var(--forest);
  background:#fffefb;
  color:var(--forest-dark);
  font-size:18px;
  font-weight:800;
  cursor:pointer;
}
.pager button:disabled{opacity:.45;cursor:not-allowed}
.pager .page-info{font-size:18px;font-weight:700}
#submitWeek{
  display:block;
  width:100%;
  min-height:64px;
  margin:18px 0 0;
  background:#215f45;
  color:#fff;
  font-size:19px;
  font-weight:800;
  border:0;
  border-radius:14px;
  cursor:pointer;
  box-shadow:var(--shadow);
}
#submitWeek:disabled{opacity:.55;cursor:not-allowed}
#pageCount{font-size:18px;font-weight:800;color:var(--forest-ink)}
.pager button:not(:disabled):hover{background:#e8f1ea}
.pager button:not(:disabled):active{background:#215f45;color:#fff}
#totals{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  margin-top:12px;
}
#totals div{background:rgba(255,255,255,.72);border:1px solid var(--line);border-radius:12px;padding:8px 6px;text-align:center}
#totals span{display:block;font-size:15px;color:var(--muted)}
#totals strong{display:block;font-size:20px;color:var(--forest-dark)}
[hidden]{display:none!important}
.sheet-backdrop{
  position:fixed;
  inset:0;
  background:rgba(16,30,22,.55);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:16px;
  z-index:50;
}
.attendance-sheet{
  position:fixed;
  z-index:51;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  width:calc(100vw - 24px);
  max-width:550px;
  max-height:88vh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  background:#fffefb;
  border-radius:20px 20px 16px 16px;
  border:1px solid var(--line);
  padding:20px 18px 24px;
  box-shadow:0 12px 40px rgba(0,0,0,.28);
}
.attendance-sheet h2{margin:0 0 10px;font-size:23px}
@media (min-width:760px){
  .attendance-sheet{
    top:50%;
    bottom:auto;
    transform:translate(-50%,-50%);
  }
}
.sheet-choice{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  width:100%;
  min-height:60px;
  padding:14px 16px;
  margin:10px 0;
  border-radius:14px;
  border:2px solid var(--forest);
  background:#ffffff;
  font-size:19px;
  font-weight:700;
  cursor:pointer;
}
.sheet-choice[aria-pressed="true"]{
  background:#215f45;
  color:#fff;
  border-color:#215f45;
}
.reason-choice{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:56px;
  padding:12px 14px;
  margin:8px 0;
  border-radius:12px;
  border:2px solid #c9c5b2;
  background:#ffffff;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
}
.attendance-sheet .reason-choice{display:flex}
body>.reason-choice,.reason-choice.outside-modal{display:none!important}
.reason-choice[aria-pressed="true"]{
  border-color:#215f45;
  background:#e8f1ea;
  color:#17452f;
}
.sheet-choice[aria-pressed="true"]::after{content:"✓";margin-left:auto;font-weight:800}
.reason-choice[aria-pressed="true"]::after{content:"✓";margin-left:auto;font-weight:800}
#sheetName{margin:8px 0 0;font-size:22px;font-weight:800;color:var(--forest-ink)}
.toast:empty,#toast:empty{display:none}
.attendance-sheet div:has(>button[data-status]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.attendance-sheet div:has(>button[data-status]) .sheet-choice{margin:0;min-height:56px;min-width:0;width:100%;padding:8px 6px;font-size:17px;justify-content:center;text-align:center;gap:6px}
.attendance-sheet div:has(>button[data-status]) .sheet-choice[aria-pressed="true"]::after{margin-left:6px}
#absenceReasons:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
#absenceReasons:not([hidden]) .reason-choice{margin:0;min-height:56px;min-width:0;width:100%;padding:10px 8px;font-size:17px}
#sheetPrayer{margin:4px 0 8px;font-size:17px;color:#2c3b32}
#reasonNote{width:100%;min-height:52px;border:2px solid #c9c5b2;border-radius:12px;padding:12px 14px;font-size:18px;background:#fff}
#sheetCancel,#sheetSave{flex:1;min-height:56px;border-radius:14px;font-size:19px;font-weight:800;cursor:pointer;padding:12px}
#sheetCancel{background:#fffefb;border:2px solid var(--forest);color:var(--forest-dark)}
#sheetSave{background:#215f45;border:2px solid #215f45;color:#fff}
#sheetClose{min-height:48px;min-width:48px;border-radius:12px;border:2px solid var(--forest);background:#fffefb;color:var(--forest-dark);font-size:17px;font-weight:800;cursor:pointer;padding:8px 14px}
.attendance-sheet>div:last-of-type{display:flex;gap:12px;margin-top:14px}
.sheet-choice[aria-pressed="false"]{background:#fff}
.reason-choice:focus-visible,.sheet-choice:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.pastor-layout{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px 80px;
  background:#f7f7f2;
}
.stat-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin:16px 0;
}
.stat-card{
  background:#fffefb;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:18px;
  font-size:18px;
}
.stat-card strong{display:block;font-size:30px;color:var(--forest-dark)}
.panel{
  background:#fffefb;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:18px;
  margin:14px 0;
  font-size:18px;
}
.notice{
  border-left:6px solid var(--forest);
  background:#eef4ee;
  color:#102e21;
  border-radius:12px;
  padding:14px 16px;
  font-size:18px;
  margin:14px 0;
}
.toast{
  position:fixed;
  left:50%;
  bottom:20px;
  transform:translateX(-50%);
  max-width:min(520px,calc(100vw - 32px));
  background:#102e21;
  color:#ffffff;
  border-radius:14px;
  padding:14px 18px;
  font-size:18px;
  box-shadow:0 8px 28px rgba(0,0,0,.3);
  z-index:80;
}
@media (max-width:380px){
  .app-shell{padding:0 12px 80px}
  .member-card{grid-template-columns:72px 1fr;gap:10px;padding:14px}
  .avatar{width:72px;height:72px}
  .member-name{font-size:23px}
  .member-role{font-size:18px}
  .member-prayer{font-size:17px}
  .primary-tabs button{min-height:64px;font-size:18px}
  .status-pill{min-height:56px;font-size:17px;padding:10px 14px}
  .sheet-backdrop{padding:8px}
  .attendance-sheet{max-height:92vh;padding:16px 14px 20px}
}
@media (max-width:390px){
  .card-body{grid-template-columns:minmax(0,1fr) auto;gap:6px}
  .card-body .member-name{grid-column:1;grid-row:1;min-width:0}
  .card-body .member-role{grid-column:1;grid-row:2;min-width:0}
  .card-body .member-prayer{grid-column:1/-1;grid-row:3;min-width:0}
  .card-body .status-pill{grid-column:2;grid-row:1/span 2;justify-self:end;align-self:start;margin:0 0 0 6px;min-width:82px;max-width:96px;min-height:52px;font-size:16px;padding:8px}
  .member-card{grid-template-columns:76px minmax(0,1fr);gap:12px}
  .avatar,#sheetPortrait{width:76px;height:76px;min-width:76px;min-height:76px}
  .primary-tabs{grid-template-columns:1fr 1fr}
  .primary-tabs button{min-height:64px}
  #totals{grid-template-columns:repeat(5,minmax(0,1fr));overflow-x:auto}
}
@media (max-width:320px){
  .app-shell{padding:0 10px 80px}
  .member-card{padding:12px;gap:10px}
  .card-body{grid-template-columns:minmax(0,1fr) auto;gap:6px}
  .card-body .status-pill{grid-column:2;grid-row:1/span 2;justify-self:end;align-self:start;margin:0 0 0 4px;min-width:82px;max-width:96px;min-height:52px;font-size:16px;padding:8px 6px}
  .hero{padding:18px 14px 78px}
  .hero h1,.hero h2{font-size:23px}
  .pager button{padding:12px 14px;font-size:17px}
  .attendance-sheet{padding:16px 12px 20px}
}
@media (min-width:760px){
  .app-shell{padding:0 24px 96px}
  .hero{padding:26px 24px 96px}
  .sheet-backdrop{align-items:center}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .pastor-layout{display:block}
}
@media (min-width:1024px){
  .pastor-layout{padding:0 28px 90px}
  .stat-grid{grid-template-columns:repeat(3,1fr)}
  .pastor-columns{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:start}
  .stat-card,.panel{padding:22px;font-size:19px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* 1-gyogu group history: elderly-friendly, cream/green header */
[hidden]{display:none!important}
.history-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fffefb;border:1px solid var(--line);border-radius:12px;padding:8px;margin:12px 0}
.history-navigation .history-range{flex:1;min-width:0;text-align:center;font-size:18px;font-weight:800;color:#1d4a34;line-height:1.4;overflow-wrap:anywhere}
.history-navigation button{flex-shrink:0;min-width:48px;min-height:48px;padding:10px 14px;border-radius:12px;border:2px solid var(--forest);background:#215f45;color:#fff;font-size:18px;font-weight:800;line-height:1;cursor:pointer}
.history-navigation button:disabled{opacity:.45;cursor:not-allowed;background:#eef0ee;color:#3d4a43;border-color:#8a938c}
.history-navigation button:focus-visible,.history-chip:focus-visible,.contact-button:focus-visible{outline:3px solid #1d4a34;outline-offset:2px}
.history-grid{grid-column:1/-1;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:10px 0 0;min-width:0;max-width:100%}
.history-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;max-width:100%;padding:8px 4px;border-radius:10px;border:2px solid;text-align:center;line-height:1.4;overflow-wrap:anywhere}
.history-chip .history-date{display:block;font-size:13px;font-weight:700;line-height:1.4}
.history-chip .history-status{display:block;font-size:15px;font-weight:800;line-height:1.4}
.history-present{background:#e6f4ea;border-color:#215f45;color:#143d2a}
.history-absent{background:#fdecea;border-color:#8a3326;color:#8a3326}
.history-pending{background:#fff8e1;border-color:#7a5b00;color:#5a4300}
.history-unmarked{background:#f1f0ea;border-color:#8a938c;color:#3d4a43}
.member-role-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0}
.member-role-row .member-role{margin:2px 0;flex:1 1 auto;min-width:0}
.contact-actions{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}
.contact-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:42px;min-height:42px;padding:8px 10px;border-radius:10px;border:2px solid var(--forest);background:#fffefb;color:var(--forest-dark);font-size:15px;font-weight:800;line-height:1.2;cursor:pointer;white-space:nowrap}
.contact-button:hover{background:#eef4ee}
img.avatar{width:76px;height:76px;min-width:76px;min-height:76px;object-fit:cover;border-radius:50%}
.member-card img.avatar{object-fit:cover;border-radius:50%}
.demo-contact-note{margin:6px 0 0;font-size:14px;line-height:1.5;color:var(--muted)}
@media (max-width:390px){
.history-navigation{gap:6px;padding:6px}
.history-navigation .history-range{font-size:16px}
.history-navigation button{min-width:48px;min-height:48px;padding:10px 12px;font-size:17px}
.history-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.history-chip{padding:6px 2px}
.history-chip .history-date{font-size:13px}
.history-chip .history-status{font-size:15px}
.contact-actions{gap:4px}
.contact-button{min-width:42px;min-height:42px;font-size:14px;padding:8px}
.member-card,.card-body,.history-grid{min-width:0;max-width:100%}
.app-shell,.member-list{overflow-x:clip}
}
/* 390px/320px group readability: single column, nowrap name + caption, 4 equal chips */
.member-card:has(.history-grid) .card-body{grid-template-columns:minmax(0,1fr);gap:2px 0;min-width:0;max-width:100%}
.member-card:has(.history-grid) .card-body .member-name,.member-card:has(.history-grid) h3{grid-column:1/-1;grid-row:1;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:24px;line-height:1.3}
.member-card:has(.history-grid) .member-role-row{grid-column:1/-1;grid-row:2;min-width:0;display:flex;align-items:center;gap:6px 8px;flex-wrap:wrap}
.member-card:has(.history-grid) .member-prayer{grid-column:1/-1;grid-row:3;min-width:0;max-width:100%}
.member-card:has(.history-grid) .contact-actions{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;min-width:0}
.member-card:has(.history-grid) .contact-button{min-height:42px;min-width:42px;font-size:15px;font-weight:800;line-height:1.2;white-space:nowrap}
.history-navigation > div{flex:1;min-width:0;text-align:center;max-width:100%}
#historyRange{display:block;white-space:nowrap;font-size:16px;font-weight:800;line-height:1.4;overflow:hidden;text-overflow:ellipsis}
#historyCaption{display:block;white-space:nowrap;font-size:13px;font-weight:700;line-height:1.4;overflow:hidden;text-overflow:ellipsis}
.history-navigation .history-range{overflow-wrap:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.history-chip{min-width:0;max-width:100%;overflow:hidden}
.history-chip .history-date{display:block;white-space:nowrap;font-size:13px;font-weight:700;line-height:1.4}
.history-chip .history-status{display:block;white-space:nowrap;font-size:15px;font-weight:800;line-height:1.4}
@media (max-width:390px){
.member-card:has(.history-grid) .card-body{grid-template-columns:minmax(0,1fr)}
.member-card:has(.history-grid) .card-body .member-name,.member-card:has(.history-grid) h3{font-size:23px;white-space:nowrap;grid-column:1/-1;grid-row:1}
.member-card:has(.history-grid) .member-role-row{grid-column:1/-1;grid-row:2}
.member-card:has(.history-grid) .contact-button{min-height:42px;min-width:42px;font-size:14px;white-space:nowrap}
.history-navigation > div{flex:1;min-width:0;text-align:center}
#historyRange{display:block;white-space:nowrap;font-size:15px}
#historyCaption{display:block;white-space:nowrap;font-size:12px}
.history-chip .history-date{font-size:13px;white-space:nowrap}
.history-chip .history-status{font-size:15px;white-space:nowrap}
}
@media (max-width:320px){
.history-navigation{gap:4px;padding:4px}
.history-grid{gap:3px}
.history-chip{padding:5px 1px}
#historyRange{font-size:15px;white-space:nowrap;display:block}
#historyCaption{font-size:12px;white-space:nowrap;display:block}
.member-card:has(.history-grid) .card-body .member-name,.member-card:has(.history-grid) h3{font-size:23px;white-space:nowrap}
}
