:root {
  color-scheme: light;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --text-title: 750 clamp(1.9rem, 7.8vw, 2.35rem) / 1.04 var(--font-display);
  --text-section: 720 0.78rem / 1.15 var(--font-sans);
  --text-body: 450 0.94rem / 1.48 var(--font-sans);
  --text-caption: 520 0.76rem / 1.35 var(--font-sans);

  --page: #f2f5f8;
  --page-deep: #e8edf2;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-muted: #e9eef3;
  --surface-pressed: #e3e9ef;
  --text-primary: #142029;
  --text-secondary: #667681;
  --text-tertiary: #94a1aa;
  --separator: rgba(26, 48, 61, 0.1);
  --separator-strong: rgba(26, 48, 61, 0.16);
  --accent: #1677d2;
  --accent-soft: #e2f0fc;
  --green: #2da56a;
  --green-soft: #e2f4e9;
  --orange: #db8124;
  --orange-soft: #fff0dc;
  --red: #dc4b45;
  --red-soft: #fde7e5;
  --purple: #7967c7;
  --purple-soft: #ece8fb;
  --hero: #315f72;
  --hero-deep: #193944;
  --hero-text: #ffffff;
  --glass-chrome: rgba(248, 251, 253, 0.54);
  --glass-chrome-strong: rgba(248, 251, 253, 0.68);
  --glass-sheet: rgba(244, 248, 251, 0.7);
  --glass-card: rgba(255, 255, 255, 0.64);
  --glass-control: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.64);
  --glass-fallback: rgba(248, 251, 253, 0.9);
  --glass-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.025) 48%, rgba(255, 255, 255, 0.07));
  --glass-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");

  --color-night: var(--page);
  --color-forest: var(--surface);
  --color-slate: var(--surface-muted);
  --color-white: var(--text-primary);
  --color-mist: var(--text-secondary);
  --color-lime: var(--green);
  --color-sky: var(--accent);
  --color-amber: var(--orange);
  --color-rose: var(--red);
  --outline-soft: var(--separator);
  --outline-strong: var(--separator-strong);
  --surface-1: var(--surface);
  --surface-2: var(--surface-muted);
  --surface-3: var(--surface-pressed);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --touch-target: 44px;
  --content-width: 620px;
  --page-gutter: clamp(14px, 4.2vw, 22px);
  --safe-top: calc(max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px), var(--app-safe-top, 0px), var(--app-content-safe-top, 0px)) + var(--app-control-bar-top, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px), var(--tg-content-safe-area-inset-right, 0px), var(--app-safe-right, 0px), var(--app-content-safe-right, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px), var(--app-safe-bottom, 0px), var(--app-content-safe-bottom, 0px));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px), var(--tg-content-safe-area-inset-left, 0px), var(--app-safe-left, 0px), var(--app-content-safe-left, 0px));
  --app-height: var(--tg-viewport-stable-height, 100vh);
  --shadow-card: 0 1px 2px rgba(20, 32, 41, 0.04), 0 10px 30px rgba(44, 68, 82, 0.07);
  --shadow-raised: 0 18px 55px rgba(20, 32, 41, 0.18);
  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f1418;
  --page-deep: #0a0f12;
  --surface: #171d22;
  --surface-raised: #1d252b;
  --surface-muted: #252e35;
  --surface-pressed: #2d3840;
  --text-primary: #f5f8fa;
  --text-secondary: #a8b4bc;
  --text-tertiary: #73818a;
  --separator: rgba(223, 235, 242, 0.1);
  --separator-strong: rgba(223, 235, 242, 0.17);
  --accent: #58aaf0;
  --accent-soft: #183d59;
  --green: #52c78a;
  --green-soft: #173d2d;
  --orange: #f0a04d;
  --orange-soft: #4b321a;
  --red: #f07972;
  --red-soft: #4d2726;
  --purple: #a596e8;
  --purple-soft: #332e51;
  --hero: #244d5b;
  --hero-deep: #102a33;
  --glass-chrome: rgba(24, 31, 36, 0.46);
  --glass-chrome-strong: rgba(24, 31, 36, 0.64);
  --glass-sheet: rgba(18, 25, 30, 0.72);
  --glass-card: rgba(23, 29, 34, 0.66);
  --glass-control: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-fallback: rgba(24, 31, 36, 0.92);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.035), 0 14px 34px rgba(0, 0, 0, 0.18);
  --shadow-raised: 0 22px 64px rgba(0, 0, 0, 0.46);
}

/* Foundation -------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--page);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow: hidden;
  color: var(--text-primary);
  background: var(--page);
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

button,
input,
textarea,
select {
  min-width: 0;
  max-width: 100%;
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled) {
  cursor: pointer;
}

button:not(:disabled):active {
  transform: scale(0.985);
  filter: brightness(0.97);
}

.detail-backdrop:not(:disabled):active,
.liquid-round-button:not(:disabled):active,
.liquid-stats button:not(:disabled):active,
.prototype-event-banner:not(:disabled):active,
.sync-warning:not(:disabled):active {
  transform: none;
  filter: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 2px;
}

button:disabled,
label[aria-disabled="true"] {
  cursor: default;
  opacity: 0.5;
}

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

p,
h1,
h2,
h3,
strong,
small,
span {
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  height: var(--app-height);
  min-height: 100%;
  min-height: 100svh;
  overflow: hidden;
  color: var(--text-primary);
  background: var(--page);
}

.background-reveal {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--page);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(22, 119, 210, 0.13), transparent 34%),
    radial-gradient(circle at 92% 78%, rgba(45, 165, 106, 0.1), transparent 38%),
    radial-gradient(circle at 74% 28%, rgba(121, 103, 199, 0.07), transparent 30%),
    linear-gradient(165deg, rgba(22, 119, 210, 0.04) 0%, transparent 44%, rgba(45, 165, 106, 0.04) 100%);
}

.app-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  height: 100%;
  margin: 0 auto;
  padding-top: calc(22px + var(--safe-top));
  padding-right: calc(var(--page-gutter) + var(--safe-right));
  padding-bottom: calc(102px + var(--safe-bottom));
  padding-left: calc(var(--page-gutter) + var(--safe-left));
  overflow-x: clip;
  overflow-y: auto;
  scroll-padding: calc(22px + var(--safe-top)) 0 calc(112px + var(--safe-bottom));
  scrollbar-width: none;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  transition: filter 180ms ease, transform 180ms ease;
}

.app-shell.has-detail > .app-content,
.app-shell.has-confirmation > .app-content {
  pointer-events: none;
  filter: blur(18px) saturate(82%);
  transform: scale(1.035);
  transform-origin: center top;
}

.app-shell.has-confirmation > .detail-screen {
  pointer-events: none;
  filter: blur(14px) saturate(82%);
}

.app-content::-webkit-scrollbar,
.liquid-event-scroller::-webkit-scrollbar,
.liquid-chat-history::-webkit-scrollbar,
.detail-content::-webkit-scrollbar {
  display: none;
}

.app-shell.is-home-screen .app-content {
  padding-top: 0;
}

.swipe-page {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 100%;
  touch-action: pan-y;
}

.swipe-hint {
  display: none;
}

.sync-warning {
  position: fixed;
  z-index: 75;
  right: calc(var(--page-gutter) + var(--safe-right));
  bottom: calc(92px + var(--safe-bottom));
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--orange) 28%, transparent);
  border-radius: 999px;
  color: var(--orange);
  background: var(--glass-chrome-strong);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  font: 650 0.75rem/1 var(--font-sans);
}

/* Home -------------------------------------------------------------------- */

.liquid-home,
.liquid-screen {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 22px;
}

.liquid-home {
  padding-bottom: 12px;
}

.home-hero {
  position: relative;
  z-index: 0;
  display: grid;
  gap: 18px;
  margin-right: calc(0px - var(--page-gutter) - var(--safe-right));
  margin-left: calc(0px - var(--page-gutter) - var(--safe-left));
  padding-top: calc(18px + var(--safe-top));
  padding-right: calc(var(--page-gutter) + var(--safe-right));
  padding-bottom: 22px;
  padding-left: calc(var(--page-gutter) + var(--safe-left));
  overflow: hidden;
  color: var(--hero-text);
  border-radius: 0 0 32px 32px;
  background: var(--hero);
  box-shadow: 0 14px 34px rgba(29, 61, 73, 0.18);
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  content: "";
}

.home-hero::before {
  background:
    linear-gradient(180deg, rgba(16, 39, 47, 0.12), rgba(16, 39, 47, 0.68)),
    url("/mountain-bg.jpg") center 46% / cover no-repeat;
  filter: saturate(0.72) contrast(0.9);
  transform: scale(1.02);
}

.home-hero::after {
  z-index: -1;
  background:
    radial-gradient(circle at 82% -4%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(145deg, rgba(39, 91, 106, 0.1), rgba(10, 35, 43, 0.28));
}

.liquid-home-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.liquid-home-header > div:nth-child(2) {
  min-width: 0;
}

.liquid-home-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font: 520 0.78rem/1.1 var(--font-sans);
}

.liquid-home-header h1 {
  margin: 4px 0 0;
  overflow: hidden;
  color: #fff;
  font: 760 clamp(1.22rem, 5.4vw, 1.48rem) / 1.02 var(--font-display);
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: var(--glass-control);
  box-shadow: 0 7px 20px rgba(4, 20, 27, 0.2);
}

.avatar {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
  object-fit: cover;
}

.avatar-fallback {
  color: #fff;
  background: linear-gradient(145deg, #5a98ab, #285362);
  font: 730 0.92rem/1 var(--font-sans);
}

.liquid-header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.liquid-round-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.liquid-notification-icon {
  display: grid;
  place-items: center;
}

.liquid-round-button i {
  position: absolute;
  top: 1px;
  right: -1px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--hero);
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font: 750 0.53rem/1 var(--font-sans);
  font-style: normal;
}

.liquid-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.liquid-stats button {
  position: relative;
  display: grid;
  min-height: 68px;
  align-content: center;
  gap: 3px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  color: #fff;
  text-align: left;
  background: var(--glass-control);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.liquid-stats strong {
  font: 750 1.5rem/1 var(--font-display);
  letter-spacing: -0.04em;
}

.liquid-stats span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font: 560 0.66rem/1.05 var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-stats svg {
  position: absolute;
  top: 11px;
  right: 10px;
  color: rgba(255, 255, 255, 0.58);
}

.home-inbox-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.home-inbox-link > span,
.conversation-icon,
.news-card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
}

.home-inbox-link > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.home-inbox-link strong {
  font: 680 0.91rem/1.12 var(--font-sans);
}

.home-inbox-link small {
  overflow: hidden;
  color: var(--text-secondary);
  font: var(--text-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-inbox-link > i {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font: 730 0.65rem/1 var(--font-sans);
  font-style: normal;
}

.home-inbox-link > svg {
  color: var(--text-tertiary);
}

.liquid-home-section {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.liquid-section-heading {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px;
}

.liquid-section-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font: 720 1.18rem/1.12 var(--font-display);
  letter-spacing: -0.025em;
}

.liquid-section-heading button,
.liquid-section-heading > span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font: 620 0.8rem/1 var(--font-sans);
}

.liquid-section-heading > span {
  color: var(--text-secondary);
}

.liquid-event-scroller {
  display: flex;
  gap: 12px;
  margin-right: calc(0px - var(--page-gutter) - var(--safe-right));
  margin-left: calc(0px - var(--page-gutter) - var(--safe-left));
  padding: 2px calc(var(--page-gutter) + var(--safe-right)) 6px calc(var(--page-gutter) + var(--safe-left));
  overflow-x: auto;
  scroll-padding-inline: var(--page-gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.liquid-event-scroller.is-single {
  display: block;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
  overflow: visible;
}

.liquid-event-scroller.is-single .liquid-featured-event {
  width: 100%;
}

.liquid-featured-event {
  display: grid;
  flex: 0 0 min(286px, calc(100vw - 62px));
  min-width: 0;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--separator);
  border-radius: 24px;
  color: var(--text-primary);
  scroll-snap-align: start;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.liquid-event-top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.liquid-event-top time {
  overflow: hidden;
  color: var(--text-secondary);
  font: 550 0.7rem/1 var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-format-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 650 0.63rem/1 var(--font-sans);
  white-space: nowrap;
}

.event-format-pill.offline {
  color: var(--green);
  background: var(--green-soft);
}

.event-format-pill.hybrid {
  color: var(--purple);
  background: var(--purple-soft);
}

.liquid-featured-event > button:not(.liquid-event-action) {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 0;
  border: 0;
  color: var(--text-primary);
  text-align: left;
  background: transparent;
}

.liquid-featured-event strong {
  display: -webkit-box;
  overflow: hidden;
  font: 700 1.02rem/1.2 var(--font-display);
  letter-spacing: -0.015em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.liquid-featured-event small {
  overflow: hidden;
  color: var(--text-secondary);
  font: var(--text-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-event-action,
.prototype-event-action,
.event-sheet-action {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--accent);
  font: 680 0.8rem/1 var(--font-sans);
}

.liquid-event-action.is-registered,
.prototype-event-action.is-registered {
  color: var(--green);
  background: var(--green-soft);
}

.liquid-empty-event {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.liquid-empty-event > svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 14px;
  color: var(--text-secondary);
  background: var(--surface-muted);
}

.liquid-empty-event span {
  display: grid;
  gap: 4px;
}

.liquid-empty-event strong {
  font: 670 0.87rem/1.15 var(--font-sans);
}

.liquid-empty-event small {
  color: var(--text-secondary);
  font: var(--text-caption);
}

.liquid-list {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.liquid-task-row,
.liquid-learning-task {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--separator);
  color: var(--text-primary);
  text-align: left;
  background: transparent;
}

.liquid-task-row {
  grid-template-columns: 24px minmax(0, 1fr) 16px;
}

.liquid-learning-task {
  grid-template-columns: minmax(0, 1fr) auto;
}

.liquid-task-row:last-child,
.liquid-learning-task:last-child {
  border-bottom: 0;
}

.liquid-task-row > span:nth-child(2),
.liquid-learning-task > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.liquid-task-row strong,
.liquid-learning-task strong {
  overflow: hidden;
  font: 630 0.9rem/1.18 var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-task-row small,
.liquid-learning-task small {
  overflow: hidden;
  color: var(--text-secondary);
  font: var(--text-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-task-row > svg {
  color: var(--text-tertiary);
}

.liquid-task-check {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 7px;
  color: #fff;
}

.liquid-task-check.info {
  border-color: var(--accent);
}

.liquid-task-check.danger {
  border-color: var(--red);
}

.liquid-task-check.success {
  border-color: var(--green);
  background: var(--green);
}

.liquid-learning-task > i,
.status-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--orange);
  background: var(--orange-soft);
  font: 650 0.65rem/1 var(--font-sans);
  font-style: normal;
  white-space: nowrap;
}

.liquid-learning-task > i.info,
.status-badge.info {
  color: var(--accent);
  background: var(--accent-soft);
}

.liquid-learning-task > i.danger,
.status-badge.danger {
  color: var(--red);
  background: var(--red-soft);
}

.liquid-learning-task > i.success,
.status-badge.success {
  color: var(--green);
  background: var(--green-soft);
}

.status-badge.neutral {
  color: var(--text-secondary);
  background: var(--surface-muted);
}

.status-badge.attention {
  color: var(--orange);
  background: var(--orange-soft);
}

.liquid-list-empty,
.empty-state {
  padding: 20px 16px;
  color: var(--text-secondary);
  font: var(--text-body);
  text-align: center;
}

.prototype-news-list {
  overflow: hidden;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.prototype-news-list > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--separator);
  color: var(--text-primary);
  text-align: left;
  background: transparent;
}

.prototype-news-list > button:last-child {
  border-bottom: 0;
}

.prototype-news-list > button > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.prototype-news-list strong {
  overflow: hidden;
  font: 630 0.88rem/1.18 var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prototype-news-list small {
  color: var(--text-secondary);
  font: var(--text-caption);
}

.prototype-news-list svg {
  color: var(--text-tertiary);
}

.news-carousel-empty {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 86px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.news-carousel-empty > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--text-secondary);
  background: var(--surface-muted);
}

.news-carousel-empty div {
  display: grid;
  gap: 4px;
}

.news-carousel-empty p {
  margin: 0;
  color: var(--text-secondary);
  font: var(--text-caption);
}

/* Main tabs --------------------------------------------------------------- */

.liquid-screen {
  padding-bottom: 10px;
}

.prototype-screen-title {
  margin: 0;
  color: var(--text-primary);
  font: var(--text-title);
  letter-spacing: -0.045em;
}

.liquid-screen > section,
.prototype-assistant-intro {
  display: grid;
  min-width: 0;
}

.liquid-label,
.eyebrow {
  margin: 0 3px 10px;
  color: var(--text-secondary);
  font: var(--text-section);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.liquid-program-list,
.liquid-catalog,
.prototype-event-list,
.liquid-conversation-list {
  display: grid;
  min-width: 0;
  gap: 11px;
}

.liquid-program-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  min-height: 82px;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.liquid-program-card > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: var(--accent);
  background: var(--accent-soft);
}

.liquid-program-card.tone-lime > span {
  color: var(--green);
  background: var(--green-soft);
}

.liquid-program-card.tone-amber > span {
  color: var(--orange);
  background: var(--orange-soft);
}

.liquid-program-card.tone-rose > span {
  color: var(--red);
  background: var(--red-soft);
}

.liquid-program-card > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.liquid-program-card strong {
  overflow: hidden;
  font: 690 0.96rem/1.14 var(--font-display);
  letter-spacing: -0.018em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-program-card small {
  overflow: hidden;
  color: var(--text-secondary);
  font: var(--text-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-program-card i,
.progress-line {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.liquid-program-card em,
.progress-line > span,
.progress-line > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.liquid-program-card b {
  color: var(--accent);
  font: 720 0.86rem/1 var(--font-sans);
}

.liquid-catalog article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.liquid-catalog article > svg {
  color: var(--accent);
}

.liquid-catalog article > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.liquid-catalog strong,
.liquid-catalog small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-catalog strong {
  font: 650 0.86rem/1.15 var(--font-sans);
}

.liquid-catalog small {
  color: var(--text-secondary);
  font: var(--text-caption);
}

.liquid-catalog button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--accent);
  font: 650 0.73rem/1 var(--font-sans);
}

.liquid-project-card {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--separator);
  border-radius: 24px;
  color: var(--text-primary);
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.liquid-project-card + .liquid-project-card {
  margin-top: -8px;
}

.liquid-project-card > div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.liquid-project-card > div > span {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.liquid-project-card strong {
  font: 730 clamp(1.05rem, 4.8vw, 1.3rem) / 1.08 var(--font-display);
  letter-spacing: -0.025em;
}

.liquid-project-card > div > span small {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 630 0.67rem/1 var(--font-sans);
}

.liquid-project-card > div > i {
  --liquid-track: var(--surface-muted);
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 50%;
}

.liquid-project-card > div > i::before {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.liquid-project-card > div > i em {
  position: relative;
  font: 720 0.72rem/1 var(--font-sans);
  font-style: normal;
}

.liquid-project-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font: var(--text-body);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.liquid-project-card footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--separator);
}

.liquid-project-card footer small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-secondary);
  font: var(--text-caption);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.liquid-team {
  display: flex;
  padding-left: 3px;
}

.liquid-team i {
  display: grid;
  width: 29px;
  height: 29px;
  margin-left: -4px;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  font: 700 0.57rem/1 var(--font-sans);
  font-style: normal;
}

.liquid-team i:nth-child(2n) {
  background: var(--accent);
}

.liquid-team i:nth-child(3n) {
  background: var(--orange);
}

.prototype-event-card {
  display: grid;
  grid-template-columns: minmax(104px, 31%) minmax(0, 1fr);
  min-height: 168px;
  overflow: hidden;
  border: 1px solid var(--separator);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.prototype-event-banner {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: space-between;
  padding: 14px 12px;
  border: 0;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.32), transparent 40%),
    linear-gradient(155deg, #4c88b9, #25526e);
}

.prototype-event-banner.format-offline {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.3), transparent 40%),
    linear-gradient(155deg, #56a477, #286348);
}

.prototype-event-banner.format-hybrid {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.3), transparent 40%),
    linear-gradient(155deg, #8a78c2, #51457b);
}

.prototype-event-banner .event-format-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.prototype-event-banner > span {
  display: grid;
  gap: 3px;
}

.prototype-event-banner strong {
  font: 720 0.9rem/1.05 var(--font-sans);
}

.prototype-event-banner small {
  color: rgba(255, 255, 255, 0.75);
  font: 560 0.68rem/1 var(--font-sans);
}

.prototype-event-card > div {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 10px;
  padding: 15px;
}

.prototype-event-title {
  display: -webkit-box;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  font: 700 0.98rem/1.2 var(--font-display);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prototype-event-card > div > p {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  color: var(--text-secondary);
  font: var(--text-caption);
}

.prototype-event-card > div > p svg {
  flex: 0 0 auto;
}

/* Assistant --------------------------------------------------------------- */

.liquid-assistant {
  gap: 14px;
}

.prototype-assistant-intro {
  gap: 8px;
  margin-bottom: 4px;
}

.prototype-assistant-intro p {
  margin: 0;
  color: var(--text-secondary);
  font: var(--text-body);
}

.liquid-ai-mode {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  width: 100%;
  min-width: 0;
  min-height: 92px;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--separator);
  border-radius: 24px;
  color: var(--text-primary);
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.liquid-ai-mode > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #3b92d8, #496cad);
}

.liquid-ai-mode.homework > span {
  background: linear-gradient(145deg, #e6a04d, #cf6f43);
}

.liquid-ai-mode > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.liquid-ai-mode strong {
  font: 690 0.98rem/1.12 var(--font-display);
}

.liquid-ai-mode small {
  color: var(--text-secondary);
  font: var(--text-caption);
}

.liquid-ai-mode > svg {
  color: var(--text-tertiary);
}

.assistant-loading,
.assistant-unavailable {
  margin: 0;
  color: var(--text-secondary);
  font: var(--text-caption);
  text-align: center;
}

.assistant-unavailable {
  padding: 11px 13px;
  border-radius: var(--radius-md);
  color: var(--orange);
  background: var(--orange-soft);
}

.liquid-conversation-list {
  margin-top: 8px;
}

.liquid-conversation-list .liquid-label {
  margin-bottom: -2px;
}

.liquid-conversation-list > button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--separator);
  border-radius: 18px;
  color: var(--text-primary);
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.liquid-conversation-list > button > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}

.liquid-conversation-list > button > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.liquid-conversation-list strong,
.liquid-conversation-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-conversation-list strong {
  font: 650 0.87rem/1.15 var(--font-sans);
}

.liquid-conversation-list small {
  color: var(--text-secondary);
  font: var(--text-caption);
}

.app-shell.is-ai-chat-open {
  --app-height: var(--tg-viewport-height, 100vh);
}

.app-shell.is-ai-chat-open .app-content {
  padding: 0;
  overflow: hidden;
}

.app-shell.is-ai-chat-open .swipe-page {
  height: 100%;
}

.liquid-chat {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.liquid-chat > header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding-top: calc(8px + var(--safe-top));
  padding-right: calc(var(--page-gutter) + var(--safe-right));
  padding-bottom: 9px;
  padding-left: calc(var(--page-gutter) + var(--safe-left));
  border-bottom: 1px solid var(--separator);
  background: var(--glass-chrome);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.liquid-back,
.liquid-icon-action,
.liquid-attach,
.liquid-send,
.send-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
}

.liquid-back,
.liquid-icon-action,
.liquid-attach {
  color: var(--accent);
  background: var(--surface-muted);
}

.liquid-icon-action {
  color: var(--text-secondary);
}

.liquid-chat > header > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  text-align: center;
}

.liquid-chat > header strong,
.liquid-chat > header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-chat > header strong {
  font: 680 0.92rem/1.1 var(--font-sans);
}

.liquid-chat > header small {
  color: var(--text-secondary);
  font: 520 0.66rem/1 var(--font-sans);
}

.liquid-chat-history {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 10px;
  padding: 16px var(--page-gutter) 20px;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.liquid-chat-history.is-empty {
  align-content: center;
}

.liquid-chat-welcome {
  display: grid;
  max-width: 330px;
  justify-self: center;
  justify-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-align: center;
}

.liquid-chat-welcome svg {
  color: var(--accent);
}

.liquid-chat-welcome strong {
  font: 700 1.03rem/1.16 var(--font-display);
}

.liquid-chat-welcome p {
  margin: 0;
  color: var(--text-secondary);
  font: var(--text-body);
}

.liquid-message {
  display: grid;
  width: fit-content;
  max-width: min(86%, 440px);
  justify-self: start;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--separator);
  border-radius: 18px 18px 18px 6px;
  color: var(--text-primary);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(20, 32, 41, 0.04);
}

.liquid-message.user {
  justify-self: end;
  border-color: transparent;
  border-radius: 18px 18px 6px;
  color: #fff;
  background: var(--accent);
}

.liquid-message p {
  margin: 0;
  white-space: pre-wrap;
  font: 470 0.87rem/1.42 var(--font-sans);
}

.liquid-message-files {
  color: inherit;
  opacity: 0.72;
  font: 520 0.69rem/1.25 var(--font-sans);
}

.liquid-sources {
  display: grid;
  gap: 6px;
  padding-top: 7px;
  border-top: 1px solid var(--separator);
}

.liquid-sources a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--accent);
  font: 620 0.7rem/1.2 var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-sources svg {
  flex: 0 0 auto;
}

.liquid-feedback {
  display: flex;
  gap: 5px;
}

.liquid-feedback button {
  display: grid;
  width: 30px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: var(--text-tertiary);
  background: var(--surface-muted);
}

.liquid-feedback button.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.liquid-typing {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 5px;
}

.liquid-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: typing-pulse 0.85s infinite alternate;
}

.liquid-typing i:nth-child(2) {
  animation-delay: 0.14s;
}

.liquid-typing i:nth-child(3) {
  animation-delay: 0.28s;
}

.liquid-composer {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 8px;
  padding: 8px calc(var(--page-gutter) + var(--safe-right)) calc(8px + var(--safe-bottom)) calc(var(--page-gutter) + var(--safe-left));
  border-top: 1px solid var(--separator);
  background: var(--glass-chrome-strong);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.liquid-composer > div:last-child {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: end;
  gap: 7px;
}

.liquid-composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 124px;
  padding: 12px 14px;
  overflow-y: auto;
  border: 1px solid var(--separator);
  border-radius: 20px;
  outline: none;
  resize: none;
  color: var(--text-primary);
  background: var(--surface-muted);
  font: 470 0.87rem/1.3 var(--font-sans);
}

.liquid-send,
.send-button {
  color: #fff;
  background: var(--accent);
}

.liquid-attachments {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.liquid-attachments button {
  display: inline-flex;
  max-width: 210px;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid var(--separator);
  border-radius: 999px;
  color: var(--text-secondary);
  background: var(--surface-muted);
  font: 580 0.68rem/1 var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bottom navigation ------------------------------------------------------- */

.bottom-navigation {
  position: fixed;
  z-index: 80;
  right: calc(8px + var(--safe-right));
  bottom: max(8px, var(--safe-bottom));
  left: calc(8px + var(--safe-left));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100% - 16px - var(--safe-right) - var(--safe-left)), 600px);
  min-height: 66px;
  margin: 0 auto;
  padding: 5px 6px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--separator-strong) 80%, transparent);
  border-radius: 24px;
  background: var(--glass-chrome);
  box-shadow: 0 12px 36px rgba(20, 32, 41, 0.18);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}

.nav-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 54px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 4px 2px;
  border: 0;
  border-radius: 18px;
  color: var(--text-tertiary);
  background: transparent;
  transition:
    color var(--duration-fast) ease,
    background-color var(--duration-fast) ease;
}

.nav-item span {
  overflow: hidden;
  max-width: 100%;
  font: 610 0.59rem/1 var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Detail sheets ----------------------------------------------------------- */

.detail-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(9, 18, 23, 0.22);
}

.detail-material {
  position: fixed;
  z-index: 95;
  top: 6vh;
  top: max(6dvh, calc(var(--safe-top) + 8px));
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin: 0 auto;
  pointer-events: none;
  border: 1px solid var(--glass-border);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background-color: var(--glass-sheet);
  background-image: var(--glass-sheen), var(--glass-noise);
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 128px 128px;
  background-blend-mode: normal, soft-light;
  box-shadow: var(--shadow-raised);
}

.detail-screen {
  position: fixed;
  z-index: 100;
  top: 6vh;
  top: max(6dvh, calc(var(--safe-top) + 8px));
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 640px);
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  color: var(--text-primary);
  background: transparent;
  box-shadow: none;
}

.detail-header {
  position: relative;
  display: grid;
  min-height: 46px;
  place-items: center;
  cursor: grab;
  touch-action: none;
}

.detail-header > i {
  display: block;
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: var(--separator-strong);
}

.detail-close-button {
  position: absolute;
  top: 6px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--surface-muted);
}

.detail-content {
  display: grid;
  min-width: 0;
  min-height: 0;
  align-content: start;
  gap: 15px;
  padding: 2px calc(var(--page-gutter) + var(--safe-right)) calc(24px + var(--safe-bottom)) calc(var(--page-gutter) + var(--safe-left));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.detail-content h1 {
  margin: 0;
  color: var(--text-primary);
  font: 730 clamp(1.65rem, 7vw, 2.12rem) / 1.06 var(--font-display);
  letter-spacing: -0.04em;
}

.detail-content .eyebrow {
  margin-bottom: -7px;
}

.detail-lead {
  margin: -5px 0 2px;
  color: var(--text-secondary);
  font: var(--text-body);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-edit-button {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 650 0.8rem/1 var(--font-sans);
}

.glass-card,
.task-detail-card,
.submission-form,
.linked-action,
.project-stage-card,
.event-link-card,
.event-info-list,
.project-info-group > div,
.detail-section,
.notification-card,
.news-card,
.request-card {
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.glass-card {
  background-color: var(--glass-card);
  background-image: var(--glass-sheen);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.detail-section {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.detail-section > .eyebrow {
  margin: 0;
}

.primary-button,
.secondary-button,
.destructive-button,
.sheet-cancel {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 15px;
  font: 680 0.87rem/1 var(--font-sans);
}

.primary-button {
  border: 0;
  color: #fff;
  background: var(--accent);
}

.secondary-button,
.sheet-cancel {
  border: 1px solid var(--separator);
  color: var(--accent);
  background: var(--surface-muted);
}

.destructive-button {
  border: 0;
  color: #fff;
  background: var(--red);
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 9px;
  padding-top: 4px;
}

.form-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.form-field > span {
  padding: 0 3px;
  color: var(--text-secondary);
  font: 620 0.76rem/1.15 var(--font-sans);
}

.form-field input,
.form-field textarea,
.form-field select,
.submission-form textarea,
.compose-form input,
.compose-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--text-primary);
  background: var(--surface);
  font: 470 0.91rem/1.35 var(--font-sans);
}

.form-field textarea,
.submission-form textarea,
.compose-form textarea {
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.submission-form textarea::placeholder,
.compose-form textarea::placeholder {
  color: var(--text-tertiary);
}

.profile-edit-form,
.project-edit-form,
.compose-form {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(90px, 0.7fr);
  gap: 9px;
}

.project-editor-tabs {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--separator);
  border-radius: 15px;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.project-editor-tabs button {
  min-height: 38px;
  padding: 0 6px;
  border: 0;
  border-radius: 11px;
  color: var(--text-secondary);
  background: transparent;
  font: 620 0.68rem/1 var(--font-sans);
}

.project-editor-tabs button.is-active {
  color: var(--text-primary);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(20, 32, 41, 0.08);
}

.project-edit-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.project-edit-status > span {
  display: grid;
  gap: 2px;
}

.project-edit-status strong {
  color: var(--accent);
  font: 730 1.18rem/1 var(--font-display);
}

.project-edit-status small,
.project-edit-status em {
  color: var(--text-secondary);
  font: var(--text-caption);
  font-style: normal;
}

.project-edit-status em {
  grid-column: 1 / -1;
  color: var(--green);
}

/* Program, materials and tasks ------------------------------------------- */

.detail-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.detail-progress span {
  display: grid;
  gap: 5px;
}

.detail-progress strong {
  color: var(--accent);
}

.material-list,
.attachment-list,
.submission-files,
.notification-list,
.news-feed,
.request-list,
.inbox-list {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.material-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.material-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.material-row strong,
.material-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-row strong {
  font: 630 0.87rem/1.14 var(--font-sans);
}

.material-row small {
  color: var(--text-secondary);
  font: var(--text-caption);
}

.material-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 700 0.76rem/1 var(--font-sans);
}

.material-row.is-complete .material-number {
  color: var(--green);
  background: var(--green-soft);
}

.linked-action,
.attachment-list button,
.document-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-align: left;
  background: var(--surface);
}

.linked-action svg:first-child,
.attachment-list button svg:first-child,
.document-row svg:first-child {
  color: var(--accent);
}

.task-detail-card {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.task-detail-card > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.task-detail-card h2,
.task-detail-card h3,
.submission-form h2 {
  margin: 0;
  font: 690 1rem/1.18 var(--font-display);
}

.task-detail-card p,
.task-detail-card li,
.review-comment {
  margin: 0;
  color: var(--text-secondary);
  white-space: pre-wrap;
  font: var(--text-body);
}

.task-detail-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

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

.submission-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 8px;
}

.submission-actions label {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--separator);
  border-radius: 14px;
  color: var(--accent);
  background: var(--surface-muted);
  font: 650 0.76rem/1 var(--font-sans);
}

.submission-actions label input,
.document-add-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.submission-files button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--separator);
  border-radius: 13px;
  color: var(--text-secondary);
  text-align: left;
  background: var(--surface-muted);
  font: var(--text-caption);
}

.material-complete-note {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  color: var(--green);
  background: var(--green-soft);
  font: 680 0.84rem/1 var(--font-sans);
}

.video-placeholder {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  text-align: center;
  background: linear-gradient(145deg, #3f7797, #24465a);
}

.video-placeholder.tone-lime {
  background: linear-gradient(145deg, #4c9a70, #2b5d47);
}

.video-placeholder.tone-amber {
  background: linear-gradient(145deg, #c18b4f, #76502c);
}

.video-placeholder.tone-rose {
  background: linear-gradient(145deg, #b46d70, #714147);
}

.video-load-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font: 650 0.79rem/1 var(--font-sans);
}

/* Events and projects in sheets ------------------------------------------ */

.event-sheet-banner {
  display: grid;
  min-height: 142px;
  align-content: space-between;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.35), transparent 38%),
    linear-gradient(145deg, #4c88b9, #25526e);
}

.event-sheet-banner.format-offline {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.3), transparent 38%),
    linear-gradient(145deg, #56a477, #286348);
}

.event-sheet-banner.format-hybrid {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.3), transparent 38%),
    linear-gradient(145deg, #8a78c2, #51457b);
}

.event-sheet-banner .event-format-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.event-info-list {
  display: grid;
  overflow: hidden;
}

.event-info-list > span,
.event-info-list > div,
.project-info-group span {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--separator);
}

.event-info-list > div {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font: 560 0.88rem/1.35 var(--font-sans);
}

.event-info-list > div svg {
  color: var(--accent);
}

.event-info-list > span:last-child,
.event-info-list > div:last-child,
.project-info-group span:last-child {
  border-bottom: 0;
}

.event-info-list small,
.project-info-group small {
  color: var(--text-secondary);
  font: var(--text-caption);
}

.event-info-list strong,
.project-info-group strong {
  color: var(--text-primary);
  white-space: pre-wrap;
  font: 610 0.85rem/1.38 var(--font-sans);
}

.event-link-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.event-link-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.event-link-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
}

.event-link-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.event-registration-note {
  margin: 0;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  color: var(--green);
  background: var(--green-soft);
  font: var(--text-caption);
}

.event-registration-note.waitlist {
  color: var(--orange);
  background: var(--orange-soft);
}

.event-sheet-action.is-cancel {
  color: var(--red);
  background: var(--red-soft);
}

.project-stage-card {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.project-stage-card > span {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 650 0.78rem/1 var(--font-sans);
}

.project-stage-card > strong {
  font: 670 0.9rem/1.24 var(--font-sans);
}

.project-stage-card > small {
  color: var(--text-secondary);
  font: var(--text-caption);
}

.project-info-group {
  display: grid;
  gap: 9px;
}

.project-info-group > .eyebrow {
  margin: 0 3px;
}

.project-info-group > div {
  overflow: hidden;
}

.team-member {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--separator);
}

.team-member:last-child {
  border-bottom: 0;
}

.team-member > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  font: 700 0.68rem/1 var(--font-sans);
}

.team-member > div {
  display: grid;
  gap: 3px;
}

.team-member strong {
  font: 650 0.85rem/1.15 var(--font-sans);
}

.team-member small {
  color: var(--text-secondary);
  font: var(--text-caption);
}

.document-heading {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.document-heading .eyebrow {
  margin: 0;
}

.document-add-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 640 0.74rem/1 var(--font-sans);
}

.document-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 7px;
}

.document-remove-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--red);
  background: var(--red-soft);
}

/* Messages, news and notifications --------------------------------------- */

.inbox-list,
.news-feed,
.notification-list,
.request-list {
  margin-top: 2px;
}

.conversation-row,
.news-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  width: 100%;
  min-height: 74px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.conversation-row > span:nth-child(2),
.news-card > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.conversation-row strong,
.conversation-row small,
.news-card strong,
.news-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-row strong,
.news-card strong {
  font: 650 0.88rem/1.15 var(--font-sans);
}

.conversation-row small,
.news-card small {
  color: var(--text-secondary);
  font: var(--text-caption);
}

.conversation-row.is-unread {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--separator));
  background: color-mix(in srgb, var(--accent-soft) 38%, var(--surface));
}

.stakeholder-requests-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--green) 24%, var(--separator));
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-align: left;
  background: var(--green-soft);
}

.stakeholder-requests-link > span {
  display: grid;
  gap: 3px;
}

.stakeholder-requests-link small {
  color: var(--text-secondary);
  font: var(--text-caption);
}

.stakeholder-requests-link > i {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font: 700 0.62rem/1 var(--font-sans);
  font-style: normal;
}

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

.thread-bubble {
  display: grid;
  width: fit-content;
  max-width: 86%;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 18px;
}

.thread-bubble.staff {
  justify-self: start;
  border-bottom-left-radius: 6px;
  background: var(--surface-muted);
}

.thread-bubble.me {
  justify-self: end;
  border-bottom-right-radius: 6px;
  color: #fff;
  background: var(--accent);
}

.thread-bubble p {
  margin: 0;
  white-space: pre-wrap;
  font: 470 0.88rem/1.42 var(--font-sans);
}

.thread-bubble small {
  color: var(--text-secondary);
  font: 560 0.64rem/1 var(--font-sans);
}

.thread-bubble.me small {
  color: rgba(255, 255, 255, 0.7);
}

.thread-composer {
  position: sticky;
  bottom: calc(6px + var(--safe-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: end;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  background: var(--glass-chrome);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.thread-composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 130px;
  padding: 12px;
  border: 0;
  outline: none;
  resize: vertical;
  color: var(--text-primary);
  background: transparent;
  font: var(--text-body);
}

.soft-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  background: var(--surface-muted);
}

.soft-note svg {
  margin-top: 1px;
  color: var(--accent);
}

.soft-note p {
  margin: 0;
  font: 480 0.83rem/1.45 var(--font-sans);
}

.news-post-body {
  display: grid;
  gap: 13px;
}

.news-post-body p {
  margin: 0;
  color: var(--text-secondary);
  white-space: pre-wrap;
  font: 470 0.96rem/1.58 var(--font-sans);
}

.notification-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  padding: 13px;
}

.notification-card > svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}

.notification-card.attention > svg {
  color: var(--orange);
  background: var(--orange-soft);
}

.notification-card > div {
  display: grid;
  gap: 4px;
}

.notification-card p {
  margin: 0;
  color: var(--text-secondary);
  font: var(--text-body);
}

.notification-card small {
  color: var(--text-tertiary);
  font: var(--text-caption);
}

.request-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.request-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.request-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.request-heading > div {
  display: grid;
  gap: 3px;
}

.request-heading small,
.request-empty {
  margin: 0;
  color: var(--text-secondary);
  font: var(--text-caption);
}

.request-card > p {
  margin: 0;
  color: var(--text-secondary);
  font: var(--text-body);
}

.request-card blockquote {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  color: var(--text-secondary);
  background: var(--surface-muted);
  font: var(--text-body);
}

.request-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.request-slots {
  display: grid;
  gap: 7px;
}

.request-slots button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 630 0.76rem/1.2 var(--font-sans);
  text-align: left;
}

/* Dialogs, feedback and states ------------------------------------------- */

.sheet-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 12px;
  background: rgba(9, 18, 23, 0.26);
}

.confirmation-sheet {
  display: grid;
  width: min(100%, 480px);
  gap: 12px;
  margin: 0 auto max(var(--safe-bottom), 4px);
  padding: 18px;
  border: 1px solid var(--separator);
  border-radius: 26px;
  color: var(--text-primary);
  background-color: var(--glass-sheet);
  background-image: var(--glass-sheen), var(--glass-noise);
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 128px 128px;
  background-blend-mode: normal, soft-light;
  box-shadow: var(--shadow-raised);
}

.confirmation-sheet > i {
  justify-self: center;
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: var(--separator-strong);
}

.confirmation-sheet h2 {
  margin: 0;
  font: 720 1.14rem/1.18 var(--font-display);
  letter-spacing: -0.02em;
  text-align: center;
}

.confirmation-sheet p {
  margin: 0;
  color: var(--text-secondary);
  font: var(--text-body);
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 140;
  right: calc(var(--page-gutter) + var(--safe-right));
  bottom: calc(92px + var(--safe-bottom));
  left: calc(var(--page-gutter) + var(--safe-left));
  width: fit-content;
  max-width: min(calc(100% - 2 * var(--page-gutter)), 440px);
  margin: 0 auto;
  padding: 11px 15px;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--text-primary) 90%, transparent);
  box-shadow: var(--shadow-raised);
  font: 620 0.8rem/1.25 var(--font-sans);
  text-align: center;
}

.toast.warning {
  background: var(--red);
}

.loading-state,
.error-state {
  display: grid;
  min-height: calc(100% - var(--safe-top) - var(--safe-bottom));
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 30px;
  color: var(--text-primary);
  text-align: center;
}

.loading-state > svg,
.error-state > svg {
  width: 54px;
  height: 54px;
  padding: 14px;
  border-radius: 18px;
  color: var(--accent);
  background: var(--accent-soft);
}

.loading-state strong,
.error-state h1 {
  margin: 0;
  font: 700 1.1rem/1.15 var(--font-display);
}

.loading-state span,
.error-state p {
  max-width: 320px;
  margin: 0;
  color: var(--text-secondary);
  font: var(--text-body);
}

.error-state .primary-button {
  width: fit-content;
  min-width: 150px;
  margin-top: 6px;
}

/* Frosted chrome --------------------------------------------------------- */

/*
 * Keep the blur on a paint-only layer. Android WebView can drop a
 * backdrop-filter when the same composited node also owns interactive
 * content, sticky positioning or a Motion transform.
 */

.sync-warning,
.liquid-round-button,
.liquid-stats button,
.liquid-chat > header,
.liquid-composer,
.bottom-navigation,
.project-editor-tabs,
.thread-composer {
  isolation: isolate;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.liquid-round-button,
.liquid-stats button {
  z-index: 0;
}

.thread-composer {
  z-index: 2;
}

.sync-warning::before,
.liquid-round-button::before,
.liquid-stats button::before,
.liquid-chat > header::before,
.liquid-composer::before,
.bottom-navigation::before,
.project-editor-tabs::before,
.thread-composer::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--glass-chrome);
  background-color: var(--glass-chrome);
  background-image: var(--glass-sheen), var(--glass-noise);
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 128px 128px;
  background-blend-mode: normal, soft-light;
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  content: "";
}

.sync-warning::before,
.liquid-composer::before,
.project-editor-tabs::before {
  background-color: var(--glass-chrome-strong);
}

.liquid-round-button::before,
.liquid-stats button::before {
  background-color: var(--glass-control);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.app-shell[data-platform="android"] .sync-warning::before,
.app-shell[data-platform="android"] .liquid-chat > header::before,
.app-shell[data-platform="android"] .liquid-composer::before,
.app-shell[data-platform="android"] .bottom-navigation::before,
.app-shell[data-platform="android"] .project-editor-tabs::before,
.app-shell[data-platform="android"] .thread-composer::before {
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.app-shell[data-backdrop-filter="fallback"] .bottom-navigation,
.app-shell[data-backdrop-filter="fallback"] .liquid-composer,
.app-shell[data-backdrop-filter="fallback"] .liquid-chat > header,
.app-shell[data-backdrop-filter="fallback"] .project-editor-tabs,
.app-shell[data-backdrop-filter="fallback"] .sync-warning,
.app-shell[data-backdrop-filter="fallback"] .thread-composer {
  background: var(--glass-fallback);
}

.app-shell[data-backdrop-filter="fallback"] .sync-warning::before,
.app-shell[data-backdrop-filter="fallback"] .liquid-round-button::before,
.app-shell[data-backdrop-filter="fallback"] .liquid-stats button::before,
.app-shell[data-backdrop-filter="fallback"] .liquid-chat > header::before,
.app-shell[data-backdrop-filter="fallback"] .liquid-composer::before,
.app-shell[data-backdrop-filter="fallback"] .bottom-navigation::before,
.app-shell[data-backdrop-filter="fallback"] .project-editor-tabs::before,
.app-shell[data-backdrop-filter="fallback"] .thread-composer::before {
  display: none;
}

.app-shell[data-backdrop-filter="fallback"] .liquid-round-button,
.app-shell[data-backdrop-filter="fallback"] .liquid-stats button {
  background: rgba(29, 63, 74, 0.82);
}

.app-shell[data-backdrop-filter="fallback"] .glass-card {
  background-color: var(--glass-fallback);
}

/* Responsive safeguards -------------------------------------------------- */

@keyframes typing-pulse {
  to {
    opacity: 0.35;
    transform: translateY(-3px);
  }
}

@media (max-width: 420px) {
  .liquid-learning-task {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .liquid-learning-task strong {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .liquid-learning-task > i {
    justify-self: start;
  }
}

@media (max-width: 359px) {
  :root {
    --page-gutter: 12px;
  }

  .home-hero {
    gap: 15px;
    padding-bottom: 18px;
    border-radius: 0 0 26px 26px;
  }

  .liquid-home-header {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .liquid-avatar {
    width: 46px;
    height: 46px;
  }

  .liquid-header-actions {
    gap: 5px;
  }

  .liquid-round-button {
    width: 38px;
    height: 38px;
  }

  .liquid-stats {
    gap: 6px;
  }

  .liquid-stats button {
    min-height: 62px;
    padding: 9px;
    border-radius: 16px;
  }

  .liquid-stats strong {
    font-size: 1.32rem;
  }

  .liquid-stats span {
    font-size: 0.59rem;
  }

  .liquid-stats svg {
    display: none;
  }

  .home-inbox-link {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding-right: 11px;
    padding-left: 11px;
  }

  .home-inbox-link > span {
    width: 40px;
    height: 40px;
  }

  .prototype-event-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .prototype-event-card > div {
    padding: 12px;
  }

  .prototype-event-action {
    padding: 0 8px;
    font-size: 0.7rem;
  }

  .liquid-program-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .liquid-program-card > span {
    width: 42px;
    height: 42px;
  }

  .liquid-catalog article {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .liquid-catalog article > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .liquid-ai-mode {
    grid-template-columns: 46px minmax(0, 1fr) 16px;
    padding: 14px;
  }

  .liquid-ai-mode > span {
    width: 46px;
    height: 46px;
  }

  .nav-item span {
    font-size: 0.52rem;
  }

  .field-grid,
  .event-link-actions,
  .request-actions,
  .submission-actions,
  .form-actions {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 640px) {
  .app-shell {
    background: var(--page-deep);
  }

  .app-content {
    border-right: 1px solid var(--separator);
    border-left: 1px solid var(--separator);
    background: color-mix(in srgb, var(--page) 96%, transparent);
  }

  .home-hero {
    margin-right: calc(0px - var(--page-gutter) - var(--safe-right));
    margin-left: calc(0px - var(--page-gutter) - var(--safe-left));
  }

  .detail-screen {
    bottom: 12px;
    border-bottom: 1px solid var(--separator);
    border-radius: 28px;
  }

  .detail-material {
    bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 28px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .app-content {
    padding-bottom: calc(82px + var(--safe-bottom));
  }

  .home-hero {
    padding-top: calc(10px + var(--safe-top));
    padding-bottom: 14px;
  }

  .liquid-stats button {
    min-height: 54px;
  }

  .bottom-navigation {
    min-height: 58px;
  }

  .nav-item {
    min-height: 48px;
  }

  .detail-screen {
    top: 2vh;
    top: max(2dvh, calc(var(--safe-top) + 4px));
    height: auto;
  }

  .detail-material {
    top: 2vh;
    top: max(2dvh, calc(var(--safe-top) + 4px));
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bottom-navigation,
  .liquid-composer,
  .liquid-chat > header,
  .project-editor-tabs,
  .sync-warning,
  .thread-composer {
    background: var(--glass-fallback);
  }

  .sync-warning::before,
  .liquid-round-button::before,
  .liquid-stats button::before,
  .liquid-chat > header::before,
  .liquid-composer::before,
  .bottom-navigation::before,
  .project-editor-tabs::before,
  .thread-composer::before {
    display: none;
  }

  .liquid-round-button,
  .liquid-stats button {
    background: rgba(29, 63, 74, 0.82);
  }

  .glass-card {
    background-color: var(--glass-fallback);
  }
}

/* Standalone geography picker opened from a Telegram Web App keyboard. */

.location-picker-shell {
  --location-accent: #1677d2;
  --location-success: #239563;
  --location-text: var(--tg-theme-text-color, #15212b);
  --location-hint: var(--tg-theme-hint-color, #667783);
  --location-bg: var(--tg-theme-bg-color, #f2f6f8);
  --location-surface: var(--tg-theme-secondary-bg-color, #fff);
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(12px, var(--tg-content-safe-area-inset-top, 0px))
    14px
    calc(92px + max(10px, var(--tg-content-safe-area-inset-bottom, 0px)));
  overflow-x: hidden;
  color: var(--location-text);
  background:
    radial-gradient(circle at 100% 0, rgba(22, 119, 210, 0.14), transparent 36%),
    var(--location-bg);
}

.location-picker-shell *,
.location-picker-shell *::before,
.location-picker-shell *::after {
  box-sizing: border-box;
}

.location-picker-shell button,
.location-picker-shell input {
  color: inherit;
  font: inherit;
}

.location-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.location-header > button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 15px;
  background: var(--location-surface);
  box-shadow: 0 7px 24px rgba(19, 43, 61, 0.09);
}

.location-header > button svg,
.location-header > svg {
  width: 21px;
  height: 21px;
}

.location-header > svg {
  color: var(--location-accent);
}

.location-header div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.location-header span,
.location-selected small {
  color: var(--location-hint);
  font-size: 12px;
  font-weight: 650;
}

.location-header strong {
  overflow: hidden;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(113, 139, 154, 0.12);
}

.location-scope button {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 8px;
  border: 0;
  border-radius: 14px;
  color: var(--location-hint);
  background: transparent;
  font-size: 12px;
  font-weight: 760;
}

.location-scope button svg {
  width: 15px;
}

.location-scope button.is-active {
  color: var(--location-accent);
  background: var(--location-surface);
  box-shadow: 0 5px 17px rgba(22, 65, 94, 0.11);
}

.location-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 6px 6px 6px 13px;
  border: 1px solid rgba(94, 124, 142, 0.18);
  border-radius: 18px;
  background: var(--location-surface);
  box-shadow: 0 9px 28px rgba(19, 43, 61, 0.07);
}

.location-search > svg {
  width: 19px;
  color: var(--location-hint);
}

.location-search input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.location-search button,
.location-footer button,
.location-state button {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--location-accent);
  font-weight: 780;
}

.location-search button:disabled,
.location-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.location-search-note {
  margin: 6px 5px 9px;
  color: var(--location-hint);
  font-size: 11px;
  line-height: 1.35;
}

.location-quick {
  display: flex;
  gap: 7px;
  margin: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.location-quick::-webkit-scrollbar {
  display: none;
}

.location-quick button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(22, 119, 210, 0.19);
  border-radius: 999px;
  color: var(--location-accent);
  background: rgba(22, 119, 210, 0.07);
  font-size: 12px;
  font-weight: 720;
}

.location-map {
  z-index: 0;
  width: 100%;
  height: clamp(250px, 38dvh, 390px);
  overflow: hidden;
  border: 1px solid rgba(71, 105, 126, 0.2);
  border-radius: 22px;
  background: #dce5e9;
  box-shadow: 0 12px 34px rgba(19, 43, 61, 0.12);
}

.location-map .leaflet-control-attribution {
  max-width: calc(100vw - 60px);
  font-size: 9px;
}

.location-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(190, 49, 60, 0.17);
  border-radius: 13px;
  color: #b32635;
  background: rgba(211, 50, 63, 0.08);
  font-size: 13px;
  font-weight: 650;
}

.location-results,
.location-selected {
  margin-top: 14px;
}

.location-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 8px;
}

.location-section-title strong {
  font-size: 15px;
}

.location-section-title > span {
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--location-hint);
  background: rgba(112, 137, 152, 0.12);
  font-size: 11px;
  font-weight: 760;
}

.location-results article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 38px;
  gap: 9px;
  align-items: center;
  margin-bottom: 7px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--location-surface);
  cursor: pointer;
}

.location-results article.is-active {
  border-color: rgba(22, 119, 210, 0.4);
  box-shadow: 0 7px 22px rgba(19, 84, 131, 0.1);
}

.location-results article > svg {
  width: 21px;
  color: var(--location-accent);
}

.location-results article div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.location-results article div span {
  color: var(--location-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-results article div strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.location-results article button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--location-success);
}

.location-results article button:disabled {
  opacity: 0.5;
}

.location-results article button svg {
  width: 18px;
}

.location-selected > button {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  gap: 9px;
  align-items: center;
  margin-bottom: 7px;
  padding: 9px 8px 9px 11px;
  border: 1px solid rgba(48, 151, 100, 0.2);
  border-radius: 15px;
  text-align: left;
  background: rgba(48, 151, 100, 0.08);
}

.location-selected > button > svg {
  width: 18px;
  color: var(--location-success);
}

.location-selected > button > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-selected i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: #b32635;
  font-style: normal;
}

.location-selected i svg {
  width: 17px;
}

.location-selected > p {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(95, 123, 139, 0.32);
  border-radius: 15px;
  color: var(--location-hint);
  text-align: center;
  font-size: 13px;
}

.location-footer {
  position: fixed;
  z-index: 900;
  right: 0;
  bottom: 0;
  left: 0;
  padding:
    10px
    14px
    max(10px, var(--tg-content-safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(87, 113, 129, 0.14);
  background: color-mix(in srgb, var(--location-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.location-footer button {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(22, 119, 210, 0.24);
}

.location-state {
  display: flex;
  min-height: calc(100dvh - 48px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--location-hint);
  text-align: center;
}

.location-state > svg {
  width: 52px;
  height: 52px;
  color: var(--location-accent);
}

.location-state > i {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(22, 119, 210, 0.2);
  border-top-color: var(--location-accent);
  border-radius: 50%;
  animation: location-spin 0.8s linear infinite;
}

.location-state strong {
  color: var(--location-text);
  font-size: 19px;
}

.location-state p {
  max-width: 310px;
  margin: 0;
  line-height: 1.5;
}

.location-state.is-error > svg {
  color: #b32635;
}

.location-state.is-success > svg {
  color: var(--location-success);
}

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

@media (min-width: 720px) {
  .location-picker-shell {
    width: min(760px, 100%);
    margin: 0 auto;
  }
}

body.location-modal-open {
  overflow: hidden;
}

.inline-location-overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  align-items: end;
  padding-top: max(10px, var(--tg-content-safe-area-inset-top, 0px));
  background: rgba(9, 20, 30, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.inline-location-dialog {
  --location-accent: #1677d2;
  --location-success: #239563;
  --location-text: var(--tg-theme-text-color, #15212b);
  --location-hint: var(--tg-theme-hint-color, #667783);
  --location-bg: var(--tg-theme-bg-color, #f2f6f8);
  --location-surface: var(--tg-theme-secondary-bg-color, #fff);
  width: min(100%, 760px);
  max-height: calc(100vh - max(10px, var(--tg-content-safe-area-inset-top, 0px)));
  max-height: calc(100dvh - max(10px, var(--tg-content-safe-area-inset-top, 0px)));
  margin: 0 auto;
  padding: 16px 14px calc(16px + max(8px, var(--tg-content-safe-area-inset-bottom, 0px)));
  overflow-y: auto;
  color: var(--location-text);
  background:
    radial-gradient(circle at 100% 0, rgba(22, 119, 210, 0.14), transparent 34%),
    var(--location-bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 50px rgba(9, 20, 30, 0.2);
}

.inline-location-dialog *,
.inline-location-dialog *::before,
.inline-location-dialog *::after {
  box-sizing: border-box;
}

.inline-location-dialog button,
.inline-location-dialog input {
  color: inherit;
  font: inherit;
}

.inline-location-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.inline-location-header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.inline-location-header span {
  color: var(--location-hint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inline-location-header strong {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.2;
}

.inline-location-header > button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 15px;
  background: var(--location-surface);
  box-shadow: 0 7px 24px rgba(19, 43, 61, 0.09);
}

.inline-location-header svg {
  width: 21px;
  height: 21px;
}

.inline-location-hint {
  margin: 0 0 14px;
  color: var(--location-hint);
  font-size: 14px;
  line-height: 1.45;
}

.inline-location-footer {
  position: sticky;
  z-index: 410;
  bottom: calc(-16px - max(8px, var(--tg-content-safe-area-inset-bottom, 0px)));
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 10px;
  margin: 18px -14px calc(-16px - max(8px, var(--tg-content-safe-area-inset-bottom, 0px)));
  padding: 12px 14px calc(16px + max(8px, var(--tg-content-safe-area-inset-bottom, 0px)));
  background: color-mix(in srgb, var(--location-bg) 88%, transparent);
  border-top: 1px solid rgba(102, 119, 131, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.inline-location-footer button {
  min-height: 48px;
}

.map-location-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.map-location-field > span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.map-location-field > div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  padding: 13px 14px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.map-location-field svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.map-location-field p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.map-location-field button {
  grid-column: 2;
  justify-self: start;
  padding: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  background: none;
  border: 0;
}

@media (min-width: 720px) {
  .inline-location-overlay {
    align-items: center;
    padding: 24px;
  }

  .inline-location-dialog {
    max-height: calc(100vh - 48px);
    border-radius: 28px;
  }
}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
