@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --bg: #d6ecf5;
  --card: rgba(255, 255, 255, 0.46);
  --text: #13263b;
  --muted: #4f6577;
  --line: rgba(255, 255, 255, 0.58);
  --line-strong: rgba(255, 255, 255, 0.8);
  --accent: #1577b3;
  --accent-2: #0e5c8a;
  --danger: #b91c1c;
  --planned: #ecfccb;
  --planned-shared: #fff2cc;
  --home-city: rgba(232, 216, 255, 0.7);
  --nearest-city: rgba(196, 226, 255, 0.7);
  --glass-blur: 18px;
  --glass-blur-heavy: 24px;
  --glass-shadow: 0 20px 44px rgba(14, 44, 82, 0.14);
  --glass-shadow-soft: 0 8px 24px rgba(9, 28, 53, 0.09);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-highlight-soft: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --focus-ring: 0 0 0 3px rgba(33, 140, 202, 0.24);
}

.theme-toggle {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  z-index: 1400;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(8, 33, 56, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px) rotate(-6deg);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 26px rgba(8, 33, 56, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 166, 255, 0.42), 0 10px 26px rgba(8, 33, 56, 0.28);
}

.theme-toggle-icon {
  grid-area: 1 / 1;
  font-size: 1.28rem;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.theme-toggle-icon-sun,
[data-theme="dark"] .theme-toggle-icon-moon {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

[data-theme="dark"] .theme-toggle-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.topbar-row {
  padding-left: 48px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 420px at 8% -12%, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(880px 360px at 96% 6%, rgba(120, 204, 255, 0.2) 0%, rgba(120, 204, 255, 0) 65%),
    radial-gradient(760px 320px at 42% 112%, rgba(31, 163, 220, 0.14) 0%, rgba(31, 163, 220, 0) 67%),
    linear-gradient(140deg, #d6ecf5 0%, #cbe4ee 44%, #bfdeea 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

body::before {
  width: min(42vw, 560px);
  height: min(42vw, 560px);
  left: -9vw;
  top: 9vh;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0) 68%);
}

body::after {
  width: min(36vw, 500px);
  height: min(36vw, 500px);
  right: -8vw;
  bottom: 11vh;
  background: radial-gradient(circle, rgba(141, 213, 255, 0.46) 0%, rgba(141, 213, 255, 0) 70%);
}

.site-bg-foxy {
  position: fixed;
  left: 0;
  bottom: 0;
  width: min(58vw, 760px);
  height: min(50vh, 520px);
  background: url("/static/foxy.png") no-repeat left bottom / contain;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  transform: translate(-25%, 25%);
}

.site-bg-star2 {
  position: fixed;
  right: 0;
  top: 0;
  width: min(96vw, 1320px);
  height: min(100vh, 1080px);
  background: url("/static/star2.png") no-repeat right top / contain;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  transform: translateX(20%);
}

.container {
  width: min(1200px, 95%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
    125deg,
    rgba(8, 51, 68, 0.7) 0%,
    rgba(14, 79, 106, 0.58) 50%,
    rgba(15, 107, 142, 0.42) 100%
  );
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(150%);
  box-shadow: 0 10px 28px rgba(6, 28, 45, 0.22);
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  min-height: 60px;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(4, 20, 36, 0.35);
}

.topbar-menu {
  margin-left: auto;
  position: relative;
}

.menu-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--glass-highlight-soft);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 18px rgba(6, 33, 57, 0.2), var(--glass-highlight-soft);
}

.menu-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.header-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(240, 250, 255, 0.88));
  box-shadow: 0 18px 36px rgba(8, 33, 56, 0.24);
  backdrop-filter: blur(var(--glass-blur)) saturate(130%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
  z-index: 1200;
}

.header-menu-panel[hidden] {
  display: none !important;
}

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

.header-menu-link {
  display: block;
  text-decoration: none;
  color: #0f2a3f;
  border: 1px solid rgba(19, 74, 103, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.66);
  font-weight: 600;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.header-menu-link:hover,
.header-menu-link.active {
  transform: translateY(-1px);
  border-color: rgba(21, 119, 179, 0.34);
  background: linear-gradient(145deg, rgba(227, 244, 255, 0.96), rgba(214, 237, 252, 0.9));
  box-shadow: 0 8px 16px rgba(8, 49, 78, 0.12);
}

.header-menu-logout {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(19, 74, 103, 0.18);
}

.header-menu-logout .btn-link {
  width: 100%;
  justify-content: center;
  color: #0f2a3f;
  border-color: rgba(19, 74, 103, 0.26);
  background: rgba(255, 255, 255, 0.76);
}

.header-menu-logout .btn-link:hover {
  border-color: rgba(19, 74, 103, 0.38);
  color: #0b2233;
}

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

.community-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.calendar-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.community-tabs .tab {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--glass-highlight-soft);
}

.calendar-tabs .tab {
  color: #0f172a;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.48);
  font-weight: 600;
  box-shadow: var(--glass-highlight-soft);
}

.community-tabs .tab.active,
.community-tabs .tab:hover {
  color: #ffffff;
  background: linear-gradient(140deg, rgba(21, 119, 179, 0.94), rgba(14, 92, 138, 0.9));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 18px rgba(14, 92, 138, 0.32);
}

.calendar-tabs .tab.active,
.calendar-tabs .tab:hover {
  color: #ffffff !important;
  background: linear-gradient(140deg, rgba(21, 119, 179, 0.94), rgba(14, 92, 138, 0.9)) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 10px 18px rgba(14, 92, 138, 0.3);
}

.cosplan-library-guide {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(234, 242, 255, 0.86));
  box-shadow: 0 12px 36px rgba(80, 100, 180, 0.12), var(--glass-highlight);
}

.cosplan-library-guide-copy {
  max-width: 850px;
}

.cosplan-library-guide-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #6c63ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cosplan-library-guide h2 {
  margin: 0 0 8px;
  color: #1f2e4a;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.cosplan-library-guide p {
  margin: 0;
  color: #62728c;
  line-height: 1.6;
}

.cosplan-library-guide-link {
  flex: 0 0 auto;
  gap: 8px;
  border-color: rgba(108, 99, 255, 0.24);
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(184, 200, 255, 0.28));
  color: #344a6b;
}

@media (max-width: 760px) {
  .cosplan-library-guide {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .cosplan-library-guide-link {
    justify-content: center;
    width: 100%;
  }
}

.festival-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.festival-tabs .tab {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--glass-highlight-soft);
}

.festival-tabs .tab.active,
.festival-tabs .tab:hover {
  color: #ffffff;
  background: linear-gradient(140deg, rgba(21, 119, 179, 0.94), rgba(14, 92, 138, 0.9));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 18px rgba(14, 92, 138, 0.32);
}

.content-platform-settings .calendar-tabs {
  margin-bottom: 14px;
}

.calendar-carousel {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.calendar-carousel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.calendar-carousel-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.calendar-carousel-title {
  justify-content: center;
}

.calendar-carousel-counter {
  margin: 0;
}

.calendar-carousel-nav {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--glass-highlight-soft);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.calendar-carousel-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(6, 33, 57, 0.18), var(--glass-highlight-soft);
}

.calendar-carousel-nav:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.calendar-carousel-panel[hidden] {
  display: none !important;
}

.calendar-carousel-panel {
  min-width: 0;
  max-width: 100%;
}

.calendar-carousel.is-single .calendar-carousel-counter {
  display: none;
}

.content-platform-settings .tab {
  appearance: none;
  font: inherit;
}

.content-platform-panel[hidden] {
  display: none !important;
}

.tab {
  color: rgba(239, 246, 255, 0.98);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--glass-highlight-soft);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.tab.active,
.tab:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(6, 33, 57, 0.2), var(--glass-highlight-soft);
}

main {
  padding: 18px 0 calc(24px + env(safe-area-inset-bottom) + 88px);
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

main h1,
main h2,
main h3,
main h4 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

main h1::after,
main h2::after,
main h3::after,
main h4::after {
  content: "";
  width: min(2rem, 8vh);
  height: min(2rem, 8vh);
  background: url("/static/star.png") no-repeat center / contain;
  flex: 0 0 auto;
  opacity: 0.96;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.error-page-card {
  overflow: hidden;
}

.error-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 380px);
  align-items: center;
  gap: 24px;
}

.error-page-copy h2 {
  margin-bottom: 0.85rem;
}

.error-page-art {
  display: flex;
  justify-content: center;
  align-items: end;
}

.error-page-image {
  display: block;
  width: min(100%, 360px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(10, 40, 64, 0.16));
  transform: translateY(8px);
}

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

.one-col {
  grid-template-columns: 1fr;
}

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

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

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

input,
select,
textarea {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--glass-highlight-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(21, 119, 179, 0.75);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--focus-ring), var(--glass-highlight-soft);
}

textarea {
  resize: vertical;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  backdrop-filter: blur(calc(var(--glass-blur) * 0.66)) saturate(140%);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.66)) saturate(140%);
  box-shadow: var(--glass-highlight-soft), var(--glass-shadow-soft);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(13, 42, 69, 0.16), var(--glass-highlight-soft);
}

.btn-accent {
  background: linear-gradient(145deg, rgba(27, 134, 202, 0.95), rgba(14, 92, 138, 0.9));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 12px 22px rgba(12, 87, 132, 0.34);
}

.btn-accent:hover {
  background: linear-gradient(145deg, rgba(24, 123, 186, 0.96), rgba(13, 85, 127, 0.92));
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-danger {
  border-color: #ef9a9a;
  color: var(--danger);
}

.btn-link {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-small {
  padding: 3px 8px;
  border-radius: 8px;
}

.btn-platform {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.actions-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-field-action {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-field-action input {
  flex: 1 1 auto;
}

.wrap {
  justify-content: flex-end;
}

.wrap-start {
  justify-content: flex-start;
}

.box,
.card,
.auth-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.43), rgba(255, 255, 255, 0.23));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  backdrop-filter: blur(var(--glass-blur)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(145%);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14));
}

.card:hover,
.auth-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 44px rgba(14, 44, 82, 0.16), var(--glass-highlight);
}

.big-form .box {
  margin-bottom: 10px;
}

.compact-box {
  padding: 10px 14px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.card.planned {
  background: linear-gradient(150deg, rgba(236, 252, 203, 0.78), rgba(236, 252, 203, 0.52));
  border-color: rgba(184, 214, 127, 0.85);
}

.card.planned-shared {
  background: linear-gradient(150deg, rgba(255, 242, 204, 0.78), rgba(255, 242, 204, 0.56));
  border-color: rgba(227, 179, 65, 0.9);
}

.card.home-city-highlight {
  background: linear-gradient(150deg, rgba(232, 216, 255, 0.8), rgba(232, 216, 255, 0.52));
  border-color: rgba(196, 181, 253, 0.92);
}

.card.nearest-city-highlight {
  background: linear-gradient(150deg, rgba(196, 226, 255, 0.8), rgba(196, 226, 255, 0.52));
  border-color: rgba(147, 197, 253, 0.96);
}

.card.announcement-global {
  background: linear-gradient(150deg, rgba(225, 128, 165, 0.82), rgba(225, 128, 165, 0.64));
  border-color: rgba(201, 97, 139, 0.95);
}

.card.partner-festival,
.card.partner-festival.planned,
.card.partner-festival.planned-shared,
.card.partner-festival.home-city-highlight,
.card.partner-festival.nearest-city-highlight,
.card.partner-festival.announcement-global {
  background:
    linear-gradient(180deg, rgba(254, 226, 226, 0.82), rgba(255, 255, 255, 0.98) 44%),
    #fff;
  border: 2px solid #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16), var(--glass-highlight);
}

.festival-partner-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.festival-list-card {
  position: relative;
  overflow: hidden;
}

.application-count-card {
  position: relative;
}

.application-count-card > .row-between:first-of-type,
.festival-list-card > .row-between:first-of-type {
  padding-right: 40px;
}

.application-count-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: linear-gradient(145deg, #6c63ff, #7b72ff);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(94, 91, 255, 0.3);
}

.festival-card-icon-wrap {
  width: 60%;
  max-width: 60%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  overflow: hidden;
  min-width: 0;
}

.festival-card-icon {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip-partner {
  background: #dc2626;
  color: #fff;
}

.festival-photo-marker {
  font-size: 1.15rem;
  line-height: 1;
}

.card.frozen-progress {
  background: linear-gradient(155deg, rgba(254, 226, 226, 0.85), rgba(254, 226, 226, 0.6));
  border-color: rgba(239, 68, 68, 0.9);
}

.card.urgent-progress {
  background: linear-gradient(155deg, rgba(255, 247, 237, 0.84), rgba(255, 237, 213, 0.62));
  border-color: rgba(251, 146, 60, 0.9);
}

.card.studio-card-temporary {
  background: linear-gradient(155deg, rgba(255, 236, 179, 0.88), rgba(255, 248, 220, 0.66));
  border-color: rgba(245, 158, 11, 0.92);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18), var(--glass-highlight);
}

.card.studio-card-temporary .studio-preview-hero {
  border-color: rgba(245, 158, 11, 0.5);
}

.box.studio-detail-temporary {
  background: linear-gradient(155deg, rgba(255, 246, 213, 0.84), rgba(255, 255, 255, 0.62));
  border-color: rgba(245, 158, 11, 0.72);
}

.priority-card {
  background: linear-gradient(155deg, rgba(255, 249, 219, 0.88), rgba(255, 236, 153, 0.58));
  border-color: rgba(245, 158, 11, 0.9);
}

.shared-project-card {
  background: linear-gradient(155deg, rgba(238, 242, 247, 0.92), rgba(226, 232, 240, 0.72));
  border-color: rgba(148, 163, 184, 0.9);
}

.chip-shared-project {
  background: rgba(71, 85, 105, 0.14);
  color: #334155;
  border: 1px solid rgba(71, 85, 105, 0.22);
  font-weight: 600;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.28);
}

.card-title-link:hover {
  border-bottom-color: #0b7285;
  color: #0b7285;
}

.meta {
  margin: 6px 0;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.nick-special {
  color: #38bdf8;
  font-weight: 600;
}

.flash {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  backdrop-filter: blur(calc(var(--glass-blur) * 0.5));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.5));
  box-shadow: var(--glass-highlight-soft);
}

.flash-success {
  background: #ecfdf3;
  border-color: #9be5ba;
}

.flash-error {
  background: #fff1f2;
  border-color: #fecdd3;
}

.flash-info {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.flash-warning {
  background: #fffbeb;
  border-color: #facc15;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0;
}

.chips-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pinterest-trends-regions {
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
}

.pinterest-trends-results {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow-y: auto;
  padding: 4px 2px;
}

.pinterest-trend-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}

.pinterest-trend-row:hover {
  border-color: var(--accent, #7c3aed);
}

.pinterest-trend-row input {
  margin-top: 3px;
}

.pinterest-trend-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.master-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.master-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.master-status-inline-track {
  width: 92px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 114, 133, 0.34);
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.master-status-inline-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.92), rgba(6, 182, 212, 0.92));
}

.master-status-inline-text {
  font-size: 13px;
  color: var(--muted);
  min-width: 38px;
  text-align: right;
}

.chip,
.chip-check {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--glass-highlight-soft);
}

.chip-active {
  background: rgba(21, 119, 179, 0.92);
  border-color: rgba(21, 119, 179, 0.92);
  color: #fff;
}

.chip-alert {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.chip-authority {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.chip-priority {
  background: rgba(255, 243, 176, 0.88);
  border-color: rgba(245, 158, 11, 0.55);
  color: #8a4b00;
}

.chip-shared {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.chip-source-cosplay-team {
  background: rgba(177, 134, 255, 0.28);
  border-color: rgba(140, 82, 255, 0.56);
  color: #5f26b1;
}

.chip-studio-temporary {
  background: rgba(255, 237, 180, 0.92);
  border-color: rgba(245, 158, 11, 0.64);
  color: #92400e;
  font-weight: 700;
}

.city-highlight-chip {
  font-weight: 600;
}

.city-highlight-home {
  background: rgba(159, 123, 219, 0.22);
  border-color: rgba(159, 123, 219, 0.52);
  color: #5d3f95;
}

.city-highlight-nearest {
  background: rgba(97, 165, 239, 0.2);
  border-color: rgba(97, 165, 239, 0.56);
  color: #235c95;
}

.marketplace-city-chip {
  background: rgba(255, 243, 176, 0.72);
  border-color: rgba(245, 158, 11, 0.42);
  color: #8a4b00;
  font-weight: 600;
}

.row-between {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.row-between > * {
  min-width: 0;
}

.cosplan-list-view {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cosplan-list-item {
  padding: 10px 12px;
}

.cosplan-list-number {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 2rem;
  line-height: 1.2;
  padding-top: 2px;
}

.cosplan-list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.cosplan-list-main {
  min-width: 0;
}

.cosplan-list-title {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 2px;
}

.cosplan-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.cosplan-list-actions {
  justify-content: flex-end;
}

.cosplayer-card-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.cosplayer-card-avatar {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--glass-shadow), var(--glass-highlight-soft);
}

.marketplace-safety-note summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.card-post-found {
  background: #ecfdf3;
  border-color: #86efac;
}

.card-post-inactive {
  background: #fff1f2;
  border-color: #fda4af;
}

.card-question-resolved {
  background: #ecfdf3;
  border-color: #86efac;
}

.master-price-rows {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.master-price-row {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  padding: 10px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.3fr auto;
  gap: 8px;
  align-items: end;
  box-shadow: var(--glass-highlight-soft);
}

.master-price-row button {
  height: 42px;
}

.master-deadline-rows {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.master-deadline-row {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  box-shadow: var(--glass-highlight-soft);
}

.master-deadline-row button {
  height: 42px;
}

.checklist {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.done {
  text-decoration: line-through;
  color: var(--muted);
}

.inline-form {
  display: inline;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  text-align: left;
  padding: 8px;
  vertical-align: top;
}

.table tr.summary-home-city td {
  background: rgba(159, 123, 219, 0.2);
}

.table tr.summary-nearest-city td {
  background: rgba(97, 165, 239, 0.2);
}

.top-offset {
  margin-top: 22px;
}

.notifications-list {
  margin: 0;
  padding-left: 18px;
}

.pigeon-inbox {
  border-color: #9ec5ff;
  background: linear-gradient(145deg, rgba(234, 244, 255, 0.84), rgba(219, 234, 254, 0.66));
}

.pigeon-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.pigeon-item {
  border: 1px solid rgba(140, 182, 255, 0.95);
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.9), rgba(191, 219, 254, 0.66));
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--glass-highlight-soft);
}

.pigeon-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.pigeon-item p {
  margin: 0 0 6px;
  white-space: pre-wrap;
}

.pigeon-messenger-shell {
  padding: 14px;
  border-color: rgba(182, 194, 255, 0.68);
  background:
    radial-gradient(480px 240px at 12% 0%, rgba(236, 243, 255, 0.68), rgba(236, 243, 255, 0)),
    linear-gradient(155deg, rgba(232, 239, 255, 0.84), rgba(224, 228, 255, 0.7));
}

.pigeon-messenger-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.pigeon-chat-sidebar {
  border: 1px solid rgba(182, 194, 255, 0.9);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--glass-highlight-soft);
}

.pigeon-chat-sidebar h2 {
  margin: 0;
}

.pigeon-chat-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(182, 194, 255, 0.66);
  background: rgba(239, 244, 255, 0.84);
}

.pigeon-new-dialog-btn {
  width: 100%;
}

.pigeon-chat-list {
  display: grid;
  gap: 10px;
}

.pigeon-chat-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(182, 194, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px;
  box-shadow: var(--glass-highlight-soft);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.pigeon-chat-link[hidden] {
  display: none !important;
}

.pigeon-chat-link:hover {
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(243, 246, 255, 0.9);
  transform: translateY(-1px);
}

.pigeon-chat-link.active {
  border-color: rgba(99, 102, 241, 0.42);
  background: linear-gradient(145deg, rgba(237, 241, 255, 0.9), rgba(227, 231, 255, 0.74));
}

.pigeon-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(182, 194, 255, 0.8);
  background: rgba(255, 255, 255, 0.95);
}

.pigeon-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pigeon-chat-summary-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pigeon-chat-summary-main strong {
  line-height: 1.15;
}

.pigeon-chat-summary-main .muted {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.pigeon-chat-summary-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.pigeon-chat-thread {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 74px;
}

.pigeon-chat-phone {
  border: 1px solid rgba(182, 194, 255, 0.82);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(236, 240, 255, 0.82));
  box-shadow: 0 18px 36px rgba(87, 103, 181, 0.16), var(--glass-highlight-soft);
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  height: min(78vh, calc(100vh - 160px));
  min-height: 460px;
  overflow: hidden;
}

.pigeon-phone-head {
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  border: 1px solid rgba(182, 194, 255, 0.7);
  background: rgba(255, 255, 255, 0.88);
  padding: 9px 10px;
}

.pigeon-phone-user {
  min-width: 0;
}

.pigeon-phone-user h2 {
  margin: 0;
  font-size: 1.1rem;
}

.pigeon-phone-user p {
  margin: 2px 0 0;
}

.pigeon-chat-label-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.4);
  background: rgba(233, 239, 255, 0.78);
  color: #3730a3;
  font-weight: 600;
}

.pigeon-chat-label-tag:not(.is-empty) {
  cursor: pointer;
}

.pigeon-chat-label-tag.is-empty {
  border-style: dashed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.pigeon-chat-phone > .top-offset {
  margin-top: 0;
}

.pigeon-chat-label-form {
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.pigeon-chat-label-form[hidden] {
  display: none !important;
}

.pigeon-chat-label-form input {
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(182, 194, 255, 0.76);
  background: rgba(255, 255, 255, 0.92);
}

.pigeon-thread-messages {
  grid-row: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 3px 2px 3px 0;
}

.pigeon-thread-empty {
  grid-row: 3;
}

.pigeon-thread-item {
  display: flex;
}

.pigeon-thread-bubble {
  max-width: min(80%, 520px);
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: var(--glass-highlight-soft);
  border: 1px solid rgba(198, 210, 255, 0.82);
}

.pigeon-thread-bubble .notes-block {
  margin: 0;
}

.pigeon-message-attachments {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.pigeon-message-attachment-image-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(182, 194, 255, 0.76);
  background: rgba(255, 255, 255, 0.86);
}

.pigeon-message-attachment-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.pigeon-message-project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.pigeon-thread-time {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.pigeon-message-meta-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.pigeon-forwarded-author {
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.pigeon-forward-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.pigeon-forward-button:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.pigeon-chat-link-favorites strong {
  color: var(--accent-strong);
}

.pigeon-thread-in {
  justify-content: flex-start;
}

.pigeon-thread-in .pigeon-thread-bubble {
  background: rgba(255, 255, 255, 0.9);
}

.pigeon-thread-out {
  justify-content: flex-end;
}

.pigeon-thread-out .pigeon-thread-bubble {
  background: rgba(231, 237, 255, 0.9);
  border-color: rgba(129, 140, 248, 0.5);
}

.pigeon-thread-empty {
  border: 1px dashed rgba(129, 140, 248, 0.56);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  background: rgba(255, 250, 252, 0.78);
}

.pigeon-thread-empty p {
  margin: 0;
}

.pigeon-thread-empty p + p {
  margin-top: 6px;
}

.pigeon-phone-compose {
  grid-row: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding-top: 8px;
  border-top: 1px solid rgba(182, 194, 255, 0.72);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 8px;
  min-height: 64px;
}

.pigeon-compose-tools {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pigeon-attachment-tools {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pigeon-attachment-tools .actions-inline {
  min-width: 0;
}

.pigeon-attachment-status {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pigeon-project-link-field {
  display: grid;
  gap: 4px;
}

.pigeon-project-link-field select {
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(182, 194, 255, 0.76);
  background: rgba(255, 255, 255, 0.92);
  min-height: 40px;
  padding: 6px 10px;
}

.pigeon-chat-emoji-picker {
  margin: 0;
}

.pigeon-chat-emoji-picker summary {
  cursor: pointer;
  list-style: none;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(182, 194, 255, 0.76);
  background: rgba(238, 244, 255, 0.86);
}

.pigeon-chat-emoji-picker summary::-webkit-details-marker {
  display: none;
}

.pigeon-chat-emoji-picker summary::marker {
  content: "";
}

.pigeon-chat-emoji-picker .emoji-picker-grid {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 2px;
}

.pigeon-phone-compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.pigeon-phone-compose-row > * {
  min-width: 0;
}

.pigeon-phone-compose-row textarea {
  margin: 0;
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 96px;
  padding: 11px 14px;
  line-height: 1.35;
  border-radius: 16px;
  border: 1px solid rgba(182, 194, 255, 0.7);
  background: rgba(255, 255, 255, 0.92);
  resize: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.pigeon-phone-compose-row .btn {
  white-space: nowrap;
  min-height: 48px;
  align-self: stretch;
  padding-inline: 20px;
  max-width: 100%;
}

.pigeon-chat-phone-empty {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(64vh, calc(100vh - 220px));
}

.pigeon-dialog-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(20, 28, 52, 0.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pigeon-dialog-modal[hidden] {
  display: none !important;
}

.pigeon-dialog-card {
  width: min(560px, 96vw);
  border: 1px solid rgba(182, 194, 255, 0.82);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(236, 243, 255, 0.86));
  padding: 16px;
  position: relative;
  box-shadow: 0 22px 42px rgba(45, 56, 112, 0.24), var(--glass-highlight-soft);
}

.pigeon-dialog-card h2 {
  margin: 0;
}

.pigeon-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.pigeon-dialog-card textarea {
  min-height: 92px;
}

.pigeon-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10, 20, 34, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pigeon-popup[hidden] {
  display: none !important;
}

.pigeon-popup-card {
  width: min(520px, 96vw);
  background: linear-gradient(155deg, rgba(240, 247, 255, 0.92), rgba(219, 234, 254, 0.78));
  border: 1px solid rgba(158, 197, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(2, 16, 44, 0.22), var(--glass-highlight);
  padding: 18px 18px 16px;
  position: relative;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.pigeon-popup-card::before {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -20px;
  width: 170px;
  height: 170px;
  background-image: url("/static/foxy.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.14;
  pointer-events: none;
}

.pigeon-popup-card > * {
  position: relative;
  z-index: 1;
}

.pigeon-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.pigeon-popup-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.pigeon-popup-card p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.pigeon-popup-card .notes-block {
  margin-top: 0;
  line-height: 1.45;
}

.pigeon-popup-card .pigeon-message-attachment-image-link {
  width: 60%;
  max-width: 60%;
}

.pigeon-popup .actions-inline {
  gap: 8px;
  flex-wrap: wrap;
}

.pigeon-popup .actions-inline .btn,
.pigeon-popup .actions-inline a {
  flex: 1 1 auto;
}

.notifications-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.notification-content {
  flex: 1 1 auto;
  min-width: 0;
}

.notification-unread {
  font-weight: 600;
}

.rehearsal-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rehearsal-item {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  box-shadow: var(--glass-highlight-soft);
}

.rehearsal-status {
  margin-left: 6px;
}

.rehearsal-status-proposed {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.rehearsal-status-approved,
.rehearsal-status-accepted {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}

.rehearsal-status-declined {
  background: #fff1f2;
  border-color: #fda4af;
  color: #9f1239;
}

.rehearsal-stats-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.rehearsal-stats-table {
  min-width: 640px;
}

.rehearsal-stats-table th,
.rehearsal-stats-table td {
  white-space: nowrap;
}

.rehearsal-stats-row-alert td {
  background: rgba(254, 202, 202, 0.34);
}

.rehearsal-stats-participant {
  min-width: 220px;
  white-space: normal;
}

.rehearsal-stats-participant-mark {
  margin-top: 6px;
}

.rehearsal-stats-column-date {
  display: block;
  font-weight: 600;
}

.rehearsal-stats-column-time {
  display: block;
  font-size: 12px;
}

.rehearsal-stats-cell-accepted {
  background: rgba(220, 252, 231, 0.76);
  color: #166534;
}

.rehearsal-stats-cell-declined {
  background: rgba(255, 228, 230, 0.86);
  color: #9f1239;
}

.rehearsal-stats-cell-no_response {
  background: rgba(241, 245, 249, 0.82);
  color: #475569;
}

.btn-accept {
  border-color: #86efac;
  color: #166534;
}

.btn-decline {
  border-color: #fda4af;
  color: #9f1239;
}

.card-disclaimer {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #fda4af;
  background: linear-gradient(145deg, rgba(255, 241, 242, 0.88), rgba(254, 205, 211, 0.58));
  border-radius: 12px;
  color: #9f1239;
}

.card-disclaimer ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.card-disclaimer li {
  margin-bottom: 4px;
}

.estimated-total {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.estimated-total strong {
  font-size: 24px;
}

.notes-block {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.notes-block a,
.news-body a,
.comment-card a,
.notification-content a {
  color: var(--accent-2);
  font-weight: 600;
}

.notes-block a:hover,
.news-body a:hover,
.comment-card a:hover,
.notification-content a:hover {
  color: var(--accent);
}

.inline-pixel-emoji {
  width: 1.2em;
  height: 1.2em;
  vertical-align: text-bottom;
  image-rendering: pixelated;
}

.small-note {
  font-size: 12px;
}

.notes-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.notes-list li {
  margin-bottom: 6px;
}

.related-progress-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.related-progress-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--glass-highlight-soft);
}

.related-progress-link {
  min-width: 0;
}

.budget-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.budget-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  padding: 8px 10px;
  box-shadow: var(--glass-highlight-soft);
}

.budget-month-total {
  margin-top: 10px;
  font-weight: 600;
}

.budget-over-limit {
  color: #b91c1c;
}

.content-rubric-chip {
  font-weight: 600;
}

.comments-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.avatar-vh10 {
  width: 10vh;
  height: 10vh;
  min-width: 48px;
  min-height: 48px;
  max-width: 108px;
  max-height: 108px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--glass-highlight-soft);
}

.comment-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment-body-wrap {
  flex: 1;
  min-width: 0;
}

.comment-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--glass-highlight-soft);
}

.comment-card.comment-client {
  border-color: #93c5fd;
  background: #eaf4ff;
}

.comment-meta {
  color: var(--muted);
  font-size: 12px;
}

.comment-images {
  margin-top: 8px;
}

.comment-replies {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.comment-reply {
  border-left: 3px solid #bfdbfe;
  background: rgba(248, 250, 252, 0.8);
  padding: 8px;
  border-radius: 8px;
}

.comment-form {
  margin-top: 8px;
}

.comment-form-layout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment-form-fields {
  flex: 1;
  min-width: 0;
}

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

.avatar-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-user-label {
  font-weight: 600;
}

.profile-avatar-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.profile-avatar-current-wrap {
  min-width: 120px;
}

.profile-avatar-current {
  border-radius: 14px;
}

.profile-avatar-form {
  flex: 1;
  min-width: 280px;
  max-width: 640px;
}

.profile-avatar-crop-wrap {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--glass-highlight-soft);
  max-width: 360px;
}

.profile-avatar-crop-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}

.profile-avatar-preview-wrap canvas {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--glass-highlight-soft);
  display: block;
}

.profile-secret-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-secret-wrap input {
  flex: 1;
}

.profile-chatbot-banner {
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.8), rgba(224, 242, 254, 0.62));
  box-shadow: var(--glass-highlight-soft);
}

.profile-chatbot-banner p {
  margin: 0;
}

.profile-chatbot-banner p + p {
  margin-top: 6px;
}

.user-alias-link {
  color: inherit;
  text-decoration: none;
}

.user-card-hero {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.user-card-avatar {
  border-radius: 14px;
}

.user-profile-slider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile-slider-frame {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--glass-highlight-soft);
  overflow: hidden;
}

.user-profile-slider-frame img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: rgba(226, 232, 240, 0.4);
}

.user-profile-slider-nav {
  min-width: 42px;
  min-height: 42px;
  font-size: 24px;
  line-height: 1;
  padding: 0;
}

.user-profile-slider-dot.active {
  border-color: var(--accent);
  color: var(--accent-ink);
}

@media (max-width: 760px) {
  .avatar-vh10 {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }

  .comment-row,
  .comment-form-layout,
  .avatar-user-item {
    gap: 8px;
  }

  .user-profile-slider {
    gap: 6px;
  }

  .user-profile-slider-nav {
    min-width: 36px;
    min-height: 36px;
    font-size: 20px;
  }
}

.news-list {
  display: grid;
  gap: 10px;
}

.home-citadel-promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.8fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(232, 241, 255, 0.68));
  box-shadow: 0 16px 42px rgba(52, 74, 132, 0.14), var(--glass-highlight);
  backdrop-filter: blur(var(--glass-blur)) saturate(130%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
}

.home-citadel-promo[hidden] {
  display: none !important;
}

.home-citadel-promo::before {
  content: "✦";
  position: absolute;
  top: -34px;
  left: 22%;
  color: rgba(108, 99, 255, 0.12);
  font-size: 118px;
  pointer-events: none;
}

.home-citadel-promo-copy {
  position: relative;
  z-index: 1;
}

.home-citadel-promo-copy h2 {
  margin: 12px 0 8px;
  color: #1f2e4a;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.home-citadel-promo-copy p {
  margin: 0;
  color: #62728c;
  line-height: 1.55;
}

.home-citadel-promo-trigger {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(94, 91, 255, 0.24);
  border-radius: 20px;
  background: #101010;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(22, 34, 66, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-citadel-promo-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 91, 255, 0.5);
  box-shadow: 0 18px 34px rgba(22, 34, 66, 0.26);
}

.home-citadel-promo-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 18px 34px rgba(22, 34, 66, 0.26);
}

.home-citadel-promo-trigger img {
  display: block;
  width: 100%;
  aspect-ratio: 1.83 / 1;
  object-fit: cover;
}

.home-citadel-promo-hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(110deg, #5e5bff, #7b72ff);
  font: 700 0.88rem/1.25 "Manrope", sans-serif;
  text-align: left;
}

body.modal-open {
  overflow: hidden;
}

.home-promo-dialog {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 31, 57, 0.58);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.home-promo-dialog[hidden] {
  display: none !important;
}

.home-promo-dialog-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.96));
  box-shadow: 0 28px 80px rgba(12, 24, 53, 0.34), var(--glass-highlight);
}

.home-promo-dialog-scroll {
  max-height: min(86vh, 820px);
  overflow-y: auto;
  padding: 30px clamp(20px, 5vw, 44px) 36px;
  overscroll-behavior: contain;
}

.home-promo-dialog-scroll h2 {
  max-width: calc(100% - 42px);
  margin: 14px 0 22px;
  color: #1f2e4a;
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
  line-height: 1.18;
}

.home-promo-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(31, 46, 74, 0.16);
}

.home-promo-dialog-body {
  color: #344a6b;
  font-size: 1rem;
  line-height: 1.68;
}

.home-promo-dialog-body p {
  margin: 0 0 16px;
}

.home-promo-dialog-body a:not(.btn) {
  color: #4f4ce0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.home-promo-event-details {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(94, 91, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(234, 242, 255, 0.94), rgba(232, 224, 255, 0.72));
}

.home-promo-event-details p {
  margin: 10px 0 0;
}

@media (max-width: 760px) {
  .home-citadel-promo {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
  }

  .home-citadel-promo-copy {
    padding: 4px 4px 0;
  }

  .home-citadel-promo-trigger {
    border-radius: 16px;
  }

  .home-promo-dialog {
    align-items: end;
    padding: 10px;
  }

  .home-promo-dialog-card,
  .home-promo-dialog-scroll {
    max-height: 92vh;
  }

  .home-promo-dialog-card {
    border-radius: 24px 24px 18px 18px;
  }

  .home-promo-dialog-scroll {
    padding: 26px 20px 30px;
  }
}

.news-item {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--glass-highlight-soft);
}

.news-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.news-body {
  white-space: pre-wrap;
  line-height: 1.45;
}

.news-edit summary {
  cursor: pointer;
  font-weight: 600;
}

.home-leaderboard-wrap {
  overflow-x: auto;
}

.home-leaderboard-table {
  min-width: 680px;
}

.home-leaderboard-table th,
.home-leaderboard-table td {
  white-space: nowrap;
}

.home-leaderboard-rank {
  width: 52px;
  min-width: 52px;
  font-weight: 700;
}

.home-leaderboard-user {
  min-width: 210px;
  white-space: normal;
}

.home-leaderboard-total {
  font-weight: 700;
}

.home-favorites {
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(234,242,255,.9));
  border-color: rgba(108, 99, 255, .2);
}

.home-favorites-settings { position: relative; }
.home-favorites-settings > summary { list-style: none; cursor: pointer; }
.home-favorites-settings > summary::-webkit-details-marker { display: none; }
.home-favorites-settings form {
  position: absolute;
  z-index: 40;
  right: 0;
  width: min(420px, 86vw);
  padding: 18px;
  border: 1px solid rgba(108, 99, 255, .18);
  border-radius: 20px;
  background: rgba(248, 251, 255, .98);
  box-shadow: 0 18px 48px rgba(80, 100, 180, .18);
}

.home-favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  justify-items: center;
}

.home-favorite-tile {
  width: min(100%, 25vh);
  max-height: 25vh;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #1f2e4a;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(215,228,255,.88));
  box-shadow: 0 12px 40px rgba(80,100,180,.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-favorite-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 46px rgba(80,100,180,.2); }
.home-favorite-icon { font-size: 2rem; color: #6c63ff; }
.home-favorite-tile strong { font-size: 1.08rem; overflow-wrap: anywhere; }

.event-application-filters .two-col {
  align-items: start;
}

.event-application-status-filter {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.event-application-status-filter legend {
  padding: 0;
  font-weight: 700;
}

.event-application-status-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.event-application-status-options .inline-check {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(184, 200, 255, 0.72);
  border-radius: 999px;
  background: rgba(234, 242, 255, 0.82);
  color: #344a6b;
}

.event-application-filter-actions {
  grid-column: 1 / -1;
}

.festival-broadcast-menu > summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}

.festival-broadcast-menu > summary::-webkit-details-marker {
  display: none;
}

.festival-broadcast-form {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(184, 200, 255, 0.62);
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.72);
}

.home-week-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.home-week-list li { display: grid; grid-template-columns: 76px minmax(120px, auto) 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.62); border: 1px solid rgba(184,200,255,.55); }
.home-week-list time { color: #344a6b; font-weight: 700; }

.home-collapse-button { margin-left: auto; float: right; }
.home-section-collapsed > :not(h2):not(.row-between):not(.home-collapse-button) { display: none !important; }
.home-section-collapsed > .row-between > :not(h2):not(.home-collapse-button) { display: none !important; }

@media (max-width: 700px) {
  .home-favorites-grid { grid-template-columns: 1fr; }
  .home-favorite-tile { width: min(100%, 25vh); }
  .home-week-list li { grid-template-columns: 1fr; }
}

.calendar-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.calendar-same-date {
  border-left: 4px solid #c62828;
  background: rgba(255, 241, 241, 0.8);
  padding-left: 0.6rem;
  border-radius: 8px;
}

.calendar-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--glass-highlight-soft);
}

.calendar-date {
  font-weight: 700;
  min-width: 92px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-chip.festival {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #6b21a8;
}

.calendar-chip.photoset {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.calendar-chip.rehearsal {
  background: #ffedd5;
  border-color: #fdba74;
  color: #9a3412;
}

.calendar-chip.personal {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.calendar-chip.master-deadline {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.calendar-chip.master-fitting {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.calendar-chip.multi {
  background: #fff7d6;
  border-color: #facc15;
  color: #854d0e;
}

.calendar-chip.work-shift {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #334155;
}

.calendar-chip.work-shift-half {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.calendar-grid-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 8px;
  min-width: 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.calendar-grid {
  width: 100%;
  min-width: 520px;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-radius: 14px;
  overflow: hidden;
}

.calendar-grid th {
  font-weight: 600;
  color: var(--muted);
  padding: 6px;
  text-align: center;
  width: 14.2857%;
  background: rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.54);
}

.calendar-grid-cell {
  border: 1px solid rgba(255, 255, 255, 0.58);
  height: 92px;
  text-align: right;
  vertical-align: top;
  padding: 4px 6px;
  background: rgba(248, 250, 252, 0.74);
  position: relative;
  width: 14.2857%;
}

.calendar-grid-cell .day-number {
  font-size: 12px;
  font-weight: 700;
}

.calendar-grid-cell.is-empty {
  background: rgba(241, 245, 249, 0.62);
}

.calendar-day-festival {
  background: #f3e8ff;
}

.calendar-day-photoset {
  background: #dcfce7;
}

.calendar-day-rehearsal {
  background: #ffedd5;
}

.calendar-day-personal {
  background: #dbeafe;
}

.calendar-day-master-deadline {
  background: #fee2e2;
}

.calendar-day-master-fitting {
  background: #fef3c7;
}

.calendar-day-multi {
  background: repeating-linear-gradient(
    135deg,
    #fff7d6 0px,
    #fff7d6 12px,
    #ffe7a3 12px,
    #ffe7a3 24px
  );
  box-shadow: inset 0 0 0 1px #facc15;
}

.calendar-day-multi .day-number {
  color: #854d0e;
}

.calendar-day-work-shift {
  position: relative;
  overflow: hidden;
}

.calendar-day-work-shift::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.35) 0px,
    rgba(100, 116, 139, 0.35) 2px,
    rgba(100, 116, 139, 0) 2px,
    rgba(100, 116, 139, 0) 8px
  );
  pointer-events: none;
}

.calendar-day-shift-only {
  background: #e5e7eb;
}

.calendar-day-half-split {
  position: relative;
  overflow: hidden;
}

.calendar-split-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
}

.calendar-split-half {
  width: 50%;
  height: 100%;
}

.calendar-split-half.split-shift {
  background: repeating-linear-gradient(
    135deg,
    rgba(100, 116, 139, 0.42) 0px,
    rgba(100, 116, 139, 0.42) 2px,
    rgba(100, 116, 139, 0) 2px,
    rgba(100, 116, 139, 0) 8px
  ),
  #e5e7eb;
}

.calendar-split-half.split-event {
  background: #f8fafc;
}

.calendar-split-half.split-event.event-festival {
  background: #f3e8ff;
}

.calendar-split-half.split-event.event-photoset {
  background: #dcfce7;
}

.calendar-split-half.split-event.event-rehearsal {
  background: #ffedd5;
}

.calendar-split-half.split-event.event-personal {
  background: #dbeafe;
}

.calendar-split-half.split-event.event-multi {
  background: repeating-linear-gradient(
    135deg,
    #fff7d6 0px,
    #fff7d6 12px,
    #ffe7a3 12px,
    #ffe7a3 24px
  );
}

.calendar-grid-cell .day-number {
  position: relative;
  z-index: 1;
}

.calendar-cell-items {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  margin-top: 4px;
  text-align: left;
}

.calendar-cell-item {
  font-size: 10px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.76);
}

.calendar-cell-item-external {
  font-style: italic;
  opacity: 0.62;
}

.calendar-cell-more {
  font-size: 10px;
  line-height: 1.1;
  color: #475569;
  text-align: left;
  padding-left: 2px;
}

.content-cell-items .calendar-cell-entry {
  display: grid;
  gap: 1px;
}

.calendar-cell-social {
  font-size: 9px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
  opacity: 0.88;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 5px;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.reference-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.gallery-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 4px;
}

.gallery-upload-row input[type="file"] {
  max-width: 100%;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 8px;
}

.emoji-picker-btn {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--glass-highlight-soft);
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.emoji-picker-btn:hover {
  border-color: rgba(21, 119, 179, 0.48);
  transform: translateY(-1px);
}

.emoji-picker-btn img {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
}

.studio-preview-hero {
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(248, 250, 252, 0.72);
  box-shadow: var(--glass-highlight-soft), var(--glass-shadow-soft);
  margin-bottom: 10px;
  line-height: 0;
}

.studio-preview-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-expand {
  width: 100%;
}

.card-expand summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--glass-highlight-soft);
  list-style: none;
}

.card-expand summary::-webkit-details-marker {
  display: none;
}

.card-expand[open] summary {
  margin-bottom: 8px;
}

.telegram-custom-emoji-button-img,
.telegram-custom-emoji-inline-img {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.telegram-custom-emoji-button-img {
  pointer-events: none;
}

.telegram-custom-emoji-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  min-height: 12px;
  line-height: 1;
}

.telegram-editor-custom-emoji-preview {
  min-height: 40px;
  line-height: 1.55;
  word-break: break-word;
}

.telegram-editor-note {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.telegram-editor-note-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(217, 119, 6, 0.22);
}

.telegram-symbol-picker summary {
  cursor: pointer;
  list-style: none;
  width: fit-content;
}

.telegram-symbol-picker summary::-webkit-details-marker {
  display: none;
}

.telegram-symbol-picker summary::marker {
  content: "";
}

.telegram-symbol-picker-toggle::after {
  content: " ▾";
  font-size: 11px;
}

.telegram-symbol-picker[open] .telegram-symbol-picker-toggle::after {
  content: " ▴";
}

.telegram-editor-custom-emoji-preview a {
  color: var(--accent);
  text-decoration: underline;
}

.telegram-editor-custom-emoji-preview code,
.telegram-editor-custom-emoji-preview pre {
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 8px;
}

.telegram-editor-custom-emoji-preview code {
  padding: 1px 5px;
}

.telegram-editor-custom-emoji-preview pre {
  padding: 10px 12px;
  overflow: auto;
}

.telegram-preview-blockquote {
  margin: 10px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.04);
  border-radius: 0 10px 10px 0;
}

.telegram-preview-spoiler {
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.18);
  color: transparent;
  text-shadow: none;
  padding: 0 4px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.telegram-preview-spoiler.is-revealed {
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
}

.telegram-preview-spoiler:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.reference-tile {
  width: 200px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(248, 250, 252, 0.72);
  display: inline-block;
  box-shadow: var(--glass-highlight-soft), var(--glass-shadow-soft);
}

.reference-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-photo-trigger {
  padding: 0;
  cursor: zoom-in;
  line-height: 0;
}

.fullscreen-gallery-open {
  overflow: hidden;
}

.fullscreen-gallery {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(5, 12, 22, 0.9);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 16px;
}

.fullscreen-gallery[hidden] {
  display: none;
}

.fullscreen-gallery-content {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.fullscreen-gallery-content img {
  max-width: min(94vw, 1300px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: rgba(8, 15, 26, 0.92);
}

.fullscreen-gallery-nav,
.fullscreen-gallery-close {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(14, 24, 40, 0.82);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}

.fullscreen-gallery-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.fullscreen-gallery-close-inline {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(14, 24, 40, 0.82);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.fullscreen-gallery-close-inline:hover {
  background: rgba(28, 40, 60, 0.92);
}

.map-embed-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--glass-shadow-soft);
}

.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.article-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}

.article-content {
  line-height: 1.58;
  word-break: break-word;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin: 10px 0 8px;
}

.article-content p {
  margin: 0 0 10px;
}

.article-content ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.article-content code {
  background: rgba(241, 245, 249, 0.92);
  border: 1px solid rgba(217, 226, 236, 0.92);
  border-radius: 6px;
  padding: 1px 4px;
}

.article-inline-image {
  display: block;
  margin: 10px 0;
}

.article-inline-image img {
  max-width: min(100%, 640px);
  width: auto;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  display: block;
  box-shadow: var(--glass-shadow-soft);
}

.article-video-wrap {
  margin: 10px 0;
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
}

.article-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--glass-shadow-soft);
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 34, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 16px;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.welcome-modal {
  width: min(720px, 100%);
  max-height: 85vh;
  overflow: auto;
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  padding: 16px;
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
}

.welcome-modal::before {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 220px;
  height: 220px;
  background-image: url("/static/foxy.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.16;
  pointer-events: none;
}

.welcome-modal > * {
  position: relative;
  z-index: 1;
}

.welcome-modal h2 {
  margin-bottom: 10px;
  padding-right: 34px;
}

.welcome-modal p {
  margin: 0 0 10px;
  line-height: 1.45;
}

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

.welcome-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.calendar-spoiler {
  width: 100%;
}

.calendar-spoiler summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 700;
  list-style: none;
}

.calendar-spoiler summary::-webkit-details-marker {
  display: none;
}

.calendar-spoiler summary::after {
  content: "▾";
  font-size: 0.95rem;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.calendar-spoiler[open] summary::after {
  transform: rotate(180deg);
}

.calendar-spoiler-body {
  margin-top: 14px;
}

#content_ai_request_output,
#content_ai_response_output {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.content-photo-editor-canvas-wrap {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 10px;
  overflow: auto;
  box-shadow: var(--glass-highlight-soft);
}

.content-photo-editor-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  margin: 0 auto;
  border-radius: 10px;
  background: #ffffff;
}

body.landing-page {
  background: #000;
  color: #fff;
}

body.landing-page::before,
body.landing-page::after,
body.landing-page .site-bg-foxy,
body.landing-page .site-bg-star2,
body.landing-page .topbar,
body.landing-page .site-footnote {
  display: none;
}

body.landing-page main.container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.landing-cinematic {
  position: relative;
  min-height: 96vh;
  min-height: 96svh;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.landing-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-video-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(93, 173, 226, 0.18), rgba(93, 173, 226, 0) 34%),
    radial-gradient(circle at 54% 84%, rgba(86, 103, 181, 0.22), rgba(10, 64, 96, 0.78) 72%),
    linear-gradient(180deg, rgba(7, 45, 72, 0.82) 0%, rgba(20, 94, 142, 0.42) 34%, rgba(23, 50, 111, 0.88) 100%);
}

.liquid-glass {
  position: relative;
  overflow: hidden;
  border: none;
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.landing-nav {
  position: relative;
  z-index: 20;
  padding: 24px;
}

.landing-nav-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  border-radius: 999px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.landing-brand,
.landing-nav-links,
.landing-auth-actions,
.landing-socials {
  display: flex;
  align-items: center;
}

.landing-brand {
  color: #fff;
  text-decoration: none;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
}

.landing-icon,
.landing-brand svg,
.landing-socials svg,
.landing-float-icon svg,
.landing-orbit-core svg,
.landing-carousel-btn svg,
.landing-audience-btn svg,
.landing-start button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-nav-links {
  gap: 30px;
}

.landing-nav-links a,
.landing-signup {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.16s ease;
}

.landing-nav-links a:hover,
.landing-signup:hover {
  color: #fff;
}

.landing-auth-actions {
  gap: 16px;
}

.landing-login {
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 9px 24px;
  font-size: 0.92rem;
  font-weight: 700;
}

.landing-hero {
  position: relative;
  z-index: 10;
  flex: 1;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 38px 0 92px;
}

.landing-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.landing-kicker {
  border-radius: 999px;
  margin: 0 0 18px;
  padding: 9px 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
}

.landing-copy h1 {
  max-width: 760px;
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(3.35rem, 7vw, 6.9rem);
  line-height: 0.88;
  font-weight: 400;
  letter-spacing: 0;
}

.landing-start {
  width: min(100%, 580px);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-start input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
}

.landing-start input::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.landing-start button {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #050505;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.landing-start button:hover {
  transform: translateX(2px);
  background: #f2f7ff;
}

.landing-start button svg {
  width: 20px;
  height: 20px;
}

.landing-subtitle {
  width: min(100%, 620px);
  margin: 16px 0 20px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.7;
}

.landing-manifesto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 28px;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.16s ease, transform 0.16s ease;
}

.landing-manifesto:hover,
.landing-socials a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.landing-orbit-stage {
  position: relative;
  justify-self: center;
  width: min(42vw, 490px);
  min-width: 320px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.landing-orbit {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  animation: landingOrbit 13s linear infinite;
}

.orbit-two {
  animation-duration: 17s;
  animation-direction: reverse;
}

.orbit-three {
  animation-duration: 20s;
}

.orbit-four {
  animation-duration: 11s;
  animation-direction: reverse;
}

.orbit-five {
  animation-duration: 23s;
}

.orbit-six {
  animation-duration: 15s;
  animation-direction: reverse;
}

.landing-float-card,
.landing-float-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  animation: landingCounterOrbit 13s linear infinite;
}

.landing-float-card {
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 800;
}

.landing-float-icon {
  width: 54px;
  height: 54px;
}

.orbit-two .landing-float-card {
  animation-duration: 17s;
  animation-direction: reverse;
}

.orbit-three .landing-float-card {
  animation-duration: 20s;
}

.orbit-four .landing-float-icon {
  animation-duration: 11s;
  animation-direction: reverse;
}

.orbit-five .landing-float-card {
  animation-duration: 23s;
}

.orbit-six .landing-float-card {
  animation-duration: 15s;
  animation-direction: reverse;
}

.float-deadlines {
  top: 7%;
  left: 36%;
}

.float-festivals {
  right: -3%;
  top: 48%;
}

.float-photos {
  left: 4%;
  bottom: 12%;
}

.orbit-four .landing-float-icon {
  right: 11%;
  top: 14%;
}

.float-events {
  left: 14%;
  top: 22%;
}

.float-storyboard {
  right: 14%;
  bottom: 10%;
}

.landing-orbit-core {
  position: relative;
  z-index: 2;
  width: min(42%, 176px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.landing-orbit-core svg {
  width: 46%;
  height: 46%;
  opacity: 0.72;
}

.landing-socials {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  justify-content: center;
  gap: 16px;
}

.landing-socials a {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  place-items: center;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.landing-socials a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.landing-socials svg {
  width: 20px;
  height: 20px;
}

.landing-feature-band {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  background:
    radial-gradient(circle at 16% 0%, rgba(59, 177, 218, 0.22), rgba(0, 0, 0, 0) 34%),
    linear-gradient(180deg, #05070b 0%, #08121a 100%);
  color: #fff;
  padding: 96px max(24px, calc((100vw - 1160px) / 2)) 76px;
}

.landing-feature-head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.78fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.landing-feature-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  font-weight: 800;
}

.landing-feature-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.landing-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 16px;
  align-items: center;
}

.landing-features {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 4px 2px 18px;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.landing-features::-webkit-scrollbar {
  height: 8px;
}

.landing-features::-webkit-scrollbar-track {
  background: transparent;
}

.landing-features::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.landing-feature {
  flex: 0 0 min(76vw, 420px);
  min-height: 270px;
  scroll-snap-align: center;
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-feature h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.42rem;
}

.landing-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.landing-carousel-btn {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.landing-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.landing-carousel-btn svg {
  width: 24px;
  height: 24px;
}

.landing-premium-band,
.landing-audience-band,
.landing-author-band {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(circle at 86% 12%, rgba(123, 114, 255, 0.24), rgba(0, 0, 0, 0) 30%),
    linear-gradient(180deg, #08121a 0%, #0c1624 100%);
  color: #fff;
  padding: 84px max(24px, calc((100vw - 1160px) / 2)) 76px;
}

.landing-audience-band {
  background:
    radial-gradient(circle at 12% 8%, rgba(59, 177, 218, 0.2), rgba(0, 0, 0, 0) 34%),
    radial-gradient(circle at 84% 72%, rgba(123, 114, 255, 0.2), rgba(0, 0, 0, 0) 30%),
    linear-gradient(180deg, #0c1624 0%, #0b1320 100%);
}

.landing-author-band {
  background:
    radial-gradient(circle at 18% 6%, rgba(184, 200, 255, 0.2), rgba(0, 0, 0, 0) 34%),
    linear-gradient(180deg, #0c1624 0%, #05070b 100%);
}

.landing-premium-head,
.landing-audience-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.landing-section-kicker {
  margin: 0 0 10px;
  color: rgba(215, 228, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-premium-head h2,
.landing-audience-head h2,
.landing-author-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  font-weight: 800;
}

.landing-premium-head p,
.landing-audience-head p,
.landing-author-card p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.landing-audience-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 16px;
  align-items: center;
}

.landing-audience-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 4px 2px 18px;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.landing-audience-track::-webkit-scrollbar {
  height: 8px;
}

.landing-audience-track::-webkit-scrollbar-track {
  background: transparent;
}

.landing-audience-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.landing-audience-card {
  flex: 0 0 min(76vw, 420px);
  min-height: 300px;
  scroll-snap-align: center;
  border-radius: 8px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(184, 200, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 18px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-audience-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(234, 242, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-audience-card h3 {
  margin: 18px 0 14px;
  color: #fff;
  font-size: 1.38rem;
  line-height: 1.15;
}

.landing-audience-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.landing-audience-btn {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.landing-audience-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.landing-premium-table-wrap {
  border-radius: 8px;
  padding: 10px;
  overflow-x: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.landing-premium-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #fff;
}

.landing-premium-table th,
.landing-premium-table td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-premium-table thead th {
  color: rgba(234, 242, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-premium-table tbody th {
  width: 28%;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.landing-premium-table td {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.landing-premium-table tbody td:last-child {
  color: rgba(234, 242, 255, 0.92);
  font-weight: 700;
}

.landing-premium-table tbody tr:last-child th,
.landing-premium-table tbody tr:last-child td {
  border-bottom: 0;
}

.landing-author-card {
  width: min(100%, 900px);
  margin: 0 auto;
  border-radius: 8px;
  padding: clamp(28px, 5vw, 46px);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.landing-author-card a {
  color: #d7e4ff;
  font-weight: 800;
  text-decoration: none;
}

.landing-author-card a:hover {
  color: #fff;
  text-decoration: underline;
}

@keyframes landingOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes landingCounterOrbit {
  to {
    transform: rotate(-360deg);
  }
}

.register-policy-note {
  margin: 0;
  font-size: 13px;
}

.register-progress-note {
  margin: 0;
}

.policy-spoiler {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.72);
}

.policy-spoiler summary {
  cursor: pointer;
  font-weight: 600;
}

.policy-spoiler p {
  margin: 10px 0 0;
}

.policy-page {
  line-height: 1.48;
}

.policy-page h1 {
  margin-bottom: 6px;
}

.policy-page h2 {
  margin: 18px 0 8px;
}

.policy-page p,
.policy-page li {
  margin: 0 0 8px;
}

.site-footnote {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(5%, calc(env(safe-area-inset-bottom) + 8px));
  margin: 0;
  padding: 6px 12px;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.15;
  color: var(--muted);
  white-space: normal;
  z-index: 900;
  width: fit-content;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  box-shadow: var(--glass-shadow-soft);
  max-width: min(94vw, 780px);
}

.site-footnote a,
.site-footnote a:visited,
.site-footnote a:hover,
.site-footnote a:active,
.site-footnote a:focus {
  text-decoration: none;
  font-weight: 700;
  color: inherit;
}

.admin-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.admin-kpi-card {
  min-height: 128px;
}

.admin-kpi-value {
  margin: 2px 0 6px;
  font-size: 1.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.admin-alert-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.admin-alert-card h3 {
  margin-bottom: 6px;
}

.admin-alert-danger {
  border-color: rgba(239, 68, 68, 0.44);
  background: linear-gradient(150deg, rgba(255, 236, 236, 0.8), rgba(255, 236, 236, 0.54));
}

.admin-alert-warn {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(150deg, rgba(255, 245, 221, 0.82), rgba(255, 245, 221, 0.54));
}

.admin-alert-info {
  border-color: rgba(59, 130, 246, 0.42);
  background: linear-gradient(150deg, rgba(225, 240, 255, 0.8), rgba(225, 240, 255, 0.5));
}

.admin-notifications-table {
  table-layout: fixed;
}

.admin-notifications-table th,
.admin-notifications-table td {
  word-break: break-word;
}

.admin-notifications-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  align-items: end;
}

.admin-notifications-check-col {
  width: 42px;
  text-align: center;
}

.admin-notifications-check {
  width: 16px;
  height: 16px;
}

.admin-notification-message {
  white-space: normal;
  line-height: 1.4;
}

.admin-broadcast-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(234, 242, 255, 0.72));
  box-shadow: 0 14px 40px rgba(80, 100, 180, 0.12), var(--glass-highlight-soft);
}

.admin-broadcast-card::after {
  content: "✦";
  position: absolute;
  top: -46px;
  right: 24%;
  color: rgba(108, 99, 255, 0.1);
  font-size: 138px;
  pointer-events: none;
}

.admin-broadcast-card > * {
  position: relative;
  z-index: 1;
}

.admin-broadcast-card .admin-section-head h2 {
  margin-top: 10px;
}

.admin-broadcast-reach {
  display: grid;
  justify-items: end;
  min-width: 116px;
}

.admin-broadcast-reach-value {
  color: #5e5bff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.admin-broadcast-form {
  display: grid;
  gap: 18px;
}

.admin-broadcast-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

.admin-broadcast-message-field {
  display: grid;
  gap: 6px;
}

.admin-broadcast-message-field textarea {
  min-height: 164px;
  resize: vertical;
}

.admin-broadcast-message-field .meta {
  justify-self: end;
}

.admin-broadcast-confirmation {
  display: grid;
  gap: 9px;
  padding: 14px 16px;
  border: 1px solid rgba(94, 91, 255, 0.16);
  border-radius: 18px;
  background: rgba(234, 242, 255, 0.66);
}

.admin-broadcast-confirmation .checkbox-row {
  align-items: flex-start;
}

@media (max-width: 760px) {
  .admin-broadcast-reach {
    justify-items: start;
  }

  .admin-broadcast-filters {
    grid-template-columns: 1fr;
  }
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-section-head h2 {
  margin: 0;
}

.admin-funnel-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px;
}

.admin-funnel-item {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.3));
}

.admin-funnel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.admin-progress-track {
  margin-top: 8px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.admin-progress-track-compact {
  margin-top: 0;
  margin-bottom: 4px;
  height: 8px;
}

.admin-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(21, 119, 179, 0.95), rgba(53, 174, 255, 0.85));
}

.admin-progress-fill-muted {
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.88), rgba(96, 165, 250, 0.8));
}

.master-board-toolbar {
  display: grid;
  gap: 10px;
}

.master-board-toolbar-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.master-board-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.master-board-inline-label input[type="range"] {
  width: 132px;
}

.master-board-inline-label input[type="color"] {
  width: 44px;
  height: 34px;
  padding: 2px;
}

#master-board-status[data-state="dirty"] {
  color: #9a6700;
}

#master-board-status[data-state="saving"] {
  color: #1d4ed8;
}

#master-board-status[data-state="error"] {
  color: #b42318;
}

.master-board-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(241, 247, 255, 0.72));
  background-size: 24px 24px, 24px 24px, cover;
  min-height: 500px;
}

.master-board-canvas-wrap {
  width: 100%;
  min-height: 500px;
  touch-action: none;
}

.master-board-drop-hint {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.master-board-canvas-wrap canvas {
  display: block;
  width: 100%;
  touch-action: none;
}

.master-board-hint {
  margin-top: 8px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar {
    background: rgba(8, 51, 68, 0.9);
  }

  .box,
  .auth-card,
  .landing-feature,
  .welcome-modal,
  .pigeon-popup-card,
  .site-footnote {
    background: rgba(255, 255, 255, 0.78);
  }

  .card {
    background: rgba(255, 255, 255, 0.68);
  }

  body.landing-page .landing-feature {
    background: rgba(255, 255, 255, 0.08);
  }

  body.landing-page .landing-audience-card {
    background: rgba(255, 255, 255, 0.08);
  }

  body.landing-page .landing-premium-table-wrap,
  body.landing-page .landing-author-card {
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-orbit,
  .landing-float-card,
  .landing-float-icon {
    animation: none;
  }
}

@media (max-width: 900px) {
  main {
    padding-bottom: calc(24px + env(safe-area-inset-bottom) + 116px);
  }

  .site-bg-foxy {
    width: min(62vw, 420px);
    height: min(40vh, 300px);
  }

  .site-bg-star2 {
    width: min(98vw, 760px);
    height: min(72vh, 620px);
  }

  body.landing-page main {
    padding-bottom: 0;
  }

  .landing-nav {
    padding: 16px;
  }

  .landing-nav-inner {
    gap: 14px;
    padding: 10px 14px;
  }

  .landing-nav-links {
    display: none;
  }

  .landing-brand span {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .landing-auth-actions {
    gap: 10px;
  }

  .landing-signup {
    display: none;
  }

  .landing-login {
    padding: 8px 18px;
  }

  .landing-hero {
    width: min(100% - 32px, 620px);
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 0 104px;
    transform: translateY(0);
  }

  .landing-copy {
    align-items: center;
    text-align: center;
  }

  .landing-copy h1 {
    font-size: clamp(2.7rem, 10vw, 4rem);
    line-height: 0.9;
    max-width: 560px;
    margin-bottom: 18px;
  }

  .landing-subtitle {
    padding: 0;
  }

  .landing-orbit-stage {
    order: -1;
    width: min(60vw, 300px);
    min-width: 210px;
  }

  .landing-float-card {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .landing-float-icon {
    width: 44px;
    height: 44px;
  }

  .landing-socials {
    bottom: 24px;
  }

  .landing-feature-band {
    padding: 74px 18px 64px;
  }

  .landing-feature-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing-carousel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing-carousel-btn,
  .landing-audience-btn {
    display: none;
  }

  .landing-features {
    margin-inline: -6px;
    padding-inline: 6px;
  }

  .landing-feature {
    flex-basis: min(84vw, 360px);
    min-height: 310px;
  }

  .landing-premium-band,
  .landing-audience-band,
  .landing-author-band {
    padding: 64px 18px 58px;
  }

  .landing-premium-head,
  .landing-audience-head {
    margin-bottom: 20px;
  }

  .landing-audience-carousel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing-audience-track {
    margin-inline: -6px;
    padding-inline: 6px;
  }

  .landing-audience-card {
    flex-basis: min(84vw, 360px);
    min-height: 330px;
    padding: 22px;
  }

  .landing-premium-table-wrap {
    margin-inline: -2px;
    padding: 6px;
    overflow-x: visible;
  }

  .landing-premium-table {
    min-width: 0;
  }

  .landing-premium-table thead {
    display: none;
  }

  .landing-premium-table,
  .landing-premium-table tbody,
  .landing-premium-table tr,
  .landing-premium-table th,
  .landing-premium-table td {
    display: block;
    width: 100%;
  }

  .landing-premium-table tr {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .landing-premium-table tr:last-child {
    border-bottom: 0;
  }

  .landing-premium-table tbody th {
    padding: 0 0 12px;
    border-bottom: 0;
    font-size: 1.02rem;
  }

  .landing-premium-table td {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .landing-premium-table td::before {
    content: attr(data-label);
    color: rgba(234, 242, 255, 0.62);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .landing-premium-table td:last-child {
    border-bottom: 0;
  }

  .landing-author-card {
    padding: 26px 18px;
    text-align: left;
  }

  .two-col,
  .three-col,
  .four-col {
    grid-template-columns: 1fr;
  }

  .error-page-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .error-page-art {
    order: -1;
  }

  .error-page-copy .actions-inline {
    justify-content: center;
  }

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

  .fullscreen-gallery {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .fullscreen-gallery-nav {
    position: static;
  }

  .pigeon-messenger-grid {
    grid-template-columns: 1fr;
  }

  .pigeon-chat-thread {
    position: static;
    top: auto;
  }

  .pigeon-chat-sidebar {
    border-radius: 16px;
  }

  .pigeon-chat-link {
    grid-template-columns: auto 1fr;
  }

  .pigeon-chat-summary-meta {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
    justify-content: flex-start;
    gap: 8px;
  }

  .pigeon-chat-phone {
    border-radius: 20px;
    padding: 10px;
    height: min(72vh, calc(100vh - 210px));
    min-height: 400px;
  }

  .pigeon-thread-bubble {
    max-width: 90%;
  }

  .pigeon-chat-phone-empty {
    height: min(56vh, calc(100vh - 260px));
    min-height: 280px;
  }

  .pigeon-chat-label-form {
    grid-template-columns: 1fr;
  }

  .pigeon-chat-label-form .btn {
    width: 100%;
  }

  .pigeon-phone-compose {
    display: flex;
  }

  .pigeon-phone-compose-row {
    grid-template-columns: 1fr;
  }

  .pigeon-phone-compose-row .btn {
    width: 100%;
    max-width: 100%;
  }

  .pigeon-popup {
    inset: auto 10px calc(env(safe-area-inset-bottom) + 10px) 10px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
  }

  .pigeon-popup-card {
    width: min(100%, 620px);
    pointer-events: auto;
    padding: 14px 14px 12px;
  }

  .pigeon-popup-card::before {
    display: none;
  }

  .pigeon-popup .actions-inline .btn,
  .pigeon-popup .actions-inline a {
    width: auto;
    flex: 1 1 calc(50% - 4px);
    min-width: 132px;
  }

  .cosplan-list-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cosplan-list-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-left: calc(2rem + 10px);
  }

  .related-progress-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions-inline {
    align-items: stretch;
  }

  .actions-inline .btn,
  .actions-inline button {
    width: 100%;
    justify-content: center;
  }

  .topbar-row {
    min-height: auto;
    padding: 8px 0;
    align-items: center;
    flex-direction: row;
  }

  .header-menu-panel {
    width: min(340px, calc(100vw - 16px));
  }

  .master-price-row {
    grid-template-columns: 1fr;
  }

  .master-deadline-row {
    grid-template-columns: 1fr;
  }

  .calendar-carousel-head {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .calendar-grid-wrap {
    overflow-x: hidden;
  }

  .calendar-grid {
    min-width: 0;
  }

  .calendar-grid th {
    padding: 4px 2px;
    font-size: clamp(12px, 3.4vw, 14px);
  }

  .calendar-grid-cell {
    height: 76px;
    padding: 3px 4px;
  }

  .calendar-cell-items {
    margin-top: 2px;
    gap: 1px;
  }

  .calendar-cell-item {
    font-size: 9px;
    padding: 1px 3px;
  }

  .calendar-cell-social {
    font-size: 8px;
    padding: 1px 3px;
  }

  .site-footnote {
    bottom: calc(env(safe-area-inset-bottom) + 10px);
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .admin-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .master-board-inline-label {
    width: 100%;
    justify-content: space-between;
  }

  .master-board-inline-label input[type="range"] {
    flex: 1 1 auto;
    max-width: 170px;
  }

  .master-board-shell,
  .master-board-canvas-wrap {
    min-height: 420px;
  }
}

/* Dark theme: graphite glass surfaces with a calm lavender accent. */
html[data-theme="dark"] {
  --bg: #1c1b22;
  --card: rgba(51, 49, 60, 0.82);
  --text: #f1eef8;
  --muted: #b7b1c2;
  --line: rgba(211, 202, 229, 0.14);
  --line-strong: rgba(211, 202, 229, 0.24);
  --accent: #b7a0ff;
  --accent-2: #9678f4;
  --danger: #812c35;
  --planned: rgba(87, 98, 66, 0.72);
  --planned-shared: rgba(104, 88, 57, 0.72);
  --home-city: rgba(120, 92, 171, 0.42);
  --nearest-city: rgba(77, 88, 118, 0.62);
  --glass-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  --glass-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.24);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --glass-highlight-soft: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --focus-ring: 0 0 0 3px rgba(183, 160, 255, 0.3);
}

html[data-theme="dark"] body:not(.landing-page) {
  background:
    radial-gradient(900px 460px at 8% -8%, rgba(183, 160, 255, 0.14), transparent 64%),
    radial-gradient(760px 440px at 96% 10%, rgba(125, 111, 165, 0.12), transparent 66%),
    linear-gradient(145deg, #1b1a20 0%, #24222b 48%, #2d2b34 100%);
}

html[data-theme="dark"] body:not(.landing-page)::before {
  background: radial-gradient(circle, rgba(183, 160, 255, 0.12), transparent 68%);
}

html[data-theme="dark"] body:not(.landing-page)::after {
  background: radial-gradient(circle, rgba(140, 132, 157, 0.16), transparent 70%);
}

html[data-theme="dark"] .site-bg-foxy,
html[data-theme="dark"] .site-bg-star2 {
  opacity: 0.12;
  filter: grayscale(0.3) hue-rotate(32deg);
}

html[data-theme="dark"] .topbar {
  background: linear-gradient(125deg, rgba(31, 29, 38, 0.94), rgba(47, 43, 57, 0.9), rgba(72, 62, 91, 0.84));
  border-bottom-color: rgba(211, 202, 229, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(211, 202, 229, 0.32);
  background: rgba(51, 48, 61, 0.88);
  color: #d8ccff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(92, 78, 120, 0.9);
}

html[data-theme="dark"] :is(.box, .card, .auth-card, .welcome-modal, .pigeon-popup-card) {
  background: linear-gradient(155deg, rgba(57, 54, 66, 0.9), rgba(39, 37, 46, 0.82));
  border-color: var(--line-strong);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
}

html[data-theme="dark"] :is(.pigeon-inbox, .pigeon-item, .pigeon-chat-sidebar, .pigeon-chat-phone, .pigeon-dialog-card) {
  color: var(--text);
  background: linear-gradient(155deg, rgba(57, 54, 66, 0.96), rgba(39, 37, 46, 0.94));
  border-color: var(--line-strong);
  box-shadow: var(--glass-shadow-soft), var(--glass-highlight-soft);
}

html[data-theme="dark"] .pigeon-chat-link {
  color: var(--text);
  background: rgba(52, 49, 61, 0.9);
  border-color: rgba(211, 202, 229, 0.2);
}

html[data-theme="dark"] .pigeon-chat-link:hover {
  background: rgba(76, 69, 92, 0.94);
  border-color: rgba(183, 160, 255, 0.42);
}

html[data-theme="dark"] .pigeon-chat-link.active {
  background: linear-gradient(145deg, rgba(104, 88, 140, 0.8), rgba(67, 59, 84, 0.92));
  border-color: rgba(183, 160, 255, 0.56);
}

html[data-theme="dark"] :is(.pigeon-phone-head, .pigeon-phone-compose) {
  color: var(--text);
  background: rgba(45, 42, 52, 0.94);
  border-color: rgba(211, 202, 229, 0.2);
}

html[data-theme="dark"] .pigeon-chat-label-tag {
  color: #e2d9ff;
  background: rgba(91, 75, 128, 0.72);
  border-color: rgba(183, 160, 255, 0.42);
}

html[data-theme="dark"] .pigeon-chat-label-tag.is-empty {
  color: var(--muted);
  background: rgba(47, 44, 55, 0.86);
}

html[data-theme="dark"] .pigeon-thread-in .pigeon-thread-bubble {
  color: var(--text);
  background: rgba(58, 54, 67, 0.96);
  border-color: rgba(211, 202, 229, 0.2);
}

html[data-theme="dark"] .pigeon-thread-out .pigeon-thread-bubble {
  color: #f5f1ff;
  background: linear-gradient(145deg, rgba(91, 76, 127, 0.94), rgba(68, 59, 91, 0.94));
  border-color: rgba(183, 160, 255, 0.48);
}

html[data-theme="dark"] :is(.pigeon-thread-empty, .pigeon-message-attachment-image-link, .pigeon-chat-emoji-picker summary) {
  color: var(--text);
  background: rgba(48, 45, 56, 0.92);
  border-color: rgba(183, 160, 255, 0.3);
}

html[data-theme="dark"] .pigeon-chat-avatar {
  background: rgba(42, 39, 49, 0.96);
  border-color: rgba(183, 160, 255, 0.36);
}

html[data-theme="dark"] :is(
  .rehearsal-item,
  .comment-card,
  .comment-reply,
  .master-price-row,
  .master-deadline-row,
  .related-progress-item,
  .budget-list li,
  .news-item,
  .calendar-list li,
  .avatar-vh10,
  .user-profile-slider-frame,
  .profile-avatar-crop-wrap,
  .profile-avatar-preview-wrap canvas,
  .emoji-picker-btn,
  .card-expand summary,
  .telegram-editor-note
) {
  color: var(--text);
  background: rgba(45, 42, 52, 0.94);
  border-color: rgba(211, 202, 229, 0.2);
  box-shadow: var(--glass-highlight-soft);
}

html[data-theme="dark"] .comment-card.comment-client {
  color: var(--text);
  background: rgba(64, 58, 79, 0.96);
  border-color: rgba(183, 160, 255, 0.34);
}

html[data-theme="dark"] .comment-reply {
  border-left-color: rgba(183, 160, 255, 0.56);
}

html[data-theme="dark"] :is(.card, .auth-card):hover {
  border-color: rgba(183, 160, 255, 0.42);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.4), var(--glass-highlight);
}

html[data-theme="dark"] :is(input, select, textarea) {
  background: rgba(31, 29, 37, 0.78);
  color: var(--text);
  border-color: var(--line-strong);
}

html[data-theme="dark"] :is(input, select, textarea)::placeholder {
  color: #8f8999;
}

html[data-theme="dark"] :is(input, select, textarea):focus {
  background: rgba(38, 35, 46, 0.92);
  border-color: rgba(183, 160, 255, 0.72);
}

html[data-theme="dark"] .btn:not(.btn-accent):not(.btn-danger) {
  background: rgba(66, 62, 76, 0.76);
  border-color: rgba(211, 202, 229, 0.22);
  color: var(--text);
}

html[data-theme="dark"] .btn:not(.btn-accent):not(.btn-danger):hover {
  background: rgba(89, 81, 108, 0.84);
  border-color: rgba(183, 160, 255, 0.46);
}

html[data-theme="dark"] .btn-danger {
  color: #ffe9ed;
  background: #812c35;
  border-color: #a54d58;
  box-shadow: 0 8px 20px rgba(44, 12, 18, 0.28);
}

html[data-theme="dark"] .btn-danger:hover {
  color: #fff4f6;
  background: #963944;
  border-color: #bd6470;
}

html[data-theme="dark"] :is(.btn-accent, .community-tabs .tab.active, .community-tabs .tab:hover, .calendar-tabs .tab.active, .calendar-tabs .tab:hover, .festival-tabs .tab.active, .festival-tabs .tab:hover) {
  background: linear-gradient(140deg, #b7a0ff, #8768e8) !important;
  border-color: rgba(224, 216, 255, 0.34) !important;
  color: #211d2a !important;
  box-shadow: 0 12px 26px rgba(116, 86, 203, 0.32);
}

html[data-theme="dark"] :is(.header-menu-panel, .cosplan-library-guide) {
  background: linear-gradient(155deg, rgba(62, 58, 72, 0.97), rgba(36, 34, 42, 0.96));
  border-color: var(--line-strong);
  color: var(--text);
}

html[data-theme="dark"] :is(.header-menu-link, .header-menu-logout .btn-link) {
  background: rgba(76, 71, 88, 0.66);
  border-color: rgba(211, 202, 229, 0.18);
  color: var(--text);
}

html[data-theme="dark"] :is(.header-menu-link:hover, .header-menu-link.active) {
  background: linear-gradient(145deg, rgba(129, 106, 190, 0.62), rgba(83, 70, 112, 0.78));
  border-color: rgba(183, 160, 255, 0.42);
}

html[data-theme="dark"] :is(.cosplan-library-guide h2, .welcome-modal h2) {
  color: var(--text);
}

html[data-theme="dark"] :is(.cosplan-library-guide p, .welcome-modal p) {
  color: var(--muted);
}

html[data-theme="dark"] .cosplan-library-guide-kicker {
  color: #c3b1ff;
}

html[data-theme="dark"] :is(.community-tabs .tab, .calendar-tabs .tab, .festival-tabs .tab) {
  background: rgba(61, 58, 70, 0.78);
  border-color: var(--line-strong);
  color: var(--text);
}

html[data-theme="dark"] table:not(.landing-premium-table) {
  color: var(--text);
}

html[data-theme="dark"] table:not(.landing-premium-table) :is(th, td) {
  border-color: rgba(211, 202, 229, 0.15);
}

html[data-theme="dark"] :is(.meta, .muted, label, legend, summary, .notes-block) {
  color: #d3cedd;
}

html[data-theme="dark"] .home-favorite-tile {
  color: #f8f5ff !important;
  background: linear-gradient(155deg, rgba(81, 73, 101, 0.96), rgba(47, 44, 57, 0.96));
  border-color: rgba(218, 207, 244, 0.34);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3), var(--glass-highlight-soft);
}

html[data-theme="dark"] .home-favorite-tile:hover {
  border-color: rgba(183, 160, 255, 0.62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), var(--glass-highlight);
}

html[data-theme="dark"] .home-favorite-icon {
  color: #d0c2ff;
}

html[data-theme="dark"] .application-count-badge {
  border-color: #e8e0ff;
  background: linear-gradient(145deg, #c1afff, #8d70ec);
  color: #211d2a;
  box-shadow: 0 8px 22px rgba(116, 86, 203, 0.45);
}

html[data-theme="dark"] .festival-nomination-options {
  background: rgba(31, 29, 37, 0.78);
  border-color: rgba(211, 202, 229, 0.24);
}

html[data-theme="dark"] .festival-nomination-options .inline-check,
html[data-theme="dark"] .event-application-status-options .inline-check {
  color: #f5f1ff;
  background: rgba(83, 74, 105, 0.92);
  border-color: rgba(211, 202, 229, 0.34);
}

html[data-theme="dark"] .festival-nomination-options .inline-check:hover,
html[data-theme="dark"] .event-application-status-options .inline-check:hover {
  background: rgba(107, 91, 142, 0.96);
  border-color: rgba(183, 160, 255, 0.62);
}

html[data-theme="dark"] .festival-broadcast-form {
  background: rgba(31, 29, 37, 0.72);
  border-color: rgba(211, 202, 229, 0.24);
}

html[data-theme="dark"] :is(.chip, .chip-check) {
  background: rgba(92, 82, 119, 0.86);
  border-color: rgba(213, 203, 239, 0.34);
  color: #f8f5ff;
}

html[data-theme="dark"] :is(.chip-active, .chip-shared, .chip-source-cosplay-team) {
  background: #59489a;
  border-color: #aa96ef;
  color: #fff;
}

html[data-theme="dark"] :is(.chip-alert, .festival-partner-banner) {
  background: #633344;
  border-color: #d98ba7;
  color: #ffeaf1;
}

html[data-theme="dark"] :is(.card.planned, .card.planned-shared, .card.home-city-highlight, .card.nearest-city-highlight, .card.announcement-global, .card.partner-festival, .shared-project-card, .ticket-segment, .application-section, .reviewer-picker-list) {
  color: var(--text);
  background: linear-gradient(155deg, rgba(68, 63, 79, 0.96), rgba(42, 39, 50, 0.94));
  border-color: rgba(204, 190, 239, 0.32);
}

html[data-theme="dark"] :is(.card.planned, .card.planned-shared, .card.home-city-highlight, .card.nearest-city-highlight, .card.announcement-global, .card.partner-festival, .shared-project-card) :is(h2, h3, h4, strong, p, .meta, .muted, .card-title-link) {
  color: inherit;
}

html[data-theme="dark"] .reviewer-picker-option:hover {
  background: rgba(183, 160, 255, 0.16);
}

html[data-theme="dark"] :is(.flash-info, .flash-success, .flash-warning) {
  background: rgba(67, 61, 80, 0.9);
  color: var(--text);
  border-color: rgba(183, 160, 255, 0.3);
}

html[data-theme="dark"] a:not(.brand):not(.landing-brand):not(.landing-login):not(.landing-signup):not(.landing-manifesto):not(.btn) {
  color: #c8b8ff;
}

html[data-theme="dark"] body.landing-page .landing-video-vignette {
  background:
    radial-gradient(circle at 50% 42%, rgba(183, 160, 255, 0.2), transparent 34%),
    radial-gradient(circle at 54% 84%, rgba(111, 91, 168, 0.28), rgba(30, 28, 36, 0.82) 72%),
    linear-gradient(180deg, rgba(26, 24, 31, 0.84) 0%, rgba(61, 53, 78, 0.5) 34%, rgba(30, 27, 39, 0.92) 100%);
}

@media (max-width: 760px) {
  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .topbar-row {
    padding-left: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle-icon {
    transition: none;
  }
}

@media (max-width: 900px) {
  .master-board-toolbar-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .master-board-toolbar-row .btn,
  .master-board-toolbar-row button {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .master-board-toolbar-row .master-board-inline-label {
    width: auto;
    justify-content: flex-start;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .master-board-toolbar-row .master-board-inline-label input[type="range"] {
    max-width: 120px;
  }

  .master-board-shell,
  .master-board-canvas-wrap {
    min-height: 320px;
  }
}
