:root {
  --navy: #193957;
  --navy-deep: #102d48;
  --blue: #32608b;
  --ink: #1c354d;
  --muted: #69798a;
  --paper: #f4f6f9;
  --card: #ffffff;
  --line: #dfe5ec;
  --lime: #a7d948;
  --lime-soft: #eff9df;
  --orange: #ed9a3d;
  --red: #d9534f;
  --shadow: 0 12px 30px rgba(17, 47, 72, 0.09);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { background: var(--paper); overflow-x: hidden; }
body {
  max-width: 100%; margin: 0; overflow-x: hidden;
  color: var(--ink);
  font-family: "DM Sans", "Avenir Next", Avenir, system-ui, sans-serif;
  background: var(--paper);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 80px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 17px; letter-spacing: .14em; text-transform: uppercase; }
.brand-copy span { font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .27em; text-transform: uppercase; opacity: .8; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.connection-status { display: flex; align-items: center; gap: 7px; font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(167,217,72,.13); }
.status-dot.offline { background: #a9b8c5; box-shadow: none; }

.login-page { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 78% 16%, rgba(167,217,72,.15), transparent 22%), var(--paper); }
.login-main { flex: 1; width: min(1100px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(38px, 8vw, 120px); padding: 52px 0; }
.single-panel-login .login-main { grid-template-columns: minmax(0, 410px); justify-content: center; gap: 0; }
.single-panel-login .login-card { margin: 0; }
.eyebrow { color: var(--blue); font: 600 11px/1 "Oswald", sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.login-intro h1 { max-width: 550px; margin: 14px 0; color: var(--navy); font-size: clamp(40px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.login-intro p { max-width: 490px; margin: 0; color: #536475; font-size: 17px; line-height: 1.65; }
.login-note { margin-top: 34px; display: flex; gap: 10px; align-items: flex-start; color: #64788a; font-size: 13px; line-height: 1.5; }
.login-note .mini-mark { flex: none; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-soft); color: #5a8521; font-weight: 700; }
.login-card { width: min(100%, 410px); padding: 28px; background: var(--card); border: 1px solid rgba(255,255,255,.7); border-radius: 20px; box-shadow: var(--shadow); }
.login-logo { display: block; width: 96px; height: 96px; margin: -2px auto 14px; object-fit: contain; }
.login-card h2 { margin: 4px 0 5px; font-size: 24px; letter-spacing: -.03em; }
.login-card > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.login-choices { display: grid; gap: 10px; }
.choice-card { padding: 16px; display: grid; grid-template-columns: 40px 1fr 18px; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; text-align: left; transition: .16s ease; }
.choice-card:hover { transform: translateY(-1px); border-color: #9fb5c7; box-shadow: 0 4px 15px rgba(25,57,87,.08); }
.choice-icon, .icon-square { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #eaf0f5; color: var(--navy); }
.login-choice-icon { overflow: hidden; background: #f5f7f9; }
.login-choice-icon img { width: 100%; height: 100%; object-fit: contain; }
.choice-card strong, .choice-card span { display: block; }
.choice-card strong { font-size: 14px; }
.choice-card span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.arrow { color: #a3b1bc; font-size: 21px; }
.login-footer { padding: 19px 20px; text-align: center; color: #82909d; font: 500 10px/1 "Oswald", sans-serif; letter-spacing: .12em; text-transform: uppercase; }

.auth-back { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--blue); font-size: 13px; font-weight: 600; }
.auth-form { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field > label, .field-label { color: #596c7d; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea, .select-field select {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d4dde6; border-radius: 9px; outline: none; color: var(--ink); background: white;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .select-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(50,96,139,.12); }
.code-input { text-align: center; letter-spacing: .42em; font: 600 21px/1 "DM Sans", sans-serif; }
.form-error { padding: 10px 12px; border-radius: 8px; color: #a03d3b; background: #fbe9e8; font-size: 12px; }
.button { min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 700; transition: .16s ease; }
.button.primary { color: #12314d; background: var(--lime); }
.button.primary:hover { background: #b7e95e; }
.button.dark { color: white; background: var(--navy); }
.button.dark:hover { background: var(--navy-deep); }
.button.secondary { color: var(--navy); border-color: #ccd8e3; background: white; }
.button.secondary:hover { border-color: #8ba4bb; }
.button.danger { color: white; background: var(--red); }
.button.small { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.button.full { width: 100%; }

.dashboard { flex: 1; display: grid; grid-template-columns: 242px 1fr; }
.sidebar { padding: 25px 16px; border-right: 1px solid var(--line); background: white; }
.profile-card { padding: 13px 12px 17px; display: grid; grid-template-columns: 37px 1fr; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.avatar { width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--blue); font-size: 13px; font-weight: 700; }
.profile-card strong { display: block; font-size: 13px; }
.profile-card span { color: var(--muted); font-size: 11px; }
.nav { display: grid; gap: 3px; margin-top: 23px; }
.nav button { min-height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 8px; color: #647587; background: transparent; text-align: left; font-size: 13px; font-weight: 600; }
.nav button:hover { color: var(--navy); background: #f2f6f8; }
.nav button.active { color: var(--navy); background: var(--lime-soft); }
.nav .nav-icon { width: 17px; text-align: center; color: inherit; }
.sidebar-bottom { margin-top: 34px; padding: 14px 11px; border-top: 1px solid var(--line); }
.sidebar-bottom p { margin: 0 0 10px; color: #8795a3; font-size: 11px; line-height: 1.45; }
.sidebar-external-links { margin-top: 23px; padding: 14px 11px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.sidebar-external-links > span { margin-bottom: 3px; color: #8795a3; font: 700 10px/1 "Oswald", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-external-links a { min-height: 31px; padding: 7px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 7px; color: #526d83; text-decoration: none; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.sidebar-external-links a:hover { color: var(--navy); background: #f2f6f8; }
.sidebar-external-links small { flex: none; font-size: 11px; }
.content { width: min(1240px, 100%); padding: clamp(28px, 4vw, 52px); }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-heading h1 { margin: 6px 0 5px; color: var(--navy); font-size: clamp(27px, 3vw, 37px); letter-spacing: -.045em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.worship-heading-actions { align-items: flex-start; }
.worship-header-controls { display: grid; gap: 8px; min-width: 190px; }
.worship-header-controls .button { width: 100%; }
.worship-service-type-picker { margin: 0; min-width: 190px; text-align: left; }
.worship-service-type-picker > span { display: block; margin-bottom: 4px; color: #597286; font-size: 11px; }
.worship-service-type-picker select { width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.stat-card span { color: var(--muted); font-size: 11px; font-weight: 700; }
.stat-card strong { display: block; margin-top: 8px; color: var(--navy); font-size: 26px; letter-spacing: -.04em; }
.stat-card em { color: #638d25; font-size: 11px; font-style: normal; }
.ticket-queue { margin-bottom: 28px; }
.owner-ticket-page-section { margin-bottom: 28px; }
.past-tickets { margin-bottom: 28px; }
.past-tickets details { background: white; }
.past-tickets summary { padding: 16px 19px; color: var(--navy); cursor: pointer; font-size: 13px; font-weight: 700; }
.past-tickets-empty { margin: 0; padding: 0 19px 17px; color: var(--muted); font-size: 12px; }
.ticket-list { display: grid; }
.ticket-item { padding: 17px 19px; border-top: 1px solid #edf0f3; background: white; }
.ticket-item.priority-low { background: #f0faeb; box-shadow: inset 4px 0 0 #78af56; }
.ticket-item.priority-medium { background: #fff9df; box-shadow: inset 4px 0 0 #d8b843; }
.ticket-item.priority-high { background: #fff0f0; box-shadow: inset 4px 0 0 #d96969; }
.ticket-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ticket-item-head strong { display: block; margin-top: 5px; color: var(--navy); font-size: 14px; }
.ticket-item-head time { flex: none; color: #7d8d9c; font-size: 11px; }
.ticket-status { display: inline-flex; padding: 4px 7px; border-radius: 99px; color: #476d1b; background: var(--lime-soft); font: 600 9px/1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ticket-status.priority-badge-low { color: #456f2f; background: #ddf2d2; }
.ticket-status.priority-badge-medium { color: #84691a; background: #fff0b7; }
.ticket-status.priority-badge-high { color: #9a3c3c; background: #ffd7d7; }
.ticket-progress { display: inline-flex; margin-left: 5px; padding: 4px 7px; border-radius: 99px; color: #587087; background: #edf2f6; font: 600 9px/1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ticket-progress.pending { color: #8b651a; background: #fff1d4; }
.ticket-progress.resolved { color: #3f7a49; background: #e6f5e8; }
.ticket-item p { max-width: 900px; margin: 10px 0 7px; color: #516577; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.ticket-submitter { color: #80909e; font-size: 11px; }
.ticket-shared-summary { color: #607487; font-size: 11px; font-weight: 600; }
.ticket-item-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-status-control { display: flex; align-items: center; gap: 7px; color: #647687; font-size: 11px; font-weight: 700; }
.ticket-status-control select { min-height: 30px; padding: 4px 24px 4px 8px; border: 1px solid #ccd8e3; border-radius: 7px; color: var(--ink); background: white; font-size: 11px; }
.ticket-updates { margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(70, 105, 130, .16); }
.ticket-updates h3 { margin: 0 0 8px; color: #667b8e; font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.ticket-update { margin-top: 8px; padding: 10px 11px; border: 1px solid rgba(83, 116, 139, .15); border-radius: 8px; background: rgba(255,255,255,.62); }
.ticket-update > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-update strong { color: var(--navy); font-size: 11px; }
.ticket-update time { color: #7d8d9c; font-size: 10px; }
.ticket-update p { margin: 5px 0 0; color: #506578; font-size: 12px; }
.ticket-update-form { margin-top: 14px; padding-top: 13px; display: grid; gap: 7px; border-top: 1px solid rgba(70, 105, 130, .16); }
.ticket-update-form label { color: #596c7d; font-size: 11px; font-weight: 700; }
.ticket-update-form textarea { width: 100%; min-height: 74px; padding: 9px 10px; border: 1px solid #ccd8e3; border-radius: 8px; outline: none; color: var(--ink); background: white; font-size: 12px; resize: vertical; }
.ticket-update-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(50,96,139,.12); }
.ticket-update-button { margin-top: 13px; }
.user-ticket-status { margin-bottom: 28px; }
.user-home-followups { margin-top: 28px; }
.ticket-empty { border: 0; border-radius: 0; }
.ticket-submit .modal-form { padding: 19px; }
.ticket-submit .field textarea { min-height: 150px; }
.ticket-event-alert { margin: -9px 0 22px; padding: 17px 19px; border: 1px solid #db9c9c; border-left: 4px solid #bb5a5a; border-radius: 11px; color: #783f3f; background: #f9e6e6; font-size: 16px; font-weight: 700; line-height: 1.5; }
.ticket-event-alert a { color: #693131; font-weight: 800; }
.ticket-location { display: block; margin-top: 4px; color: #718394; font-size: 11px; font-weight: 600; }
.ticket-location-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-location-option { min-height: 38px; padding: 8px 12px; border: 1px solid #ccd8e3; border-radius: 8px; color: var(--navy); background: white; font-size: 12px; font-weight: 700; }
.ticket-location-option:hover { border-color: #8eabc0; background: #f5f9fb; }
.ticket-location-option.active { border-color: #8fc438; color: #426816; background: var(--lime-soft); box-shadow: 0 0 0 2px rgba(167,217,72,.18); }
.ticket-location-option.other { border-style: dashed; }
.ticket-other-location { margin-top: 10px; }
.ticket-other-location[hidden] { display: none; }
.ticket-priority-picker { margin: 0; padding: 0; border: 0; }
.ticket-priority-picker legend { margin-bottom: 8px; color: var(--navy); font-size: 12px; font-weight: 700; }
.ticket-priority-option { position: relative; margin-top: 8px; padding: 11px 12px 11px 40px; display: block; border: 1px solid #d8e0e6; border-radius: 9px; cursor: pointer; }
.ticket-priority-option input { position: absolute; top: 14px; left: 13px; width: 16px; height: 16px; accent-color: var(--blue); }
.ticket-priority-option strong, .ticket-priority-option small { display: block; }
.ticket-priority-option strong { color: var(--navy); font-size: 12px; }
.ticket-priority-option small { margin-top: 2px; color: #617486; font-size: 11px; line-height: 1.4; }
.ticket-priority-option.low { background: #f4fbef; }
.ticket-priority-option.medium { background: #fffbed; }
.ticket-priority-option.high { background: #fff4f4; }
.ticket-priority-option:has(input:checked) { border-color: #6f96b2; box-shadow: 0 0 0 2px rgba(73,124,167,.15); }
.section-label { margin: 0 0 12px; color: #7c8c99; font: 600 11px/1 "Oswald", sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.owner-schedule-label { margin-top: 34px; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 16px; }
.template-card { min-height: 195px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: white; box-shadow: 0 2px 0 rgba(19,53,80,.02); text-align: left; transition: .16s ease; }
.template-card:hover { transform: translateY(-2px); border-color: #a1b5c6; box-shadow: var(--shadow); }
.template-color { width: 34px; height: 5px; margin-bottom: auto; border-radius: 999px; }
.template-card h3 { margin: 20px 0 5px; font-size: 18px; letter-spacing: -.03em; }
.template-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.template-meta { width: 100%; margin-top: 17px; display: flex; justify-content: space-between; align-items: center; color: #8797a4; font-size: 11px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; color: #648827; background: var(--lime-soft); font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.empty-state { padding: 45px 20px; border: 1px dashed #c6d2dc; border-radius: var(--radius); background: rgba(255,255,255,.62); text-align: center; }
.empty-state h3 { margin: 12px 0 5px; }
.empty-state p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.recent-button-history-label { margin-top: 34px; }
.past-tickets-label { margin-top: 34px; }
.button-history-list { display: grid; }
.button-history-item { padding: 15px 19px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-top: 1px solid #edf0f3; }
.button-history-item:first-child { border-top: 0; }
.button-history-item strong, .button-history-item span { display: block; }
.button-history-item strong { color: var(--navy); font-size: 13px; }
.button-history-item span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.button-history-item time { flex: none; color: #7d8d9c; font-size: 11px; }
.button-history-empty { border: 0; border-radius: 0; }
.upcoming-schedules { margin-bottom: 28px; }
.upcoming-schedule-list { display: grid; }
.upcoming-schedule-item { padding: 13px 19px; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid #edf0f3; }
.upcoming-schedule-item time strong, .upcoming-schedule-item time span, .upcoming-schedule-item > div strong, .upcoming-schedule-item > div span { display: block; }
.upcoming-schedule-item time strong { color: var(--navy); font-size: 12px; }
.upcoming-schedule-item time span, .upcoming-schedule-item > div span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.upcoming-schedule-item > div strong { color: var(--navy); font-size: 12px; }
.template-card h3, .template-card p, .process-card h3, .process-card p, .button-history-item > div, .upcoming-schedule-item > div, .ticket-item-head > div { min-width: 0; overflow-wrap: anywhere; }
.schedule-empty { border: 0; border-radius: 0; }

.control-toolbar { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.control-toolbar .template-title { display: flex; gap: 13px; align-items: center; }
.control-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.template-device-toggle { display: flex; padding: 3px; gap: 3px; border: 1px solid #ccd8e3; border-radius: 9px; background: white; }
.template-device-toggle button { min-height: 30px; padding: 5px 10px; border: 0; border-radius: 6px; color: #627688; background: transparent; font-size: 11px; font-weight: 700; }
.template-device-toggle button.active { color: var(--navy); background: var(--lime-soft); }
.color-square { width: 38px; height: 38px; border-radius: 9px; }
.control-toolbar h2 { margin: 0; color: var(--navy); font-size: 22px; letter-spacing: -.03em; }
.control-toolbar p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.control-sections { display: grid; gap: 28px; }
.template-tutorial { padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.template-tutorial .section-label { margin-bottom: 12px; }
.tutorial-video-frame { position: relative; width: 100%; overflow: hidden; border-radius: 10px; background: #102d48; aspect-ratio: 16 / 9; }
.tutorial-video-frame iframe { position: absolute; width: 100%; height: 100%; inset: 0; border: 0; }
.control-layout { display: grid; grid-template-columns: repeat(var(--layout-columns), minmax(0, 1fr)); grid-auto-rows: 180px; gap: 12px; }
.control-layout .layout-control-item { min-width: 0; min-height: 0; margin: 0; }
.control-layout .fader-card { padding: 12px; display: flex; flex-direction: column; justify-content: center; }
.control-layout .fader-head { margin-bottom: 8px; }
.control-layout .fader-result { min-height: 0; margin-top: 8px; padding: 5px 7px; font-size: 10px; }
.button-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
.companion-button { position: relative; min-height: 116px; padding: 15px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; overflow: hidden; border: 0; border-radius: 13px; color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 7px 16px rgba(17,46,71,.14); text-align: left; transition: transform .1s, filter .12s; }
.companion-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.companion-button:active, .companion-button.pressed { transform: scale(.97); filter: brightness(.87); }
.button-cue { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; background: rgba(255,255,255,.18); font-size: 13px; }
.companion-button strong { font-size: 15px; line-height: 1.16; }
.companion-button small { color: rgba(255,255,255,.75); font-size: 10px; }
.button-image { width: 26px; height: 26px; border-radius: 6px; background-position: center; background-size: cover; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.folder-badge { padding: 3px 6px; border-radius: 99px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.16); font: 600 9px/1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.fader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.fader-card { padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.fader-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 18px; }
.fader-head strong { font-size: 14px; }
.fader-head span { color: var(--blue); font: 600 10px/1 "Oswald",sans-serif; letter-spacing: .08em; text-transform: uppercase; }
input[type="range"] { width: 100%; accent-color: var(--blue); }
.fader-card.fader-vertical { justify-content: space-between; }
.fader-body.vertical { min-height: 94px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.fader-body.vertical .vertical-range { width: 26px; height: 94px; -webkit-appearance: slider-vertical; appearance: slider-vertical; writing-mode: vertical-lr; direction: rtl; accent-color: var(--blue); }
.fader-body.vertical .fader-scale { height: 94px; margin: 0; flex-direction: column; justify-content: space-between; }
.control-layout .fader-card.fader-vertical .fader-body.vertical { flex: 1; min-height: 120px; }
.control-layout .fader-card.fader-vertical .vertical-range,
.control-layout .fader-card.fader-vertical .fader-scale { height: 100%; max-height: none; }
.fader-scale { display: flex; justify-content: space-between; margin-top: 5px; color: #8594a1; font-size: 10px; }
.fader-result { min-height: 30px; margin-top: 14px; padding: 7px 9px; border-radius: 7px; color: #52697e; background: #f1f5f7; font-size: 11px; }
.activity-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.activity-list { display: grid; gap: 12px; }
.activity { padding-bottom: 12px; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #edf0f3; font-size: 12px; }
.activity:last-child { padding-bottom: 0; border-bottom: 0; }
.activity time { flex: none; color: #8997a4; font-size: 11px; }

.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.panel-header { padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.panel-form { padding: 22px; }
.owner-processes { margin-bottom: 28px; }
.owner-processes-dashboard { margin-bottom: 28px; }
.template-grid + .owner-processes-dashboard, .empty-state + .owner-processes-dashboard { margin-top: 28px; }
.process-grid { padding: 15px 19px 19px; display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 12px; }
.process-card { min-width: 0; padding: 17px; display: flex; flex-direction: column; border: 1px solid #dbe6ed; border-radius: 12px; background: linear-gradient(135deg, #fbfdfe, #f3f8fa); box-shadow: 0 1px 0 rgba(19,53,80,.025); }
.process-card-head { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; }
.process-kind, .process-source { min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.process-card-head .process-kind { flex: none; white-space: nowrap; overflow-wrap: normal; }
.process-card-head .process-source { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.process-kind { padding: 4px 7px; border-radius: 99px; color: #426d1f; background: var(--lime-soft); font: 600 9px/1 "Oswald", sans-serif; letter-spacing: .09em; }
.process-source { color: #6a8091; font-size: 10px; font-weight: 700; }
.process-access { flex: none; margin-left: auto; padding: 4px 7px; border-radius: 99px; font: 600 9px/1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.process-access.edit, .process-access.shared { color: #365e84; background: #e6f0f8; }
.process-access.add { color: #547a20; background: var(--lime-soft); }
.process-access.read { color: #846124; background: #fff4d9; }
.process-access.private { color: #687989; background: #eef2f5; }
.process-card h3 { margin: 14px 0 6px; color: var(--navy); font-size: 16px; letter-spacing: -.02em; }
.process-card p { margin: 0; color: #5c7181; font-size: 12px; line-height: 1.45; }
.process-card-actions { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.process-card-actions .button { text-decoration: none; }
.process-empty { margin: 15px 19px 19px; }
.process-error { padding: 16px 19px 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.process-error p { margin: 0; flex: 1 1 260px; color: #805153; font-size: 12px; }
.process-share-list { display: grid; gap: 8px; max-height: min(52vh, 460px); overflow: auto; padding-right: 2px; }
.process-share-row { min-width: 0; padding: 10px 11px; display: grid; grid-template-columns: auto minmax(0, 1fr) 132px; align-items: center; gap: 10px; border: 1px solid #e1e7ec; border-radius: 9px; background: #fff; }
.process-share-row:has(input:checked) { border-color: #b9d891; background: var(--lime-soft); }
.process-share-row input { width: 15px; height: 15px; accent-color: var(--blue); }
.process-share-row span { min-width: 0; display: grid; gap: 2px; }
.process-share-row strong { overflow-wrap: anywhere; color: var(--navy); font-size: 12px; }
.process-share-row small { overflow-wrap: anywhere; color: #687989; font-size: 10px; }
.process-share-row select { width: 100%; min-width: 0; }
.head-count-page { display: grid; gap: 16px; }
.head-count-intro-row { padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #d5e8bb; border-radius: 10px; background: var(--lime-soft); }
.head-count-intro-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; }
.head-count-intro-actions label { display: grid; gap: 4px; color: #547a20; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.head-count-intro-actions input, .head-count-intro-actions select { min-height: 35px; padding: 7px 9px; border: 1px solid #b9d891; border-radius: 7px; background: #fff; color: var(--ink); font: 700 12px/1 var(--sans); }
.head-count-form, .head-count-service-list { display: grid; gap: 16px; }
.head-count-service-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 2px 0 rgba(19,53,80,.02); }
.head-count-service-heading { padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.head-count-service-heading > div { min-width: 0; display: flex; align-items: center; gap: 11px; }
.head-count-service-heading > div:last-child { flex: none; gap: 12px; }
.head-count-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.head-count-service-heading h2 { margin: 0; overflow-wrap: anywhere; color: var(--navy); font-size: 16px; letter-spacing: -.02em; }
.head-count-service-number, .head-count-total-box > span { color: #748796; font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.head-count-service-body { padding: 21px; display: grid; grid-template-columns: minmax(0, 1fr) 154px; gap: 20px; align-items: stretch; }
.head-count-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; }
.head-count-field { display: grid; gap: 7px; min-width: 0; color: #596c7d; font-size: 12px; font-weight: 700; }
.head-count-field input { width: 100%; min-height: 52px; padding: 10px 12px; border: 1px solid #d4dde6; border-radius: 9px; color: var(--ink); background: white; font-size: 20px; font-weight: 700; line-height: 1; }
.head-count-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(50,96,139,.12); }
.head-count-empty-fields { margin: 0; padding: 16px; border: 1px dashed #c7d3dc; border-radius: 9px; color: #69798a; background: #f8fafb; font-size: 13px; line-height: 1.45; }
.head-count-total-box { min-height: 113px; padding: 19px; display: grid; align-content: space-between; border-radius: 12px; color: var(--navy); background: var(--lime-soft); }
.head-count-total-box > span { color: #638d25; }
.head-count-total-box strong { font-size: 35px; letter-spacing: -.06em; }
.head-count-submit-row { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.head-count-submit-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.head-count-submit-row .head-count-status { min-height: 18px; margin-top: 4px; color: #547a20; font-weight: 700; }
.head-count-submit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.head-count-entry-heading { margin-bottom: 12px; }
.head-count-entry-heading h1 { font-size: clamp(24px, 2.3vw, 32px); }
.head-count-entry-heading p { font-size: 12px; line-height: 1.35; }
.head-count-entry-heading .button { min-height: 35px; padding: 7px 10px; font-size: 12px; }
.head-count-entry-page { gap: 10px; }
.head-count-entry-page .head-count-intro-row { padding: 9px 11px; gap: 8px; }
.head-count-entry-page .head-count-intro-actions { gap: 7px; }
.head-count-entry-page .head-count-intro-actions input,
.head-count-entry-page .head-count-intro-actions select { min-height: 32px; padding: 6px 8px; }
.head-count-entry-page .head-count-form,
.head-count-entry-page .head-count-service-list { gap: 10px; }
.head-count-entry-page .head-count-service-list { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.head-count-entry-page .head-count-service-heading { padding: 10px 12px; gap: 8px; }
.head-count-entry-page .head-count-service-heading > div { gap: 8px; }
.head-count-entry-page .head-count-service-heading > div:last-child { gap: 8px; }
.head-count-entry-page .head-count-service-heading h2 { font-size: 14px; }
.head-count-entry-page .head-count-service-body { padding: 11px 12px; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; }
.head-count-entry-page .head-count-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.head-count-entry-page .head-count-field { gap: 4px; font-size: 10px; }
.head-count-entry-page .head-count-field input { min-height: 38px; padding: 7px 8px; font-size: 16px; }
.head-count-entry-page .head-count-total-box { min-height: 80px; padding: 11px; border-radius: 9px; }
.head-count-entry-page .head-count-total-box strong { font-size: 25px; }
.head-count-entry-page .head-count-submit-row { padding: 10px 12px; gap: 10px; }
.head-count-entry-page .head-count-submit-row p { font-size: 11px; }
@media (min-width: 900px) and (max-height: 840px) {
  .head-count-entry-heading { margin-bottom: 8px; }
  .head-count-entry-heading p,
  .head-count-entry-page .head-count-submit-row > div > p:first-child { display: none; }
  .head-count-entry-page .head-count-service-heading { padding: 8px 10px; }
  .head-count-entry-page .head-count-service-body { padding: 9px 10px; }
  .head-count-entry-page .head-count-field input { min-height: 34px; }
  .head-count-entry-page .head-count-total-box { min-height: 70px; }
}
.head-count-history-panel { display: grid; gap: 15px; }
.head-count-history-year { display: grid; gap: 5px; min-width: 126px; color: #596c7d; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.head-count-history-year select { min-height: 35px; padding: 7px 9px; border: 1px solid #d4dde6; border-radius: 7px; color: var(--ink); background: #fff; font: 700 12px/1 var(--sans); }
.head-count-history-list { padding: 0 19px 19px; display: grid; gap: 10px; }
.head-count-history-panel > .empty-state { margin: 0 19px 19px; }
.head-count-history-chart { margin: 0 0 18px; padding: 16px 19px; border: 1px solid #d9e5ec; border-radius: var(--radius); background: linear-gradient(135deg, #fbfdfe, #f2f8fa); box-shadow: 0 1px 0 rgba(19,53,80,.025); }
.head-count-history-chart-head { margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.head-count-history-chart-head h2 { margin: 0; color: var(--navy); font-size: 16px; letter-spacing: -.02em; }
.head-count-history-chart-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.head-count-chart-view { flex: none; display: grid; gap: 4px; color: #527086; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.head-count-chart-view select { min-height: 34px; padding: 6px 28px 6px 9px; border: 1px solid #cbd9e3; border-radius: 7px; color: var(--navy); background: #fff; font: 700 11px/1 var(--sans); text-transform: none; }
.head-count-chart-canvas { position: relative; }
.head-count-chart-canvas svg { width: 100%; height: auto; aspect-ratio: 760 / 240; display: block; overflow: visible; }
.head-count-chart-grid-line { stroke: #dce6ec; stroke-width: 1; }
.head-count-chart-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.head-count-chart-y-label, .head-count-chart-x-label { fill: #708392; font: 600 11px "DM Sans", sans-serif; }
.head-count-chart-y-label { text-anchor: end; }
.head-count-chart-x-label { text-anchor: middle; }
.head-count-chart-point { fill: var(--lime); stroke: var(--navy); stroke-width: 2; cursor: pointer; transition: r .15s ease, fill .15s ease; }
.head-count-chart-point:hover, .head-count-chart-point:focus { r: 7; fill: #c2ec6a; outline: none; }
.head-count-chart-tooltip { position: absolute; z-index: 2; width: min(240px, calc(100% - 20px)); padding: 11px 12px; border: 1px solid #cbdce7; border-radius: 9px; color: #eef6fb; background: var(--navy); box-shadow: 0 10px 25px rgba(19,53,80,.22); transform: translate(-50%, -100%); pointer-events: none; }
.head-count-chart-tooltip[hidden] { display: none; }
.head-count-chart-tooltip > strong, .head-count-chart-tooltip > span { display: block; }
.head-count-chart-tooltip > strong { font-size: 12px; }
.head-count-chart-tooltip > small { display: block; margin-top: 3px; color: #c9dbe6; font-size: 10px; font-weight: 700; }
.head-count-chart-tooltip > span { margin-top: 2px; color: #c4e880; font-size: 11px; font-weight: 800; }
.head-count-chart-tooltip > div { margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 4px; }
.head-count-chart-tooltip p { margin: 0; display: flex; justify-content: space-between; gap: 12px; color: #e7f0f5; font-size: 11px; }
.head-count-chart-tooltip b { min-width: 0; overflow-wrap: anywhere; }
.head-count-chart-tooltip em { flex: none; color: #fff; font-style: normal; font-weight: 800; }
.head-count-history-card { display: grid; grid-template-columns: minmax(164px, .85fr) minmax(0, 2fr); align-items: center; gap: 16px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.head-count-history-card time { display: grid; justify-items: start; gap: 6px; color: var(--ink); font: 700 13px/1.35 var(--sans); }
.head-count-type-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border: 1px solid #b9d891; border-radius: 999px; color: #527a1e; background: var(--lime-soft); font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.head-count-history-details { display: grid; gap: 9px; min-width: 0; }
.head-count-history-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.head-count-history-total > strong { color: #547a20; font-size: 15px; }
.head-count-history-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.head-count-history-services { display: flex; flex-wrap: wrap; gap: 8px; }
.head-count-history-service { min-width: 168px; flex: 1 1 168px; padding: 9px 10px; border: 1px solid #e2e9ee; border-radius: 8px; background: #f9fbfc; }
.head-count-history-service header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.head-count-history-service header strong { min-width: 0; overflow-wrap: anywhere; color: var(--navy); font-size: 11px; }
.head-count-history-service header span { flex: none; color: #547a20; font-size: 10px; font-weight: 800; }
.head-count-history-room-list { margin-top: 7px; display: grid; gap: 3px; }
.head-count-history-room-list > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #617384; font-size: 10px; line-height: 1.35; }
.head-count-history-room-list em { min-width: 0; overflow-wrap: anywhere; font-style: normal; }
.head-count-history-room-list b { flex: none; color: var(--ink); font-size: 11px; }
.head-count-manager-list { display: grid; gap: 12px; }
.head-count-manager-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.head-count-manager-card-head { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.head-count-manager-card-head strong { color: var(--navy); font-size: 13px; }
.head-count-room-set { margin: 15px 0 0; padding: 0; border: 0; }
.head-count-room-set legend { margin-bottom: 8px; color: #596c7d; font-size: 12px; font-weight: 700; }
.head-count-room-set > div { display: flex; flex-wrap: wrap; gap: 8px; }
.head-count-room-set .check-row { min-height: 37px; padding: 7px 10px; color: #39566d; background: #fbfcfd; font-size: 12px; font-weight: 700; }
.head-count-room-set .check-row:has(input:checked) { border-color: #b8d990; color: #4d7620; background: var(--lime-soft); }
.worship-overview { margin-bottom: 18px; }
.worship-summary-grid { margin: 18px 19px 15px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.worship-summary-grid article { min-width: 0; overflow: hidden; padding: 14px; display: grid; gap: 5px; border: 1px solid #dce6ec; border-radius: 10px; color: #315f83; background: linear-gradient(135deg, #f8fbfc, #eef6f9); }
.worship-summary-grid article:nth-child(2) { color: #76601b; border-color: #e7dcbd; background: linear-gradient(135deg, #fffdf7, #fff5df); }
.worship-summary-grid article:nth-child(3) { color: #466c29; border-color: #d7e7c4; background: linear-gradient(135deg, #fbfdf8, #f2faec); }
.worship-summary-grid span { color: inherit; opacity: .83; font: 600 9px/1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.worship-summary-grid strong { overflow-wrap: anywhere; color: inherit; font-size: 26px; letter-spacing: -.055em; }
.worship-summary-grid em { color: inherit; opacity: .8; font-size: 10px; font-style: normal; font-weight: 700; }
.worship-toolbar { margin: 0 19px 18px; padding: 15px; display: grid; grid-template-columns: minmax(320px, 1.65fr) minmax(220px, .9fr) minmax(190px, .55fr); align-items: end; gap: 10px; border: 1px solid #d7e6ed; border-radius: 10px; background: #f8fbfc; }
.worship-toolbar .field { min-width: 0; margin: 0; }
.worship-toolbar .worship-sort-field { min-width: 0; }
.worship-toolbar .worship-view-field { min-width: 0; }
.worship-toolbar input, .worship-toolbar select { font-size: 13px; }
.worship-toolbar .field > span { color: #597286; font-size: 11px; }
.inventory-table-wrap { margin: 0 19px 19px; overflow-x: auto; border: 1px solid #d7e6ed; border-radius: 11px; background: #fff; }
.inventory-table { width: 100%; min-width: 940px; border-collapse: collapse; text-align: left; }
.inventory-table th { padding: 13px 14px; border-bottom: 1px solid #d7e6ed; color: #71889a; background: #f8fbfc; font: 700 11px/1.1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.inventory-table td { padding: 14px; border-bottom: 1px solid #e4edf1; vertical-align: middle; color: #35556f; font-size: 13px; }
.inventory-table tbody tr:last-child td { border-bottom: 0; }
.inventory-table tbody tr:hover { background: #f8fbfc; }
.inventory-table td:first-child { min-width: 190px; color: #193957; }
.inventory-table td:first-child strong { display: block; font-size: 14px; }
.inventory-notes-preview { display: block; max-width: 260px; margin-top: 4px; color: #71889a; font-size: 11px; line-height: 1.35; }
.inventory-tag-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 90px; }
.inventory-tag-list span { padding: 3px 6px; border-radius: 5px; color: #35617b; background: #eaf4f8; font: 700 10px/1.1 "Oswald", sans-serif; letter-spacing: .04em; }
.inventory-manual-name { display: block; max-width: 180px; overflow: hidden; color: #35556f; text-overflow: ellipsis; white-space: nowrap; }
.inventory-manual-name small { color: #71889a; font-size: 10px; }
.inventory-table-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; min-width: 125px; }
.inventory-section-tabs { display: flex; gap: 8px; padding: 14px 16px 0; }
.inventory-section-tabs button { min-height: 34px; padding: 7px 13px; border: 1px solid #cbdce7; border-radius: 8px; color: var(--navy); background: #fff; font: 700 12px/1 var(--sans); cursor: pointer; }
.inventory-section-tabs button.active { border-color: #94c82c; color: #466d1b; background: var(--lime-soft); }
.inventory-manual-toolbar { grid-template-columns: minmax(260px, 540px) !important; }
.inventory-manual-library { padding: 0 16px 16px; display: grid; gap: 10px; }
.inventory-manual-library article { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #d7e6ed; border-radius: 10px; background: #fff; }
.inventory-manual-library article > div:first-child { min-width: 0; }
.inventory-manual-library h3 { margin: 5px 0 3px; color: var(--navy); font-size: 15px; }
.inventory-manual-library p { margin: 0; color: var(--muted); font-size: 12px; }
.inventory-manual-library small { display: block; margin-top: 6px; color: #647b8d; font-size: 11px; overflow-wrap: anywhere; }
.inventory-manual-reader { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; min-height: 480px; }
.inventory-manual-sidebar { position: sticky; top: 12px; align-self: start; padding: 14px; border: 1px solid #d7e6ed; border-radius: 11px; background: #f8fbfc; overflow: hidden; }
.inventory-manual-sidebar .field { margin-bottom: 13px; }
.inventory-manual-sidebar > .process-kind { display: inline-flex; margin-bottom: 13px; }
.inventory-manual-match-count { min-height: 15px; margin: -8px 0 10px; color: #63828f; font-size: 11px; font-weight: 700; }
.inventory-manual-outline { display: grid; gap: 6px; max-height: 530px; overflow-y: auto; padding-right: 4px; }
.inventory-manual-outline button { width: 100%; border: 1px solid #d7e6ed; border-radius: 8px; background: #fff; color: #294963; text-align: left; padding: 9px 10px; cursor: pointer; }
.inventory-manual-outline button:hover, .inventory-manual-outline button.active { border-color: #4c91b8; background: #e9f5fa; }
.inventory-manual-outline button strong, .inventory-manual-outline button span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-manual-outline button span { margin-top: 3px; color: #6e8597; font-size: 12px; }
.inventory-manual-page { min-width: 0; padding: 18px; border: 1px solid #d7e6ed; border-radius: 11px; background: #fff; overflow-y: auto; max-height: 650px; }
.inventory-manual-page header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin-bottom: 14px; }
.inventory-manual-page header > div { min-width: 0; }
.inventory-manual-page h3 { margin: 0; color: #193957; }
.inventory-manual-page header > span:last-child { color: #6e8597; font-size: 13px; }
.inventory-manual-navigation { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.inventory-manual-visual { margin: 0 0 18px; padding: 10px; border: 1px solid #d7e6ed; border-radius: 9px; background: #f8fbfc; }
.inventory-manual-page img { display: block; width: min(100%, 880px); margin: 0 auto; border: 1px solid #d7e6ed; border-radius: 5px; }
.inventory-manual-visual figcaption { margin-top: 8px; color: #657e90; font-size: 11px; line-height: 1.35; }
.inventory-manual-text { padding: 14px; border: 1px solid #e1e9ee; border-radius: 8px; color: #294963; background: #fff; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.inventory-manual-text mark { padding: 0 2px; border-radius: 2px; background: #ffe59b; color: inherit; }
.conference-calendar-list { display: grid; gap: 14px; padding: 0 19px 19px; }
.conference-calendar-day { overflow: hidden; border: 1px solid #d7e6ed; border-radius: 11px; background: #fff; }
.conference-calendar-day h3 { margin: 0; padding: 12px 15px; color: #193957; background: #f5fafc; font-size: 14px; }
.conference-calendar-day article { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 14px; padding: 13px 15px; border-top: 1px solid #edf0f3; }
.conference-calendar-day time strong, .conference-calendar-day time span, .conference-calendar-day article > div strong, .conference-calendar-day article > div span { display: block; }
.conference-calendar-day time strong, .conference-calendar-day article > div strong { color: #193957; }
.conference-calendar-day time span, .conference-calendar-day article > div span { margin-top: 3px; color: #6e8597; font-size: 12px; }
.conference-touch-display { display: grid; gap: 16px; }
#app.calendar-kiosk { min-height: 100vh; background: #f4f8fa; }
#app.calendar-kiosk .topbar, #app.calendar-kiosk .sidebar, #app.calendar-kiosk .app-footer, #app.calendar-kiosk .conference-page-heading { display: none; }
#app.calendar-kiosk .dashboard { display: block; min-height: 100vh; }
#app.calendar-kiosk .content { width: min(1540px, 100%); margin: 0 auto; padding: clamp(20px, 3vw, 46px); }
#app.calendar-kiosk .room-touch-hero { min-height: 210px; }
#app.calendar-kiosk .room-day-schedule h3 { font-size: 23px; }
#app.space-kiosk { min-height: 100vh; background: #f4f8fa; }
#app.space-kiosk .topbar, #app.space-kiosk .sidebar, #app.space-kiosk .app-footer, #app.space-kiosk .auth-back { display: none; }
#app.space-kiosk .dashboard { display: block; min-height: 100vh; }
#app.space-kiosk .content { width: min(1540px, 100%); margin: 0 auto; padding: clamp(20px, 3vw, 46px); }
.room-touch-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 28px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #123654, #286488); box-shadow: 0 10px 22px rgba(24, 61, 88, .14); }
.room-touch-hero.occupied { color: #513d13; background: linear-gradient(135deg, #f8e6a8, #edd18a); box-shadow: 0 10px 22px rgba(127, 94, 26, .16); }
.room-touch-hero.occupied .room-label { color: #70571c; }
.room-touch-hero.occupied .room-status.occupied i { background: #b56a20; box-shadow: 0 0 0 5px rgba(181, 106, 32, .18); }
.room-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.room-refresh-button { border-color: rgba(255,255,255,.68); color: #143854; background: #fff; }
.room-refresh-button:hover { background: #eaf4fb; }
.room-label { display: block; color: #b9d9ec; font: 700 11px/1 "Oswald", sans-serif; letter-spacing: .14em; }
.room-touch-hero h2 { margin: 9px 0 12px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; }
.room-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 700; }
.room-status i { width: 11px; height: 11px; border-radius: 50%; background: #a8dd54; box-shadow: 0 0 0 5px rgba(168, 221, 84, .17); }
.room-status.occupied i { background: #ffcb73; box-shadow: 0 0 0 5px rgba(255, 203, 115, .18); }
.room-add-button { display: grid; place-items: center; min-width: 150px; min-height: 120px; border: 0; border-radius: 14px; color: #17415e; background: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.14); cursor: pointer; font: 800 42px/1 var(--sans); }
.room-add-button span { margin-top: 7px; font-size: 15px; }
.room-date-controls { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; }
.room-date-controls .button { min-height: 52px; font-size: 15px; }
.room-day-schedule, .room-up-next { overflow: hidden; border: 1px solid #d7e6ed; border-radius: 14px; background: #fff; }
.room-day-schedule header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; background: #f5fafc; }
.room-day-schedule h3, .room-up-next h3 { margin: 0; color: #193957; font-size: 19px; }
.room-day-schedule header span { color: #688093; font-size: 13px; font-weight: 700; }
.room-schedule-card { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 17px; padding: 20px; border-top: 1px solid #e7eef2; }
.room-schedule-card.current { background: #fff8e8; box-shadow: inset 4px 0 #f0b646; }
.room-schedule-card time strong, .room-schedule-card time span, .room-schedule-card div strong, .room-schedule-card div span { display: block; }
.room-schedule-card time strong { color: #1d567a; font-size: 19px; }
.room-schedule-card time span, .room-schedule-card div span { margin-top: 4px; color: #70889a; font-size: 13px; }
.room-schedule-card div strong { color: #193957; font-size: 19px; }
.room-empty { display: grid; place-items: center; min-height: 180px; padding: 22px; color: #527185; text-align: center; }
.room-empty strong { color: #2f6c3c; font-size: 22px; }
.room-empty span { margin-top: 7px; }
.room-up-next { padding: 18px; }
.room-up-next h3 { margin: 0 0 13px; }
.room-up-next button { display: grid; grid-template-columns: 110px minmax(0, 1fr); width: 100%; gap: 12px; padding: 13px 0; border: 0; border-top: 1px solid #edf1f4; color: #2a526d; background: transparent; text-align: left; cursor: pointer; }
.room-up-next time { color: #71889a; font-size: 13px; font-weight: 700; }
.room-up-next time span { margin-left: 7px; }
.room-up-next strong { min-width: 0; overflow: visible; color: #193957; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.worship-view-tabs { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.worship-view-tabs button { min-width: 0; min-height: 36px; overflow: hidden; padding: 7px 2px; border: 1px solid #ccd8e3; border-radius: 8px; color: var(--navy); background: #fff; font: 700 clamp(7px, .75vw, 10px)/1 var(--sans); letter-spacing: -.025em; white-space: nowrap; }
.worship-view-tabs button.active { border-color: #9ccf42; color: #446d19; background: var(--lime-soft); }
.worship-song-list { padding: 0 19px 19px; display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 12px; }
.worship-song-card { min-width: 0; padding: 15px; border: 1px solid #dce6ec; border-radius: 11px; background: #fff; box-shadow: 0 1px 0 rgba(19,53,80,.025); }
.worship-song-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.worship-song-card h3 { margin: 0; color: var(--navy); font-size: 15px; line-height: 1.25; }
.worship-song-card-head p { margin: 4px 0 0; color: #718493; font-size: 11px; line-height: 1.4; }
.worship-song-counts { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.worship-song-counts span { padding: 4px 7px; border-radius: 99px; color: #496e24; background: var(--lime-soft); font: 600 9px/1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.worship-song-meta { margin: 14px 0 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 9px; }
.worship-song-meta div { min-width: 0; }
.worship-song-meta dt { margin-bottom: 4px; color: #7a8c99; font: 600 9px/1 "Oswald", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.worship-song-meta dd { margin: 0; color: #405b71; font-size: 11px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.worship-song-themes { margin: 12px 0 0; color: #607b8f; font-size: 10px; font-style: italic; line-height: 1.45; }
.worship-lyric-match { margin: 12px 0 0; padding: 9px 10px; border-left: 3px solid #95c936; border-radius: 0 7px 7px 0; color: #506c80; background: #f5faed; font-size: 11px; line-height: 1.5; }
.worship-lyric-match > span { display: block; margin-bottom: 3px; color: #547e21; font: 600 9px/1 "Oswald", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.worship-lyric-match strong { color: #385f0e; font-weight: 800; }
.worship-empty { grid-column: 1 / -1; }
.budget-access-note { margin: -6px 0 17px; padding: 10px 13px; border: 1px solid #d7e6ed; border-radius: 9px; color: #547084; background: #f5fafc; font-size: 12px; font-weight: 650; }
.budget-selector { margin: 0 0 13px; padding: 13px 15px; display: flex; align-items: end; justify-content: space-between; gap: 18px; border: 1px solid #d7e6ed; border-radius: 11px; color: #547084; background: #f8fbfc; }
.budget-selector .field { min-width: min(100%, 360px); margin: 0; }
.budget-selector .field > span { display: block; margin-bottom: 6px; color: #526f84; font-size: 11px; font-weight: 800; }
.budget-selector p { max-width: 490px; margin: 0 0 1px; font-size: 11px; line-height: 1.5; }
.budget-summary-grid { margin-bottom: 17px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.budget-summary-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.budget-summary-card { min-width: 0; padding: 18px; display: grid; gap: 7px; border: 1px solid #dce6ec; border-radius: 12px; color: #274d6a; background: linear-gradient(135deg, #fbfdfe, #eef6f9); box-shadow: 0 1px 0 rgba(19,53,80,.025); }
.budget-summary-card.spent { color: #765d1b; border-color: #ecdfbd; background: linear-gradient(135deg, #fffdf7, #fff5df); }
.budget-summary-card.over { color: #8b4545; border-color: #ebcbcb; background: linear-gradient(135deg, #fffafa, #fff0f0); }
.budget-summary-card span { color: inherit; opacity: .78; font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.budget-summary-card strong { overflow-wrap: anywhere; color: inherit; font-size: 26px; letter-spacing: -.055em; }
.budget-summary-card em { color: inherit; opacity: .8; font-size: 11px; font-style: normal; font-weight: 700; }
.budget-report-panel, .budget-plan-panel, .budget-months-panel, .budget-line-transactions { margin-bottom: 17px; }
.budget-report-toolbar { padding: 15px 19px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.budget-report-toolbar .field { margin: 0; }
.budget-report-toolbar .field > span { display: block; margin-bottom: 6px; color: #667b8c; font-size: 11px; font-weight: 800; }
.budget-report-period-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: 9px; }
.budget-report-period { display: grid; gap: 5px; min-width: 128px; color: #596c7d; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.budget-report-period select { min-height: 35px; padding: 7px 9px; border: 1px solid #d4dde6; border-radius: 7px; color: var(--ink); background: #fff; font: 700 12px/1 var(--sans); }
.budget-report-panel .budget-summary-grid { margin: 15px 19px; }
.budget-category-report { padding: 0 19px 17px; }
.budget-category-report h3 { margin: 0; color: var(--navy); font-size: 13px; }
.budget-category-report > p { margin: 4px 0 12px; color: #708391; font-size: 11px; }
.budget-category-report .budget-table-scroll { overflow: hidden; border: 1px solid #e1e9ee; border-radius: 9px; }
.budget-department-total td { color: #234b6a; border-top: 2px solid #b9d8e8 !important; background: #f1f8fb; font-weight: 800; }
.budget-monthly-report { padding: 0 19px 17px; }
.budget-monthly-report h3 { margin: 0; padding-top: 2px; color: var(--navy); font-size: 13px; }
.budget-monthly-report > p { margin: 4px 0 12px; color: #708391; font-size: 11px; }
.budget-monthly-report .budget-table-scroll { overflow: hidden; border: 1px solid #e1e9ee; border-radius: 9px; }
.budget-report-transactions { padding: 0 19px 17px; }
.budget-report-transactions h3 { margin: 0; padding: 0 0 12px; color: var(--navy); font-size: 13px; }
.budget-report-transactions .budget-table-scroll,
.budget-months-panel .budget-table-scroll,
.budget-line-transactions .budget-table-scroll { overflow: hidden; border: 1px solid #e1e9ee; border-radius: 9px; }
.budget-months-panel .budget-table-scroll,
.budget-line-transactions .budget-table-scroll { margin: 0 19px 19px; }
.budget-department-list { padding: 15px 19px 19px; display: grid; gap: 15px; }
.budget-department { overflow: hidden; border: 1px solid #b9d8e8; border-radius: 13px; background: #f7fbfd; }
.budget-department > header { padding: 16px 17px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; color: #fff; background: linear-gradient(135deg, #284f6d, #47769b); }
.budget-department > header > div { min-width: 0; }
.budget-department > header span { color: #d8ecf6; font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.budget-department > header h3 { margin: 5px 0 3px; color: #fff; font-size: 18px; letter-spacing: -.025em; }
.budget-department > header p { margin: 0; color: #dbeaf3; font-size: 11px; font-weight: 650; }
.budget-department > header > strong { flex: none; color: #fff; font-size: 16px; }
.budget-department .budget-category-list { padding: 13px; }
.budget-category-list { padding: 15px 19px 19px; display: grid; gap: 13px; }
.budget-category { overflow: hidden; border: 1px solid #dce6ec; border-radius: 11px; background: #fbfdfe; }
.budget-category > header { padding: 14px 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e1e9ee; background: #f4f8fa; }
.budget-category > header > div { min-width: 0; }
.budget-category > header span { color: #557b99; font: 700 10px/1 "Oswald", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.budget-category > header h3 { margin: 5px 0 2px; color: var(--navy); font-size: 14px; }
.budget-category > header p { margin: 0; color: #687e8e; font-size: 11px; line-height: 1.4; }
.budget-category > header > strong { flex: none; color: #315f83; font-size: 14px; }
.budget-line-list { display: grid; }
.budget-line-row { width: 100%; padding: 13px 15px; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(300px, 1.6fr) auto; align-items: center; gap: 15px; border: 0; border-top: 1px solid #e7edf0; color: inherit; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }
.budget-line-row:first-child { border-top: 0; }
.budget-line-row:hover { background: #f8fbfc; }
.budget-line-row > div:first-child { min-width: 0; display: grid; gap: 3px; }
.budget-line-row > div:first-child strong { overflow-wrap: anywhere; color: var(--navy); font-size: 12px; }
.budget-line-row > div:first-child span { color: #718493; font-size: 10px; font-weight: 700; }
.budget-line-row > div:nth-child(2) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; color: #708391; font-size: 10px; }
.budget-line-row > div:nth-child(2) span { display: grid; gap: 2px; }
.budget-line-row b { color: #304f68; font-size: 12px; }
.budget-line-row i { color: #66849a; font-size: 24px; font-style: normal; line-height: .7; }
.budget-negative, .budget-line-row .budget-negative, .budget-negative b { color: #a14444 !important; }
.budget-memo { display: block; margin-top: 3px; color: #718391; font-size: 10px; line-height: 1.35; }
.budget-table-scroll { border-top: 1px solid #edf1f3; }
.budget-transactions-table td:nth-child(2) { min-width: 170px; }
.budget-transactions-table td:nth-child(3) { min-width: 220px; }
.budget-month-table td:nth-child(n+2) { white-space: nowrap; }
.budget-month-inputs { margin: 0; padding: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 1px solid #dce5eb; border-radius: 10px; }
.budget-month-inputs legend { padding: 0 5px; color: #526d83; font-size: 12px; font-weight: 800; }
.budget-month-inputs label { min-width: 0; display: grid; gap: 5px; color: #667a8b; font-size: 10px; font-weight: 800; }
.budget-month-inputs input { min-width: 0; }
.accounts-page { display: grid; gap: 18px; }
.account-table-scroll { overflow-x: auto; }
.account-data-table { min-width: 1050px; }
.account-data-table th:nth-child(2), .account-data-table td:nth-child(2) { min-width: 290px; }
.account-header-form, .account-username-form { display: flex; align-items: center; gap: 8px; }
.account-header-form input, .account-username-form input { width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px; border: 1px solid #ccd8e3; border-radius: 7px; color: var(--ink); background: white; font: inherit; }
.account-header-form input:focus, .account-username-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(50,96,139,.12); }
.account-data-table th:nth-child(3), .account-data-table td:nth-child(3) { min-width: 220px; }
.account-state { display: inline-flex; padding: 4px 8px; border-radius: 99px; font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.account-state.active { color: #426f24; background: var(--lime-soft); }
.account-state.invited { color: #476e93; background: #eaf2f9; }
.account-state.pending { color: #87581a; background: #fff1d9; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 19px; color: #7e8c99; background: #fafbfc; text-align: left; font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.data-table td { padding: 14px 19px; border-top: 1px solid #edf0f3; font-size: 12px; }
.data-table tr:hover td { background: #fcfdfe; }
.cell-title { display: block; color: var(--ink); font-weight: 700; }
.cell-subtitle { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.role-badge { display: inline-flex; padding: 4px 8px; border-radius: 99px; font: 600 10px/1 "Oswald",sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.role-badge.owner { color: #82561d; background: #fff1d9; }
.role-badge.admin { color: #456f19; background: var(--lime-soft); }
.role-badge.user { color: #416a90; background: #eaf2f9; }
.table-actions { display: flex; justify-content: flex-end; gap: 7px; }
.inline-code { padding: 3px 6px; border-radius: 5px; color: #526a7f; background: #f0f4f7; font: 600 11px/1.2 ui-monospace, monospace; }
.setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.setting-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.setting-card.full { grid-column: 1 / -1; }
.setting-card h3 { margin: 0 0 4px; font-size: 15px; }
.setting-card p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.sidebar-link-editor-list { display: grid; gap: 8px; }
.sidebar-link-editor-row { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(260px, 2fr) auto; gap: 8px; align-items: center; }
.sidebar-link-editor-row input { min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid #ccd8e3; border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; }
.inline-fields { display: grid; grid-template-columns: 1fr 96px auto; gap: 8px; align-items: end; }
.connection-chip { padding: 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 9px; background: #f2f6f8; }
.connection-chip strong { display: block; font-size: 12px; }
.connection-chip span { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.schedule-list { display: grid; gap: 0; }
.schedule-calendar-panel { margin-bottom: 22px; overflow: hidden; border-color: #dfe8ee; background: #f7fafc; }
.scheduled-companion-presses { margin-bottom: 16px; }
.scheduled-template-access { margin-bottom: 22px; }
.schedule-calendar-header { padding: 18px 20px 15px; background: white; }
.schedule-calendar-weekdays, .schedule-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.schedule-calendar-weekdays { padding: 10px 12px 5px; gap: 8px; background: #f7fafc; }
.schedule-calendar-weekdays span { padding: 5px; color: #7a8b9a; font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.schedule-calendar-grid { padding: 3px 12px 13px; gap: 8px; background: #f7fafc; }
.schedule-calendar-day { min-height: 108px; padding: 10px; border: 1px solid #e0e8ee; border-radius: 10px; background: white; box-shadow: 0 1px 0 rgba(19,53,80,.025); }
button.schedule-calendar-day { width: 100%; color: inherit; cursor: pointer; font: inherit; text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease; }
button.schedule-calendar-day:hover { border-color: #a8c3d4; background: #fbfdfe; box-shadow: 0 5px 13px rgba(31,70,96,.09); transform: translateY(-1px); }
button.schedule-calendar-day:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--blue); outline-offset: 2px; }
.schedule-calendar-day.muted { border-color: transparent; background: transparent; box-shadow: none; }
.schedule-calendar-day.today { border-color: #b8d990; background: #f6fbed; box-shadow: inset 0 0 0 1px rgba(167,217,72,.16); }
.schedule-calendar-day > strong { display: inline-grid; min-width: 23px; min-height: 23px; place-items: center; border-radius: 7px; color: #506578; background: #f1f5f7; font-size: 11px; }
.schedule-calendar-day.today > strong { color: #416a1d; background: #e2f3cf; }
.schedule-calendar-events { margin-top: 8px; display: grid; gap: 4px; }
.schedule-calendar-event, .schedule-calendar-more { overflow: hidden; padding: 4px 5px; border-radius: 5px; color: #59722d; background: #eaf6dc; font-size: 9px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.schedule-calendar-event.remove { color: #637282; background: #edf1f4; }
.schedule-calendar-more { padding-left: 2px; color: #627688; background: transparent; }
.schedule-row { padding: 15px 19px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; border-top: 1px solid #edf0f3; }
.schedule-row strong { display: block; font-size: 12px; }
.schedule-row span { color: var(--muted); font-size: 11px; }
.schedule-row .recurrence { color: #628e27; font: 600 10px/1 "Oswald",sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.schedule-row-actions { display: flex; align-items: center; gap: 9px; }
.ccb-calendar-panel { margin-bottom: 22px; border-color: #dfe8ee; }
.ccb-event-list { display: grid; }
.ccb-event-row { padding: 14px 19px; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 14px; border-top: 1px solid #edf0f3; }
.ccb-event-row time strong, .ccb-event-row time span, .ccb-event-row > div strong, .ccb-event-row > div span { display: block; }
.ccb-event-row time strong { color: var(--navy); font-size: 12px; }
.ccb-event-row time span, .ccb-event-row > div span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.ccb-event-row > div strong { color: var(--navy); font-size: 13px; }
.ccb-event-detail { margin: 8px 0 0; padding: 8px 10px; border-left: 2px solid #d9e6ee; border-radius: 0 7px 7px 0; background: #f8fafb; }
.ccb-event-detail strong { color: #607487 !important; font: 600 9px/1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ccb-event-detail span { margin-top: 5px !important; color: #526878 !important; line-height: 1.45; white-space: normal; }
.assignment-list { display: grid; gap: 8px; }
.assignment-user-picker { display: grid; gap: 8px; }
.assignment-user-results { min-height: 36px; display: grid; gap: 5px; }
.assignment-user-results > p { margin: 0; padding: 9px 10px; border-radius: 8px; color: #748594; background: #f5f8fa; font-size: 11px; }
.assignment-user-results button { width: 100%; min-height: 42px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dbe5eb; border-radius: 8px; color: var(--navy); background: white; text-align: left; }
.assignment-user-results button:hover { border-color: #a9c0d0; background: #f5f9fb; }
.assignment-user-results button strong, .assignment-user-results button small { display: block; }
.assignment-user-results button strong { font-size: 12px; }
.assignment-user-results button small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.assignment-user-results button b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #426d1f; background: var(--lime-soft); font-size: 17px; line-height: 1; }
.assignment-user-selected { min-height: 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.assignment-user-selected > p { margin: 0; color: var(--muted); font-size: 11px; }
.assignment-user-chip { position: relative; padding: 6px 7px 6px 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfdee7; border-radius: 99px; color: #37536a; background: #edf5f9; font-size: 11px; }
.assignment-user-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.assignment-user-chip button { width: 18px; height: 18px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; color: #577084; background: #dce9f0; font-size: 15px; line-height: 1; }
.assignment-user-chip button:hover { color: white; background: #8b5252; }
.assignment-group-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.template-group-list { display: grid; gap: 8px; }
.template-group-row { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dee7ed; border-radius: 9px; background: #fbfcfd; }
.template-group-row strong, .template-group-row span { display: block; }
.template-group-row strong { color: var(--navy); font-size: 13px; }
.template-group-row span { max-width: 330px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.group-empty { padding: 26px 15px; }
.user-groups-panel { overflow: hidden; }
.account-group-grid { padding: 12px 18px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 10px; }
.account-group-card { min-width: 0; padding: 13px; border: 1px solid #dfe8ee; border-radius: 10px; background: linear-gradient(135deg, #fbfdfe, #f4f8fa); }
.account-group-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.account-group-card strong, .account-group-card span { display: block; }
.account-group-card strong { color: var(--navy); font-size: 13px; }
.account-group-card span { margin-top: 3px; color: #63798a; font-size: 10px; }
.account-group-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.check-row { padding: 11px; display: flex; align-items: center; gap: 9px; border: 1px solid #e1e7ec; border-radius: 8px; font-size: 12px; }
.check-row input { width: 15px; height: 15px; accent-color: var(--blue); }
.template-builder { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.builder-sidebar { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.builder-sidebar h3 { margin: 0 0 3px; font-size: 15px; }
.builder-sidebar p { margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.builder-folder + .builder-folder { margin-top: 16px; }
.builder-folder-title { margin: 0 0 6px; display: flex; align-items: center; justify-content: space-between; color: #657a8c; font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.builder-folder-title em { min-width: 18px; padding: 3px 5px; border-radius: 99px; color: #5b7082; background: #eaf0f4; font: 600 9px/1 "Oswald", sans-serif; font-style: normal; letter-spacing: 0; text-align: center; }
.builder-list { display: grid; gap: 7px; }
.builder-list button { padding: 10px; display: flex; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 8px; color: var(--ink); background: #f6f8fa; text-align: left; font-size: 12px; }
.builder-list button.active { border-color: #bdd1e0; background: #edf4f8; }
.builder-dot { width: 8px; height: 8px; border-radius: 50%; }
.builder-workspace { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.builder-workspace h3 { margin: 0; font-size: 16px; }
.builder-workspace > p { margin: 3px 0 16px; color: var(--muted); font-size: 12px; }
.builder-items { display: grid; gap: 8px; }
.builder-item { padding: 11px; display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: start; gap: 10px; border: 1px solid #e1e7ec; border-radius: 9px; }
.builder-item.hidden-control { background: #f6f8fa; }
.builder-item.hidden-control .item-color { opacity: .45; }
.builder-item strong { font-size: 12px; }
.builder-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.builder-item .builder-item-actions { grid-column: 2 / -1; margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; color: inherit; font-size: inherit; }
.hidden-builder-controls { margin-top: 13px; border: 1px solid #d9e1e7; border-radius: 9px; background: #fafcfd; }
.hidden-builder-controls summary { padding: 11px; color: #5f7180; cursor: pointer; font-size: 12px; font-weight: 700; }
.hidden-builder-controls > p { margin: 0; padding: 0 11px 11px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.hidden-builder-controls .builder-items { padding: 0 11px 11px; }
.item-color { width: 7px; height: 33px; border-radius: 99px; }
.builder-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.fader-trigger-list { display: grid; gap: 8px; }
.fader-trigger-row { padding: 10px; display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; border: 1px solid #e1e7ec; border-radius: 8px; background: #fafcfd; }
.fader-trigger-row strong { display: block; font-size: 12px; }
.fader-trigger-row span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.fader-trigger-row select { min-height: 38px; padding: 7px 9px; border: 1px solid #d4dde6; border-radius: 7px; color: var(--ink); background: white; }
.fader-trigger-mapping { display: grid; gap: 7px; }
.fader-trigger-mapping .field { gap: 4px; }
.fader-trigger-mapping .form-helper { margin: 0; }
.fader-custom-target { display: grid; grid-template-columns: minmax(150px, 1.6fr) repeat(3, minmax(78px, 1fr)); gap: 7px; }
.fader-custom-target .field { min-width: 0; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; padding: 20px; display: grid; place-items: center; background: rgba(12,38,61,.52); backdrop-filter: blur(3px); }
.modal { width: min(100%, 560px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 25px; border-radius: 17px; background: white; box-shadow: 0 30px 80px rgba(10,36,57,.32); }
.modal.wide { width: min(100%, 700px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 21px; }
.modal-head h2 { margin: 0; color: var(--navy); font-size: 21px; letter-spacing: -.035em; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.icon-button { width: 31px; height: 31px; flex: none; display: grid; place-items: center; border: 0; border-radius: 7px; color: #748595; background: #f1f4f6; font-size: 18px; }
.modal-form { display: grid; gap: 14px; }
.modal-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-footer { margin-top: 6px; display: flex; justify-content: flex-end; gap: 8px; }
.layout-device-tabs { display: flex; gap: 7px; margin: -3px 0 14px; }
.layout-device-tabs button { min-height: 34px; padding: 7px 11px; border: 1px solid #ccd8e3; border-radius: 8px; color: var(--navy); background: white; font-size: 12px; font-weight: 700; }
.layout-device-tabs button.active { border-color: #a7d948; background: var(--lime-soft); }
.layout-editor-shell { width: 100%; padding: 14px; border: 1px solid #dce5eb; border-radius: 13px; background: #f4f7f9; overflow-x: auto; }
.layout-editor-shell.iphone { width: min(100%, 330px); margin: auto; }
.layout-editor-preview { min-width: 280px; display: grid; grid-template-columns: repeat(var(--layout-columns), minmax(0, 1fr)); grid-template-rows: repeat(var(--layout-rows), 72px); gap: 7px; position: relative; }
.layout-target { min-width: 0; min-height: 0; border: 1px dashed #c4d2dd; border-radius: 8px; background: rgba(255,255,255,.78); }
.layout-target:hover { border-color: var(--blue); background: #e9f2f8; }
.layout-editor-item { z-index: 1; min-width: 0; min-height: 0; padding: 9px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 2px solid transparent; border-radius: 10px; color: white; background: var(--item-color); text-align: left; box-shadow: 0 4px 10px rgba(20,49,73,.12); }
.layout-editor-item.fader { color: var(--ink); background: white; border-color: #b7c8d7; }
.layout-editor-item.selected { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(167,217,72,.3), 0 4px 10px rgba(20,49,73,.12); }
.layout-editor-item span { color: inherit; opacity: .76; font: 600 9px/1 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.layout-editor-item strong { width: 100%; overflow: hidden; font-size: 11px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.layout-editor-footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.layout-editor-footer strong, .layout-editor-footer span { display: block; }
.layout-editor-footer strong { font-size: 12px; }
.layout-editor-footer span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.layout-nudge { display: grid; grid-template-columns: repeat(4, 34px); gap: 5px; }
.layout-nudge .button { min-height: 34px; padding: 0; font-size: 16px; }
.form-helper { margin: -7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.warning-note { padding: 11px 12px; border-radius: 8px; color: #81561c; background: #fff3df; font-size: 12px; line-height: 1.4; }
.request-card { padding: 20px; border-radius: var(--radius); color: white; background: linear-gradient(135deg, #214767, #193957); }
.request-card h3 { margin: 0 0 6px; font-size: 17px; }
.request-card p { margin: 0 0 15px; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.45; }
.request-card .button { color: #16344f; background: var(--lime); }
.toast-region { position: fixed; z-index: 20; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.toast { width: min(350px, calc(100vw - 36px)); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; color: white; background: var(--navy); box-shadow: 0 11px 27px rgba(14,41,62,.27); font-size: 12px; animation: slideIn .25s ease; }
.toast.success .toast-symbol { color: var(--lime); }
.toast.error { background: #8d3937; }
.toast-symbol { font-weight: 800; }
.app-footer, .login-footer { padding: 18px max(20px, 4vw); color: #718394; border-top: 1px solid var(--line); background: white; text-align: center; font-size: 11px; line-height: 1.55; }
.app-footer a, .login-footer a { color: var(--blue); font-weight: 700; text-decoration: none; }
.privacy-page { min-height: 100vh; background: radial-gradient(circle at 78% 16%, rgba(167,217,72,.15), transparent 22%), var(--paper); }
.privacy-hero { padding: clamp(46px, 8vw, 88px) max(20px, 6vw) 42px; color: white; background: linear-gradient(132deg, #173650, #27597b); }
.privacy-hero-inner, .privacy-content { width: min(900px, 100%); margin: 0 auto; }
.privacy-hero .brand { color: white; }
.privacy-hero .brand-mark { background: transparent; color: var(--navy); }
.privacy-hero .brand-copy span { color: rgba(255,255,255,.7); }
.privacy-hero .eyebrow { margin-top: 52px; color: #d7edaf; }
.privacy-hero h1 { max-width: 720px; margin: 11px 0; font-size: clamp(38px, 6vw, 64px); letter-spacing: -.05em; }
.privacy-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.79); font-size: 16px; line-height: 1.65; }
.privacy-content { padding: clamp(30px, 6vw, 62px) max(20px, 4vw) 68px; }
.privacy-updated { display: inline-flex; padding: 7px 10px; border-radius: 999px; color: #46667e; background: #e8f0f5; font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.privacy-intro { margin: 19px 0 34px; color: #496172; font-size: 15px; line-height: 1.7; }
.privacy-section { margin-top: 28px; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 9px 24px rgba(24,57,82,.05); }
.privacy-section h2 { margin: 0 0 11px; color: var(--navy); font-size: 22px; letter-spacing: -.025em; }
.privacy-section p, .privacy-section li { color: #506474; font-size: 14px; line-height: 1.65; }
.privacy-section p { margin: 0; }
.privacy-section p + p { margin-top: 12px; }
.privacy-section ul { margin: 11px 0 0; padding-left: 21px; }
.privacy-section li + li { margin-top: 6px; }
.privacy-section strong { color: #274960; }
.privacy-section a { color: var(--blue); font-weight: 700; }
.privacy-back { margin-top: 28px; text-align: center; }
.folder-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.folder-option { min-height: 104px; padding: 13px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 0; border-radius: 11px; color: white; text-align: left; }
.folder-option strong { font-size: 14px; }
.folder-option small { color: rgba(255,255,255,.75); font-size: 10px; }
.button-image-preview { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #b8c6d2; border-radius: 8px; color: #8293a1; background: #f7f9fa; font-size: 11px; }
.button-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.import-input { display: none; }
.gathering-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.gathering-side { display: grid; gap: 18px; }
.gathering-plan-list, .gathering-baptism-list { padding: 0 20px 20px; }
.gathering-plan-header { margin: 17px 0 8px; padding: 9px 12px; border-radius: 8px; background: #edf5f9; color: var(--navy); font: 600 13px/1.2 "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.gathering-plan-header:first-child { margin-top: 0; }
.gathering-plan-item { display: flex; gap: 16px; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #e7edf1; }
.gathering-plan-item:last-child { border-bottom: 0; }
.gathering-item-main { min-width: 0; }
.gathering-item-label { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.gathering-item-label h3 { margin: 0; color: var(--navy); font-size: 17px; }
.gathering-plan-item p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; white-space: pre-wrap; }
.gathering-plan-item .gathering-leaders { color: #415b6d; }
.gathering-plan-item time { flex: 0 0 auto; color: var(--navy); font: 600 18px/1 "Oswald", sans-serif; letter-spacing: .04em; }
.gathering-baptism-list article { display: grid; gap: 5px; padding: 14px 0; border-bottom: 1px solid #e7edf1; }
.gathering-baptism-list article:last-child { border-bottom: 0; }
.gathering-baptism-list strong { color: var(--navy); font-size: 17px; }
.gathering-baptism-list span { color: var(--muted); line-height: 1.45; }
.gathering-end-time-list { padding: 0 20px 20px; }
.gathering-end-time-list article { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e7edf1; }
.gathering-end-time-list article:last-child { border-bottom: 0; }
.gathering-end-time-list strong { color: var(--navy); font-size: 16px; }
.gathering-end-time-list span { color: var(--muted); text-align: right; }
.gathering-baptisms > .empty-state, .gathering-end-times > .empty-state { margin: 16px; }
@media (min-width: 801px) {
  /* Keep the Gathering dashboard in the app viewport. Long service plans
     scroll inside their own card instead of making the whole page scroll. */
  .content.gathering-content { height: calc(100dvh - 136px); min-height: 0; padding-top: 24px; padding-bottom: 24px; display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .gathering-content .page-heading { margin-bottom: 16px; }
  .gathering-content .page-heading h1 { font-size: clamp(25px, 2.5vw, 33px); }
  .gathering-content .gathering-layout { min-height: 0; height: 100%; align-items: stretch; }
  .gathering-plan, .gathering-side, .gathering-side > .panel { min-height: 0; }
  .gathering-plan, .gathering-side > .panel { display: flex; flex-direction: column; }
  .gathering-plan-list, .gathering-baptism-list, .gathering-end-time-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
  .gathering-side { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .gathering-plan-list, .gathering-baptism-list, .gathering-end-time-list { padding: 0 18px 18px; }
  .gathering-plan-header { margin-top: 10px; padding: 7px 10px; font-size: 11px; }
  .gathering-plan-item { gap: 12px; padding: 9px 0; }
  .gathering-plan-item .process-kind { padding: 3px 6px; font-size: 8px; }
  .gathering-item-label { gap: 7px; }
  .gathering-item-label h3 { font-size: 14px; line-height: 1.2; }
  .gathering-plan-item p { margin-top: 4px; font-size: 12px; line-height: 1.35; }
  .gathering-plan-item time { font-size: 15px; }
  .gathering-baptism-list article { padding: 11px 0; }
  .gathering-end-time-list article { padding: 10px 0; }
  .gathering-baptisms > .empty-state, .gathering-end-times > .empty-state { flex: 1 1 auto; min-height: 0; margin: 14px 16px 16px; padding: 20px 14px; }
}
@media (max-width: 800px) { .gathering-layout { grid-template-columns: 1fr; } .content.gathering-content { height: auto; } }
@media (max-width: 560px) { .gathering-plan-list, .gathering-baptism-list, .gathering-end-time-list { padding-left: 14px; padding-right: 14px; } .gathering-plan-item { gap: 10px; } }
@keyframes slideIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 800px) {
  .login-main { grid-template-columns: 1fr; gap: 28px; }
  .login-intro { text-align: center; }
  .login-intro p, .login-intro h1 { margin-left: auto; margin-right: auto; }
  .login-note { text-align: left; }
  .login-card { margin: auto; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-card, .sidebar-bottom { display: none; }
  .nav { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); overflow: visible; }
  .nav button { min-width: 0; }
  .content { padding: 28px 20px; }
  .stat-grid { grid-template-columns: 1fr; }
  .budget-summary-grid, .budget-summary-grid.compact, .worship-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worship-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .inventory-card { flex-direction: column; }
  .inventory-card-actions { justify-content: flex-start; }
  .inventory-manual-reader { grid-template-columns: 1fr; min-height: 0; }
  .inventory-manual-library { padding-left: 14px; padding-right: 14px; }
  .inventory-manual-library article { align-items: stretch; flex-direction: column; gap: 11px; }
  .inventory-manual-library .inventory-table-actions { justify-content: flex-start; }
  .inventory-manual-outline { max-height: 210px; }
  .inventory-manual-page { max-height: none; }
  .conference-calendar-day article { grid-template-columns: 82px minmax(0, 1fr); }
  .room-touch-hero { align-items: stretch; flex-direction: column; padding: 22px; }
  .room-hero-actions { justify-content: stretch; }
  .room-add-button { width: 100%; min-height: 78px; grid-template-columns: auto auto; gap: 9px; font-size: 30px; }
  .room-add-button span { margin: 0; }
  .room-schedule-card { grid-template-columns: 92px minmax(0, 1fr); padding: 16px; }
  .worship-view-tabs { justify-content: flex-start; }
  .budget-selector { align-items: stretch; flex-direction: column; }
  .setting-grid, .template-builder { grid-template-columns: 1fr; }
  .setting-card.full { grid-column: auto; }
}
@media (max-width: 560px) {
  #app, .app-shell, .dashboard, .content, .panel, .modal, .modal-form, .field, .cell-subtitle, .ticket-item, .ccb-event-content { min-width: 0; max-width: 100%; }
  .topbar { height: 70px; padding: 0 16px; }
  .brand-copy span, .connection-status { display: none; }
  .brand-copy strong { font-size: 14px; }
  .page-heading { display: block; }
  .heading-actions { justify-content: flex-start; margin-top: 15px; }
  .panel-form { padding: 17px; }
  .account-table-scroll { overflow: visible; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; min-width: 0; }
  .data-table thead { display: none; }
  .data-table tr { padding: 15px 17px; border-top: 1px solid #edf0f3; }
  .data-table tr:first-child { border-top: 0; }
  .data-table td { padding: 0; border: 0; overflow-wrap: anywhere; }
  .data-table td + td { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef2f5; }
  .data-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #7e8c99; font: 600 10px/1 "Oswald", sans-serif; letter-spacing: .11em; text-transform: uppercase; }
  .account-header-form, .account-username-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; min-width: 0; }
  .account-header-form input, .account-username-form input { min-width: 0; }
  .table-actions { flex-wrap: wrap; justify-content: flex-start; }
  .modal-form .two-col { grid-template-columns: 1fr; }
  .modal-footer { flex-wrap: wrap; justify-content: flex-start; }
  .inline-fields { grid-template-columns: 1fr; }
  .assignment-group-controls { grid-template-columns: 1fr; }
  .template-group-row { align-items: flex-start; flex-direction: column; }
  .template-group-row span { max-width: 100%; white-space: normal; }
  .account-group-grid { padding: 12px 14px 14px; grid-template-columns: 1fr; }
  .account-group-card-head { align-items: flex-start; flex-direction: column; }
  .fader-trigger-row { grid-template-columns: 1fr; }
  .fader-custom-target { grid-template-columns: 1fr 1fr; }
  .fader-custom-target .field:first-child { grid-column: 1 / -1; }
  .builder-item { grid-template-columns: 7px minmax(0, 1fr); align-items: start; }
  .builder-item .inline-code { grid-column: 2; justify-self: start; }
  .builder-item .builder-item-actions { grid-column: 1 / -1; padding-left: 17px; justify-content: flex-start; }
  .upcoming-schedule-item { grid-template-columns: 78px minmax(0, 1fr); }
  .upcoming-schedule-item .recurrence { grid-column: 2; justify-self: start; }
  .ccb-event-row { grid-template-columns: 76px minmax(0, 1fr); }
  .ccb-event-row .button { grid-column: 2; justify-self: start; }
  .panel-header, .schedule-row, .control-toolbar, .button-history-item, .activity, .ticket-item-footer { align-items: flex-start; flex-direction: column; }
  .panel-header { gap: 10px; }
  .schedule-row { display: flex; }
  .schedule-row-actions, .control-toolbar-actions { flex-wrap: wrap; justify-content: flex-start; }
  .control-toolbar .template-title { align-items: flex-start; }
  .layout-editor-shell { padding: 9px; overflow: hidden; }
  .layout-editor-preview { min-width: 0; gap: 5px; }
  .layout-editor-item { padding: 6px; }
  .layout-editor-footer { align-items: flex-start; flex-direction: column; }
  .layout-nudge { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .layout-nudge .button { width: 100%; }
  .check-row span, .ticket-item p, .button-history-item span, .schedule-row span { min-width: 0; overflow-wrap: anywhere; }
  .schedule-calendar-day { min-height: 76px; padding: 5px; }
  .schedule-calendar-weekdays span { padding: 7px 2px; font-size: 8px; }
  .schedule-calendar-event, .schedule-calendar-more { padding: 2px; font-size: 7px; }
  .process-share-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .process-share-row select { grid-column: 2; }
  .budget-summary-grid, .budget-summary-grid.compact, .budget-report-toolbar, .worship-summary-grid { grid-template-columns: 1fr; }
  .worship-summary-grid, .worship-toolbar, .worship-song-list { margin-left: 14px; margin-right: 14px; }
  .worship-song-list { padding-left: 0; padding-right: 0; }
  .worship-view-tabs { display: grid; grid-template-columns: 1fr; width: 100%; }
  .worship-view-tabs button { width: 100%; }
  .budget-selector { padding: 12px; }
  .budget-selector .field { width: 100%; }
  .budget-summary-card { padding: 15px; }
  .budget-summary-card strong { font-size: 23px; }
  .budget-category-list { padding: 12px; }
  .budget-department-list { padding: 12px; }
  .budget-department > header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .budget-category > header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .budget-line-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .budget-line-row > div:nth-child(2) { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .budget-line-row i { grid-column: 2; grid-row: 1; }
  .budget-month-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-count-service-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .head-count-service-heading > div:last-child { width: 100%; justify-content: space-between; }
  .head-count-service-body { grid-template-columns: 1fr; }
  .head-count-total-box { min-height: 82px; grid-template-columns: 1fr auto; align-items: center; }
  .head-count-total-box strong { text-align: right; }
  .head-count-submit-row { align-items: stretch; flex-direction: column; }
  .head-count-submit-row .button { width: 100%; }
  .head-count-intro-actions { align-items: stretch; width: 100%; }
  .head-count-intro-actions label { flex: 1 1 150px; }
  .head-count-history-card { grid-template-columns: 1fr; align-items: start; gap: 9px; }
  .head-count-history-chart { padding: 15px; }
  .head-count-history-chart-head { align-items: stretch; flex-direction: column; gap: 8px; }
  .head-count-chart-view { align-self: flex-start; }
  .head-count-history-total { align-items: flex-start; flex-direction: column; }
  .head-count-submit-actions { justify-content: stretch; }
  .sidebar-link-editor-row { grid-template-columns: 1fr; }
  .sidebar-link-editor-row .button { justify-self: start; }
}
