.auth-stage {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
  min-height: calc(100vh - 12rem);
  padding: 0.5rem 0 2rem;
}

.auth-glass {
  width: min(28.5rem, 100%);
  padding: 1.45rem 1.25rem 1.2rem;
  border: 1px solid rgba(94, 235, 255, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(94, 235, 255, 0.08), transparent 32%),
    rgba(17, 28, 48, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(94, 235, 255, 0.22),
    0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.auth-glass h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
}

.auth-glass .lead {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.auth-view h2 {
  margin-bottom: 0.85rem;
}

.auth-view .field {
  margin-bottom: 0.85rem;
}

.auth-view .field > input,
.password-field input,
.captcha-word {
  width: 100%;
  margin-bottom: 0;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 5.6rem;
}

.password-field .password-toggle {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  width: auto;
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  transform: translateY(-50%);
}

.auth-view .hint {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
}

.auth-view .check {
  margin-top: 0.2rem;
}

.auth-submit {
  width: 100%;
  margin-top: 0.85rem;
}

.form-status {
  min-height: 0;
  margin: 0.85rem 0 0;
}

.form-status:empty,
#login-reset-hint:empty,
#captcha-result:empty,
#reset-demo-status:empty {
  display: none;
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--danger, #ffd0c8);
  font-size: 0.92rem;
}

.field-error:empty {
  display: none;
}

.auth-view input[aria-invalid="true"] {
  border-color: #ffb4ab;
  box-shadow: inset 3px 0 0 #ffb4ab;
}

.auth-links {
  margin: 0.85rem 0 0;
}

.auth-temp {
  margin: 1.15rem 0 0;
}

.auth-temp .btn {
  width: 100%;
}

#login-reset-hint:not(:empty),
#captcha-result:not(:empty) {
  margin-top: 0.75rem;
}

#register-terms-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

#captcha-box {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(167, 178, 199, 0.22);
}

#captcha-box h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.auth-test {
  width: min(28.5rem, 100%);
  padding: 0.85rem 0.95rem;
  border: 1px dashed rgba(167, 178, 199, 0.45);
  border-radius: 14px;
  color: var(--muted);
}

.auth-test p {
  margin: 0 0 0.6rem;
}

#reset-demo-status {
  margin-top: 0.65rem;
}

.site-footer {
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 1.2rem;
}

.footer-brand {
  margin: 0 0 0.25rem;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.footer-slogan,
.footer-inner p,
.footer-nav ul {
  margin: 0 0 0.45rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  padding: 0;
  list-style: none;
}

.company p {
  margin: 0;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 1.1rem auto 0;
  padding: 0;
  list-style: none;
}

.ph {
  display: inline-block;
  max-width: 100%;
  padding: 0.12rem 0.45rem;
  border: 1px dashed rgba(94, 235, 255, 0.5);
  border-radius: 7px;
  color: var(--text);
  font-size: 0.92em;
}

@media (prefers-reduced-motion: no-preference) {
  .auth-view.is-current {
    animation: auth-in 0.28s ease;
  }
}

@keyframes auth-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-toolbar,
.config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.panel-toolbar {
  margin: 0.25rem 0 1rem;
}

#panel-app > h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.panel-toolbar p {
  margin: 0;
  color: var(--muted);
}

.panel-demo {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  flex: 1 1 16rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(94, 235, 255, 0.28);
  border-radius: 14px;
  background: rgba(17, 28, 48, 0.72);
}

.panel-demo-icon,
.overview-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-demo-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin-top: 0.2rem;
  color: var(--glow);
}

.overview-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0.35rem 0 1.15rem;
}

.overview-stat,
.overview-activity {
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(94, 235, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(94, 235, 255, 0.07), transparent 46%),
    rgba(17, 28, 48, 0.9);
  box-shadow: inset 0 1px 0 rgba(94, 235, 255, 0.12);
}

.overview-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--primary);
}

.overview-label,
.overview-note,
.overview-value {
  overflow-wrap: anywhere;
}

.overview-label,
.overview-note {
  margin: 0;
  color: var(--muted);
}

.overview-label {
  margin-top: 0.45rem;
  font-size: 0.92rem;
}

[data-panel-view="powiadomienia"] fieldset:disabled {
  color: var(--muted);
}

[data-panel-view="powiadomienia"] fieldset:disabled .check {
  cursor: not-allowed;
}

.overview-stat .overview-value {
  margin: 0.15rem 0;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
}

.overview-note {
  font-size: 0.92rem;
}

.overview-activity h3 {
  margin: 0 0 0.7rem;
}

.overview-empty {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
}

.overview-empty p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 560px) {
  .overview-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1240px) {
  .overview-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .overview-stat {
    transition: border-color 0.2s ease;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .overview-stat:hover {
    border-color: rgba(0, 184, 255, 0.55);
  }
}

.services-lead,
.services-note,
.services-empty p,
.services-card p {
  color: var(--muted);
}

.services-lead {
  margin-top: 0;
}

.services-empty {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  max-width: 36rem;
  margin: 1.15rem auto 0.4rem;
  padding: 1.35rem 1.1rem;
  border: 1px solid rgba(94, 235, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(94, 235, 255, 0.07), transparent 46%),
    rgba(17, 28, 48, 0.9);
  box-shadow: inset 0 1px 0 rgba(94, 235, 255, 0.12);
  text-align: center;
}

.services-empty p,
.services-card p,
.services-card h3 {
  margin: 0;
}

.services-icon,
.services-card {
  overflow-wrap: anywhere;
}

.services-icon {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-note {
  font-size: 0.95rem;
}

.services-list {
  display: grid;
  gap: 0.8rem;
}

.services-card {
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(94, 235, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(94, 235, 255, 0.07), transparent 42%),
    rgba(17, 28, 48, 0.9);
}

.services-card h3 {
  color: var(--text);
}

.services-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.75rem 0;
}

.services-resources div {
  min-width: 0;
}

.services-resources dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.services-resources dd {
  margin: 0;
  color: var(--text);
}

@media (max-width: 519px) {
  .services-resources {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 860px) {
  .services-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .services-card {
    transition: border-color 0.2s ease;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .services-card:hover {
    border-color: rgba(0, 184, 255, 0.55);
  }
}

.orders-lead,
.orders-note,
.orders-empty p,
.orders-card p,
.orders-fields dt {
  color: var(--muted);
}

.orders-lead {
  margin-top: 0;
}

.orders-empty {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  max-width: 36rem;
  margin: 1.15rem auto 0.4rem;
  padding: 1.35rem 1.1rem;
  border: 1px solid rgba(94, 235, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(94, 235, 255, 0.07), transparent 46%),
    rgba(17, 28, 48, 0.9);
  box-shadow: inset 0 1px 0 rgba(94, 235, 255, 0.12);
  text-align: center;
}

.orders-empty p,
.orders-card p,
.orders-card h3 {
  margin: 0;
}

.orders-icon,
.orders-card,
.orders-fields dd {
  overflow-wrap: anywhere;
}

.orders-icon {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orders-note {
  font-size: 0.95rem;
}

.orders-list {
  display: grid;
  gap: 0.8rem;
}

.orders-card {
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(94, 235, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(94, 235, 255, 0.07), transparent 42%),
    rgba(17, 28, 48, 0.9);
}

.orders-card h3,
.orders-fields dd {
  color: var(--text);
}

.orders-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0.75rem 0;
}

.orders-fields div {
  min-width: 0;
}

.orders-fields dt {
  font-size: 0.92rem;
}

.orders-fields dd {
  margin: 0;
}

@media (min-width: 560px) {
  .orders-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .orders-list {
    grid-template-columns: 1fr;
  }

  .orders-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
    column-gap: 1rem;
    align-items: start;
  }

  .orders-fields {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .orders-card {
    transition: border-color 0.2s ease;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .orders-card:hover {
    border-color: rgba(0, 184, 255, 0.55);
  }
}

.account-lead {
  margin-top: 0;
}

.account-note,
.account-facts dt {
  color: var(--muted);
}

.account-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.account-card {
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(94, 235, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(94, 235, 255, 0.07), transparent 42%),
    rgba(17, 28, 48, 0.9);
  box-shadow: inset 0 1px 0 rgba(94, 235, 255, 0.12);
}

.account-card h3 {
  margin-top: 0;
  color: var(--text);
}

.account-card p,
.account-facts,
.account-facts dd {
  overflow-wrap: anywhere;
}

.account-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}

.account-facts div {
  min-width: 0;
}

.account-facts dt {
  font-size: 0.92rem;
}

.account-facts dd {
  margin: 0;
  color: var(--text);
}

.account-form .field input {
  width: 100%;
}

.account-card .password-field .password-toggle {
  width: auto;
}

@media (min-width: 1100px) {
  .account-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .account-card {
    transition: border-color 0.2s ease;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .account-card:hover {
    border-color: rgba(0, 184, 255, 0.55);
  }
}

.account-avatar {
  grid-column: 1 / -1;
}

.avatar-layout {
  display: grid;
  gap: 1rem;
}

.avatar-current,
.avatar-pending img,
.avatar-choice svg,
.nav-avatar svg,
.nav-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-current {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(0, 184, 255, 0.7);
  border-radius: 16px;
  overflow: hidden;
  background: #080c16;
}

.avatar-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr));
  gap: 0.5rem;
}

.avatar-choice {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(167, 178, 199, 0.38);
  border-radius: 14px;
  overflow: hidden;
  background: #080c16;
}

.avatar-choice[aria-pressed="true"] {
  border-color: #00b8ff;
  box-shadow: inset 0 0 0 1px #5eebff;
}

.avatar-check {
  position: absolute;
  right: 0.28rem;
  bottom: 0.28rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #00b8ff;
  color: #080c16;
}

.avatar-check svg {
  width: 1rem;
  height: 1rem;
}

.avatar-upload h4 {
  margin-top: 0;
}

.avatar-drop {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px dashed rgba(94, 235, 255, 0.45);
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.45);
}

.avatar-drop p,
#avatar-file-name {
  margin: 0;
  overflow-wrap: anywhere;
}

.avatar-drop.is-over {
  border-color: #00b8ff;
  box-shadow: inset 0 0 0 1px #5eebff;
}

.avatar-pending {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0.7rem 0;
  border-radius: 14px;
  overflow: hidden;
  background: #080c16;
}

.avatar-upload .btn:disabled {
  opacity: 0.45;
}

.site-nav .nav-panel {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.nav-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(0, 184, 255, 0.7);
  border-radius: 50%;
  overflow: hidden;
  background: #111c30;
}

.site-nav .nav-panel a {
  min-width: 0;
}

@media (min-width: 900px) {
  .avatar-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.85fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .avatar-choice,
  .nav-avatar {
    transition: border-color 0.2s ease;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .avatar-choice:hover,
  .nav-avatar:hover {
    border-color: #5eebff;
  }
}

.help-card,
.help-faq,
.help-company,
.help-card p,
.help-item p,
.help-actions .btn {
  min-width: 0;
  overflow-wrap: anywhere;
}

.help-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin: 0.35rem 0 1.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(0, 184, 255, 0.45);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(0, 184, 255, 0.1), transparent 48%),
    #111c30;
  box-shadow: inset 0 1px 0 rgba(94, 235, 255, 0.16);
}

.help-card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #5eebff;
}

.help-card-icon svg {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.help-card h3,
.help-faq h3,
.help-company h3 {
  margin-top: 0;
}

.help-card p {
  margin: 0 0 0.55rem;
}

.help-note,
.help-company,
.help-item p {
  color: #a7b2c7;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.help-actions .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.help-faq {
  scroll-margin-top: 5.5rem;
}

.help-item {
  border-top: 1px solid rgba(94, 235, 255, 0.16);
}

.help-item:last-child {
  border-bottom: 1px solid rgba(94, 235, 255, 0.16);
}

.help-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.7rem 0.15rem;
  color: #f5f7ff;
  cursor: pointer;
  list-style: none;
}

.help-item summary::-webkit-details-marker {
  display: none;
}

.help-item summary::marker {
  content: "";
}

.help-item summary span:first-child {
  min-width: 0;
}

.help-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #5eebff;
  border-bottom: 2px solid #5eebff;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.help-item[open] summary {
  color: #5eebff;
}

.help-item[open] .help-chevron {
  transform: translateY(2px) rotate(-135deg);
}

.help-item p {
  margin: 0 0 0.85rem;
  padding-right: 1.4rem;
}

.help-company {
  margin-top: 1.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(167, 178, 199, 0.22);
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.35);
}

.help-company h3 {
  font-size: 1rem;
  color: #f5f7ff;
}

.help-company p {
  margin: 0 0 0.35rem;
}

@media (max-width: 719px) {
  .help-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .help-chevron {
    transition: transform 0.2s ease;
  }
}

.panel-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.resource-alert {
  position: sticky;
  top: 4.75rem;
  z-index: 4;
  margin: 0 0 0.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(94, 235, 255, 0.45);
  border-radius: 14px;
  background: #111c30;
}

.panel-menu-toggle {
  display: none;
}

.menu-btn {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  min-height: 44px;
  margin: 0.2rem 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(0, 184, 255, 0.45);
  border-radius: 12px;
  background: transparent;
  color: var(--glow);
  font: inherit;
  cursor: pointer;
}

.menu-btn.is-active {
  color: var(--text);
  border-color: var(--glow);
  box-shadow: 0 0 0 1px rgba(94, 235, 255, 0.35);
}

.submenu {
  margin: 0 0 0.45rem 0.7rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--line);
}

.menu-note,
.hint {
  color: var(--muted);
}

.config-list {
  display: grid;
  gap: 0.8rem;
}

.config-list.is-tiles {
  grid-template-columns: 1fr;
}

.config-card h3 {
  margin-top: 0.35rem;
}

@media (min-width: 800px) {
  .config-list.is-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 719px) {
  .panel-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-menu-toggle {
    display: inline-flex;
  }

  .panel-menu {
    display: none;
  }

  .panel-menu.is-open {
    display: block;
  }

  .menu-btn,
  .panel-toolbar .btn,
  .config-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-btn,
  .config-actions .btn {
    transition: none;
  }
}
