/* Csak a Capacitor iOS/Android alkalmazásban érvényes, a webes és PWA-nézet
   marad a jelenlegi formájában. */
html[data-kelen-runtime="native"] {
  background: #f3f7f4;
}

html[data-kelen-runtime="native"] body {
  overscroll-behavior-y: none;
  background: #f3f7f4;
}

html[data-kelen-runtime="native"] .login-screen {
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 100% 0%, rgba(18, 237, 121, 0.2), transparent 34%),
    linear-gradient(180deg, #061f18 0, #073d30 32%, #edf5f0 32%);
}

html[data-kelen-runtime="native"] .login-shell {
  gap: 0;
  width: min(100%, 560px);
}

html[data-kelen-runtime="native"] .login-showcase {
  min-height: 238px;
  border-radius: 28px 28px 0 0;
  padding: 26px 24px 22px;
}

html[data-kelen-runtime="native"] .login-showcase-crest {
  min-height: 112px;
}

html[data-kelen-runtime="native"] .login-showcase-copy strong {
  font-size: 2rem;
}

html[data-kelen-runtime="native"] .login-card {
  gap: 18px;
  width: 100%;
  margin-top: -1px;
  border-radius: 0 0 28px 28px;
  padding: 22px 18px max(24px, env(safe-area-inset-bottom));
  box-shadow: 0 24px 60px rgba(0, 40, 29, 0.2);
}

html[data-kelen-runtime="native"] .login-brand {
  display: none;
}

html[data-kelen-runtime="native"] .login-copy {
  padding: 0 2px;
}

html[data-kelen-runtime="native"] .login-copy h2 {
  font-size: clamp(1.75rem, 7vw, 2.25rem);
}

html[data-kelen-runtime="native"] .login-pwa-install,
html[data-kelen-runtime="native"] .pwa-install-action {
  display: none !important;
}

html[data-kelen-runtime="native"] .login-form input,
html[data-kelen-runtime="native"] .login-form select,
html[data-kelen-runtime="native"] .login-form textarea,
html[data-kelen-runtime="native"] .login-form button {
  min-height: 54px;
  border-radius: 14px;
  font-size: 1rem;
}

html[data-kelen-runtime="native"] .auth-reset-button {
  min-height: 44px !important;
}

html[data-kelen-runtime="native"] .login-theme-mode-action {
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
}

html[data-kelen-runtime="native"] .app-shell {
  display: block;
  min-height: 100dvh;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

html[data-kelen-runtime="native"] .app-shell > .sidebar {
  display: none !important;
}

html[data-kelen-runtime="native"] .workspace,
html[data-kelen-runtime="native"] .app-shell.is-player-focus .workspace,
html[data-kelen-runtime="native"] .app-shell.is-coach-focus .workspace,
html[data-kelen-runtime="native"] .app-shell.is-payment-focus .workspace {
  min-height: calc(100dvh - 82px);
  padding: max(12px, env(safe-area-inset-top)) 12px 18px;
  background: #f3f7f4;
}

html[data-kelen-runtime="native"] .topbar {
  position: sticky;
  top: 0;
  z-index: 14;
  min-height: 70px;
  margin: 0 0 12px;
  border-left-width: 4px;
  border-radius: 18px;
  padding: 13px 14px;
  box-shadow: 0 10px 24px rgba(22, 55, 42, 0.1);
}

html[data-kelen-runtime="native"] .topbar-title h2 {
  font-size: 1.32rem;
}

html[data-kelen-runtime="native"] .topbar .toolbar {
  display: none !important;
}

html[data-kelen-runtime="native"] .home-state,
html[data-kelen-runtime="native"] .detail-panel,
html[data-kelen-runtime="native"] .home-global-panel {
  border-radius: 18px;
}

html[data-kelen-runtime="native"] .app-shell.is-player-focus,
html[data-kelen-runtime="native"] .app-shell.is-coach-focus,
html[data-kelen-runtime="native"] .app-shell.is-payment-focus {
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

html[data-kelen-runtime="native"] .app-shell.is-player-focus .workspace,
html[data-kelen-runtime="native"] .app-shell.is-coach-focus .workspace,
html[data-kelen-runtime="native"] .app-shell.is-payment-focus .workspace {
  padding: max(12px, env(safe-area-inset-top)) 12px 18px;
  background: #f3f7f4;
}

html[data-kelen-runtime="native"] .app-shell.is-player-focus .topbar,
html[data-kelen-runtime="native"] .app-shell.is-coach-focus .topbar,
html[data-kelen-runtime="native"] .app-shell.is-payment-focus .topbar {
  display: flex !important;
}

html[data-kelen-runtime="native"] .app-shell.is-player-focus .detail-panel {
  min-height: auto;
  background: var(--white);
}

.native-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  min-height: calc(72px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(12, 60, 42, 0.13);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -9px 28px rgba(18, 51, 39, 0.12);
  backdrop-filter: blur(16px);
}

.native-bottom-nav[hidden] {
  display: none;
}

.native-bottom-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  padding: 5px 3px;
  color: #4d6470;
  background: transparent;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 850;
  line-height: 1.05;
}

.native-bottom-nav button svg {
  width: 22px;
  height: 22px;
}

.native-bottom-nav button.is-active {
  color: #087c55;
  background: #e8f7ed;
}

.native-bottom-nav button.is-active svg {
  stroke-width: 2.8;
}

.native-bottom-nav .native-menu-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 19px);
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 3px;
  color: #fff;
  background: #c8364a;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 950;
}

.native-app-menu {
  width: min(100%, 560px);
  max-width: 100%;
  max-height: min(78dvh, 740px);
  margin: auto auto 0;
  border: 0;
  border-radius: 26px 26px 0 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 -14px 44px rgba(0, 31, 23, 0.24);
}

.native-app-menu::backdrop {
  background: rgba(5, 28, 20, 0.46);
  backdrop-filter: blur(3px);
}

.native-app-menu-card {
  display: grid;
  gap: 14px;
  max-height: min(78dvh, 740px);
  overflow: auto;
  border-radius: 26px 26px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  background: #fff;
}

.native-app-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.native-app-menu-head h2 {
  font-size: 1.28rem;
}

.native-app-menu-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.native-app-menu-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  border: 1px solid #d8e6de;
  border-radius: 15px;
  padding: 10px;
  color: var(--ink);
  background: #fbfdfb;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: left;
}

.native-app-menu-item svg {
  width: 20px;
  height: 20px;
  color: #087c55;
}

.native-app-menu-item.is-active {
  border-color: #4cac79;
  background: #e9f8ee;
}

.native-app-signout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border: 1px solid #f0b7be;
  border-radius: 14px;
  color: #a52e3c;
  background: #fff7f7;
  font: inherit;
  font-weight: 850;
}

@media (max-width: 360px) {
  .native-bottom-nav button {
    font-size: 0.6rem;
  }

  .native-app-menu-items {
    grid-template-columns: minmax(0, 1fr);
  }
}
