@charset "UTF-8";

:root {
  color-scheme: light;
  --appkit-page: #eef2f5;
  --appkit-surface: #ffffff;
  --appkit-surface-soft: #f4f7f9;
  --appkit-text: #192129;
  --appkit-muted: #65717d;
  --appkit-line: #d6dde4;
  --appkit-highlight: #4a89dc;
  --appkit-highlight-dark: #3473c8;
  --appkit-highlight-soft: #edf5ff;
  --appkit-sun: #f6bb42;
  --appkit-sun-dark: #d99b20;
  --appkit-parking: #4a89dc;
  --appkit-energy: #37bc9b;
  --appkit-revenue: #ed5565;
  --appkit-warning: #f6bb42;
  --appkit-danger: #ed5565;
  --appkit-success: #37bc9b;
  --appkit-sun-ink: #965b0a;
  --appkit-parking-ink: #285f9f;
  --appkit-energy-ink: #1f725d;
  --appkit-revenue-ink: #a63d4b;
  --appkit-drift: #705faf;
  --appkit-drift-ink: #5f4f99;
  --appkit-radius: 8px;
  --appkit-shadow: 0 6px 18px rgb(27 34 44 / 8%);
  --appkit-shadow-raised: 0 12px 32px rgb(27 34 44 / 13%);
  --appkit-header-height: 58px;
  --appkit-footer-height: 64px;
  --appkit-safe-top: env(safe-area-inset-top, 0px);
  --appkit-safe-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --appkit-page: #0f151b;
  --appkit-surface: #18212a;
  --appkit-surface-soft: #222d37;
  --appkit-text: #f2f5f8;
  --appkit-muted: #b1bdc9;
  --appkit-line: #374552;
  --appkit-highlight: #75b3f5;
  --appkit-highlight-dark: #9ac9fb;
  --appkit-highlight-soft: #1b3044;
  --appkit-sun: #f3bb4b;
  --appkit-sun-dark: #f3bb4b;
  --appkit-parking: #75b3f5;
  --appkit-energy: #58cbaa;
  --appkit-revenue: #ff7d89;
  --appkit-warning: #f3bb4b;
  --appkit-danger: #ff7d89;
  --appkit-success: #58cbaa;
  --appkit-sun-ink: #f3bb4b;
  --appkit-parking-ink: #75b3f5;
  --appkit-energy-ink: #58cbaa;
  --appkit-revenue-ink: #ff7d89;
  --appkit-drift: #b8a7f0;
  --appkit-drift-ink: #b8a7f0;
  --appkit-shadow: 0 1px 2px rgb(0 0 0 / 24%), 0 8px 20px rgb(0 0 0 / 14%);
  --appkit-shadow-raised: 0 2px 4px rgb(0 0 0 / 26%), 0 14px 30px rgb(0 0 0 / 20%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--appkit-page);
  -webkit-text-size-adjust: 100%;
}

body.appkit-mobile {
  height: auto !important;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--appkit-page) !important;
  color: var(--appkit-text) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px;
  line-height: 1.45 !important;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

body.appkit-mobile h1,
body.appkit-mobile h2,
body.appkit-mobile h3,
body.appkit-mobile h4,
body.appkit-mobile h5,
body.appkit-mobile h6 {
  color: var(--appkit-text);
  font-family: inherit !important;
  letter-spacing: 0;
}

body.appkit-mobile p {
  color: inherit;
}

body.appkit-mobile ::placeholder {
  color: color-mix(in srgb, var(--appkit-muted) 76%, transparent);
  opacity: 1;
}

body.appkit-mobile input,
body.appkit-mobile select,
body.appkit-mobile textarea {
  accent-color: var(--appkit-highlight);
}

body.appkit-mobile button,
body.appkit-mobile input,
body.appkit-mobile select,
body.appkit-mobile textarea {
  font: inherit;
  letter-spacing: 0;
}

body.appkit-mobile button,
body.appkit-mobile a {
  -webkit-tap-highlight-color: transparent;
}

body.appkit-mobile button:focus-visible,
body.appkit-mobile a:focus-visible,
body.appkit-mobile input:focus-visible,
body.appkit-mobile select:focus-visible,
body.appkit-mobile textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--appkit-highlight) 35%, transparent);
  outline-offset: 2px;
}

#page {
  height: auto !important;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible !important;
}

#preloader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--appkit-page);
  opacity: 1;
  transition: opacity 180ms ease, visibility 180ms ease;
}

#preloader::after {
  width: 24px;
  height: 24px;
  border: 3px solid var(--appkit-line);
  border-top-color: var(--appkit-highlight);
  border-radius: 50%;
  content: "";
  animation: appkit-spin 700ms linear infinite;
}

#preloader.is-complete {
  visibility: hidden;
  opacity: 0;
}

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

.appkit-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  min-height: calc(var(--appkit-header-height) + var(--appkit-safe-top));
  align-items: center;
  gap: 8px;
  padding: max(6px, var(--appkit-safe-top)) 10px 6px;
  border-bottom: 1px solid var(--appkit-line);
  background: color-mix(in srgb, var(--appkit-surface) 94%, transparent);
  box-shadow: 0 1px 8px rgb(15 23 42 / 5%);
  backdrop-filter: blur(18px);
}

.appkit-header-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--appkit-text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appkit-header-subtitle {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--appkit-muted);
  font-size: 0.72rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appkit-header-action,
.appkit-brand-action {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--appkit-text);
  text-decoration: none;
}

.appkit-header-action:active,
.appkit-brand-action:active {
  background: var(--appkit-surface-soft);
  transform: scale(0.96);
}

.appkit-brand-action img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.appkit-header-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.appkit-page-content {
  width: min(100%, 780px);
  margin: 0 auto;
  overflow: visible;
  padding: 12px 12px calc(22px + var(--appkit-safe-bottom));
}

.appkit-page-content.has-footer {
  padding-bottom: calc(var(--appkit-footer-height) + 22px + var(--appkit-safe-bottom));
}

.appkit-page-title {
  display: flex;
  min-height: 66px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 12px;
}

.appkit-page-title p {
  margin: 0 0 1px;
  color: var(--appkit-highlight);
  font-size: 0.72rem;
  font-weight: 750;
}

.appkit-page-title h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.06;
}

.appkit-page-title > span {
  color: var(--appkit-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}

.appkit-glance {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--appkit-radius);
  background: #2b2d30;
  color: #fff;
  box-shadow: var(--appkit-shadow-raised);
}

.appkit-glance::after {
  position: absolute;
  top: -44px;
  right: -34px;
  width: 132px;
  height: 132px;
  border: 24px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  content: "";
}

.appkit-glance h1,
.appkit-glance h2,
.appkit-glance h3,
.appkit-glance p,
.appkit-glance small,
.appkit-glance strong {
  position: relative;
  z-index: 1;
  color: inherit !important;
}

.appkit-glance-kicker {
  display: block;
  margin-bottom: 2px;
  color: rgb(255 255 255 / 78%);
  font-size: 0.72rem;
  font-weight: 700;
}

.appkit-glance h1,
.appkit-glance h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.appkit-glance-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--appkit-metric-count, 3), minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.appkit-glance-metrics > * {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.appkit-glance-metrics strong {
  overflow: hidden;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appkit-glance-metrics small {
  color: rgb(255 255 255 / 74%) !important;
  font-size: 0.7rem;
}

.appkit-content-title {
  display: flex;
  min-height: 48px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 8px;
}

.appkit-content-title h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
}

.appkit-content-title span {
  color: var(--appkit-muted);
  font-size: 0.72rem;
}

.appkit-icon-tile {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--appkit-radius);
  background: var(--appkit-highlight-soft);
  color: var(--appkit-highlight);
}

.appkit-icon-tile svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.appkit-card,
body.appkit-mobile .card-style {
  overflow: hidden;
  border: 1px solid var(--appkit-line);
  border-radius: var(--appkit-radius);
  background: var(--appkit-surface);
  box-shadow: var(--appkit-shadow);
}

.appkit-section-title {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--appkit-line);
}

.appkit-section-title h2,
.appkit-section-title h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.appkit-kicker {
  margin: 0 0 2px;
  color: var(--appkit-highlight);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.appkit-muted {
  color: var(--appkit-muted) !important;
}

.appkit-footer {
  position: fixed;
  z-index: 110;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(var(--appkit-nav-count, 4), minmax(0, 1fr));
  min-height: calc(var(--appkit-footer-height) + var(--appkit-safe-bottom));
  padding: 4px 8px max(4px, var(--appkit-safe-bottom));
  border-top: 1px solid var(--appkit-line);
  background: color-mix(in srgb, var(--appkit-surface) 96%, transparent);
  box-shadow: 0 -6px 22px rgb(15 23 42 / 7%);
  backdrop-filter: blur(18px);
}

.appkit-footer a,
.appkit-footer button {
  display: grid;
  min-width: 0;
  min-height: 54px;
  padding: 5px 3px 3px;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--appkit-muted);
  font-size: 0.71rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

.appkit-footer a.is-active,
.appkit-footer button.is-active,
.appkit-footer a[aria-current="page"] {
  background: var(--appkit-highlight-soft);
  color: var(--appkit-highlight);
}

.appkit-footer a.is-primary,
.appkit-footer button.is-primary {
  position: relative;
  overflow: visible;
  padding-top: 28px;
}

.appkit-footer a.is-primary svg,
.appkit-footer button.is-primary svg {
  position: absolute;
  top: -21px;
  width: 48px;
  height: 48px;
  padding: 13px;
  border: 4px solid var(--appkit-surface);
  border-radius: 50%;
  background: var(--appkit-highlight);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--appkit-highlight) 32%, transparent);
}

.appkit-footer a.is-primary.is-active,
.appkit-footer button.is-primary.is-active {
  background: transparent;
}

.appkit-footer svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.appkit-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--appkit-highlight);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--appkit-highlight) 24%, transparent);
}

.appkit-button.secondary {
  border-color: var(--appkit-line);
  background: var(--appkit-surface-soft);
  color: var(--appkit-text);
  box-shadow: none;
}

.appkit-theme-setting {
  display: grid;
  width: 100%;
  min-height: 48px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--appkit-line);
  border-radius: 7px;
  background: var(--appkit-surface-soft);
  color: var(--appkit-text);
  text-align: left;
}

.appkit-theme-setting:active {
  background: var(--appkit-highlight-soft);
}

.appkit-theme-setting svg {
  width: 22px;
  height: 22px;
  margin: auto;
  fill: none;
  stroke: var(--appkit-highlight);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.appkit-theme-setting span {
  display: grid;
  gap: 1px;
}

.appkit-theme-setting strong {
  font-size: 0.82rem;
}

.appkit-theme-setting small {
  color: var(--appkit-muted);
  font-size: 0.72rem;
}

.appkit-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--appkit-line);
  border-radius: 999px;
  background: var(--appkit-surface-soft);
  color: var(--appkit-muted);
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
}

.appkit-chip.is-success {
  border-color: color-mix(in srgb, var(--appkit-success) 35%, var(--appkit-line));
  background: color-mix(in srgb, var(--appkit-success) 12%, var(--appkit-surface));
  color: var(--appkit-success);
}

.appkit-chip.is-warning {
  border-color: color-mix(in srgb, var(--appkit-warning) 40%, var(--appkit-line));
  background: color-mix(in srgb, var(--appkit-warning) 14%, var(--appkit-surface));
  color: var(--appkit-sun-dark);
}

.appkit-chip.is-danger {
  border-color: color-mix(in srgb, var(--appkit-danger) 36%, var(--appkit-line));
  background: color-mix(in srgb, var(--appkit-danger) 12%, var(--appkit-surface));
  color: var(--appkit-danger);
}

.appkit-form label {
  display: grid;
  gap: 6px;
  color: var(--appkit-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.appkit-form input,
.appkit-form select,
.appkit-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--appkit-line);
  border-radius: 7px;
  background: var(--appkit-surface-soft);
  color: var(--appkit-text);
  font-size: 0.94rem;
}

.appkit-form textarea {
  min-height: 92px;
  resize: vertical;
}

.appkit-login {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(30px, var(--appkit-safe-top)) 18px max(30px, var(--appkit-safe-bottom));
  place-items: center;
  background: var(--appkit-page);
}

.appkit-login-panel {
  width: min(100%, 410px);
  padding: 24px;
  border: 1px solid var(--appkit-line);
  border-radius: var(--appkit-radius);
  background: var(--appkit-surface);
  box-shadow: var(--appkit-shadow-raised);
}

.appkit-login-brand {
  display: block;
  width: min(250px, 75%);
  max-height: 72px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.appkit-login-panel h1 {
  margin: 0;
  font-size: 1.55rem;
}

.appkit-login-panel > p {
  margin: 7px 0 18px;
  color: var(--appkit-muted);
}

.appkit-login-panel form {
  display: grid;
  gap: 14px;
}

.appkit-login-panel button[type="submit"] {
  min-height: 46px;
  margin-top: 2px;
  border: 0;
  border-radius: 7px;
  background: var(--appkit-highlight);
  color: #fff;
  font-weight: 750;
}

.appkit-theme-button .theme-light-icon,
:root[data-theme="dark"] .appkit-theme-button .theme-dark-icon {
  display: none;
}

:root[data-theme="dark"] .appkit-theme-button .theme-light-icon {
  display: block;
}

/* Dark mode uses restrained neutral layers. Area colors remain signals. */
:root[data-theme="dark"] .appkit-header,
:root[data-theme="dark"] .appkit-footer {
  border-color: var(--appkit-line);
  background: rgb(20 27 35 / 97%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 2%), 0 8px 24px rgb(0 0 0 / 18%);
}

:root[data-theme="dark"] .appkit-card,
:root[data-theme="dark"] body.appkit-mobile .card-style,
:root[data-theme="dark"] .appkit-login-panel {
  border-color: var(--appkit-line);
  background: var(--appkit-surface);
  box-shadow: var(--appkit-shadow);
}

:root[data-theme="dark"] .appkit-header-action:active,
:root[data-theme="dark"] .appkit-brand-action:active,
:root[data-theme="dark"] .appkit-footer a.is-active,
:root[data-theme="dark"] .appkit-footer button.is-active,
:root[data-theme="dark"] .appkit-footer a[aria-current="page"] {
  background: color-mix(in srgb, var(--appkit-highlight) 11%, var(--appkit-surface));
}

:root[data-theme="dark"] .appkit-form input,
:root[data-theme="dark"] .appkit-form select,
:root[data-theme="dark"] .appkit-form textarea {
  border-color: var(--appkit-line);
  background: #131b23;
  color: var(--appkit-text);
}

:root[data-theme="dark"] .appkit-chip {
  border-color: var(--appkit-line);
  background: var(--appkit-surface-soft);
}

@media (min-width: 700px) {
  .appkit-footer {
    right: max(0px, calc((100vw - 780px) / 2));
    left: max(0px, calc((100vw - 780px) / 2));
    border-right: 1px solid var(--appkit-line);
    border-left: 1px solid var(--appkit-line);
    border-radius: 8px 8px 0 0;
  }
}

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