:root {
  color-scheme: light;
  --ink: #23342d;
  --muted: #627169;
  --green: #24533e;
  --dark-green: #173729;
  --tint: #eaf1e9;
  --warm: #f6f5f1;
  --paper: #fff;
  --line: #e2e6dd;
  --crimson: #a34e43;
  --umber: #835824;
  --radius: 16px;
  --font: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font: 15px/1.54 var(--font);
  color: var(--ink);
  background: var(--warm);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
img, canvas, video { display: block; max-width: 100%; }
strong { font-weight: 650; }
:focus-visible { outline: 2px solid #46815e; outline-offset: 3px; }
.icon { display: inline-block; block-size: 20px; inline-size: 20px; flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--muted); }
.sr-only, .clipboard-field { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.brand-mark { display: grid; position: relative; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 13px; color: #fff; background: var(--green); }
.brand-mark .icon { width: 25px; height: 25px; stroke-width: 1.42; }
.brand-mark i { position: absolute; width: 7px; height: 7px; border: 1.5px solid var(--green); background: #d9836d; top: 7px; right: 6px; border-radius: 50%; }

.btn, .plain-link, .icon-button, .profile, .filter-pill, .search-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 9px; line-height: 1.32;
  background: transparent; font-weight: 630; white-space: nowrap;
}
.btn { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); background: #fff; }
.btn:hover { background: #f7f9f5; border-color: #c8d6c9; }
.btn .icon, .plain-link .icon { width: 17px; height: 17px; }
.btn.primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn.primary:hover { background: #18412f; border-color: #18412f; }
.btn.secondary { background: #fff; border-color: #d5ded1; color: var(--green); }
.btn.secondary:hover { background: var(--tint); }
.btn.small { min-height: 36px; border-radius: 8px; font-size: 13px; padding: 0 12px; }
.btn.plain { border-color: transparent; background: transparent; }
.btn.plain:hover, .plain-link:hover { color: #123b29; background: #edf2ea; }
.btn.subtle { background: var(--tint); border-color: transparent; color: var(--green); }
.plain-link { min-height: 36px; padding: 4px 6px; color: var(--green); font-size: 14px; text-align: left; }
.quiet-danger { color: var(--crimson); }
.quiet-danger:hover { background: #fcf1ed; color: #813a32; }
.icon-button { border-radius: 10px; width: 44px; min-width: 44px; height: 44px; color: var(--green); background: #f2f5ef; }
.icon-button:hover { background: #e8eee5; }
.wide { width: 100%; }
.demo-indicator { display: inline-flex; align-items: center; gap: 7px; background: #f1f0e8; color: #626453; font-weight: 630; font-size: 12px; border: 1px solid #e8e6da; border-radius: 100px; padding: 5px 10px; white-space: nowrap; }
.demo-indicator i, .badge i, .checkin-progress i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex: 0 0 auto; }
.demo-indicator i { background: #9c694a; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 3px 9px; border-radius: 100px; font-size: 12px; font-weight: 640; white-space: nowrap; }
.badge.green { background: #e7f0e5; color: #2d6449; }
.badge.amber { background: #f7eee0; color: #805624; }
.badge.red { background: #f7eae5; color: #9a453d; }
.badge.neutral { background: #eff0eb; color: #5c6a60; }

/* Shared fields and dialogs */
.field { display: grid; min-width: 0; gap: 7px; align-content: start; }
.field > span, .form-section-caption, .reg-types legend { font-size: 14px; font-weight: 650; }
.field small { color: var(--muted); font-size: 12px; }
input:not([type="checkbox"], [type="radio"], [type="file"]), select, textarea {
  width: 100%; min-width: 0; min-height: 44px; border: 1px solid #d9e0d5;
  border-radius: 9px; background: white; outline-offset: 2px; padding: 9px 11px;
}
input::placeholder, textarea::placeholder { color: #6d786f; opacity: 1; }
textarea { min-height: 103px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); }
input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
input[type="datetime-local"] { font-variant-numeric: tabular-nums; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.required { color: var(--crimson); font-style: normal; margin-left: 4px; }
.form-stack { display: grid; gap: 16px; }
.form-error { color: #8a3c34; padding: 11px 13px; background: #fbefec; border: 1px solid #eed6cf; border-radius: 10px; font-size: 14px; }
.form-error:focus { outline-offset: 1px; }
.search-box { display: flex; align-items: center; gap: 7px; min-height: 43px; min-width: 0; padding: 0 10px 0 12px; background: white; border: 1px solid #d9e0d5; border-radius: 10px; color: var(--muted); }
.search-box input { min-height: 41px !important; width: 100%; padding: 0 2px !important; border: 0 !important; background: transparent !important; color: var(--ink); }
.search-box:focus-within { border-color: #5e866e; }
.search-submit { min-height: 43px; padding: 0 6px; color: var(--green); font-size: 14px; }
dialog {
  border: 1px solid #dfe6dc; border-radius: 20px; padding: 0; width: min(530px, calc(100vw - 28px));
  max-height: min(746px, 88dvh); overflow: auto; box-shadow: 0 25px 85px #15271e42; color: var(--ink);
}
dialog::backdrop { background: #11251d62; }
.modal-head, .modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px; }
.modal-head { border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 20px; font-weight: 690; }
.modal-head .icon-button { width: 40px; min-width: 40px; height: 40px; }
.modal-body { padding: 20px 22px 23px; }
.modal-body > p { color: var(--muted); margin-bottom: 14px; }
.modal-body > .field + .form-error { margin-top: 10px; }
.modal-foot { justify-content: flex-end; border-top: 1px solid var(--line); background: #f9faf8; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.dialog-record { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dialog-record h3 { font-size: 24px; }
.dialog-record p { color: var(--muted); font-size: 13px; }
.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 15px 0; }
.record-grid div { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.record-grid small, .custom-values dt { color: var(--muted); }
.custom-values { margin: 2px 0 0; padding: 12px; background: #f5f7f3; border-radius: 10px; }
.custom-values div { display: grid; grid-template-columns: minmax(70px, .6fr) 1fr; gap: 8px; }
.custom-values dd { margin: 0; overflow-wrap: anywhere; }
.history-title { margin-top: 17px; font-size: 15px; }
#toast {
  position: fixed; z-index: 10; right: 26px; bottom: 28px; background: #173729; color: white;
  padding: 10px 18px; box-shadow: 0 7px 24px #14261b30; border-radius: 12px; pointer-events: none;
  opacity: 0; transform: translateY(7px); transition: opacity .16s ease-out, transform .16s ease-out; max-width: calc(100vw - 34px);
}
#toast.visible { opacity: 1; transform: translateY(0); }
.qr-dialog { display: grid; justify-items: center; gap: 10px; text-align: center; }
.qr-code { width: 158px; height: 158px; border: 1px solid #edf0e9; border-radius: 7px; background: white; image-rendering: pixelated; }
.qr-dialog .qr-code { width: 220px; height: 220px; }
.qr-dialog input.copy-url { font-size: 13px; color: var(--muted); }
.empty { display: grid; align-content: center; justify-items: center; text-align: center; min-height: 170px; gap: 9px; padding: 28px 15px; color: var(--muted); }
.empty > .icon { width: 29px; height: 29px; color: #6f8d76; }
.empty strong { color: var(--ink); font-size: 17px; }
.empty p { margin: 0 0 3px; font-size: 14px; }

/* PC management */
.admin-body { background: #f6f7f3; }
.admin-shell { display: grid; grid-template-columns: 222px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; align-self: start; min-height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #fff; padding: 27px 15px 15px; border-right: 1px solid var(--line); }
.admin-brand { display: flex; gap: 12px; align-items: center; padding: 1px 9px; font-size: 20px; line-height: 1.15; font-weight: 750; color: var(--dark-green); letter-spacing: -.02em; }
.admin-brand small { display: block; margin-top: 4px; color: #65766a; font-size: 11px; letter-spacing: .11em; font-weight: 580; }
.organization { display: flex; align-items: center; gap: 9px; min-height: 45px; margin: 29px 4px 18px; padding: 0 9px; border-bottom: 1px solid var(--line); color: #54655a; font-size: 13px; white-space: nowrap; }
.organization .icon { width: 16px; height: 16px; }
.side-nav { display: grid; gap: 4px; }
.side-link { position: relative; display: flex; align-items: center; gap: 11px; height: 45px; padding: 0 13px; color: #52635a; border-radius: 9px; font-weight: 620; }
.side-link:hover, .side-link.active { background: #e9f0e7; color: #22533d; }
.side-link.active::before { position: absolute; content: ""; inline-size: 3px; inset: 11px auto 11px 0; border-radius: 0 3px 3px 0; background: #346a4f; }
.side-bottom { margin-top: auto; }
.side-utility { display: flex; align-items: center; gap: 9px; color: #53665b; min-height: 46px; padding: 0 9px; border-radius: 9px; font-size: 13px; font-weight: 620; }
.side-utility:hover { background: #f3f5f0; }
.side-utility .icon { width: 17px; height: 17px; }
.side-utility .icon:last-child { margin-left: auto; width: 14px; }
.profile { display: flex; justify-content: flex-start; text-align: left; padding: 12px 8px 6px; border-top: 1px solid #edf0e9; border-radius: 0; width: 100%; white-space: nowrap; }
.profile:hover { background: #f7f8f4; }
.profile > span:nth-child(2) { display: grid; gap: 4px; }
.profile strong { font-size: 14px; }
.profile small { color: var(--muted); font-size: 12px; font-weight: 490; }
.profile .icon { margin-left: auto; width: 15px; color: #63766a; }
.avatar, .table-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: #e8eee4; color: #39624c; font-size: 14px; font-weight: 620; }
.admin-workspace { min-width: 0; }
.admin-topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e5e9e0; background: #fffffff2; padding: 0 max(25px, min(3vw, 45px)); }
.breadcrumbs, .topbar-tools { display: flex; align-items: center; gap: 11px; }
.breadcrumbs { font-size: 13px; color: var(--muted); white-space: nowrap; }
.breadcrumbs strong { color: var(--ink); }
.breadcrumbs .icon { width: 13px; height: 13px; color: #809286; }
.topbar-tools { gap: 14px; }
.admin-main { width: min(100%, 1450px); margin: 0 auto; padding: 29px max(25px, min(3vw, 45px)) 44px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 15px 20px; margin-bottom: 24px; }
.page-head h1 { color: #20362a; font-size: clamp(28px, 2.5vw, 39px); line-height: 1.26; font-weight: 730; letter-spacing: -.035em; overflow-wrap: anywhere; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.head-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.page-back { margin-bottom: 10px; }
.page-back .plain-link { padding-left: 0; }
.panel, .tasks, .metric-strip, .table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel .table-wrap { border: 0; border-radius: 0 0 var(--radius) var(--radius); }
.pad-panel { padding: 19px 21px; }
.metric-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-bottom: 27px; overflow: hidden; }
.metric { display: flex; align-items: flex-start; gap: 12px; padding: 18px min(1.38vw, 22px) 18px; min-width: 0; }
.metric + .metric { border-left: 1px solid #e9ece4; }
.metric-icon, .task-icon, .activity-icon { display: grid; place-items: center; align-self: start; border-radius: 11px; width: 39px; height: 39px; background: #edf2e9; color: #477459; flex: 0 0 auto; }
.metric-icon .icon, .task-icon .icon { width: 19px; height: 19px; }
.metric-icon.warm, .task-icon.amber-icon { background: #f7eee4; color: #95613a; }
.metric > div { display: grid; min-width: 0; }
.metric div > span { color: #4d5f54; font-size: 13px; font-weight: 630; }
.metric strong { color: #233e30; font-size: 33px; line-height: 1.22; margin: 2px 0 3px; font-weight: 680; font-variant-numeric: tabular-nums; }
.metric small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.dashboard-split { display: grid; grid-template-columns: 1.62fr 1fr; gap: 22px; margin-bottom: 25px; }
.dashboard-left, .dashboard-right { min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 32px; margin-bottom: 10px; }
.section-head h2 { color: #294133; font-size: 18px; font-weight: 710; line-height: 1.35; letter-spacing: -.02em; }
.section-head > .muted { font-size: 13px; text-align: right; }
.feature-event { background: var(--dark-green); color: #fff; border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1.53fr) minmax(0, 1fr); min-height: 221px; overflow: hidden; box-shadow: 0 5px 12px #2034260e; }
.feature-event img { width: 100%; height: 100%; object-fit: cover; object-position: 69% center; }
.feature-body { padding: 21px min(1.75vw, 27px); min-width: 0; }
.feature-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 10px; }
.feature-category { font-size: 12px; color: #d1e4d3; font-weight: 650; }
.feature-top .badge { background: #355746; color: #edf8ed; min-height: 21px; font-size: 11px; }
.feature-body h3 { font-size: clamp(19px, 1.94vw, 31px); font-weight: 700; line-height: 1.31; margin: 10px 0 10px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.feature-body > p { display: flex; gap: 7px; align-items: center; color: #d4e0d3; font-size: 13px; margin-top: 5px; }
.feature-body p .icon { width: 15px; height: 15px; color: #b7ccba; }
.feature-btn { min-height: 35px; padding: 0 10px; background: #f1f4e9; border: 0; color: var(--dark-green); font-size: 13px; margin-top: 16px; }
.feature-btn .icon { order: 2; width: 15px; }
.tasks { min-height: 221px; padding: 5px 14px; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 11px; align-items: center; min-height: 69px; padding: 8px 2px; }
.task + .task { border-top: 1px solid #edf0e9; }
.task > span:nth-child(2) { display: grid; gap: 3px; }
.task:hover strong { color: #176341; }
.task strong { font-size: 14px; }
.task small { color: var(--muted); font-size: 12px; }
.task-icon { align-self: center; }
.task > .icon { grid-column: 4; width: 15px; height: 15px; color: #788a7e; }
.task-number { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 4px; font-size: 12px; font-weight: 690; border-radius: 20px; color: #54705e; background: #edf1e9; }
.task-number.attention { color: #9a4a3e; background: #f9ede7; }
.heading-count { display: inline-block; color: #597260; background: #e7eee4; margin-left: 6px; padding: 2px 7px; font-size: 12px; border-radius: 20px; vertical-align: 2px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.data-table th { padding: 12px 14px; font-weight: 640; color: #54685b; background: #f0f3ed; white-space: nowrap; }
.data-table td { padding: 10px 14px; border-top: 1px solid #edf0e9; vertical-align: middle; }
.data-table th:first-child, .data-table td:first-child { padding-left: 17px; }
.data-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.data-table td:last-child { white-space: nowrap; }
.data-table tbody tr:hover { background: #f9faf7; }
.table-person, .table-event { display: flex; align-items: center; gap: 9px; min-width: 130px; }
.table-person > div, .table-event > div { display: grid; gap: 2px; }
.table-person small, .table-event small { color: var(--muted); font-size: 12px; }
.table-avatar { width: 32px; height: 32px; font-size: 12px; }
.table-event img { width: 49px; height: 38px; border-radius: 7px; object-fit: cover; }
.table-name { color: #284c38; font-size: 14px; font-weight: 680; white-space: normal; }
.table-name:hover { color: #286548; }
.table-actions { display: flex; gap: 6px; white-space: nowrap; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 14px 15px; }
.filter-bar .search-box { flex: 1 1 170px; max-width: 340px; }
.filter-select { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: #4f6456; font-size: 13px; white-space: nowrap; }
.filter-select select { min-height: 42px; max-width: min(310px, 50vw); padding: 7px 9px; }
.filter-select .icon { width: 16px; height: 16px; }
.filter-total { color: var(--muted); font-size: 13px; margin-left: auto; }
.view-tabs { display: flex; gap: 6px; margin: 1px 0 14px; border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 11px 16px; font-size: 14px; font-weight: 640; color: var(--muted); }
.tab.current { color: var(--green); }
.tab.current::after { content: ""; position: absolute; inset: auto 11px -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); }
.editor { display: grid; gap: 16px; max-width: 945px; }
.editor-panel { display: grid; gap: 15px; padding: 19px 21px; }
.editor-panel > .section-head { margin-bottom: 0; }
.template-row { padding: 12px; background: #f2f5ee; border-radius: 10px; }
.template-row > .field { max-width: 340px; }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 17px; }
.editor-actions { display: flex; justify-content: flex-end; gap: 8px; }
.editor-details { padding: 13px; border-radius: 11px; background: #f4f6f1; }
.editor-details .fields-grid { margin-top: 13px; }
summary { cursor: pointer; font-weight: 640; color: #355441; }
.detail-status-bar { display: flex; flex-wrap: wrap; gap: 13px 17px; align-items: center; margin-bottom: 15px; font-size: 13px; color: #52685a; }
.detail-status-bar > span:not(.badge) { display: inline-flex; gap: 6px; align-items: center; }
.detail-status-bar .icon { width: 17px; height: 17px; color: #568066; }
.detail-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.link-cards { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0 17px; }
.detail-description { color: #506158; line-height: 1.7; overflow-wrap: anywhere; }
.detail-session { display: grid; gap: 3px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.detail-session span { color: var(--muted); }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.timeline li { position: relative; display: grid; gap: 3px; border-left: 1px solid #dbe6da; margin-left: 4px; padding: 0 0 12px 14px; }
.timeline li::before { content: ""; position: absolute; inset: 6px auto auto -4px; width: 7px; height: 7px; border-radius: 50%; background: #60846b; }
.timeline strong { font-size: 13px; }
.timeline small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.setting-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf0e9; }
.setting-line span { color: var(--muted); }
.setting-line + .btn, .pad-panel > p + .btn { margin-top: 14px; }
.report-filter { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.invite-panel .section-head { margin: 13px 17px; }
.chart-panel { margin-top: 16px; }
.bar-chart { display: grid; gap: 15px; padding: 8px 0 6px; }
.bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 36px; gap: 12px; align-items: center; color: var(--muted); }
.bar-track { height: 12px; overflow: hidden; border-radius: 20px; background: #edf1e9; }
.bar-track > div { height: 100%; border-radius: 20px; }
.green-bar { background: #478266; }
.warm-bar { background: #a86952; }
.lead-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 0; }
.lead-row + .lead-row { border-top: 1px solid #eef0ea; }

/* Mobile web and staff desk */
.phone-stage { min-height: 100dvh; background: #eaece4; }
.phone-ui { position: relative; width: min(100%, 450px); min-height: 100dvh; margin: 0 auto; background: #f8f8f3; box-shadow: 0 0 45px #293b2c12; }
.mobile-header { display: flex; justify-content: space-between; align-items: center; height: 64px; gap: 10px; padding: 0 19px; background: #fff; border-bottom: 1px solid #e5e9e0; }
.mobile-brand, .mobile-header-side { display: flex; align-items: center; gap: 9px; }
.mobile-brand { font-size: 17px; font-weight: 730; color: #244734; }
.mobile-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.mobile-brand .brand-mark .icon { width: 20px; height: 20px; }
.mobile-brand .brand-mark i { width: 6px; height: 6px; top: 4px; right: 5px; }
.mobile-header .icon-button { background: #f2f5ee; }
.mobile-home { padding-inline: 5px; }
.mobile-main { padding-bottom: 24px; }
.mobile-main.with-sticky { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.mobile-intro { padding: 23px 21px 13px; }
.mobile-intro h1, .mobile-form-head h1, .mobile-detail-body h1 { color: #254433; font-size: clamp(28px, 8vw, 35px); font-weight: 755; line-height: 1.22; letter-spacing: -.05em; overflow-wrap: anywhere; }
.event-index { display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.period-link { min-height: 44px; padding-inline: 11px; font-size: 13px; }
.mobile-intro > p:not(.mobile-eyebrow), .mobile-form-head p { color: var(--muted); margin-top: 9px; font-size: 14px; }
.mobile-eyebrow { display: flex; gap: 5px; align-items: center; margin-bottom: 5px; color: #587665; font-size: 13px; font-weight: 630; }
.mobile-eyebrow .icon { height: 15px; width: 15px; }
.mobile-search { margin: 0 20px 10px; border-color: #dce3d8; }
.mobile-search input { font-size: 16px; }
.filter-scroll, .member-tabs { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.filter-scroll { padding: 2px 20px 8px; }
.filter-pill { min-height: 44px; flex: 0 0 auto; padding: 0 12px; color: #536256; border: 1px solid #e4e9e0; background: #fff; border-radius: 50px; font-size: 13px; }
.filter-pill.current { color: #fff; background: var(--green); border-color: var(--green); }
.filter-pill:hover:not(.current) { background: #eef3e9; }
.mobile-event-list { padding: 4px 20px; display: grid; gap: 13px; }
.event-card { position: relative; display: block; border-radius: 16px; background: white; border: 1px solid #e2e7df; overflow: hidden; box-shadow: 0 2px 4px #243d2b06; }
.event-card:hover { border-color: #b5c8b8; }
.event-cover { position: relative; height: 140px; background: #e1e8dd; }
.featured-card .event-cover { height: 190px; }
.event-cover img, .detail-hero img { height: 100%; width: 100%; object-fit: cover; object-position: center 49%; }
.cover-state { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; background: #f5f8ee; color: #27543d; position: absolute; top: 12px; left: 12px; border-radius: 50px; font-size: 12px; font-weight: 670; }
.cover-state.ended { background: #f4f1e9; color: #655f51; }
.event-card-body { position: relative; padding: 13px 35px 14px 15px; }
.event-kind { color: #587562; font-size: 13px; font-weight: 670; }
.event-card h2 { line-height: 1.37; color: #243d2f; font-size: 21px; letter-spacing: -.035em; margin: 2px 0 8px; font-weight: 730; overflow-wrap: anywhere; }
.event-meta { display: flex; align-items: flex-start; gap: 7px; margin-top: 5px; color: #53685a; font-size: 13px; }
.event-meta .icon { width: 15px; height: 15px; margin-top: 2px; color: #678b73; }
.event-card-arrow { position: absolute; right: 13px; top: 49%; width: 25px; height: 25px; border-radius: 50%; background: #edf2e9; color: #426e55; display: grid; place-items: center; }
.event-card-arrow .icon { width: 14px; height: 14px; }
.mobile-nav, .mobile-bottom { position: fixed; z-index: 3; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 450px); border-top: 1px solid #e2e8df; background: #fffffff8; padding-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-nav { display: grid; grid-template-columns: 1fr 1fr; min-height: 62px; }
.mobile-nav a { display: grid; justify-items: center; align-content: center; gap: 3px; color: #62776a; font-weight: 650; font-size: 12px; min-height: 62px; }
.mobile-nav a[aria-current="page"] { color: #22583e; background: #f4f7f1; }
.mobile-bottom { display: flex; align-items: center; gap: 11px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)); }
.mobile-bottom .mobile-primary { flex: 1; border-radius: 11px; min-height: 49px; font-size: 16px; }
.mobile-primary > .icon { order: 2; }
.bottom-note { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.bottom-note .icon { width: 15px; height: 15px; }
.detail-hero { height: 206px; position: relative; background: #e4eae0; }
.detail-hero .cover-state { left: 18px; top: auto; bottom: 10px; }
.mobile-detail-body { padding: 17px 20px 0; }
.detail-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.detail-facts { display: grid; gap: 2px; background: #fff; margin: 16px 0 18px; padding: 5px 12px; border: 1px solid #e4e9e0; border-radius: 13px; }
.detail-facts > div { display: flex; gap: 9px; align-items: center; min-height: 52px; padding: 3px 0; }
.detail-facts > div + div { border-top: 1px solid #edf0e9; }
.detail-facts .icon { color: #608469; width: 18px; height: 18px; }
.detail-facts span { display: grid; gap: 1px; min-width: 0; }
.detail-facts strong { font-size: 14px; overflow-wrap: anywhere; }
.detail-facts small { color: var(--muted); font-size: 12px; }
.detail-facts a { margin-left: auto; }
.detail-section { margin: 12px 0 16px; }
.detail-section h2, .mobile-list-title h2 { font-size: 18px; font-weight: 710; color: #294333; margin-bottom: 4px; }
.detail-section p, .mobile-details p { color: #506257; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.agenda { background: #fff; border: 1px solid #e3e9df; border-radius: 11px; list-style: none; margin: 9px 0 0; padding: 4px 11px; }
.agenda li { display: flex; gap: 13px; align-items: baseline; min-height: 42px; padding: 8px 2px; }
.agenda li + li { border-top: 1px solid #ecf0e9; }
.agenda time { color: #427154; font-weight: 720; font-variant-numeric: tabular-nums; }
.agenda span { overflow-wrap: anywhere; }
.mobile-details { margin: 10px 0 0; border: 1px solid #e0e7dd; border-radius: 11px; background: #fff; padding: 0 12px 0; }
.mobile-main > .mobile-details { margin-inline: 20px; }
.mobile-details summary { padding: 10px 0; min-height: 44px; }
.mobile-details p { padding-bottom: 11px; }
.mobile-form-head { padding: 22px 20px 16px; }
.mobile-form-head > .event-kind { margin-bottom: 4px; }
.mobile-form { display: grid; gap: 13px; margin: 0 20px; padding: 15px; background: white; border: 1px solid #e4e9e1; border-radius: 15px; }
.reg-types { border: 0; padding: 0; margin: 0; min-width: 0; }
.reg-types legend { padding: 0; margin-bottom: 8px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; background: #f1f4ee; border-radius: 10px; }
.segmented label { display: grid; place-items: center; position: relative; min-height: 44px; color: #53675a; font-weight: 650; border-radius: 7px; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.segmented label:has(input:checked) { background: #fff; color: var(--green); box-shadow: 0 1px 4px #1e36291b; }
.segmented label:has(input:focus-visible) { outline: 2px solid #46815e; outline-offset: 1px; }
.mobile-form .form-stack { gap: 14px; }
.mobile-form .field input, .mobile-form select, .mobile-form textarea, .member-field input { font-size: 16px; min-height: 46px; }
.form-section-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.form-section-caption small { color: var(--muted); font-size: 11px; font-weight: 400; }
.member-field { display: flex; gap: 6px; margin: 6px 0; }
.privacy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 3px; }
.privacy-row .plain-link { padding-inline: 1px; }
.wallet-list { display: grid; gap: 10px; padding: 4px 20px; }
.wallet-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 7px; align-items: center; min-height: 75px; background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.wallet-card strong, .wallet-card small { display: block; overflow-wrap: anywhere; }
.wallet-card small { color: var(--muted); font-size: 12px; padding-top: 4px; }
.wallet-card > .icon { width: 14px; height: 14px; color: #6c9078; }
.pass-intro { padding-bottom: 16px; }
.ticket-card { overflow: hidden; margin: 0 20px; background: #fff; border: 1px solid #dce6d9; border-radius: 17px; box-shadow: 0 6px 20px #273a2c10; }
.ticket-top { display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: 13px 14px; background: #24533e; color: white; }
.ticket-top > span:first-child { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.ticket-top .badge.green { background: #ebf3e6; color: #37684b; }
.ticket-info { padding: 12px 16px 13px; }
.ticket-info h2 { font-size: 22px; font-weight: 735; color: #273f30; margin-bottom: 5px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ticket-info p { display: flex; gap: 7px; align-items: center; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.ticket-info .icon { width: 16px; height: 16px; color: #688c73; }
.ticket-tear { position: relative; margin: 2px 0; border-top: 1px dashed #cddbcf; }
.ticket-tear::before, .ticket-tear::after { content: ""; position: absolute; width: 15px; height: 15px; background: #f8f8f3; border: 1px solid #dce6d9; border-radius: 50%; top: -8px; left: -8px; }
.ticket-tear::after { left: auto; right: -8px; }
.ticket-qr { display: grid; justify-items: center; text-align: center; gap: 5px; padding: 16px 11px 17px; }
.ticket-qr > strong { font-size: 17px; }
.ticket-qr > span { color: var(--muted); font-size: 13px; }
.ticket-qr .qr-code { margin-bottom: 4px; }
.ticket-qr .large-status { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #877449; background: #f2efe2; margin: 4px; }
.large-status .icon { width: 27px; height: 27px; }
.ticket-qr .member-tabs { max-width: 100%; margin-bottom: 7px; }
.ticket-number { display: flex; justify-content: space-between; gap: 12px; color: #53685a; font-size: 12px; border-top: 1px solid #e7ede3; background: #f4f7f1; padding: 10px 15px; }
.ticket-number strong { font-variant-numeric: tabular-nums; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 20px 10px; }
.ticket-actions > * { flex: 1; min-height: 44px; }
.mobile-operator-fields { margin: 0 20px 11px; display: grid; gap: 9px; }
.mobile-operator-fields .field { gap: 3px; }
.mobile-operator-fields select { font-size: 15px; }
.checkin-fields { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.checkin-head { padding-top: 18px; }
.checkin-progress { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin: 0 20px 10px; padding: 9px 10px; border-radius: 9px; color: #315b45; background: #e9f1e7; font-size: 13px; }
.checkin-progress span { display: flex; align-items: center; gap: 6px; font-weight: 640; }
.checkin-progress strong { font-size: 17px; }
.checkin-progress small { color: #516d5a; font-weight: 520; font-size: 12px; }
.operator-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 4px; margin: 0 20px 10px; background: #e9eee6; border-radius: 11px; }
.operator-tab { min-height: 43px; border: 0; border-radius: 8px; color: #547060; background: transparent; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 660; }
.operator-tab.current { background: #fff; color: #2e654b; box-shadow: 0 1px 4px #13332119; }
.operator-tab .icon { width: 17px; height: 17px; }
.scan-panel, .lookup-panel { margin: 0 20px; }
.camera-stage { height: 205px; display: grid; position: relative; place-items: center; overflow: hidden; border-radius: 15px; background: #1e3d31; color: #eef7ea; }
.camera-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-shade { width: 158px; height: 147px; z-index: 1; position: relative; }
.scan-shade > i { position: absolute; width: 23px; height: 23px; border: 2px solid #a9d4b3; }
.scan-shade > i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 7px 0 0 0; }
.scan-shade > i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 7px 0 0; }
.scan-shade > i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 7px; }
.scan-shade > i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-radius: 0 0 7px 0; }
.scan-line { display: none; position: absolute; width: 88%; height: 2px; background: #8cda9e; left: 6%; top: 50%; }
.camera-instructions { max-width: 96%; text-align: center; display: grid; justify-items: center; position: absolute; gap: 3px; }
.camera-instructions .icon { width: 26px; height: 26px; color: #a5cbb2; margin-bottom: 5px; }
.camera-instructions strong { font-size: 14px; }
.camera-instructions small { font-size: 12px; color: #c0d3c6; }
.camera-live .camera-instructions { display: none; }
.camera-live .scan-line { display: block; }
.camera-stop { z-index: 2; position: absolute; right: 8px; bottom: 8px; }
.scan-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.scan-controls .btn { min-height: 46px; }
.scan-demo { margin-top: 11px; padding: 0 10px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.scan-demo summary { min-height: 44px; padding: 9px 0; }
.scan-demo form { margin: 0 0 10px; }
.scan-example { margin-top: 3px; min-height: 44px; }
.lookup-panel { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lookup-panel .field input { font-size: 16px; }
.lookup-results { margin-top: 9px; }
.lookup-result { width: 100%; min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-top: 1px solid var(--line); background: white; text-align: left; padding: 7px 2px; }
.lookup-result strong, .lookup-result small { display: block; }
.lookup-result small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.lookup-result:hover { color: var(--green); background: #f5f8f3; }
.check-result { display: grid; gap: 9px; margin: 0 20px 10px; border: 1px solid #d0e1d0; background: #fff; padding: 12px; border-radius: 13px; }
.check-result-heading { display: flex; gap: 9px; align-items: center; }
.check-result-heading strong { color: #2c694a; }
.check-result p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.result-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: #337451; background: #e8f1e7; }
.check-person { display: flex; justify-content: space-between; gap: 8px; background: #f4f7f2; color: #425c4b; border-radius: 7px; padding: 7px 9px; font-size: 14px; }
.check-result.warning { display: flex; align-items: flex-start; gap: 9px; border-color: #ead2c9; background: #fcf3ee; color: var(--crimson); }
.mobile-statstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: #fff; border: 1px solid var(--line); margin: 0 20px 18px; border-radius: 13px; }
.mobile-statstrip > div { display: grid; justify-items: center; padding: 9px 1px; gap: 3px; text-align: center; }
.mobile-statstrip > div + div { border-left: 1px solid #edf0e9; }
.mobile-statstrip strong { color: #2d5d44; font-size: 25px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.mobile-statstrip small { color: var(--muted); font-size: 12px; }
.mobile-list-title { margin: 0 20px 10px; }
.mobile-invites { display: grid; gap: 10px; margin: 0 20px; }
.mobile-invite-card { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px; }
.invite-card-head { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; }
.invite-card-head strong, .invite-card-head small { display: block; overflow-wrap: anywhere; }
.invite-card-head small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.mobile-invite-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.mobile-invite-actions .btn { min-height: 44px; flex: 1; }

@media (max-width: 1100px) {
  .admin-shell { grid-template-columns: 184px minmax(0, 1fr); }
  .side-link { padding-inline: 10px; }
  .metric { gap: 8px; }
  .metric-icon { width: 34px; height: 34px; }
  .dashboard-split { grid-template-columns: 1.44fr 1fr; gap: 13px; }
  .feature-event { grid-template-columns: 1.65fr 1fr; }
}
@media (max-width: 830px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 13px; min-height: 0; height: auto; padding: 10px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-brand { font-size: 16px; padding: 0; }
  .admin-brand .brand-mark { width: 36px; height: 36px; }
  .admin-brand small, .sidebar .side-bottom { display: none; }
  .organization { flex: 1; white-space: normal; border-bottom: 0; margin: 0; padding: 0; min-height: 33px; }
  .side-nav { display: flex; flex: 1 1 100%; overflow-x: auto; gap: 4px; }
  .side-link { height: 40px; flex: 0 0 auto; padding-inline: 8px; gap: 4px; font-size: 13px; }
  .side-link .icon { width: 15px; height: 15px; }
  .admin-main { padding-inline: 16px; }
  .admin-topbar { padding-inline: 16px; min-height: 48px; }
  .page-head { align-items: start; flex-wrap: wrap; }
  .metric-strip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 12px; }
  .metric:nth-child(n+3) { border-top: 1px solid #e9ece4; }
  .metric:nth-child(odd) { border-left: 0; }
}
@media (max-width: 590px) {
  .dashboard-split, .detail-panel-grid, .fields-grid { grid-template-columns: 1fr; }
  .feature-event { min-height: 207px; }
  .feature-body { padding: 15px; }
  .metric strong { font-size: 27px; }
  .table-wrap .data-table { min-width: 660px; }
  .phone-stage, .phone-ui { background: #f8f8f3; box-shadow: none; }
  .mobile-bottom .mobile-primary { letter-spacing: 0; }
  .topbar-tools { gap: 3px; }
  .admin-topbar .btn.small { padding-inline: 3px; }
  #toast { right: 50%; bottom: 72px; transform: translate(50%, 7px); text-align: center; width: max-content; }
  #toast.visible { transform: translate(50%, 0); }
}
@media (max-width: 350px) {
  .mobile-header { padding-inline: 14px; }
  .mobile-intro, .mobile-detail-body, .mobile-form-head, .mobile-event-list, .filter-scroll { padding-inline: 14px; }
  .mobile-search, .mobile-form, .wallet-list, .ticket-card, .ticket-actions, .mobile-main > .mobile-details,
  .mobile-operator-fields, .checkin-progress, .operator-tabs, .scan-panel, .lookup-panel, .check-result, .mobile-statstrip, .mobile-list-title, .mobile-invites { margin-inline: 14px; }
  .mobile-form { padding-inline: 11px; }
  .mobile-statstrip small, .wallet-card .badge { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
