/* Zone 3 Cell Register — styles. */
/* ===== App shell (the register page has its own design, independent of the theme) ===== */
body.z3-app {
  margin: 0;
  background: #f3f4f8;
  color: #1c2233;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.z3-app.is-signed-out { background: #16285a; }
body.z3-app.is-signed-out .z3-foot { color: rgba(255,255,255,0.6); }
body.z3-app h1, body.z3-app h2, body.z3-app h3, body.z3-app h4, body.z3-app button, body.z3-app input, body.z3-app select, body.z3-app textarea { font-family: inherit; letter-spacing: normal; }
body.z3-app h1, body.z3-app h2 { font-weight: 700; }
body.z3-app h3 { font-weight: 650; }
.z3-bar { background: #16285a; color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.admin-bar .z3-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .z3-bar { top: 46px; } }
.z3-bar-inner { max-width: 1000px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.z3-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.z3-mark { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: contain; flex: 0 0 auto; }
.z3-signin-logo { width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,0.25); margin-bottom: 14px; }
.z3-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.z3-brand-text strong { font-size: 17px; }
.z3-brand-text small { font-size: 12px; color: rgba(255,255,255,0.72); }
.z3-links { display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.z3-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.z3-links a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.z3-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 #c9a54a; border-radius: 8px 8px 0 0; }
@media (max-width: 640px) { .z3-links { width: 100%; margin: 0 -12px; } }
.z3-main { padding: 24px 16px 48px; }
.z3-foot { text-align: center; color: #6b7390; font-size: 13px; padding: 0 16px 32px; }

/* Sign-in */
.z3-signin { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; max-width: 960px; margin: 8px auto 0; }
@media (min-width: 820px) { .z3-signin { grid-template-columns: 1.1fr 0.9fr; gap: 48px; margin-top: 40px; } }
.z3-signin-intro { color: #fff; padding-top: 8px; }
.z3-signin-intro h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 6px 0 14px; color: #fff; }
.z3-signin-intro p { color: rgba(255,255,255,0.82); font-size: 17px; max-width: 46ch; margin: 0; }
.z3-signin-intro .z3-eyebrow { color: #e6c873; }
.z3-signin-card { padding: 24px; }
.z3-signin-card h2 { margin-bottom: 14px; }

.z3-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; color: #8a6d1f; margin: 0 0 4px; }
.z3-hello { margin-bottom: 16px; }
.z3-hello h2 { font-size: 26px; }
.z3-week { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-left: 5px solid #c9a54a; }
.z3-week h3 { margin: 2px 0 0 !important; font-size: 19px; }
.z3-week.is-done { border-left-color: #1b7a43; }
.z3-week.is-due { border-left-color: #c9a54a; }
.z3-mycell { border-left: 5px solid #16285a; }
.z3-mycell h3 { font-size: 20px; margin: 0 0 2px !important; }
.z3-mycell p { margin: 0; }
.z3-warn { background: #fff4d6; color: #5c4400; }
.z3 [hidden] { display: none !important; }


.z3 {
  --z3-bg: #f5f6fa;
  --z3-surface: #ffffff;
  --z3-text: #1c2233;
  --z3-muted: #5d6680;
  --z3-border: #dde1ea;
  --z3-primary: #1f3c88;
  --z3-navy: #16285a;
  --z3-gold: #c9a54a;
  --z3-primary-hover: #17306e;
  --z3-primary-soft: #e8edf9;
  --z3-danger: #b42318;
  --z3-danger-soft: #fdecea;
  --z3-success: #1b7a43;
  --z3-success-soft: #e6f4ec;
  color: var(--z3-text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  max-width: 1000px;
  margin: 0 auto;
}
.z3 *, .z3 *::before, .z3 *::after { box-sizing: border-box; }
.z3 h2 { font-size: 24px; margin: 4px 0 4px; line-height: 1.2; }
.z3 h3 { font-size: 18px; margin: 24px 0 10px; }
.z3 h4 { font-size: 16px; margin: 0 0 4px; }
.z3 .z3-card h3 { margin-top: 0; }
.z3 a { color: var(--z3-primary); }
.z3-muted { color: var(--z3-muted); }
.z3-small { font-size: 14px; }

.z3-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--z3-border); font-weight: 600; }
.z3-nav a { text-decoration: none; }
.z3-nav a:hover { text-decoration: underline; }

.z3-card { background: var(--z3-surface); border: 1px solid var(--z3-border); border-radius: 12px; padding: 18px; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.07); margin-bottom: 12px; }
.z3-narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.z3-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.z3-tile { display: block; text-decoration: none; color: var(--z3-text) !important; margin: 0; }
.z3-tile:hover { border-color: var(--z3-primary); }
.z3-tile strong { display: block; font-size: 17px; color: var(--z3-primary); margin-bottom: 4px; }
.z3-tile span { color: var(--z3-muted); font-size: 15px; }

.z3-form label, .z3 legend { display: block; font-weight: 600; margin-bottom: 6px; }
.z3 fieldset { border: 0; padding: 0; margin: 0; }
.z3-field { margin-bottom: 16px; flex: 1; min-width: 0; }
.z3 input[type=text], .z3 input[type=number], .z3 input[type=date], .z3 input[type=email], .z3 input[type=tel],
.z3 input[type=password], .z3 select, .z3 textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--z3-border);
  border-radius: 10px; background: var(--z3-surface); color: var(--z3-text); max-width: 100%;
}
.z3 textarea { min-height: 90px; resize: vertical; }
.z3 input:focus, .z3 select:focus, .z3 textarea:focus { outline: 2px solid var(--z3-primary); outline-offset: 1px; }
.z3 select:disabled { opacity: 0.55; }
.z3 [aria-invalid="true"] { border-color: var(--z3-danger); }
.z3-hint { display: block; color: var(--z3-muted); font-size: 14px; font-weight: 400; margin-top: 4px; }
.z3-inline { display: inline; }
.z3-error-text { color: var(--z3-danger); }

.z3-step { display: flex; gap: 10px; align-items: flex-start; }
.z3-step-num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--z3-primary-soft); color: var(--z3-primary);
  font-weight: 700; font-size: 14px; display: grid; place-items: center; margin-top: 34px; }

.z3-yesno { display: flex; gap: 8px; }
.z3-yesno label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; border: 1px solid var(--z3-border);
  border-radius: 10px; padding: 9px 16px; cursor: pointer; background: var(--z3-surface); }
.z3-yesno label:has(input:checked) { border-color: var(--z3-primary); background: var(--z3-primary-soft); }

.z3-btn, .z3 .button-primary, .z3 #wp-submit {
  display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 16px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; background: var(--z3-primary); color: #fff !important;
  cursor: pointer; text-decoration: none !important;
}
.z3-btn:hover, .z3 #wp-submit:hover { background: var(--z3-primary-hover); }
.z3-btn-block, .z3 #wp-submit { width: 100%; }
.z3-btn-secondary { background: var(--z3-surface); color: var(--z3-primary) !important; border-color: var(--z3-border); }
.z3-btn-secondary:hover { background: var(--z3-primary-soft); }
.z3-btn-danger { background: var(--z3-surface); color: var(--z3-danger) !important; border-color: var(--z3-border); }
.z3-btn-danger:hover { background: var(--z3-danger-soft); }
.z3-btn-small { padding: 7px 12px; font-size: 14px; }
.z3-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 16px; }
.z3-actions .z3-btn-small:last-child { margin-left: auto; }

.z3-notice { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.z3-error { background: var(--z3-danger-soft); color: var(--z3-danger); }
.z3-success { background: var(--z3-success-soft); color: var(--z3-success); }

.z3-entry { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.z3-entry-main { min-width: 0; }
.z3-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--z3-muted); margin-top: 4px; }
.z3-nums b { color: var(--z3-text); }
.z3-comment { border-left: 3px solid var(--z3-primary); padding-left: 10px; margin: 8px 0 0; white-space: pre-wrap; }
.z3-kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 6px 14px; margin: 0; }
.z3-kv dt { color: var(--z3-muted); }
.z3-kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.z3-subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.z3-subnav a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--z3-surface); border: 1px solid var(--z3-border); }
.z3-subnav a[aria-current="page"] { background: var(--z3-primary); border-color: var(--z3-primary); color: #fff; }
.z3-month { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.z3-month strong { font-size: 18px; min-width: 140px; text-align: center; }

.z3-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 8px; }
.z3-stat { background: var(--z3-surface); border: 1px solid var(--z3-border); border-radius: 12px; padding: 12px 14px; }
.z3-stat-label { color: var(--z3-muted); font-size: 13px; }
.z3-stat-value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.z3-missing { columns: 2 220px; margin: 0; padding-left: 18px; }
.z3-missing li { break-inside: avoid; }

.z3-table-wrap { overflow-x: auto; border: 1px solid var(--z3-border); border-radius: 12px; background: var(--z3-surface); }
.z3-table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0; }
.z3-table th, .z3-table td { padding: 9px 10px; border: 0; border-bottom: 1px solid var(--z3-border); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.z3-table th:first-child, .z3-table td:first-child { text-align: left; white-space: normal; min-width: 150px; }
.z3-table thead th { background: var(--z3-primary-soft); font-weight: 600; }
.z3-group-row td { background: var(--z3-bg); font-weight: 700; }
.z3-church-row td { font-weight: 600; }
.z3-cell-row td:first-child { padding-left: 26px; color: var(--z3-muted); }
.z3-total-row td { font-weight: 700; border-top: 2px solid var(--z3-border); }

/* WordPress login form inside the register */
.z3 #loginform p { margin: 0 0 14px; }
.z3 #loginform label { display: block; font-weight: 600; margin-bottom: 6px; }
.z3 #loginform .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 400; }

/* Example (test) data badge */
.z3 .z3-example { display:inline-block; margin-left:6px; padding:1px 8px; border-radius:999px; background:#fff4d6; color:#7a5a00; border:1px solid #e8cf86; font-size:12px; font-weight:600; vertical-align:middle; letter-spacing:.02em; }

/* ===== v1.3: dashboard, breadcrumbs, records table, profile, upload ===== */
.z3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.z3-crumbs ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--z3-muted); }
.z3-crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #a3aac0; }
.z3-crumbs a { font-weight: 600; text-decoration: none; }
.z3-crumbs a:hover { text-decoration: underline; }

.z3-hello { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.z3-hello > div:not(.z3-addmenu) { flex: 1 1 220px; }
.z3-hello p { margin: 0; }
.z3-hello-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(16,24,40,.2); }

a.z3-stat { display: block; text-decoration: none; color: var(--z3-text) !important; }
a.z3-stat:hover { border-color: var(--z3-primary); }
.z3-glance-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.z3-glance-head h3 { margin-bottom: 10px; }
.z3-glance th, .z3-glance td { text-align: right; }
.z3-glance th:first-child, .z3-glance td:first-child { min-width: 0; }
.z3-glance a { font-weight: 600; text-decoration: none; }
.z3-gap td { color: #8a6d1f; background: #fffaf0; }
.z3-gap td:last-child { text-align: left; }

.z3-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.z3-formtile { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; margin: 0; border-top: 4px solid var(--z3-navy); }
.z3-formtile strong { display: block; font-size: 17px; color: var(--z3-navy); margin-bottom: 2px; }
.z3-formtile span { color: var(--z3-muted); font-size: 14px; }
.z3-formtile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.z3-rtable-wrap { border: 1px solid var(--z3-border); border-radius: 12px; background: var(--z3-surface); overflow-x: auto; }
.z3-rtable { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0; }
.z3-rtable th, .z3-rtable td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--z3-border); text-align: left; vertical-align: middle; }
.z3-rtable thead th { background: var(--z3-primary-soft); font-size: 13px; font-weight: 600; white-space: nowrap; }
.z3-rtable tbody tr:last-child > * { border-bottom: 0; }
.z3-rtable tbody tr:hover { background: #fafbfe; }
.z3-rtable .z3-num { text-align: right; font-variant-numeric: tabular-nums; }
.z3-rt-head { font-weight: 600; white-space: nowrap; }
.z3-rt-head a { text-decoration: none; }
.z3-rt-open { text-align: right !important; width: 1%; }
.z3-has-comment { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--z3-primary-soft); color: var(--z3-primary); font-size: 12px; font-weight: 600; }
@media (max-width: 700px) {
  /* On a phone each record is a card. */
  .z3-rtable-wrap { border: 0; background: none; overflow: visible; }
  .z3-rtable, .z3-rtable tbody, .z3-rtable tr, .z3-rtable th, .z3-rtable td { display: block; }
  .z3-rtable thead { display: none; }
  .z3-rtable tr { position: relative; background: var(--z3-surface); border: 1px solid var(--z3-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(16,24,40,.07); }
  .z3-rtable tr:hover { background: var(--z3-surface); }
  .z3-rtable th, .z3-rtable td { border: 0; padding: 0; }
  .z3-rt-head { font-size: 17px; white-space: normal; padding-right: 80px !important; margin-bottom: 6px; }
  .z3-rtable td[data-label] { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 3px 0; border-top: 1px dashed #eceef4; }
  .z3-rtable td[data-label]::before { content: attr(data-label); color: var(--z3-muted); }
  .z3-rtable .z3-num { text-align: right; }
  .z3-rt-open { position: absolute; top: 12px; right: 12px; width: auto; }
}

.z3-profile { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.z3-profile-photo img, .z3-initials { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.z3-initials { background: var(--z3-navy); color: #fff; font-size: 34px; font-weight: 700; }
.z3-profile-main { flex: 1; min-width: 220px; }
.z3-profile-main h3 { margin: 4px 0 10px !important; font-size: 20px; }
.z3 input[type=file] { font: inherit; font-size: 15px; padding: 10px; border: 1px dashed var(--z3-border); border-radius: 10px; width: 100%; background: var(--z3-bg); }

.z3-checklist { list-style: none; padding: 0; margin: 0 0 14px; }
.z3-checklist li { padding: 8px 12px; border-radius: 10px; margin-bottom: 6px; }
.z3-checklist .is-ok { background: var(--z3-success-soft); color: var(--z3-success); }
.z3-checklist .is-skip { background: var(--z3-bg); color: var(--z3-muted); }
.z3-checklist .is-bad { background: var(--z3-danger-soft); color: var(--z3-danger); }
.z3-problems td, .z3-problems th { text-align: left !important; white-space: normal !important; }
.z3-problems td:first-child, .z3-problems th:first-child { min-width: 0 !important; width: 1%; }
.z3-preview { margin: 10px 0 14px; }
.z3-preview summary { cursor: pointer; font-weight: 600; color: var(--z3-primary); margin-bottom: 10px; }
.z3-stats-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .z3-stats-4 { grid-template-columns: repeat(4, 1fr); } }

/* "+ Add a record" dropdown beside the welcome */
.z3-addmenu { position: relative; margin-left: auto; }
.z3-addmenu summary { list-style: none; gap: 8px; }
.z3-addmenu summary::-webkit-details-marker { display: none; }
.z3-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transition: transform .15s; }
.z3-addmenu[open] .z3-caret { transform: rotate(180deg); }
.z3-addmenu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 300px; max-width: calc(100vw - 32px); margin: 0; padding: 6px; list-style: none;
  background: var(--z3-surface); border: 1px solid var(--z3-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.18); }
.z3-addmenu li a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--z3-text); }
.z3-addmenu li a:hover, .z3-addmenu li a:focus { background: var(--z3-primary-soft); outline: none; }
.z3-addmenu li strong { display: block; color: var(--z3-navy); font-size: 15px; }
.z3-addmenu li span { display: block; color: var(--z3-muted); font-size: 13px; line-height: 1.35; }
@media (max-width: 520px) {
  .z3-addmenu { margin-left: 0; width: 100%; }
  .z3-addmenu summary { width: 100%; }
  .z3-addmenu ul { left: 0; right: 0; width: auto; }
}
