:root {
  color-scheme: light;
  --color-canvas: #f5f3ed;
  --color-surface: #fffdf8;
  --color-surface-strong: #ffffff;
  --color-ink: #1c2b2a;
  --color-muted: #657371;
  --color-line: #dedfd8;
  --color-primary: #0f766e;
  --color-primary-dark: #095e58;
  --color-primary-soft: #dceeea;
  --color-parking: #087f8c;
  --color-parking-soft: #d9f0f1;
  --color-duties: #b66b16;
  --color-duties-soft: #faead1;
  --color-events: #c3543f;
  --color-events-soft: #f8e1dc;
  --shadow-soft: 0 1px 2px rgb(29 43 42 / 5%), 0 14px 38px rgb(29 43 42 / 7%);
  --shadow-raised: 0 16px 45px rgb(18 57 53 / 13%);
  --radius-small: 14px;
  --radius-medium: 20px;
  --radius-large: 28px;
  --sidebar-width: 248px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  min-width: 320px;
  background: var(--color-canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 88% -5%, rgb(15 118 110 / 8%), transparent 24rem),
    var(--color-canvas);
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.icon {
  width: 24px;
  height: 24px;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
}

.boot-mark {
  width: 42px;
  height: 42px;
  border: 4px solid var(--color-primary-soft);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--color-ink);
  color: white;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-frame {
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  display: none;
}

.workspace {
  min-width: 0;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: max(10px, env(safe-area-inset-top)) 18px 10px;
  border-bottom: 1px solid rgb(222 223 216 / 75%);
  background: rgb(245 243 237 / 88%);
  backdrop-filter: blur(18px) saturate(1.2);
}

.mobile-brand,
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary-dark);
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}

.mobile-brand {
  gap: 8px;
  font-size: 20px;
}

.logo-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

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

.network-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgb(255 253 248 / 78%);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.network-status__icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.network-status.is-offline {
  border-color: #ead4b4;
  background: #fff6e8;
  color: #81501a;
}

.network-status.is-offline .network-status__icon {
  color: #b66b16;
}

.network-status > span {
  display: none;
}

.language-switch {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 13px;
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgb(28 43 42 / 4%);
  cursor: pointer;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.language-switch:hover {
  border-color: var(--color-primary);
  box-shadow: 0 5px 16px rgb(28 43 42 / 9%);
  transform: translateY(-1px);
}

.main-content {
  width: 100%;
  max-width: 1180px;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  margin: 0 auto;
  padding: 18px 16px calc(98px + env(safe-area-inset-bottom));
  outline: none;
}

.page {
  animation: page-in 260ms ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

.welcome-card,
.module-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(15 118 110 / 10%);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 90% 12%, rgb(247 178 103 / 25%), transparent 11rem),
    linear-gradient(135deg, #d9efea 0%, #edf5e9 60%, #fff4e5 100%);
  box-shadow: var(--shadow-soft);
}

.welcome-card {
  display: grid;
  gap: 22px;
  padding: 28px 24px 24px;
}

.welcome-card::after,
.module-hero::after {
  position: absolute;
  right: -54px;
  bottom: -78px;
  width: 190px;
  height: 190px;
  border: 1px solid rgb(15 118 110 / 12%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 22px rgb(255 255 255 / 12%), inset 0 0 0 44px rgb(15 118 110 / 4%);
  content: "";
  pointer-events: none;
}

.welcome-card__copy,
.module-hero > div,
.today-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: -.035em;
  line-height: 1.15;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 8vw, 48px);
}

h2 {
  margin-bottom: 7px;
  font-size: clamp(21px, 5vw, 27px);
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.welcome-card__copy p,
.module-hero p {
  max-width: 650px;
  margin-bottom: 0;
  color: #4d605d;
  font-size: 16px;
}

.today-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 64%);
  border-radius: var(--radius-small);
  background: rgb(255 255 255 / 58%);
  box-shadow: 0 8px 24px rgb(28 83 77 / 7%);
  backdrop-filter: blur(8px);
}

.today-card__icon {
  grid-row: 1 / 3;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.today-card span {
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.today-card strong {
  font-size: 14px;
  text-transform: capitalize;
}

.content-section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
  padding: 0 3px;
}

.section-heading p {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
}

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

.summary-card {
  --module-color: var(--color-primary);
  --module-soft: var(--color-primary-soft);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 116px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  background: var(--color-surface-strong);
  box-shadow: 0 7px 22px rgb(28 43 42 / 4%);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.summary-card:hover {
  border-color: color-mix(in srgb, var(--module-color) 45%, var(--color-line));
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.summary-card--parking {
  --module-color: var(--color-parking);
  --module-soft: var(--color-parking-soft);
}

.summary-card--duties {
  --module-color: var(--color-duties);
  --module-soft: var(--color-duties-soft);
}

.summary-card--events {
  --module-color: var(--color-events);
  --module-soft: var(--color-events-soft);
}

.summary-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--module-soft);
  color: var(--module-color);
  place-items: center;
}

.summary-card__content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.summary-card__label {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-card__content strong {
  font-size: 15px;
  line-height: 1.35;
}

.summary-card__arrow {
  width: 20px;
  height: 20px;
  color: var(--module-color);
  transition: transform 180ms ease;
}

.summary-card:hover .summary-card__arrow {
  transform: translateX(3px);
}

.community-empty {
  display: flex;
  min-height: 150px;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px dashed #c9cec7;
  border-radius: var(--radius-medium);
  background: rgb(255 253 248 / 58%);
}

.community-empty__art {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  place-items: center;
}

.community-empty p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.module-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
}

.module-hero__icon {
  position: relative;
  z-index: 1;
  display: none;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: rgb(255 255 255 / 58%);
  color: var(--color-primary);
  place-items: center;
  box-shadow: 0 10px 24px rgb(28 83 77 / 8%);
}

.module-hero__icon .icon {
  width: 36px;
  height: 36px;
}

.page--parking {
  --module-color: var(--color-parking);
  --module-soft: var(--color-parking-soft);
}

.page--duties {
  --module-color: var(--color-duties);
  --module-soft: var(--color-duties-soft);
}

.page--events {
  --module-color: var(--color-events);
  --module-soft: var(--color-events-soft);
}

.page--parking .module-hero {
  background: linear-gradient(135deg, #d8eff0, #e7f3ef 62%, #f7f4e9);
}

.page--duties .module-hero {
  background: linear-gradient(135deg, #faead1, #f7f1df 62%, #edf3e7);
}

.page--events .module-hero {
  background: linear-gradient(135deg, #f8e1dc, #f7e9df 62%, #f5f1df);
}

.page--module .module-hero__icon,
.page--module .eyebrow {
  color: var(--module-color);
}

.module-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.module-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  background: var(--color-surface-strong);
  box-shadow: 0 7px 24px rgb(28 43 42 / 4%);
}

.section-heading--panel {
  min-height: 92px;
  align-items: flex-start;
  margin-bottom: 17px;
  padding: 0;
}

.section-heading--panel h2 {
  font-size: 21px;
}

.empty-panel {
  display: grid;
  min-height: 250px;
  align-content: center;
  justify-items: center;
  padding: 30px 20px;
  border: 1px dashed color-mix(in srgb, var(--module-color) 28%, var(--color-line));
  border-radius: 17px;
  background: color-mix(in srgb, var(--module-soft) 28%, white);
  text-align: center;
}

.empty-panel__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  border-radius: 19px;
  background: var(--module-soft);
  color: var(--module-color);
  place-items: center;
}

.empty-panel p {
  max-width: 360px;
  margin-bottom: 19px;
  color: var(--color-muted);
  font-size: 14px;
}

.ready-label {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 74%);
  color: var(--module-color);
  font-size: 11px;
  font-weight: 800;
}

.not-found-card {
  display: grid;
  max-width: 650px;
  min-height: 520px;
  margin: 0 auto;
  padding: 48px 24px;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-large);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.not-found-card__icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 21px;
  border-radius: 24px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  place-items: center;
  transform: rotate(-4deg);
}

.not-found-card p {
  max-width: 440px;
  margin-bottom: 25px;
  color: var(--color-muted);
}

.primary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--color-primary);
  color: white;
  font-weight: 750;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-link:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.primary-link .icon {
  width: 19px;
  height: 19px;
}

.bottom-navigation {
  position: fixed;
  z-index: 30;
  right: 10px;
  bottom: max(9px, env(safe-area-inset-bottom));
  left: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 68px;
  padding: 6px;
  border: 1px solid rgb(214 217 209 / 86%);
  border-radius: 21px;
  background: rgb(255 253 248 / 94%);
  box-shadow: 0 16px 45px rgb(28 43 42 / 18%);
  backdrop-filter: blur(20px) saturate(1.25);
}

.nav-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-radius: 13px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover {
  background: rgb(15 118 110 / 7%);
  color: var(--color-primary-dark);
}

.nav-link.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.nav-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.nav-link--mobile {
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 15px;
  font-size: 10px;
}

.nav-link--mobile .nav-icon {
  width: 22px;
  height: 22px;
}

.startup-error {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 30px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.startup-error .logo-mark {
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  color: var(--color-primary);
}

.startup-error h1 {
  font-size: 27px;
}

.startup-error p {
  color: var(--color-muted);
}

.startup-error button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
  font-weight: 750;
}

:focus-visible {
  outline: 3px solid rgb(15 118 110 / 38%);
  outline-offset: 3px;
}

@media (min-width: 540px) {
  .network-status > span {
    display: inline;
  }

  .welcome-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding: 34px;
  }

  .today-card {
    min-width: 190px;
  }

  .module-hero__icon {
    display: grid;
  }
}

@media (min-width: 700px) {
  .main-content {
    padding: 26px 28px calc(105px + env(safe-area-inset-bottom));
  }

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

  .summary-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
  }

  .summary-card__arrow {
    display: none;
  }

  .module-hero {
    padding: 38px 36px;
  }
}

@media (min-width: 900px) {
  .app-frame {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    padding: 27px 20px 24px;
    border-right: 1px solid rgb(222 223 216 / 85%);
    background: rgb(255 253 248 / 72%);
    backdrop-filter: blur(18px);
  }

  .brand {
    gap: 11px;
    padding: 0 8px;
    font-size: 23px;
  }

  .brand .logo-mark {
    width: 42px;
    height: 42px;
  }

  .house-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 25px 8px 15px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
  }

  .house-label__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #52a36f;
    box-shadow: 0 0 0 4px rgb(82 163 111 / 12%);
  }

  .side-navigation {
    display: grid;
    gap: 5px;
  }

  .side-navigation .nav-link {
    min-height: 49px;
  }

  .brand-line {
    margin: auto 9px 0;
    color: #84918f;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.65;
  }

  .app-header {
    min-height: 70px;
    justify-content: flex-end;
    padding: 14px 32px;
  }

  .mobile-brand,
  .bottom-navigation {
    display: none;
  }

  .main-content {
    min-height: calc(100vh - 70px);
    min-height: calc(100dvh - 70px);
    padding: 34px 34px 70px;
  }

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

@media (min-width: 1200px) {
  :root {
    --sidebar-width: 270px;
  }

  .main-content {
    padding-right: 42px;
    padding-left: 42px;
  }

  .welcome-card {
    padding: 42px;
  }

  .module-panel {
    padding: 26px;
  }
}

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