:root {
  color-scheme: light;
  --page: #f7f6f0;
  --surface: #ffffff;
  --surface-soft: #f2f0e8;
  --ink: #202322;
  --muted: #686f6b;
  --line: #ddd9ce;
  --line-strong: #c9c1b2;
  --teal: #0b7f79;
  --teal-soft: #dff3ef;
  --coral: #d8623f;
  --coral-soft: #fde9df;
  --amber: #b7791f;
  --amber-soft: #fff3cf;
  --green: #317a45;
  --green-soft: #e7f4e9;
  --blue: #316891;
  --blue-soft: #e3eef6;
  --shadow: 0 18px 45px rgba(49, 44, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.14;
}

h2 {
  font-size: 20px;
  line-height: 1.25;
}

h3 {
  font-size: 17px;
  line-height: 1.35;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 0 12px;
}

textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(11, 127, 121, 0.16);
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 50;
  transform: translate(-50%, -120%);
  max-width: min(440px, calc(100% - 32px));
  border: 1px solid rgba(32, 35, 34, 0.12);
  border-radius: 8px;
  background: rgba(32, 35, 34, 0.94);
  color: #fff;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.auth-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 480px);
  min-height: 100vh;
}

.auth-art {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  color: #fff;
}

.auth-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-art::after,
.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(25, 28, 26, 0.72), rgba(25, 28, 26, 0.18));
}

.auth-art-copy {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 42px;
  z-index: 1;
  max-width: 620px;
}

.auth-art-copy h1 {
  margin-top: 10px;
  font-size: 48px;
}

.auth-art-copy p {
  max-width: 540px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.55;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 44px;
  background: var(--surface);
}

.brand-mark,
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
}

.auth-panel h2 {
  margin-top: 8px;
  font-size: 30px;
}

.auth-form,
.form-panel {
  display: grid;
  gap: 16px;
}

.auth-form {
  margin-top: 28px;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 4px;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.auth-tabs button.is-active {
  background: var(--ink);
  color: #fff;
}

.auth-mode {
  display: none;
}

.auth-mode.is-active {
  display: grid;
}

.search-results {
  display: grid;
  gap: 10px;
}

.search-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.search-result-card strong,
.search-result-card span {
  display: block;
}

.search-result-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.auth-actions,
.pending-actions,
.hero-actions,
.topbar-actions,
.event-actions,
.request-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-actions {
  margin-top: 18px;
  justify-content: space-between;
}

.group-switcher {
  display: grid;
  grid-template-columns: auto minmax(150px, 210px);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.group-switcher select {
  min-height: 38px;
  padding: 0 10px;
}

.form-message {
  min-height: 22px;
  margin-top: 12px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
}

.pending-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(140deg, rgba(11, 127, 121, 0.14), rgba(216, 98, 63, 0.12)),
    var(--page);
}

.pending-panel {
  width: min(640px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 34px;
  box-shadow: var(--shadow);
}

.pending-panel h1 {
  margin-top: 16px;
}

.pending-panel p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.pending-actions {
  margin-top: 24px;
}

.app-view {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  border-bottom: 1px solid rgba(221, 217, 206, 0.9);
  background: rgba(247, 246, 240, 0.92);
  padding: 14px 22px;
  backdrop-filter: blur(14px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-brand strong,
.topbar-brand span {
  display: block;
}

.topbar-brand strong {
  font-size: 18px;
}

.topbar-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 22px;
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px;
  box-shadow: 0 12px 28px rgba(49, 44, 33, 0.08);
}

.main-nav {
  display: grid;
  gap: 6px;
}

.nav-item,
.mobile-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  text-align: left;
}

.nav-item {
  width: 100%;
  padding: 0 12px;
}

.nav-item.is-active,
.mobile-nav button.is-active {
  border-color: rgba(11, 127, 121, 0.22);
  background: var(--teal-soft);
  color: var(--teal);
}

.workspace {
  min-width: 0;
}

.view-section {
  display: none;
}

.view-section.is-active {
  display: block;
}

.hero-band {
  position: relative;
  overflow: hidden;
  min-height: 344px;
  border-radius: 8px;
  background: #202322;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 720px;
  min-height: 344px;
  padding: 34px;
}

.hero-content p {
  max-width: 620px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 22px;
}

.small-label,
.light-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.light-label {
  color: rgba(255, 255, 255, 0.86);
}

.primary-action,
.secondary-action,
.text-action,
.icon-button,
.filter-row button,
.segmented-control button,
.status-button {
  border-radius: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  font-weight: 900;
}

.primary-action,
.secondary-action,
.text-action,
.status-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-action {
  background: var(--ink);
  color: #fff;
  padding: 0 16px;
}

.secondary-action {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}

.secondary-action.on-dark {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.text-action {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 0;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding: 0;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.segmented-control button {
  min-width: 58px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.segmented-control button.is-active {
  background: var(--ink);
  color: #fff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.metric-card,
.panel,
.event-card,
.prayer-card,
.member-row,
.request-card,
.notice-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(49, 44, 33, 0.06);
}

.metric-card {
  min-height: 112px;
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 16px;
  margin-top: 16px;
}

.groups-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.group-tools {
  margin-top: 16px;
}

.group-card-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.group-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.group-card.is-active {
  border-color: rgba(11, 127, 121, 0.42);
  box-shadow: 0 0 0 4px rgba(11, 127, 121, 0.12);
}

.group-card h3 {
  margin-top: 8px;
}

.group-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.panel {
  padding: 20px;
}

.section-heading,
.view-header,
.list-toolbar,
.event-card-top,
.detail-title-row,
.member-row,
.request-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.view-header {
  margin-bottom: 18px;
}

.view-header h1 {
  margin-top: 4px;
}

.notice-list,
.event-list,
.prayer-list,
.member-list,
.request-list {
  display: grid;
  gap: 12px;
}

.notice-list,
.next-event-panel,
.my-prayer-status,
.member-list,
.request-list {
  margin-top: 16px;
}

.notice-item {
  padding: 14px;
}

.notice-item strong {
  display: block;
  margin-bottom: 7px;
}

.notice-item p,
.next-event-panel p,
.my-prayer-status p,
.event-card p,
.detail-panel p,
.prayer-card p,
.request-card p,
.empty-state,
.definition-list dd {
  color: var(--muted);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag,
.status-badge,
.theme-chip,
.count-chip,
.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge,
.theme-chip,
.count-chip {
  background: var(--teal-soft);
  color: var(--teal);
}

.tag {
  background: var(--surface-soft);
  color: var(--muted);
}

.category-chip.worship {
  background: var(--teal-soft);
  color: var(--teal);
}

.category-chip.smallgroup {
  background: var(--blue-soft);
  color: var(--blue);
}

.category-chip.service {
  background: var(--green-soft);
  color: var(--green);
}

.category-chip.retreat {
  background: var(--coral-soft);
  color: var(--coral);
}

.category-chip.etc {
  background: var(--amber-soft);
  color: var(--amber);
}

.next-event-panel h3,
.my-prayer-status h3 {
  margin-bottom: 8px;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

.filter-row button {
  flex: 0 0 auto;
  min-width: 74px;
  background: #fff;
  color: var(--muted);
  border-color: var(--line);
  padding: 0 13px;
}

.filter-row button.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 16px;
  align-items: start;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-nav strong {
  min-width: 120px;
  text-align: center;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 16px;
  align-items: start;
}

.calendar-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(49, 44, 33, 0.06);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.weekday-row span {
  display: grid;
  min-height: 38px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.calendar-day {
  display: grid;
  grid-template-rows: 24px minmax(84px, 1fr);
  min-height: 132px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px;
  text-align: left;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-outside {
  background: #faf9f5;
  color: #a29b8e;
}

.calendar-day.is-selected {
  box-shadow: inset 0 0 0 3px rgba(11, 127, 121, 0.22);
}

.calendar-day.is-today .day-number {
  background: var(--ink);
  color: #fff;
}

.day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 13px;
  font-weight: 950;
}

.calendar-events {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  margin-top: 4px;
}

.calendar-event {
  min-width: 0;
  min-height: 24px;
  overflow: hidden;
  border: 0;
  border-left: 3px solid currentColor;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--teal);
  padding: 0 6px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.calendar-event span {
  margin-right: 4px;
  color: var(--muted);
  font-weight: 800;
}

.calendar-event.smallgroup {
  color: var(--blue);
}

.calendar-event.service {
  color: var(--green);
}

.calendar-event.retreat {
  color: var(--coral);
}

.calendar-event.etc {
  color: var(--amber);
}

.more-chip {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.day-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.event-list.compact {
  margin-top: 0;
}

.event-card.compact {
  min-height: auto;
  padding: 14px;
}

.inline-detail {
  position: static;
}

.event-card {
  display: grid;
  gap: 13px;
  min-height: 158px;
  padding: 18px;
  text-align: left;
}

button.event-card {
  width: 100%;
  color: inherit;
}

.event-card.is-active {
  border-color: rgba(11, 127, 121, 0.42);
  box-shadow: 0 0 0 4px rgba(11, 127, 121, 0.12);
}

.event-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.rsvp-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
}

.rsvp-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(49, 44, 33, 0.06);
}

.detail-panel h2 {
  margin-top: 10px;
}

.detail-panel p {
  margin-top: 14px;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-list dd {
  margin: 0;
  font-weight: 850;
}

.event-actions {
  margin-top: 20px;
}

.status-button {
  min-width: 84px;
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  padding: 0 12px;
}

.status-button.is-active {
  border-color: rgba(11, 127, 121, 0.28);
  background: var(--teal-soft);
  color: var(--teal);
}

.prayer-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding-top: 22px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.list-toolbar {
  min-height: 42px;
  margin-bottom: 12px;
}

.list-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.prayer-card {
  padding: 18px;
}

.prayer-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.prayer-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.prayer-card p {
  white-space: pre-line;
}

.prayer-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.members-layout,
.management-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  align-items: start;
}

.management-layout.single {
  grid-template-columns: minmax(0, 840px);
}

.definition-list {
  display: grid;
  gap: 15px;
  margin: 16px 0 0;
}

.definition-list div {
  display: grid;
  gap: 4px;
}

.definition-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.definition-list dd {
  margin: 0;
  font-weight: 800;
}

.member-row {
  min-height: 76px;
  padding: 14px;
}

.member-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.member-main strong,
.member-main span {
  display: block;
}

.member-main span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.member-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.request-card {
  padding: 16px;
}

.request-card p {
  margin-top: 8px;
}

.request-actions {
  margin-top: 14px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 18px;
  font-weight: 800;
}

.mobile-nav {
  display: none;
}

@media (max-width: 1080px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 42vh;
  }

  .auth-panel {
    min-height: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .dashboard-grid,
  .groups-layout,
  .schedule-layout,
  .calendar-layout,
  .prayer-layout,
  .members-layout,
  .management-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }

  .day-panel {
    position: static;
  }

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    gap: 4px;
    border: 1px solid rgba(221, 217, 206, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    padding: 6px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .mobile-nav button {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    padding: 0;
    font-size: 11px;
    text-align: center;
  }

  .mobile-nav svg {
    width: 19px;
    height: 19px;
  }

  .app-view {
    padding-bottom: 88px;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 18px;
  }

  .topbar {
    align-items: flex-start;
    padding: 12px;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .topbar-brand span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .segmented-control button {
    min-width: 50px;
  }

  .app-shell {
    width: min(100% - 20px, 1400px);
    padding-top: 12px;
  }

  .auth-art-copy {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .auth-art-copy h1 {
    font-size: 34px;
  }

  .auth-art-copy p {
    font-size: 16px;
  }

  .auth-panel,
  .pending-panel,
  .hero-content,
  .panel,
  .detail-panel {
    padding: 18px;
  }

  .hero-band,
  .hero-content {
    min-height: 360px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-form,
  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .group-switcher {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .calendar-day {
    min-height: 74px;
    grid-template-rows: 22px minmax(36px, 1fr);
    padding: 5px;
  }

  .calendar-event {
    width: 8px;
    height: 8px;
    min-height: 8px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    color: var(--teal);
    text-indent: -999px;
  }

  .calendar-event span,
  .more-chip {
    display: none;
  }

  .metric-card {
    min-height: 96px;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 28px;
  }

  .view-header,
  .section-heading,
  .event-card-top,
  .detail-title-row,
  .member-row {
    align-items: flex-start;
  }

  .member-row {
    flex-direction: column;
  }

  .member-actions {
    justify-content: flex-start;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .check-row {
    min-height: 44px;
    padding-top: 0;
  }
}

@media (max-width: 460px) {
  .auth-actions,
  .pending-actions,
  .hero-actions,
  .topbar-actions,
  .event-actions,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 10px;
  }

  .topbar-actions {
    align-items: flex-end;
  }

  .auth-actions .text-action,
  .pending-actions button,
  .hero-actions button,
  .event-actions button,
  .card-actions button,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
}
