:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #697386;
  --line: #e7e9ee;
  --paper: #fff8ef;
  --panel: #ffffff;
  --brand: #0a3b78;
  --brand-deep: #072f61;
  --accent: #f47b20;
  --pink: #d92285;
  --soft: #fff1df;
  --shadow: 0 18px 48px rgba(3, 24, 57, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #092f63;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(244, 123, 32, 0.9) 0 22%, transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(217, 34, 133, 0.45), transparent 23rem),
    linear-gradient(180deg, #0c4183 0%, #061f46 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 0 18px calc(92px + env(safe-area-inset-bottom));
}

.screen {
  display: none;
  animation: rise 180ms ease-out;
}

.screen.active {
  display: block;
}

.hero {
  display: grid;
  margin: 0 -18px 18px;
  color: #fff;
  background: var(--brand-deep);
}

.event-poster {
  width: 100%;
  display: block;
  aspect-ratio: 1440 / 360;
  object-fit: cover;
  object-position: center;
}

.hero-message {
  position: relative;
  padding: 28px 22px 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 34, 133, 0.34), transparent 11rem),
    linear-gradient(145deg, var(--brand), var(--brand-deep));
}

.hero-logo {
  display: block;
  width: 112px;
  max-width: 32vw;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 14px 28px rgba(3, 24, 57, 0.26);
}

.kicker {
  margin: 0 0 10px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.78;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 12vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.hero p {
  max-width: 28rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}

.panel,
.member-card,
.slide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.event-strip {
  margin: -4px 0 14px;
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(103deg, var(--accent) 0 54%, var(--pink) 54% 100%);
  box-shadow: 0 14px 28px rgba(244, 123, 32, 0.24);
}

.event-strip strong,
.event-strip span {
  display: block;
}

.event-strip strong {
  font-size: 1rem;
  text-transform: uppercase;
}

.event-strip span {
  margin-top: 3px;
  font-weight: 800;
}

.panel {
  padding: 18px;
  margin-bottom: 14px;
}

.intro-panel {
  border-color: rgba(244, 123, 32, 0.25);
  background: var(--soft);
}

.values-grid {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.values-grid strong {
  display: block;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  font-size: 0.92rem;
  text-transform: uppercase;
}

.values-grid span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  line-height: 1.35;
  text-transform: none;
  font-weight: 650;
}

.intro-focus {
  margin-bottom: 0;
  font-weight: 700;
}

.date-chip {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  box-shadow: 0 8px 18px rgba(217, 34, 133, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d8dce4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 123, 32, 0.16);
}

.contact-form button,
.download {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.form-note {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.84rem;
}

.section-header {
  padding: 34px 0 18px;
}

.section-logo {
  width: 96px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 12px 26px rgba(3, 24, 57, 0.12);
}

.section-header h1 {
  color: var(--ink);
}

.section-header .kicker {
  color: var(--pink);
}

.search {
  margin-top: 6px;
}

.member-filters {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.filter-label {
  gap: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.category-select {
  width: 100%;
  border: 1px solid #d8dce4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 38px 13px 12px;
  outline: none;
  font-weight: 800;
}

.category-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 123, 32, 0.16);
}

.member-list {
  display: grid;
  gap: 12px;
}

.member-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 13px;
  padding: 14px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--pink));
  font-weight: 900;
}

.member-card h2 {
  margin-bottom: 3px;
}

.member-card p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-actions a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  padding: 8px 11px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
}

.empty-members {
  margin: 12px 0 0;
  border: 1px dashed rgba(10, 59, 120, 0.28);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  font-weight: 700;
}

.download {
  width: 100%;
  margin-top: 8px;
  background: var(--accent);
}

.conference-slider {
  display: grid;
  gap: 14px;
}

.conference-window {
  position: relative;
  height: min(76svh, 640px);
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(10, 59, 120, 0.96), rgba(7, 47, 97, 0.98)),
    url("assets/afterwork-rbo-2026.jpg?v=20260608-1") center/cover;
  box-shadow: 0 18px 34px rgba(7, 47, 97, 0.22);
  touch-action: pan-y;
}

.conference-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(244, 123, 32, 0.92) 0 8px, transparent 8px 100%),
    radial-gradient(circle at 96% 12%, rgba(217, 34, 133, 0.65), transparent 9rem);
  pointer-events: none;
}

.mini-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 22px;
  color: #fff;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mini-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.mini-slide h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 2rem;
  line-height: 0.98;
}

.mini-slide p,
.mini-slide li {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
}

.mini-slide ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.mini-slide.hygiene-source,
.mini-slide.body-source,
.mini-slide.stress-source,
.mini-slide.link-source {
  justify-content: flex-start;
  padding: 24px 20px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(10, 59, 120, 0.96), rgba(7, 47, 97, 0.98)),
    url("assets/afterwork-rbo-2026.jpg?v=20260608-1") center/cover;
}

.mini-slide.hygiene-source h2,
.mini-slide.body-source h2,
.mini-slide.stress-source h2,
.mini-slide.link-source h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(1.65rem, 7.2vw, 2.2rem);
  line-height: 1.02;
  text-wrap: balance;
}

.mini-slide.stress-source h2 {
  display: block;
  margin-right: 0;
}

.stress-subtitle {
  display: block;
  margin: -8px 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 800;
}

.stress-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 8px;
}

.stress-block h3 {
  margin: 0 0 12px;
  color: #ff9bd1;
  font-size: 1.15rem;
  line-height: 1.2;
}

.stress-block img {
  width: min(100%, 255px);
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 12px 24px rgba(3, 24, 57, 0.18);
}

.stress-text p {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 900;
}

.stress-text ul {
  gap: 10px;
  padding-left: 22px;
}

.stress-text li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 750;
}

.practice-line {
  margin: 6px 0 0;
  color: #ff9bd1;
  font-size: 1.14rem;
  line-height: 1.25;
  font-weight: 950;
  text-align: center;
}

.source-slide-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 18px;
  min-height: 0;
}

.source-slide-layout img {
  width: min(100%, 255px);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 14px 26px rgba(3, 24, 57, 0.22);
}

.source-visual {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.source-visual p {
  margin: 0;
  color: #f0a6d0;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 900;
}

.source-visual strong {
  color: #ff9bd1;
}

.source-visual img {
  width: min(100%, 180px);
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.source-slide-layout ul {
  gap: 12px;
  padding-left: 22px;
}

.source-slide-layout li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.32;
  font-weight: 750;
}

.body-source .source-slide-layout {
  grid-template-columns: 1fr;
  gap: 18px;
}

.body-source .source-slide-layout li {
  font-size: 1rem;
  line-height: 1.3;
}

.rbo-invite {
  margin: 18px 0 0;
  color: #ff9bd1;
  font-size: 1.08rem;
  line-height: 1.32;
  font-weight: 950;
}

.slide-number {
  position: absolute;
  top: 18px;
  left: 18px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 4.2rem;
  line-height: 1;
  font-weight: 950;
}

.slide-theme {
  width: fit-content;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  background: var(--pink);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.slide-tip {
  margin: 12px 0 0;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.slider-controls {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-deep);
  font-size: 2rem;
  line-height: 1;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(10, 59, 120, 0.24);
}

.slider-dot.active {
  width: 24px;
  background: var(--pink);
}

.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(23, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.site-credit {
  margin: 26px 0 0;
  padding: 16px 0 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.site-credit a {
  color: var(--brand);
  text-decoration: none;
}

.admin-shell {
  padding-bottom: 28px;
}

.admin-header {
  padding: 34px 0 10px;
}

.admin-header h1 {
  color: var(--ink);
}

.admin-header .kicker {
  color: var(--pink);
}

.stats-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card {
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.admin-row span {
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
}

.admin-row strong {
  color: var(--pink);
  text-align: right;
  font-size: 0.92rem;
}

.danger-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #b42318;
  font-weight: 900;
}

.tab {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 900;
}

.tab.active {
  color: #fff;
  background: var(--brand-deep);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  body {
    padding: 28px 0;
  }

  .app-shell {
    min-height: calc(100svh - 56px);
    border-radius: 24px;
    overflow: hidden;
  }

  .tabbar {
    bottom: 28px;
    border-radius: 0 0 24px 24px;
  }
}

@media (max-width: 380px) {
  .conference-window {
    height: 78svh;
    min-height: 540px;
  }

  .source-slide-layout img {
    max-width: 225px;
    margin: 0 auto;
  }

  .source-visual img {
    max-width: 160px;
  }

  .source-slide-layout li,
  .body-source .source-slide-layout li {
    font-size: 0.96rem;
  }

  .stress-block img {
    max-width: 225px;
    margin: 0 auto;
    display: block;
  }

  .stress-text p {
    margin-top: 0;
  }
}
