@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --wn-primary: #0074ff;
  --wn-primary-dark: #0056c7;
  --wn-primary-soft: rgba(0, 116, 255, 0.1);
  --wn-secondary: #1c2430;
  --wn-success: #1f9d63;
  --wn-warning: #d99018;
  --wn-danger: #e0456b;
  --wn-text: #202a37;
  --wn-muted: #708096;
  --wn-border: #dfe5f0;
  --wn-border-strong: #cdd7e6;
  --wn-card: rgba(255, 255, 255, 0.96);
  --wn-card-soft: #f7f9fd;
  --wn-body: #f4f7fc;
  --wn-shadow-lg: 0 28px 60px rgba(20, 31, 56, 0.12);
  --wn-shadow-md: 0 18px 36px rgba(20, 31, 56, 0.08);
  --wn-shadow-sm: 0 10px 22px rgba(20, 31, 56, 0.06);
  --wn-radius-xl: 32px;
  --wn-radius-lg: 24px;
  --wn-radius-md: 18px;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Inter", "Segoe UI", sans-serif;
}

.hidden,
[hidden] {
  display: none !important;
}

html {
  font-size: 15px;
  background: var(--wn-body);
}

body.worldnic-body {
  position: relative;
  min-height: 100vh;
  color: var(--wn-text);
  background:
    radial-gradient(circle at top left, rgba(0, 116, 255, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(24, 184, 212, 0.08), transparent 28%),
    var(--wn-body);
}

body.worldnic-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("/public/design-assets/worldnic/pattern/pattern5.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: min(42vw, 540px);
  opacity: 0.05;
}

body.worldnic-auth-body {
  background:
    linear-gradient(135deg, rgba(0, 116, 255, 0.08), rgba(24, 184, 212, 0.03) 38%, rgba(255, 255, 255, 0.55)),
    var(--wn-body);
}

body.worldnic-auth-body::before {
  opacity: 0.08;
  background-position: right top;
  background-size: min(52vw, 760px);
}

body.is-sidebar-open {
  overflow: hidden;
}

.worldnic-app {
  min-height: 100vh;
}

.worldnic-overlay {
  position: fixed;
  inset: 0;
  z-index: 59;
  border: 0;
  background: rgba(18, 29, 46, 0.52);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

body.is-sidebar-open .worldnic-overlay {
  opacity: 1;
  visibility: visible;
}

.worldnic-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  display: flex;
  width: 292px;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-right: 1px solid rgba(223, 229, 240, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 12px 0 40px rgba(20, 31, 56, 0.08);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.worldnic-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.worldnic-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.worldnic-brand__badge {
  display: flex;
  width: 3.15rem;
  height: 3.15rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #1bc9e7 0%, #0074ff 100%);
  box-shadow: 0 18px 34px rgba(0, 116, 255, 0.2);
}

.worldnic-brand__badge img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.worldnic-brand__copy {
  min-width: 0;
}

.worldnic-brand__copy strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--wn-text);
}

.worldnic-brand__copy small {
  display: block;
  margin-top: 0.2rem;
  color: var(--wn-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.worldnic-close,
.worldnic-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wn-border);
  border-radius: 1rem;
  background: #fff;
  color: var(--wn-text);
  box-shadow: var(--wn-shadow-sm);
}

.worldnic-close {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.55rem;
  line-height: 1;
}

.worldnic-sidebar__primary-link {
  flex-shrink: 0;
  margin-top: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(223, 229, 240, 0.9);
}

.worldnic-sidebar__scroll {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  margin-top: 0.35rem;
  padding-right: 0.3rem;
}

.worldnic-sidebar__scroll::-webkit-scrollbar {
  width: 8px;
}

.worldnic-sidebar__scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.worldnic-sidebar__section {
  display: grid;
  gap: 0.7rem;
}

.worldnic-sidebar__section + .worldnic-sidebar__section {
  padding-top: 1rem;
  border-top: 1px solid rgba(223, 229, 240, 0.9);
}

.worldnic-sidebar__section-title {
  margin: 0;
  color: #7f8ca1;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.worldnic-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8795aa;
}

.worldnic-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.worldnic-nav--event {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.worldnic-nav__item {
  display: grid;
  gap: 0.35rem;
}

.worldnic-nav__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.15rem;
  padding: 0.55rem 0.75rem;
  border-radius: 1.15rem;
  color: #6e7c91;
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.worldnic-nav__link:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.9);
  color: var(--wn-text);
  box-shadow: var(--wn-shadow-sm);
}

.worldnic-nav__link.is-active {
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.12), rgba(24, 184, 212, 0.04));
  color: var(--wn-text);
  box-shadow: inset 0 0 0 1px rgba(0, 116, 255, 0.12), var(--wn-shadow-sm);
}

.worldnic-nav__icon {
  display: flex;
  width: 2.45rem;
  height: 2.45rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid var(--wn-border);
  background: #fff;
  box-shadow: 0 10px 18px rgba(20, 31, 56, 0.04);
}

.worldnic-nav__icon img {
  width: 1rem;
  height: 1rem;
  opacity: 0.72;
}

.worldnic-nav__link.is-active .worldnic-nav__icon {
  border-color: transparent;
  background: linear-gradient(135deg, #19c4df, #0074ff);
  box-shadow: 0 16px 26px rgba(0, 116, 255, 0.18);
}

.worldnic-nav__link.is-active .worldnic-nav__icon img {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.worldnic-nav__sublinks {
  display: grid;
  gap: 0.32rem;
  margin-left: 3.25rem;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(205, 215, 230, 0.92);
}

.worldnic-nav__sublink {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.1rem;
  color: #76859a;
  font-size: 0.8rem;
  font-weight: 700;
  transition: color 0.18s ease, transform 0.18s ease;
}

.worldnic-nav__sublink:hover {
  color: var(--wn-primary);
  transform: translateX(1px);
}

.worldnic-nav__sublink.is-active {
  color: var(--wn-primary);
}

.worldnic-sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(223, 229, 240, 0.9);
}

.worldnic-sidebar__hint {
  border: 1px solid var(--wn-border);
  border-radius: 1.5rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 253, 0.96));
}

.worldnic-sidebar__hint strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wn-text);
}

.worldnic-sidebar__hint p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--wn-muted);
}

.worldnic-sidebar__logout {
  width: 100%;
  justify-content: center;
}

.worldnic-main {
  min-width: 0;
  margin-left: 292px;
}

.worldnic-header {
  position: sticky;
  top: 0;
  z-index: 45;
  padding: 1.2rem 1.45rem 0;
}

.worldnic-header__inner,
.worldnic-guest-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(223, 229, 240, 0.9);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--wn-shadow-sm);
  backdrop-filter: blur(16px);
}

.worldnic-header__left,
.worldnic-header__actions,
.worldnic-guest-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.worldnic-search {
  display: inline-flex;
  min-width: 290px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.78rem 0.92rem;
  border: 1px solid var(--wn-border);
  border-radius: 1.2rem;
  background: #fff;
  color: #8a98aa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 20px rgba(20, 31, 56, 0.04);
}

.worldnic-search img {
  width: 1.05rem;
  height: 1.05rem;
  opacity: 0.7;
}

.worldnic-locale {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border: 1px solid var(--wn-border);
  border-radius: 1rem;
  background: #f5f8fd;
}

.worldnic-locale a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  padding: 0.52rem 0.68rem;
  border-radius: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6f7d91;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.worldnic-locale a.is-active {
  background: #fff;
  color: var(--wn-primary);
  box-shadow: 0 10px 18px rgba(20, 31, 56, 0.08);
}

.worldnic-create-btn {
  white-space: nowrap;
}

.worldnic-user {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.35rem 0.72rem 0.35rem 0.35rem;
  border: 1px solid var(--wn-border);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
  box-shadow: var(--wn-shadow-sm);
}

.worldnic-user__avatar {
  display: flex;
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #19c4df, #0074ff);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(0, 116, 255, 0.2);
}

.worldnic-user__meta {
  min-width: 0;
}

.worldnic-user__meta strong {
  display: block;
  color: var(--wn-text);
  font-size: 0.84rem;
  font-weight: 700;
}

.worldnic-user__meta small {
  display: block;
  margin-top: 0.2rem;
  color: var(--wn-muted);
  font-size: 0.72rem;
}

.worldnic-content,
.worldnic-guest-shell {
  padding: 1.2rem 1.45rem 1.75rem;
}

.worldnic-guest-shell {
  max-width: 1260px;
  margin: 0 auto;
}

.worldnic-guest-main {
  margin-top: 1.5rem;
}

.worldnic-event-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(223, 229, 240, 0.9);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.95)),
    #fff;
  box-shadow: var(--wn-shadow-md);
}

.worldnic-event-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/public/design-assets/worldnic/pattern/pattern5.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 340px;
  opacity: 0.06;
  pointer-events: none;
}

.worldnic-event-banner__header,
.worldnic-event-banner__tabs {
  position: relative;
  z-index: 1;
}

.worldnic-event-banner__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border-bottom: 1px solid rgba(223, 229, 240, 0.88);
}

.worldnic-event-banner__title {
  margin-top: 0.85rem;
  font-size: clamp(1.55rem, 1.35rem + 0.55vw, 2rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--wn-text);
}

.worldnic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.worldnic-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.56rem 0.78rem;
  border: 1px solid var(--wn-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--wn-shadow-sm);
  color: #627188;
  font-size: 0.78rem;
  font-weight: 600;
}

.worldnic-meta__item img {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.66;
}

.worldnic-event-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.worldnic-event-banner__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.85rem 1rem 1rem;
}

.shell-card,
.panel,
.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(223, 229, 240, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.96)),
    #fff;
}

.shell-card {
  border-radius: var(--wn-radius-xl);
  box-shadow: var(--wn-shadow-md);
}

.panel,
.metric-card {
  border-radius: var(--wn-radius-lg);
  box-shadow: var(--wn-shadow-sm);
}

.shell-card::before,
.panel::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/public/design-assets/worldnic/pattern/pattern5.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 200px;
  opacity: 0.035;
  pointer-events: none;
}

.panel > *,
.shell-card > *,
.metric-card > * {
  position: relative;
  z-index: 1;
}

.metric-card {
  padding: 1.15rem;
}

.metric-card p:last-child {
  color: var(--wn-text);
  font-size: 1.8rem;
  line-height: 1.1;
}

.dashboard-event-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-event-card {
  padding: 0;
  overflow: hidden;
}

.dashboard-event-card__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  cursor: pointer;
  list-style: none;
}

.dashboard-event-card__summary::-webkit-details-marker {
  display: none;
}

.dashboard-event-card__summary-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.8rem;
}

.dashboard-event-card__summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.dashboard-event-card__title {
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

.dashboard-event-card__role {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.96);
  padding: 0.34rem 0.72rem;
  color: #5f6f86;
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-event-card__summary-meta {
  display: grid;
  gap: 0.45rem;
}

.dashboard-event-card__summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: #607086;
  font-size: 0.8rem;
  line-height: 1.55;
}

.dashboard-event-card__summary-row strong {
  color: #42536a;
}

.dashboard-event-card__summary-description {
  color: #6a7c95;
  font-size: 0.86rem;
  line-height: 1.6;
}

.dashboard-event-card__summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(204, 216, 234, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  color: #5f738e;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.dashboard-event-card__summary-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  transition: transform 0.18s ease;
}

.dashboard-event-card__summary:hover .dashboard-event-card__summary-icon {
  border-color: rgba(0, 116, 255, 0.24);
  color: #0074ff;
}

.dashboard-event-card[open] .dashboard-event-card__summary-icon svg {
  transform: rotate(180deg);
}

.dashboard-event-card__body {
  display: grid;
  gap: 1.1rem;
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid rgba(223, 229, 240, 0.88);
}

.dashboard-event-card__description {
  color: #4b5d76;
  font-size: 0.9rem;
  line-height: 1.7;
}

.dashboard-event-card__facts {
  display: grid;
  gap: 0.9rem;
}

.dashboard-event-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .dashboard-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .dashboard-event-card__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .dashboard-event-card__summary {
    padding: 1rem;
  }

  .dashboard-event-card__body {
    padding: 0 1rem 1rem;
  }

  .dashboard-event-card__actions .btn-primary,
  .dashboard-event-card__actions .btn-secondary {
    width: 100%;
  }
}

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 2.65rem;
  padding: 0.56rem 0.92rem;
  border-radius: 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, #1bc9e7 0%, #0074ff 100%);
  box-shadow: 0 18px 32px rgba(0, 116, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 22px 38px rgba(0, 116, 255, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.96);
  color: #405066;
  border: 1px solid var(--wn-border);
  box-shadow: var(--wn-shadow-sm);
}

.btn-secondary:hover {
  background: #fff;
  color: var(--wn-primary);
  border-color: rgba(0, 116, 255, 0.22);
}

.btn-danger {
  border: 0;
  background: linear-gradient(135deg, #ff6d8b 0%, #db325c 100%);
  box-shadow: 0 18px 34px rgba(219, 50, 92, 0.18);
}

.btn-danger:hover {
  box-shadow: 0 22px 40px rgba(219, 50, 92, 0.22);
}

.field-label {
  margin-bottom: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c7c93;
}

.field-input {
  min-height: 2.95rem;
  padding: 0.76rem 0.9rem;
  border: 1px solid var(--wn-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 20px rgba(20, 31, 56, 0.04);
  color: var(--wn-text);
  font-size: 0.84rem;
}

.field-input:focus {
  border-color: rgba(0, 116, 255, 0.35);
  box-shadow:
    0 0 0 4px rgba(0, 116, 255, 0.09),
    0 16px 30px rgba(20, 31, 56, 0.08);
}

textarea.field-input {
  min-height: 7.4rem;
  padding-top: 0.9rem;
}

select.field-input {
  appearance: none;
  padding-right: 2.8rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #8090a7 50%),
    linear-gradient(135deg, #8090a7 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field-help {
  margin-top: 0.45rem;
  color: #8694a8;
}

.status-draft,
.status-pending,
.status-active,
.status-completed,
.status-archived {
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-draft {
  background: rgba(113, 128, 150, 0.1);
  color: #5a6a80;
}

.status-pending {
  background: rgba(0, 116, 255, 0.1);
  color: #005fd6;
}

.status-active {
  background: rgba(31, 157, 99, 0.12);
  color: #0e8450;
}

.status-completed {
  background: rgba(217, 144, 24, 0.14);
  color: #b47310;
}

.status-archived {
  background: rgba(224, 69, 107, 0.12);
  color: #c3335d;
}

.toolbar-chip {
  border-radius: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.toolbar-chip-active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 31, 56, 0.08);
}

.event-tab {
  gap: 0.6rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: #708096;
  box-shadow: 0 8px 20px rgba(20, 31, 56, 0.04);
}

.event-tab:hover {
  border-color: var(--wn-border);
  background: rgba(255, 255, 255, 0.98);
  color: var(--wn-text);
}

.event-tab-active {
  border-color: rgba(0, 116, 255, 0.14);
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.12), rgba(24, 184, 212, 0.03));
  color: var(--wn-primary);
}

.worldnic-event-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.event-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(188, 198, 214, 0.9);
  background: rgba(255, 255, 255, 0.72);
  color: #6f8095;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.event-subtab:hover {
  color: var(--wn-text);
  border-color: rgba(0, 116, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.event-subtab-active {
  color: var(--wn-primary);
  border-color: rgba(0, 116, 255, 0.2);
  background: rgba(0, 116, 255, 0.08);
}

.event-dashboard-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.38rem;
  border: 1px solid rgba(214, 223, 236, 0.98);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.96), rgba(241, 245, 251, 0.94));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.event-dashboard-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.92rem;
  background: transparent;
  color: #708096;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.event-dashboard-tab:hover {
  color: var(--wn-text);
  border-color: rgba(204, 214, 227, 0.98);
  background: rgba(255, 255, 255, 0.82);
}

.event-dashboard-tab.is-active {
  color: var(--wn-primary);
  border-color: rgba(0, 116, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  box-shadow: 0 12px 22px rgba(0, 116, 255, 0.08);
}

.event-dashboard-panel[hidden] {
  display: none !important;
}

.event-dashboard-panel.is-active {
  display: block;
}

.event-dashboard-link-layout,
.event-dashboard-api-layout {
  display: grid;
  gap: 1rem;
}

.event-dashboard-link-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 1180px) {
  .event-dashboard-link-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  }
}

.event-dashboard-link-menu {
  overflow: hidden;
}

@media (min-width: 1180px) {
  .event-dashboard-link-menu {
    position: sticky;
    top: 1rem;
  }
}

.event-dashboard-link-menu__head {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.event-dashboard-link-menu__head h3 {
  margin: 0;
  color: var(--wn-text);
  font-size: 1rem;
  font-weight: 850;
}

.event-dashboard-link-menu__head p {
  margin: 0.35rem 0 0;
  color: var(--wn-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.event-dashboard-link-menu__body {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.event-dashboard-link-menu__item {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(213, 223, 238, 0.92);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.event-dashboard-link-menu__item.is-general {
  border-color: rgba(0, 116, 255, 0.18);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.event-dashboard-link-menu__item-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.event-dashboard-link-menu__item-head h4 {
  margin: 0;
  color: var(--wn-text);
  font-size: 0.95rem;
  font-weight: 850;
}

.event-dashboard-link-menu__item-head p {
  margin: 0.25rem 0 0;
  color: var(--wn-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.event-dashboard-link-menu__item-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  background: rgba(0, 116, 255, 0.09);
  color: var(--wn-primary);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-dashboard-link-menu__copy .field-input {
  min-height: 2.7rem;
  font-size: 0.78rem;
}

.event-dashboard-link-menu__copy .event-dashboard-copy-field__button {
  width: 2.7rem;
  min-width: 2.7rem;
  border-radius: 0.9rem;
}

.event-dashboard-link-menu__meta,
.event-dashboard-link-menu__empty {
  margin: 0;
  color: var(--wn-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.event-dashboard-link-menu__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.event-dashboard-link-menu__actions .btn-secondary,
.event-dashboard-link-menu__actions .btn-primary,
.event-dashboard-link-menu__actions .btn-danger {
  min-height: 2.45rem;
  padding: 0.5rem 0.72rem;
  font-size: 0.78rem;
}

.event-dashboard-copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: stretch;
}

.event-dashboard-copy-field .field-input {
  min-width: 0;
}

.event-dashboard-copy-field__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  min-width: 3rem;
  border: 1px solid rgba(213, 223, 238, 0.94);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  color: var(--wn-primary);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.event-dashboard-copy-field__button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 116, 255, 0.28);
  color: #005fd1;
  box-shadow: 0 16px 30px rgba(0, 116, 255, 0.12);
}

.event-dashboard-copy-field__button svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-dashboard-api-layout {
  max-width: 1320px;
}

.event-dashboard-api-body {
  display: grid;
  gap: 1rem;
}

.event-dashboard-api-section {
  display: grid;
  gap: 0.9rem;
}

.event-dashboard-api-section__head {
  display: grid;
  gap: 0.25rem;
}

.event-dashboard-api-section__head h3 {
  margin: 0;
  color: var(--wn-text);
  font-size: 1rem;
  font-weight: 800;
}

.event-dashboard-api-section__head p {
  margin: 0;
  color: var(--wn-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.event-dashboard-api-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-dashboard-api-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1.15rem;
  background: rgba(248, 250, 252, 0.9);
}

.event-dashboard-api-card__label {
  margin: 0;
  color: #7d8ca2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-dashboard-api-card__value {
  color: var(--wn-text);
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 700;
}

.event-dashboard-api-card__value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 0.76rem;
  line-height: 1.7;
  word-break: break-word;
}

.event-dashboard-api-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.event-dashboard-api-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px auto;
  align-items: end;
}

.event-dashboard-api-link-form,
.event-dashboard-api-link-edit {
  display: grid;
  gap: 1rem;
  align-items: end;
}

.event-dashboard-api-link-form {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr) 180px auto;
}

.event-dashboard-api-link-edit {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr) 170px auto;
}

.event-dashboard-api-permissions {
  grid-column: 1 / -1;
}

.event-dashboard-link-permissions__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 84px;
  gap: 0.45rem 0.7rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(213, 223, 238, 0.9);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.82);
}

.event-dashboard-link-permissions__grid > span {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-dashboard-link-permissions__grid > span:nth-child(-n + 3) {
  color: #7d8ca2;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-dashboard-link-permissions__grid input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--wn-primary);
}

.event-dashboard-api-link-list {
  display: grid;
  gap: 1rem;
}

.event-dashboard-api-link-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(213, 223, 238, 0.9);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.event-dashboard-api-link-card__head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.event-dashboard-api-link-card__head h4 {
  margin: 0;
  color: var(--wn-text);
  font-size: 1rem;
  font-weight: 850;
}

.event-dashboard-api-link-card__head p {
  margin: 0.25rem 0 0;
  color: var(--wn-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.event-dashboard-api-link-card__head span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 116, 255, 0.08);
  color: var(--wn-primary);
  font-size: 0.72rem;
  font-weight: 850;
}

.event-dashboard-api-activity {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.2rem;
}

.event-dashboard-api-activity__head h5 {
  margin: 0;
  color: #7d8ca2;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-dashboard-api-activity__list {
  display: grid;
  gap: 0.55rem;
}

.event-dashboard-api-activity__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 0.9rem;
  background: rgba(248, 250, 252, 0.78);
}

.event-dashboard-api-activity__item.is-allowed {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(236, 253, 245, 0.62);
}

.event-dashboard-api-activity__item.is-denied {
  border-color: rgba(244, 63, 94, 0.22);
  background: rgba(255, 241, 242, 0.6);
}

.event-dashboard-api-activity__item strong {
  display: block;
  color: var(--wn-text);
  font-size: 0.9rem;
  font-weight: 850;
}

.event-dashboard-api-activity__item p {
  margin: 0.15rem 0 0;
  color: var(--wn-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.event-dashboard-api-activity__item span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  background: rgba(255, 255, 255, 0.78);
  color: #475569;
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.event-dashboard-api-mode-helper {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 116, 255, 0.12);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.08), rgba(24, 184, 212, 0.04));
}

.event-dashboard-api-mode-helper__label {
  margin: 0;
  color: #6b7d92;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-dashboard-api-mode-helper__title {
  color: var(--wn-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.event-dashboard-api-mode-helper__body {
  margin: 0;
  color: #5d6f85;
  font-size: 0.84rem;
  line-height: 1.65;
}

.event-dashboard-api-examples {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-dashboard-api-code-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1.15rem;
  background: rgba(248, 250, 252, 0.9);
}

.event-dashboard-api-code-card pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 0.74rem;
  line-height: 1.62;
  color: #334155;
}

@media (max-width: 1279px) {
  .event-dashboard-api-grid,
  .event-dashboard-api-examples,
  .event-dashboard-api-form,
  .event-dashboard-api-link-form,
  .event-dashboard-api-link-edit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .event-dashboard-link-permissions__grid {
    grid-template-columns: minmax(0, 1fr) 70px 70px;
    padding: 0.65rem;
  }

  .event-dashboard-api-link-card__head,
  .event-dashboard-api-activity__item {
    flex-direction: column;
  }
}

.access-admin-shell {
  position: relative;
  overflow: visible;
}

.access-admin-shell-fullscreen {
  position: fixed;
  inset: 0.9rem;
  z-index: 240;
  display: flex;
  flex-direction: column;
  margin: 0;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  overflow: hidden;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px rgba(12, 20, 38, 0.24);
}

body.is-access-fullscreen {
  overflow: hidden;
}

.access-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.access-workspace-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(188, 198, 214, 0.82);
  background: rgba(255, 255, 255, 0.84);
  color: #65768b;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 18px rgba(20, 31, 56, 0.05);
}

.access-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.access-workspace-tab img {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.72;
}

.access-workspace-tab.is-active {
  border-color: rgba(0, 116, 255, 0.18);
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.1), rgba(24, 184, 212, 0.05));
  color: var(--wn-primary);
}

.access-workspace-panel {
  padding: 1.25rem;
}

.access-workspace-panel.is-hidden {
  display: none;
}

.access-workspace-toolbar {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.access-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.access-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-left: auto;
}

.access-fullscreen-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: fit-content;
}

.access-fullscreen-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.access-fullscreen-toggle [data-access-fullscreen-label] {
  white-space: nowrap;
}

.access-fullscreen-icon--exit,
.access-fullscreen-toggle.is-active .access-fullscreen-icon--enter {
  display: none;
}

.access-fullscreen-toggle.is-active .access-fullscreen-icon--exit {
  display: block;
}

.access-filter-grid > .field-input {
  flex: 1 1 12rem;
  min-width: 11rem;
}

.access-profile-filter {
  position: relative;
  flex: 1 1 12rem;
  min-width: 11rem;
}

.access-profile-filter__trigger {
  position: relative;
  width: 100%;
  padding-right: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  text-align: left;
  cursor: pointer;
}

.access-profile-filter__trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-profile-filter__trigger svg {
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  stroke: #8090a7;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s ease;
}

.access-profile-filter.is-open .access-profile-filter__trigger {
  border-color: rgba(0, 116, 255, 0.35);
  box-shadow:
    0 0 0 4px rgba(0, 116, 255, 0.09),
    0 16px 30px rgba(20, 31, 56, 0.08);
}

.access-profile-filter.is-open .access-profile-filter__trigger svg {
  transform: translateY(-50%) rotate(180deg);
}

.access-profile-filter__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 32;
  border: 1px solid rgba(206, 214, 226, 0.98);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 54px rgba(20, 31, 56, 0.16);
  overflow: hidden;
}

.access-profile-filter__panel[hidden] {
  display: none;
}

.access-profile-filter__search-shell {
  padding: 0.7rem;
  border-bottom: 1px solid rgba(232, 237, 245, 0.96);
  background: #f8fafc;
}

.access-profile-filter__search {
  min-height: 2.6rem;
  padding: 0.68rem 0.82rem;
  border-radius: 0.8rem;
  box-shadow: none;
}

.access-profile-filter__options {
  max-height: 15rem;
  overflow: auto;
  padding: 0.35rem 0;
}

.access-profile-filter__option {
  width: 100%;
  border: 0;
  background: transparent;
  color: #183153;
  padding: 0.82rem 0.95rem;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.access-profile-filter__option:hover,
.access-profile-filter__option:focus-visible {
  background: #edf4ff;
  color: #0f3d85;
  outline: none;
}

.access-profile-filter__option.is-selected {
  background: linear-gradient(135deg, #5e97f6 0%, #4d88ef 100%);
  color: #fff;
}

.access-profile-filter__empty {
  padding: 0.85rem 0.95rem 1rem;
  color: #7f8ea3;
  font-size: 0.8rem;
  font-weight: 600;
}

.access-request-profile-picker {
  display: grid;
  gap: 0.55rem;
}

.access-request-profile-picker .field-label {
  margin-bottom: 0.05rem;
}

.access-request-profile-search {
  min-height: 2.75rem;
  box-shadow: none;
}

.access-request-profile-select {
  width: 100%;
}

.access-request-profile-empty {
  margin: 0;
  color: #7f8ea3;
  font-size: 0.78rem;
  font-weight: 700;
}

.member-user-picker {
  position: relative;
}

.member-add-card {
  overflow: visible;
  z-index: 70;
}

.member-add-card .member-user-picker {
  z-index: 80;
}

.member-notify-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  min-height: 4.15rem;
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(223, 229, 240, 0.95);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #42536a;
  cursor: pointer;
}

.member-notify-toggle input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: #0074ff;
}

.member-notify-toggle span {
  display: grid;
  gap: 0.16rem;
}

.member-notify-toggle strong {
  color: var(--wn-text);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.member-notify-toggle small {
  color: var(--wn-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.member-row-notification-form {
  display: flex;
  align-items: center;
}

.member-row-notify-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.68rem 0.9rem;
  border: 1px solid rgba(223, 229, 240, 0.95);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #42536a;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.member-row-notify-toggle input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #0074ff;
}

.member-user-picker__panel {
  position: absolute;
  z-index: 999;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid rgba(210, 221, 238, 0.96);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(31, 45, 71, 0.13);
}

.member-user-picker__status {
  padding: 0.8rem 0.95rem;
  color: #66788f;
  font-size: 0.84rem;
  font-weight: 700;
}

.member-user-picker__status:empty {
  display: none;
}

.member-user-picker__results {
  display: grid;
  max-height: 18rem;
  overflow-y: auto;
}

.member-user-picker__option {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(223, 229, 240, 0.82);
  padding: 0.82rem 0.95rem;
  background: transparent;
  text-align: left;
}

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

.member-user-picker__option:hover,
.member-user-picker__option:focus-visible {
  background: rgba(0, 116, 255, 0.07);
  outline: none;
}

.member-user-picker__option strong {
  color: var(--wn-text);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.member-user-picker__option span {
  color: #66788f;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.access-filter-grid > .field-input:first-child {
  flex-basis: 19rem;
}

.access-table-frame {
  margin-top: 1rem;
  border: 1px solid rgba(221, 228, 239, 0.96);
  border-radius: 1.2rem;
  overflow: hidden;
  background: #fff;
}

.access-table-frame__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem 0;
}

.access-table-frame__hint {
  color: #8090a4;
  font-size: 0.74rem;
  line-height: 1.5;
}

.access-table-scroll {
  overflow: auto;
  max-height: 87vh;
  min-height: 310px;
}

.access-table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(236, 240, 247, 0.96);
  color: #708096;
  font-size: 0.76rem;
  font-weight: 700;
}

.access-table-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.access-table-footer__range {
  color: #8c9bb0;
  font-weight: 600;
}

.access-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-left: auto;
}

.access-pagination__summary {
  color: #7d8da3;
  font-weight: 700;
}

.access-pagination__button {
  appearance: none;
  border: 1px solid rgba(203, 213, 225, 0.96);
  border-radius: 999px;
  padding: 0.48rem 0.92rem;
  background: #fff;
  color: #183153;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.access-pagination__button:hover:not(:disabled) {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.9);
}

.access-pagination__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.access-admin-shell-fullscreen .access-table-frame {
  flex: 1;
  min-height: 0;
}

.access-admin-shell-fullscreen .access-workspace-panel:not(.is-hidden) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.access-admin-shell-fullscreen .access-table-scroll {
  max-height: none;
  height: 100%;
}

.access-admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.access-admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.9rem 0.9rem;
  background: #f8fafc;
  color: #77869a;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid rgba(221, 228, 239, 0.96);
}

.access-admin-table tbody td {
  padding: 0.95rem 0.9rem;
  border-bottom: 1px solid rgba(236, 240, 247, 0.96);
  vertical-align: top;
  font-size: 0.82rem;
  color: #516073;
}

.access-admin-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.82);
}

.access-person-cell__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 800;
}

.access-person-cell__title img {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.58;
}

.access-person-cell__meta {
  margin-top: 0.35rem;
  color: #7b8797;
  font-size: 0.74rem;
  line-height: 1.45;
}

.access-data-stack {
  display: grid;
  gap: 0.24rem;
}

.access-data-stack strong {
  color: #111827;
  font-size: 0.8rem;
  font-weight: 700;
}

.access-data-stack span {
  color: #7a8699;
  font-size: 0.72rem;
  line-height: 1.4;
}

.access-type-usage strong,
.access-type-usage span {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.access-status-time {
  min-height: 1rem;
}

.access-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 2rem;
  padding: 0.42rem 0.68rem;
  border-radius: 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.access-mini-button.is-loading {
  pointer-events: none;
  opacity: 0.88;
}

.access-mini-button.is-loading::after {
  content: '';
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: wn-button-spin 0.7s linear infinite;
}

.access-mini-button--primary {
  color: #fff;
  background: linear-gradient(180deg, #19b8d4 0%, var(--wn-primary) 100%);
}

.access-mini-button--secondary {
  color: #475569;
  background: #fff;
  border-color: rgba(204, 213, 225, 0.96);
}

.access-mini-button--danger {
  color: #fff;
  background: #dc2626;
}

.access-wristband-quick-button svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.access-row-actions .access-status-form {
  margin: 0;
}

.access-print-toggle.is-selected {
  color: #fff;
  border-color: #dc2626;
  background: #dc2626;
}

.access-print-toggle.is-selected:hover,
.access-print-toggle.is-selected:focus-visible {
  color: #fff;
  border-color: #b91c1c;
  background: #b91c1c;
}

.access-wristband-toggle.is-selected,
.access-wristband-toggle.is-received {
  color: #fff;
  border-color: rgba(0, 116, 255, 0.65);
  background: linear-gradient(180deg, #19b8d4 0%, var(--wn-primary) 100%);
}

.access-wristband-toggle.is-selected:hover,
.access-wristband-toggle.is-selected:focus-visible {
  color: #fff;
  border-color: rgba(0, 94, 210, 0.88);
  background: linear-gradient(180deg, #11a8c2 0%, #005ed2 100%);
}

.access-wristband-toggle.is-received {
  cursor: default;
  opacity: 0.72;
}

.access-status-recipient {
  color: #48607e;
  font-weight: 700;
}

.access-pass-number {
  color: #48607e;
  font-weight: 700;
}

.access-row-actions--menu {
  position: relative;
  flex-wrap: nowrap;
}

.access-actions-menu {
  position: relative;
}

.access-actions-menu__trigger {
  flex-shrink: 0;
}

.access-actions-menu__trigger svg {
  width: 1rem;
  height: 1rem;
}

.access-issued-quick-button {
  color: #087f5b;
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(236, 253, 245, 0.98);
}

.access-issued-quick-button:hover,
.access-issued-quick-button:focus-visible {
  color: #fff;
  border-color: #10b981;
  background: #10b981;
}

.access-issued-quick-button.is-active,
.access-issued-quick-button:disabled {
  color: #fff;
  border-color: #10b981;
  background: #10b981;
  opacity: 0.72;
  box-shadow: none;
}

.access-issued-quick-button.is-returning {
  color: #fff;
  border-color: #10b981;
  background: #10b981;
  opacity: 1;
}

.access-issued-quick-button.is-returning:hover,
.access-issued-quick-button.is-returning:focus-visible {
  color: #fff;
  border-color: #059669;
  background: #059669;
}

.access-actions-menu__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 18;
  display: grid;
  gap: 0.28rem;
  min-width: 13.5rem;
  padding: 0.45rem;
  border-radius: 1rem;
  border: 1px solid rgba(221, 228, 239, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
}

.access-actions-menu__panel[hidden] {
  display: none;
}

.access-actions-menu__panel form {
  margin: 0;
}

.access-actions-menu__action {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.62rem 0.78rem;
  border: 0;
  border-radius: 0.82rem;
  background: transparent;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.access-actions-menu__action:hover,
.access-actions-menu__action:focus-visible {
  background: rgba(0, 116, 255, 0.08);
  color: #0b5ed7;
  outline: none;
}

.access-actions-menu__action svg {
  width: 0.96rem;
  height: 0.96rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.access-actions-menu__section-title {
  margin: 0.2rem 0 0.05rem;
  padding: 0.72rem 0.78rem 0;
  border-top: 1px solid rgba(221, 228, 239, 0.96);
  color: #7b8aa1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-actions-menu__action--status {
  color: #1e293b;
}

.access-actions-menu__action--status.is-active {
  background: linear-gradient(180deg, rgba(25, 184, 212, 0.16) 0%, rgba(0, 116, 255, 0.12) 100%);
  color: #075985;
}

.access-actions-menu__action--status.is-danger {
  background: rgba(220, 252, 231, 0.92);
  color: #047857;
}

.access-actions-menu__action--status.is-danger:hover,
.access-actions-menu__action--status.is-danger:focus-visible {
  background: #10b981;
  color: #fff;
}

.access-actions-menu__action[disabled] {
  opacity: 1;
  cursor: default;
}

.access-actions-menu__action[disabled]:hover,
.access-actions-menu__action[disabled]:focus-visible {
  background: linear-gradient(180deg, rgba(25, 184, 212, 0.16) 0%, rgba(0, 116, 255, 0.12) 100%);
  color: #075985;
}

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

.access-export-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.access-export-option {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(223, 229, 240, 0.95);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.access-export-option:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 116, 255, 0.18);
  box-shadow: var(--wn-shadow-sm);
}

.access-export-option strong {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
}

.access-export-option span {
  color: #718198;
  font-size: 0.78rem;
  line-height: 1.55;
}

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

.access-type-layout--readonly {
  grid-template-columns: minmax(0, 1fr);
}

.access-type-editor,
.access-type-list {
  min-width: 0;
}

.access-entry-windows-shell {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.access-entry-windows-shell__header {
  display: grid;
  gap: 0.25rem;
}

.access-entry-windows-list {
  display: grid;
  gap: 0.8rem;
}

.access-entry-windows-empty {
  margin: 0;
}

.access-entry-windows-shell__footer {
  display: flex;
  justify-content: flex-start;
}

.access-entry-window-add {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.98);
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--wn-shadow-sm);
}

.access-entry-window-add:hover {
  border-color: rgba(0, 116, 255, 0.18);
  color: #0f172a;
}

.access-entry-window-add img {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.7;
}

.access-entry-window-card {
  padding: 0.95rem 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--wn-shadow-sm);
}

.access-entry-window-card__grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: end;
}

.access-entry-window-field {
  min-width: 0;
}

.access-entry-window-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.95rem;
  margin-bottom: 0.04rem;
  border-radius: 0.95rem;
  background: rgba(241, 245, 249, 0.96);
  color: #7c8899;
  font-size: 1rem;
  font-weight: 800;
}

.access-entry-window-input {
  width: 100%;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.access-entry-window-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
}

.access-entry-window-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.95rem;
  min-width: 2.95rem;
  min-height: 2.95rem;
  padding: 0;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 0.95rem;
  background: rgba(254, 242, 242, 0.98);
  color: #dc2626;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: var(--wn-shadow-sm);
}

.access-entry-window-remove:hover {
  background: rgba(254, 226, 226, 0.98);
}

@media (min-width: 900px) {
  .access-workspace-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .access-filter-actions {
    justify-content: flex-end;
  }

  .access-type-layout {
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
  }
}

@media (max-width: 899px) {
  .access-workspace-actions,
  .access-filter-actions .btn-primary,
  .access-filter-actions .btn-secondary,
  .access-fullscreen-toggle {
    width: 100%;
  }

  .access-workspace-actions .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .access-entry-window-card__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .access-entry-window-separator {
    display: none;
  }

  .access-entry-window-remove {
    justify-self: flex-end;
  }
}

@media (max-width: 640px) {
  .access-entry-windows-shell__footer,
  .access-entry-window-add {
    width: 100%;
  }

  .access-entry-window-add {
    justify-content: center;
  }
}

.authincation.worldnic-auth-shell {
  display: grid;
  grid-template-columns: minmax(340px, 35rem) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  align-items: stretch;
}

.worldnic-auth-aside.login-aside {
  position: relative;
  display: flex;
  max-width: 35rem;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.35rem, 2.6vw, 1.75rem);
  border-right: 1px solid rgba(223, 229, 240, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 253, 0.92)),
    #fff;
  box-shadow: 12px 0 32px rgba(20, 31, 56, 0.08);
  overflow: hidden;
}

.worldnic-auth-aside.login-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/public/design-assets/worldnic/pattern/pattern5.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 420px;
  opacity: 0.08;
  pointer-events: none;
}

.worldnic-auth-aside.login-aside::after {
  content: "";
  clip-path: polygon(0% 100%, 100% 0%, 0% 0%);
  width: 8.75rem;
  height: 100%;
  position: absolute;
  right: -8.75rem;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0.125rem 0 1.875rem rgba(0, 0, 0, 0.08);
}

.worldnic-auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
  padding: 0.85rem 1rem;
  border: 1px solid var(--wn-border);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--wn-shadow-sm);
}

.worldnic-auth-copy {
  position: relative;
  z-index: 1;
  margin-top: 0.4rem;
  max-width: 31rem;
}

.worldnic-auth-copy h1 {
  margin-top: 1rem;
  font-size: clamp(1.95rem, 1.75rem + 0.75vw, 2.7rem);
  line-height: 1.04;
  font-weight: 800;
  color: var(--wn-text);
}

.worldnic-auth-copy p {
  margin-top: 1rem;
  max-width: 32rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--wn-muted);
}

.worldnic-auth-kpis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.worldnic-auth-kpi {
  padding: 0.88rem;
  border: 1px solid rgba(0, 116, 255, 0.12);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--wn-shadow-sm);
}

.worldnic-auth-kpi strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--wn-text);
}

.worldnic-auth-kpi span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--wn-muted);
}

.worldnic-auth-illustration.aside-image {
  position: relative;
  z-index: 1;
  min-height: 20rem;
  margin-top: auto;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.worldnic-auth-main {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 100vh;
}

.worldnic-auth-card.authincation-content.style-2 {
  position: relative;
  overflow: hidden;
  max-width: 33rem;
  width: 100%;
  padding: 1.35rem;
  border: 1px solid rgba(223, 229, 240, 0.9);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.96)),
    #fff;
  box-shadow: var(--wn-shadow-lg);
}

.worldnic-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/public/design-assets/worldnic/pattern/pattern5.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 260px;
  opacity: 0.06;
  pointer-events: none;
}

.worldnic-auth-topbar,
.worldnic-auth-form {
  position: relative;
  z-index: 1;
}

.worldnic-auth-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.worldnic-auth-heading {
  margin-top: 0.8rem;
  font-size: 1.68rem;
  line-height: 1.08;
  font-weight: 800;
  color: var(--wn-text);
}

.worldnic-auth-subcopy {
  margin-bottom: 1.1rem;
  color: var(--wn-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.worldnic-auth-form .btn-primary {
  width: 100%;
}

.worldnic-auth-footer {
  margin-top: 1.1rem;
  color: var(--wn-muted);
  font-size: 0.85rem;
}

.worldnic-auth-footer a {
  color: var(--wn-primary);
  font-weight: 700;
}

.worldnic-auth-footer a:hover {
  color: var(--wn-primary-dark);
}

.worldnic-auth-note {
  margin-top: 0.85rem;
  padding: 0.88rem;
  border: 1px solid var(--wn-border);
  border-radius: 1.3rem;
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.08), rgba(24, 184, 212, 0.03));
  color: #5e6e84;
  font-size: 0.8rem;
  line-height: 1.55;
}

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

.worldnic-guest-shell-portal {
  max-width: calc(100vw - 24px);
}

.portal-page {
  display: grid;
  gap: 1.4rem;
  width: 100%;
}

.portal-page-workspace {
  min-height: calc(100vh - 8.5rem);
}

.portal-page-stack {
  display: grid;
  gap: 1.15rem;
}

.portal-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.portal-summary-grid > :only-child {
  grid-column: 1 / -1;
}

.portal-mobile-overview {
  display: none;
}

.portal-action-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.85rem;
  align-items: stretch;
  padding: 1rem;
}

.portal-action-hub__table {
  width: 100%;
  min-height: 3.25rem;
  border-radius: 1rem;
  font-weight: 850;
}

.portal-action-hub__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.45rem;
  border: 1px solid rgba(223, 229, 240, 0.86);
  border-radius: 1.1rem;
  background: rgba(248, 251, 255, 0.86);
}

.portal-action-hub__group .btn-primary,
.portal-action-hub__group .btn-secondary {
  flex: 1 1 12rem;
  min-height: 2.65rem;
  border-radius: 0.9rem;
  white-space: nowrap;
}

.portal-action-hub__label {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0 0.55rem;
  color: #6d7d95;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portal-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.portal-workspace-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.portal-profile-card {
  padding: 1.2rem;
}

.portal-profile-card__head {
  display: grid;
  gap: 1rem;
}

.portal-profile-card__title {
  margin: 0.7rem 0 0;
  color: var(--wn-text);
  font-size: 1.55rem;
  line-height: 1.08;
  font-weight: 800;
}

.portal-profile-card__description {
  margin: 0.75rem 0 0;
  color: var(--wn-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.portal-profile-card__logout {
  display: flex;
}

.portal-workspace-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100vh - 18rem);
  overflow: hidden;
}

.portal-workspace-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.5rem 1.6rem 1.15rem;
  border-bottom: 1px solid rgba(223, 229, 240, 0.82);
}

.portal-workspace-card__copy h2 {
  margin: 0.6rem 0 0;
  color: var(--wn-text);
  font-size: 1.8rem;
  line-height: 1.08;
  font-weight: 800;
}

.portal-workspace-card__copy p {
  margin: 0.55rem 0 0;
  color: var(--wn-muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.portal-workspace-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.portal-share-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.45rem 0.35rem 0.85rem;
  border: 1px solid rgba(213, 223, 238, 0.94);
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.88);
  color: #42536a;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.045);
}

.portal-share-chip__copy {
  display: grid;
  gap: 0.03rem;
  min-width: 0;
}

.portal-share-chip__copy span {
  color: #7a879a;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portal-share-chip__copy strong {
  color: var(--wn-text);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.portal-share-chip__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(0, 116, 255, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #006ee8;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.portal-share-chip__button:hover {
  background: linear-gradient(135deg, #1bc9e7 0%, #0074ff 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(0, 116, 255, 0.18);
  transform: translateY(-1px);
}

.portal-share-chip__button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-workspace-card__body {
  min-height: 0;
  display: grid;
}

.portal-workspace-view {
  display: none;
  min-height: 0;
}

.portal-workspace-view.is-active {
  display: grid;
}

.portal-workspace-view[data-portal-view-panel="table"].is-active {
  grid-template-rows: auto minmax(0, 1fr);
}

.portal-workspace-view[data-portal-view-panel="request"].is-active,
.portal-workspace-view[data-portal-view-panel="import"].is-active {
  align-content: start;
  padding: 1.2rem 1.5rem 1.45rem;
}

.portal-table-toolbar {
  padding: 1rem 1.5rem 0;
}

.portal-inline-form {
  display: grid;
  gap: 1rem;
}

.portal-inline-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.request-profile-editor,
.request-profile-table-card {
  display: grid;
}

.request-profile-editor {
  padding: 1.4rem;
}

.request-profile-page {
  display: grid;
  gap: 1.25rem;
}

.request-profile-page--form {
  justify-items: stretch;
}

.request-profile-page--form .request-profile-editor {
  width: 100%;
}

.request-profile-editor__head,
.request-profile-table-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.request-profile-editor__eyebrow,
.request-profile-table-card__eyebrow {
  margin: 0;
  color: #7d8ca2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.request-profile-editor__title,
.request-profile-table-card__head h1,
.request-profile-table-card__head h2 {
  margin: 0.65rem 0 0;
  color: var(--wn-text);
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 800;
}

.request-profile-editor__description,
.request-profile-table-card__head p {
  margin: 0.65rem 0 0;
  color: var(--wn-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.request-profile-editor__status {
  flex-shrink: 0;
}

.request-profile-editor__form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.request-profile-editor__stack {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.94fr) minmax(0, 0.94fr);
  align-items: start;
}

.request-profile-editor__fields {
  display: grid;
  gap: 1rem;
}

.request-profile-editor__fields--compact {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: end;
}

.request-profile-editor__fields--stacked {
  gap: 1rem;
}

.request-profile-form-section {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(223, 229, 240, 0.9);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 253, 0.96));
  box-shadow: var(--wn-shadow-sm);
}

.request-profile-form-section--quota {
  gap: 0.95rem;
}

.request-profile-form-section__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.request-profile-form-section__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #19b8d4 0%, var(--wn-primary) 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0, 116, 255, 0.16);
}

.request-profile-form-section__copy h2 {
  margin: 0.2rem 0 0;
  color: var(--wn-text);
  font-size: 1.14rem;
  line-height: 1.2;
  font-weight: 800;
}

.request-profile-form-section__copy p {
  margin: 0.4rem 0 0;
  color: var(--wn-muted);
  font-size: 0.84rem;
  line-height: 1.68;
}

.request-profile-form-section__eyebrow {
  margin: 0;
  color: #7d8ca2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.request-profile-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.request-profile-form-grid--profile {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.request-profile-form-grid__full {
  grid-column: 1 / -1;
}

.request-profile-form-grid__span-6 {
  grid-column: span 6;
}

.request-profile-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: stretch;
}

.request-profile-toggle-grid--profile {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.request-profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(223, 229, 240, 0.95);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #42536a;
  font-size: 0.84rem;
  font-weight: 700;
}

.request-profile-toggle input {
  width: 1rem;
  height: 1rem;
}

.request-profile-toggle--half {
  grid-column: span 6;
}

.request-profile-toggle--wide {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: flex-start;
}

.request-profile-toggle--wide span {
  display: grid;
  gap: 0.18rem;
}

.request-profile-toggle--wide strong {
  font-size: 0.84rem;
  line-height: 1.3;
}

.request-profile-toggle--wide small {
  color: var(--wn-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.request-profile-editor__meta {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(223, 229, 240, 0.88);
  border-radius: 1.15rem;
  background: rgba(244, 247, 252, 0.92);
}

.request-profile-meta-field {
  display: grid;
  gap: 0.45rem;
}

.request-profile-inline-input {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.request-profile-inline-input .field-input {
  flex: 1 1 auto;
}

.request-profile-help {
  padding: 1rem;
}

.request-profile-help__title {
  margin: 0;
  color: var(--wn-text);
  font-size: 0.86rem;
  font-weight: 800;
}

.request-profile-help__body {
  margin: 0.45rem 0 0;
  color: var(--wn-muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.request-profile-editor__quotas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.request-profile-editor--compact .request-profile-editor__quotas {
  gap: 0.85rem;
}

.request-profile-quota-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1rem;
}

.request-profile-quota-card__head h2 {
  margin: 0;
  color: var(--wn-text);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
}

.request-profile-quota-list {
  display: grid;
  gap: 0.75rem;
}

.request-profile-quota-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.2rem;
  gap: 0.8rem;
  align-items: center;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
}

.request-profile-quota-row__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.request-profile-quota-row__title {
  color: var(--wn-text);
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 800;
}

.request-profile-quota-row__description {
  color: var(--wn-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.request-profile-quota-input {
  min-height: 2.5rem;
  padding: 0.58rem 0.7rem;
  text-align: center;
}

.request-profile-quota-card__empty {
  margin: 0;
  color: var(--wn-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.request-profile-editor__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.request-profile-editor__actions-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.request-profile-editor__actions form {
  margin: 0;
}

.request-profile-editor__actions--stacked {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.request-profile-editor__actions-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.95rem;
  align-items: stretch;
}

.request-profile-editor__action-back {
  grid-column: span 3;
  width: 100%;
  justify-content: center;
}

.request-profile-editor__submit {
  grid-column: span 9;
  width: 100%;
  min-height: 3.3rem;
  border-radius: 1.15rem;
  font-size: 0.95rem;
  font-weight: 800;
  justify-content: center;
}

.system-settings-provider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: end;
}

.system-settings-provider-panels {
  display: grid;
  gap: 1rem;
}

.system-settings-fields {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-settings-fields__full {
  grid-column: 1 / -1;
}

.system-settings-help {
  color: var(--wn-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.system-settings-toggle {
  min-height: 46px;
}

.system-settings-toggle span {
  display: grid;
  gap: 0.18rem;
}

.system-settings-toggle small {
  color: var(--wn-muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
}

.system-template-tabs {
  display: grid;
  gap: 1rem;
}

.system-template-language {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.system-template-language > span {
  color: var(--wn-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-template-language__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.32rem;
  border: 1px solid rgba(220, 228, 240, 0.92);
  border-radius: 1rem;
  background: rgba(245, 248, 252, 0.92);
}

.system-template-language__tabs a {
  display: inline-grid;
  gap: 0.08rem;
  min-width: 4.4rem;
  padding: 0.56rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 0.78rem;
  color: #66758c;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.system-template-language__tabs a:hover,
.system-template-language__tabs a.is-active {
  border-color: rgba(0, 116, 255, 0.16);
  background: rgba(255, 255, 255, 0.98);
  color: var(--wn-primary);
  box-shadow: var(--wn-shadow-sm);
}

.system-template-language__tabs strong {
  font-size: 0.82rem;
  font-weight: 900;
}

.system-template-language__tabs small {
  font-size: 0.68rem;
  font-weight: 800;
}

.system-template-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.4rem;
  border: 1px solid rgba(220, 228, 240, 0.92);
  border-radius: 1.25rem;
  background: rgba(245, 248, 252, 0.92);
}

.system-template-tabs__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  background: transparent;
  color: #66758c;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.system-template-tabs__button:hover,
.system-template-tabs__button.is-active {
  border-color: rgba(0, 116, 255, 0.16);
  background: rgba(255, 255, 255, 0.98);
  color: var(--wn-primary);
  box-shadow: var(--wn-shadow-sm);
}

.system-template-panel {
  display: none;
}

.system-template-panel.is-active {
  display: block;
}

.system-template-panel__head {
  align-items: flex-start;
  gap: 1rem;
}

.system-template-panel__head p {
  max-width: 46rem;
  margin: 0.35rem 0 0;
  color: var(--wn-muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.system-template-panel__updated {
  flex: 0 0 auto;
  color: var(--wn-muted);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.system-template-variables {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--wn-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.system-template-variables code {
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(205, 215, 230, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #42536a;
  font-size: 0.74rem;
  font-weight: 800;
}

.system-template-preview-modal {
  align-items: flex-start;
  padding-top: clamp(1rem, 5vh, 2.4rem);
}

.system-template-preview-modal .portal-modal__dialog {
  width: min(100%, 980px);
}

.system-template-preview-modal__body {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.system-template-preview-modal__subject {
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(248, 251, 255, 0.96);
}

.system-template-preview-modal__subject span {
  color: #7586a0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-template-preview-modal__subject strong {
  color: var(--wn-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.system-template-preview-modal__frame {
  width: 100%;
  min-height: 28rem;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1rem;
  background: #fff;
}

.system-backup-filters {
  display: grid;
  grid-template-columns: minmax(16rem, 1.5fr) minmax(13rem, 1fr) minmax(8rem, 0.6fr) auto;
  gap: 0.8rem;
  align-items: end;
  padding: 1rem 1.45rem 0;
}

.system-backup-filters__actions {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
}

.system-backup-table {
  min-width: 1120px;
}

.system-backup-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.32rem 0.65rem;
  border: 1px solid rgba(0, 116, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 116, 255, 0.07);
  color: #1259b2;
  font-size: 0.72rem;
  font-weight: 850;
}

.system-backup-meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--wn-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.system-backup-details {
  margin-top: 0.55rem;
}

.system-backup-details summary {
  width: max-content;
  color: var(--wn-primary);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.system-backup-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  border: 1px solid rgba(223, 229, 240, 0.86);
  border-radius: 1rem;
  background: rgba(248, 251, 255, 0.86);
}

.system-backup-details div {
  min-width: 0;
}

.system-backup-details dt {
  color: #73839a;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.system-backup-details dd {
  margin: 0.18rem 0 0;
  color: var(--wn-text);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.system-backup-event-link {
  color: var(--wn-primary);
  font-weight: 850;
}

.request-profile-table-card {
  overflow: hidden;
  width: 100%;
}

.request-profile-table-card__head {
  padding: 1.4rem 1.45rem 1rem;
  border-bottom: 1px solid rgba(223, 229, 240, 0.85);
}

.request-profile-table-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
  align-items: center;
}

.request-profile-application-link-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 0.95rem;
  box-shadow: var(--wn-shadow-sm);
}

.request-profile-application-link-group .btn-secondary {
  box-shadow: none;
}

.request-profile-application-link-group__open {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.request-profile-application-link-group__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  min-width: 2.65rem;
  padding-left: 0;
  padding-right: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.request-profile-application-link-group__copy svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.request-profile-statistics-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
}

.request-profile-statistics-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.request-profile-statistics-modal,
.request-profile-qr-modal {
  align-items: flex-start;
  padding-top: clamp(1rem, 6vh, 3.2rem);
  padding-bottom: 1rem;
}

.request-profile-statistics-modal .portal-modal__backdrop,
.request-profile-qr-modal .portal-modal__backdrop {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.08) 28%, rgba(15, 23, 42, 0.06));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.request-profile-qr-modal .portal-modal__dialog {
  width: min(100%, 30rem);
}

.request-profile-qr-shell {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding-top: 1rem;
  text-align: center;
}

.request-profile-qr-shell > p {
  max-width: 24rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.5;
}

.request-profile-qr-code {
  padding: 0.85rem;
  border: 1px solid rgba(205, 215, 230, 0.95);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: var(--wn-shadow-sm);
}

.request-profile-qr-code img {
  display: block;
  width: min(18rem, 72vw);
  height: auto;
}

.request-profile-qr-link {
  max-width: 100%;
  color: var(--wn-primary);
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.request-profile-statistics-shell {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
}

.request-profile-statistics-shell > p {
  margin: 0;
  color: #66788f;
  font-size: 0.86rem;
  line-height: 1.55;
}

.request-profile-statistics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.request-profile-statistics-panel {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1.05rem;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(244, 248, 253, 0.98));
}

.request-profile-statistics-panel__head p {
  margin: 0;
  color: var(--wn-text);
  font-size: 1rem;
  font-weight: 850;
}

.request-profile-statistics-panel__head span {
  display: inline-flex;
  margin-top: 0.18rem;
  color: #7586a0;
  font-size: 0.74rem;
  font-weight: 700;
}

.request-profile-statistics-list {
  display: grid;
  gap: 0.55rem;
}

.request-profile-statistics-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.68rem;
  border: 1px solid rgba(218, 226, 238, 0.86);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
}

.request-profile-statistics-row strong {
  min-width: 0;
  color: #27354a;
  font-size: 0.85rem;
  line-height: 1.35;
  font-weight: 800;
}

.request-profile-statistics-row span {
  display: grid;
  min-width: 4.2rem;
  gap: 0.08rem;
  justify-items: end;
}

.request-profile-statistics-row b {
  color: var(--wn-text);
  font-size: 0.98rem;
  line-height: 1;
  font-weight: 900;
}

.request-profile-statistics-row small {
  color: #7586a0;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.request-profile-statistics-empty {
  padding: 0.9rem;
  border: 1px dashed rgba(185, 199, 219, 0.9);
  border-radius: 0.95rem;
  color: #66788f;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.request-profile-search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 19rem;
  max-width: 24rem;
  padding: 0 0.1rem;
}

.request-profile-search svg,
.table-icon-button svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-access-print-selected] svg,
[data-access-wristband-selected] svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.request-profile-search .field-input {
  min-height: 2.7rem;
}

.request-profile-table-scroll {
  width: 100%;
  overflow-x: auto;
  padding: 0.85rem 1.45rem 1.35rem;
}

.request-profile-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.request-profile-table thead th {
  padding: 0 0.8rem 0.8rem 0;
  border-bottom: 1px solid rgba(223, 229, 240, 0.96);
  color: #73839a;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.request-profile-table tbody td {
  padding: 0.95rem 0.8rem 0.95rem 0;
  border-bottom: 1px solid rgba(223, 229, 240, 0.78);
  vertical-align: top;
}

.request-profile-cell {
  display: grid;
  gap: 0.28rem;
}

.request-profile-cell__title {
  margin: 0;
  color: var(--wn-text);
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 800;
}

.request-profile-cell__meta {
  margin: 0;
  color: var(--wn-muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.request-profile-code-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(0, 116, 255, 0.08);
  color: #005fd6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.request-profile-quota-metric {
  display: grid;
  gap: 0.2rem;
}

.request-profile-quota-metric strong {
  color: var(--wn-text);
  font-size: 0.87rem;
  line-height: 1.4;
  font-weight: 800;
}

.request-profile-quota-metric span,
.request-profile-link-cell a {
  color: var(--wn-muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.request-profile-link-cell a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--wn-primary);
  font-weight: 700;
  word-break: break-all;
}

.request-profile-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.request-profile-action-form {
  display: inline-flex;
  margin: 0;
}

.table-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(205, 215, 230, 0.98);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  color: #42536a;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--wn-shadow-sm);
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.table-icon-button:hover {
  transform: translateY(-1px);
  color: var(--wn-primary);
  border-color: rgba(0, 116, 255, 0.22);
}

.table-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
}

.table-icon-button--danger {
  color: #b42318;
  border-color: rgba(244, 63, 94, 0.2);
  background: rgba(255, 241, 242, 0.98);
}

.table-icon-button--danger:hover {
  color: #fff;
  border-color: #dc2626;
  background: #dc2626;
}

.table-icon-button.access-wristband-toggle.is-received:hover,
.table-icon-button.access-wristband-toggle.is-received:focus-visible {
  color: #fff;
  border-color: rgba(0, 116, 255, 0.65);
  background: linear-gradient(180deg, #19b8d4 0%, var(--wn-primary) 100%);
  transform: none;
}

.app-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.46rem 0.68rem;
  border-radius: 0.68rem;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -0.35rem, 0);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.app-tooltip.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.app-tooltip[data-placement="bottom"] {
  transform: translate3d(-50%, 0.35rem, 0);
}

.app-tooltip[data-placement="bottom"].is-visible {
  transform: translate3d(-50%, 0, 0);
}

.request-profile-empty {
  padding: 1rem 0;
  color: var(--wn-muted);
  font-size: 0.84rem;
  line-height: 1.7;
  text-align: center;
}

.request-profile-applications-card {
  scroll-margin-top: 1rem;
}

.request-profile-applications-empty {
  padding: 1.25rem 1.45rem 1.45rem;
  color: var(--wn-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.request-profile-application-toolbar {
  display: flex;
  padding: 1rem 1.45rem 0;
}

.request-profile-application-search {
  width: min(100%, 34rem);
  max-width: 34rem;
}

.request-profile-application-list {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.45rem 1.45rem;
}

.request-profile-application-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 253, 0.95));
  box-shadow: var(--wn-shadow-sm);
}

.request-profile-application-card--pending {
  border-color: rgba(0, 116, 255, 0.18);
}

.request-profile-application-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.request-profile-application-card__head h3 {
  margin: 0.5rem 0 0;
  color: var(--wn-text);
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 800;
}

.request-profile-application-card__head p,
.request-profile-application-card__notes {
  margin: 0.35rem 0 0;
  color: var(--wn-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.request-profile-application-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.request-profile-application-status--pending {
  background: rgba(255, 184, 0, 0.14);
  color: #9a6400;
}

.request-profile-application-status--approved {
  background: rgba(20, 184, 116, 0.14);
  color: #047857;
}

.request-profile-application-status--rejected {
  background: rgba(244, 63, 94, 0.12);
  color: #b42318;
}

.request-profile-application-form,
.request-profile-application-reject {
  display: grid;
  gap: 0.85rem;
}

.request-profile-application-form__profile {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.request-profile-application-form__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.request-profile-application-form__full {
  grid-column: 1 / -1;
}

.request-profile-application-quota-text {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(223, 229, 240, 0.86);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
}

.request-profile-application-quota-text p {
  margin: 0;
  color: var(--wn-muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.request-profile-application-quota-text strong {
  color: var(--wn-text);
  font-weight: 800;
}

.request-profile-application-quota-text span {
  color: #5f6d82;
}

.request-profile-application-quota-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.request-profile-application-quota-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  min-width: 0;
}

.request-profile-application-quota-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 1.6rem;
  padding: 0.16rem 0.18rem 0.16rem 0.58rem;
  border: 1px solid rgba(213, 223, 238, 0.92);
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.92);
}

.request-profile-application-quota-text .request-profile-application-quota-name {
  color: #526177;
  font-weight: 700;
}

.request-profile-application-quota-text .request-profile-application-quota-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.25rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(27, 201, 231, 0.16), rgba(0, 116, 255, 0.13));
  color: #005fd6;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
}

.request-profile-application-quota-text .request-profile-application-quota-empty {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  color: #7d8ca2;
  font-weight: 700;
}

.request-profile-application-form__quotas,
.portal-application-quotas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.request-profile-application-actions,
.request-profile-application-reject {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  align-items: center;
}

.request-profile-application-actions--primary form {
  margin: 0;
}

.request-profile-application-approve-form {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  align-items: center;
}

.request-profile-application-duplicate-toggle {
  min-height: 3rem;
  width: auto;
}

.request-profile-application-edit {
  display: block;
  width: auto;
}

.request-profile-application-edit[open] {
  flex-basis: 100%;
  width: 100%;
}

.request-profile-application-edit > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-left: 0;
  cursor: pointer;
  list-style: none;
}

.request-profile-application-edit > summary::-webkit-details-marker {
  display: none;
}

.request-profile-application-edit[open] > summary {
  margin-left: auto;
  margin-bottom: 0.9rem;
}

.request-profile-application-reject .field-input {
  width: min(100%, 24rem);
}

.request-profile-application-summary {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-profile-application-summary div {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(223, 229, 240, 0.86);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.request-profile-application-summary strong {
  color: var(--wn-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.request-profile-application-summary span {
  color: var(--wn-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.portal-application-shell {
  display: grid;
  place-items: start center;
  width: 100%;
  padding: 0.5rem 0 2rem;
}

.portal-application-card {
  display: grid;
  gap: 1.15rem;
  width: min(100%, 64rem);
  padding: 1.35rem;
}

.portal-application-intro,
.portal-application-success {
  padding: 1rem;
  border: 1px solid rgba(0, 116, 255, 0.12);
  border-radius: 1.45rem;
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.08), rgba(24, 184, 212, 0.04));
}

.portal-application-intro h1,
.portal-application-success h1 {
  margin: 0.55rem 0 0;
  color: var(--wn-text);
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  line-height: 1.1;
  font-weight: 850;
}

.portal-application-intro p:not(.worldnic-eyebrow),
.portal-application-success p:not(.worldnic-eyebrow) {
  margin: 0.7rem 0 0;
  max-width: 48rem;
  color: var(--wn-muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.portal-application-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid rgba(224, 69, 107, 0.28);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 235, 240, 0.98), rgba(255, 248, 250, 0.94));
  box-shadow: 0 16px 36px rgba(224, 69, 107, 0.12);
}

.portal-application-notice__icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--wn-danger);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(224, 69, 107, 0.22);
}

.portal-application-notice__body {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.portal-application-notice__title {
  margin: 0;
  color: #ab2146;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.portal-application-notice__body p {
  margin: 0;
  color: #713146;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
}

.portal-application-notice__steps {
  display: grid;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  color: #713146;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.55;
}

.portal-application-notice__steps li {
  position: relative;
  padding-left: 1.15rem;
}

.portal-application-notice__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--wn-danger);
}

.portal-application-form {
  display: grid;
  gap: 1rem;
}

.portal-application-submit {
  width: 100%;
  min-height: 3.25rem;
  justify-content: center;
  border-radius: 1.15rem;
}

.portal-login-shell {
  width: 100%;
}

.portal-login-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.4rem;
  padding: 1.5rem;
}

.portal-login-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.25rem;
}

.portal-login-title {
  margin: 0;
  font-size: clamp(2rem, 1.8rem + 0.9vw, 3rem);
  line-height: 1.02;
  font-weight: 800;
  color: var(--wn-text);
}

.portal-login-description {
  margin: 0;
  max-width: 40rem;
  color: var(--wn-muted);
  font-size: 0.97rem;
  line-height: 1.72;
}

.worldnic-nav--system {
  margin-top: 0.85rem;
}

.worldnic-header__event {
  display: grid;
  gap: 0.32rem;
}

.worldnic-header__event strong {
  color: var(--wn-text);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}

.worldnic-header__event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.worldnic-header__event-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.72rem;
  border-radius: 999px;
  background: rgba(0, 116, 255, 0.08);
  color: var(--wn-primary);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.worldnic-create-btn--ghost {
  background: #fff;
  color: var(--wn-text);
}

.btn-secondary-sm {
  min-height: 2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.76rem;
}

.request-profile-editor__fields--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#request-profile-notes.field-input {
  min-height: 2.9rem;
  resize: vertical;
}

.portal-workspace {
  grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr);
}

.portal-table-toolbar {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) auto;
  align-items: end;
  gap: 1rem;
}

.portal-table-search {
  min-width: 0;
  max-width: none;
  margin-right: 0;
  padding: 0 0.95rem;
  border: 1px solid rgba(223, 229, 240, 0.96);
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.portal-table-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.85rem;
}

.portal-table-sort-card {
  display: grid;
  gap: 0.42rem;
  min-width: 23rem;
}

.portal-table-toolbar-label {
  margin: 0;
  padding-left: 0.15rem;
  color: #73839a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-table-search .field-input {
  min-height: 3rem;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.portal-table-quick-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: max-content;
}

.portal-table-quick-action {
  min-height: 3rem;
  padding-inline: 1rem;
  border-radius: 1rem;
  white-space: nowrap;
}

@media (max-width: 1279px) {
  .portal-table-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .portal-table-controls {
    grid-column: 1 / -1;
  }
}

.portal-table-sort {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  padding: 0.3rem;
  border: 1px solid rgba(223, 229, 240, 0.96);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.96), rgba(238, 243, 250, 0.92));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.portal-table-sort .field-input {
  min-width: 12.4rem;
  min-height: 2.58rem;
  border-color: rgba(220, 227, 238, 0.98);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.portal-sort-direction {
  min-width: 10.4rem;
  min-height: 2.58rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(220, 227, 238, 0.98);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.98);
  justify-content: center;
  box-shadow: none;
}

.portal-login-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 8rem);
}

.portal-login-card {
  width: min(100%, 32rem);
  grid-template-columns: minmax(0, 1fr);
  padding: 1.75rem;
}

.portal-login-panel {
  width: 100%;
}

.worldnic-guest-topbar-portal {
  justify-content: space-between;
  padding: 0.95rem 1.15rem;
  border-radius: 1.55rem;
}

.worldnic-guest-topbar-portal .worldnic-guest-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.worldnic-portal-topbar-profile {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  min-width: 0;
  padding: 0.15rem 0.1rem;
}

.worldnic-portal-topbar-profile strong {
  display: block;
  max-width: min(48vw, 32rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--wn-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.worldnic-portal-topbar-logout {
  display: inline-flex;
  align-items: center;
}

.portal-login-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: auto;
}

.portal-login-highlight {
  padding: 1rem;
  border: 1px solid rgba(0, 116, 255, 0.12);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--wn-shadow-sm);
}

.portal-login-highlight strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--wn-text);
}

.portal-login-highlight span {
  display: block;
  margin-top: 0.55rem;
  color: var(--wn-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.portal-login-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.3rem;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1.7rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.96)),
    #fff;
  box-shadow: var(--wn-shadow-md);
}

.portal-login-panel__title {
  margin: 0.75rem 0 0;
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--wn-text);
}

.portal-login-form {
  display: grid;
  gap: 1rem;
}

.portal-login-form__submit {
  width: 100%;
}

.portal-login-note {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(0, 116, 255, 0.12);
  border-radius: 1.3rem;
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.08), rgba(24, 184, 212, 0.03));
  color: #5f6d82;
  font-size: 0.83rem;
  line-height: 1.65;
}

.portal-login-note__url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--wn-primary);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: var(--wn-shadow-sm);
}

.portal-summary-card,
.portal-table-card {
  overflow: hidden;
}

.portal-summary-card__header,
.portal-table-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.45rem 1.5rem 1.15rem;
  border-bottom: 1px solid rgba(223, 229, 240, 0.8);
}

.portal-summary-card__title h1,
.portal-table-card__copy h2 {
  margin: 0.7rem 0 0;
  color: var(--wn-text);
  font-weight: 800;
}

.portal-summary-card__title h1 {
  font-size: clamp(1.8rem, 1.65rem + 0.7vw, 2.55rem);
  line-height: 1.05;
}

.portal-summary-card__title p,
.portal-table-card__copy p,
.portal-access-card__copy p {
  margin: 0.7rem 0 0;
  color: var(--wn-muted);
  font-size: 0.93rem;
  line-height: 1.68;
}

.portal-summary-card__logout {
  flex-shrink: 0;
}

.portal-table-card__copy h2 {
  font-size: 1.55rem;
  line-height: 1.12;
}

.portal-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.5rem;
}

.portal-access-card {
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem 1.55rem;
}

.portal-access-card__mobile-bar {
  display: none;
}

.portal-access-card__mobile-copy {
  min-width: 0;
}

.portal-access-card__mobile-copy h2 {
  margin: 0;
  color: var(--wn-text);
  font-size: 1.05rem;
  line-height: 1.1;
  font-weight: 800;
}

.portal-access-card__mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.portal-access-card__mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: 0;
  border-radius: 1rem;
  border: 1px solid rgba(210, 219, 234, 0.92);
  background: rgba(255, 255, 255, 0.96);
  color: var(--wn-text);
  box-shadow: 0 14px 28px rgba(27, 68, 119, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portal-access-card__mobile-toggle:hover {
  border-color: rgba(0, 116, 255, 0.26);
  box-shadow: 0 16px 30px rgba(27, 68, 119, 0.11);
}

.portal-access-card__mobile-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.portal-access-card.is-expanded .portal-access-card__mobile-toggle svg {
  transform: rotate(180deg);
}

.portal-access-card__content[hidden] {
  display: none !important;
}

.portal-access-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
}

.portal-access-card__copy h2 {
  margin: 0;
  color: var(--wn-text);
  font-size: 1.4rem;
  line-height: 1.15;
  font-weight: 800;
}

.portal-access-card__copy p {
  margin-top: 0.5rem;
}

.portal-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

.portal-state-pill.is-open {
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.12), rgba(24, 184, 212, 0.08));
  color: #005fd6;
}

.portal-state-pill.is-closed {
  background: rgba(224, 69, 107, 0.12);
  color: #c3335d;
}

.portal-quota-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.portal-quota-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  background: #eff4fb;
  color: #42536a;
  font-size: 0.8rem;
  font-weight: 700;
}

.portal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  padding-top: 0.15rem;
}

.portal-empty-copy {
  margin: 0;
  color: var(--wn-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.portal-table-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  min-height: 3rem;
  padding: 0.24rem;
  border: 1px solid rgba(223, 229, 240, 0.96);
  border-radius: 1.05rem;
  background: rgba(244, 247, 252, 0.96);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.portal-tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 0.82rem;
  background: transparent;
  color: #627188;
  font-size: 0.88rem;
  font-weight: 800;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.portal-tab-button:hover {
  background: rgba(255, 255, 255, 0.74);
  color: var(--wn-text);
}

.portal-tab-button.is-active {
  border-color: rgba(0, 116, 255, 0.16);
  background: linear-gradient(135deg, #1bc9e7 0%, #0074ff 100%);
  color: #fff;
  box-shadow: 0 18px 32px rgba(0, 116, 255, 0.18);
}

.portal-table-scroll {
  width: 100%;
  overflow-x: auto;
  padding: 1rem 1.5rem 1.45rem;
  min-height: 0;
}

.portal-requests-table {
  width: 100%;
  min-width: 1140px;
  table-layout: fixed;
  border-collapse: collapse;
}

.portal-requests-table thead th {
  padding: 0 0.9rem 0.95rem 0;
  border-bottom: 1px solid rgba(223, 229, 240, 0.96);
  color: #6d7d95;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.portal-request-row td {
  padding: 1rem 0.9rem 1rem 0;
  border-bottom: 1px solid rgba(223, 229, 240, 0.72);
  vertical-align: top;
}

.portal-col-type {
  width: 9rem;
}

.portal-col-name {
  width: 13rem;
}

.portal-col-category {
  width: 10rem;
}

.portal-col-company {
  width: 11rem;
}

.portal-col-phone {
  width: 8rem;
}

.portal-col-status {
  width: 12rem;
}

.portal-col-actions {
  width: 12rem;
}

.portal-type-pill,
.portal-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.portal-type-pill.is-wristband {
  background: rgba(31, 157, 99, 0.12);
  color: #0e8450;
}

.portal-type-pill.is-pass {
  background: rgba(0, 116, 255, 0.1);
  color: #005fd6;
}

.portal-person-cell__title {
  margin: 0;
  color: var(--wn-text);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.4;
}

.portal-person-cell__meta {
  margin: 0.35rem 0 0;
  color: var(--wn-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  word-break: break-word;
}

.portal-data-cell {
  color: #4a5b72;
  font-size: 0.85rem;
  line-height: 1.58;
  word-break: break-word;
}

.portal-status-stack {
  display: grid;
}

.portal-status-pill.is-pending {
  background: rgba(0, 116, 255, 0.1);
  color: #005fd6;
}

.portal-status-pill.is-locked {
  background: rgba(224, 69, 107, 0.12);
  color: #c3335d;
}

.portal-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.portal-row-actions form {
  margin: 0;
}

.portal-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.44rem 0.72rem;
  border: 1px solid rgba(205, 215, 230, 0.98);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  color: #405066;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: var(--wn-shadow-sm);
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.portal-action-button:hover {
  transform: translateY(-1px);
  color: var(--wn-primary);
  border-color: rgba(0, 116, 255, 0.22);
}

.portal-action-button-danger {
  border-color: rgba(224, 69, 107, 0.16);
  color: #c3335d;
}

.portal-action-button-danger:hover {
  border-color: rgba(224, 69, 107, 0.28);
  color: #b42c53;
}

.portal-lock-label {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: #9aa7ba;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-lock-stack {
  display: grid;
  gap: 0.18rem;
}

.portal-lock-reason {
  color: #718096;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  max-width: 13rem;
}

.portal-empty-copy-table {
  padding: 0.2rem 0 0.25rem;
}

.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.portal-modal.is-open {
  display: flex;
}

.portal-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.46);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.portal-modal__dialog {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(100%, 760px);
  padding: 1.45rem;
  max-height: calc(100vh - 2.4rem);
  overflow: auto;
}

[data-access-modal-root] {
  position: relative;
  z-index: 260;
}

.portal-modal__dialog-wide {
  width: min(100%, 940px);
}

[data-access-history-modal],
[data-access-request-modal],
[data-access-print-receive-modal],
[data-access-wristband-receive-modal],
[data-access-export-modal] {
  align-items: flex-start;
  padding-top: clamp(1rem, 6vh, 3.2rem);
  padding-bottom: 1rem;
}

[data-access-history-modal] .portal-modal__backdrop,
[data-access-request-modal] .portal-modal__backdrop,
[data-access-print-receive-modal] .portal-modal__backdrop,
[data-access-wristband-receive-modal] .portal-modal__backdrop,
[data-access-export-modal] .portal-modal__backdrop {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.08) 28%, rgba(15, 23, 42, 0.06));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

[data-access-history-modal] .portal-modal__dialog,
[data-access-request-modal] .portal-modal__dialog,
[data-access-print-receive-modal] .portal-modal__dialog,
[data-access-wristband-receive-modal] .portal-modal__dialog,
[data-access-export-modal] .portal-modal__dialog {
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.portal-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(223, 229, 240, 0.8);
}

.portal-modal__title-block h2 {
  margin: 0.75rem 0 0;
  color: var(--wn-text);
  font-size: 1.55rem;
  line-height: 1.14;
  font-weight: 800;
}

.access-history-shell {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.access-history-shell > p {
  margin: 0;
}

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

.access-history-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1rem;
  background: #f8fbff;
}

.access-history-summary__item {
  display: grid;
  gap: 0.22rem;
}

.access-history-summary__item span {
  color: #7586a0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-history-summary__item strong {
  color: var(--wn-text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.access-history-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(243, 247, 253, 0.98) 100%);
}

.access-history-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.access-history-table thead th {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(223, 229, 240, 0.92);
  color: #7586a0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.access-history-table tbody td {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(223, 229, 240, 0.7);
  vertical-align: top;
}

.access-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.access-history-cell {
  display: grid;
  gap: 0.2rem;
}

.access-history-cell strong {
  color: var(--wn-text);
  font-size: 0.87rem;
  line-height: 1.4;
}

.access-history-cell span,
.access-history-empty {
  color: #66788f;
  font-size: 0.76rem;
  line-height: 1.45;
}

.access-history-pill {
  min-height: 2rem;
  padding: 0.42rem 0.7rem;
  font-size: 0.72rem;
}

.access-history-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.access-history-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 116, 255, 0.08);
  color: #48607e;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.check-screen {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.check-page-head {
  display: grid;
  gap: 0.35rem;
  padding: 0.25rem 0.2rem 0;
}

.check-page-head h1 {
  margin: 0;
  color: var(--wn-text);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.check-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 1rem;
  align-items: start;
}

.check-side-stack,
.check-form {
  display: grid;
  gap: 1rem;
}

.check-form-card,
.check-result-card,
.check-recent-card {
  padding: 1rem;
}

.check-form-card {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.check-form-card .check-action-button.is-disabled {
  opacity: 0.72;
  pointer-events: none;
}

.check-form-card.is-check-success {
  border-color: rgba(31, 157, 99, 0.52);
  background: linear-gradient(135deg, rgba(31, 157, 99, 0.24), rgba(31, 157, 99, 0.1));
  box-shadow: 0 20px 46px rgba(31, 157, 99, 0.18);
}

.check-form-card.is-check-error {
  border-color: rgba(195, 51, 93, 0.42);
  background: linear-gradient(135deg, rgba(195, 51, 93, 0.18), rgba(195, 51, 93, 0.07));
  box-shadow: 0 20px 46px rgba(195, 51, 93, 0.14);
}

.check-form-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem 0.85rem;
  align-items: center;
  min-height: 3.65rem;
  border: 1px solid rgba(31, 157, 99, 0.24);
  border-radius: 0.95rem;
  padding: 0.72rem 0.9rem;
  background: rgba(31, 157, 99, 0.12);
}

.check-form-status span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: rgba(31, 157, 99, 0.16);
  color: #168157;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.check-form-status strong {
  min-width: 0;
  color: var(--wn-text);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.check-form-status.is-denied {
  border-color: rgba(195, 51, 93, 0.24);
  background: rgba(195, 51, 93, 0.1);
}

.check-form-status.is-denied span {
  background: rgba(195, 51, 93, 0.14);
  color: #bf315a;
}

.check-vehicle-input {
  width: 100%;
  min-height: 5.6rem;
  padding: 0.8rem 1rem;
  text-align: center;
  color: var(--wn-text);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.check-plate-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.4rem;
  gap: 0.65rem;
  align-items: stretch;
}

.check-camera-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 5.6rem;
  border: 1px solid rgba(210, 221, 238, 0.95);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: #314158;
  box-shadow: 0 14px 30px rgba(31, 45, 71, 0.08);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.check-camera-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 116, 255, 0.32);
  box-shadow: 0 18px 34px rgba(0, 116, 255, 0.12);
}

.check-camera-trigger svg {
  width: 2rem;
  height: 2rem;
}

.check-camera-trigger svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-vehicle-input.is-check-success {
  border-color: rgba(31, 157, 99, 0.45);
  box-shadow: 0 0 0 4px rgba(31, 157, 99, 0.14);
  background: rgba(31, 157, 99, 0.07);
}

.check-vehicle-input.is-check-error {
  border-color: rgba(195, 51, 93, 0.45);
  box-shadow: 0 0 0 4px rgba(195, 51, 93, 0.14);
  background: rgba(195, 51, 93, 0.06);
}

.check-inline-feedback {
  min-height: 1.35rem;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

.check-inline-feedback.is-success {
  color: #0e8450;
}

.check-inline-feedback.is-error {
  color: #bf315a;
}

.check-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.check-action-button {
  min-height: 4.35rem;
  border: 1px solid rgba(210, 221, 238, 0.95);
  border-radius: 1rem;
  background: #fff;
  color: #314158;
  box-shadow: 0 14px 30px rgba(31, 45, 71, 0.08);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.check-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 116, 255, 0.28);
  box-shadow: 0 18px 34px rgba(0, 116, 255, 0.12);
}

.check-action-button--check {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1fc4d9 0%, #0074ff 100%);
  color: #fff;
}

.check-action-button--entry {
  border-color: rgba(0, 116, 255, 0.26);
  color: #0067d9;
}

.check-action-button--exit {
  border-color: rgba(31, 157, 99, 0.28);
  color: #168157;
}

.check-gate-control {
  display: grid;
  gap: 0.45rem;
}

.check-gate-input {
  min-height: 3.4rem;
}

.check-gate-links {
  display: grid;
  gap: 0.62rem;
  padding: 0.82rem;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1rem;
  background: rgba(248, 251, 255, 0.86);
}

.check-gate-links__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.check-gate-links__head span {
  color: #6d7d95;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.check-gate-links__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.55rem;
}

.check-gate-link-button {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.7rem 0.82rem;
  border: 1px solid rgba(205, 215, 230, 0.96);
  border-radius: 0.88rem;
  background: rgba(255, 255, 255, 0.98);
  color: #314158;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(31, 45, 71, 0.06);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.check-gate-link-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 116, 255, 0.26);
  background: #fff;
  color: var(--wn-primary);
  box-shadow: 0 16px 30px rgba(0, 116, 255, 0.12);
}

.check-gate-link-button span {
  overflow: hidden;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-gate-link-button small {
  color: #7a879a;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.check-result-card {
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.check-result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.06), rgba(31, 157, 99, 0));
  opacity: 0;
}

.check-result-card.is-entry::before,
.check-result-card.is-check::before,
.check-result-card.is-exit::before,
.check-result-card.is-denied::before {
  opacity: 1;
}

.check-result-card.is-entry {
  border-color: rgba(0, 116, 255, 0.22);
  box-shadow: 0 20px 40px rgba(0, 116, 255, 0.08);
}

.check-result-card.is-check {
  border-color: rgba(86, 104, 131, 0.2);
  box-shadow: 0 20px 40px rgba(51, 65, 85, 0.07);
}

.check-result-card.is-exit {
  border-color: rgba(31, 157, 99, 0.22);
  box-shadow: 0 20px 40px rgba(31, 157, 99, 0.08);
}

.check-result-card.is-denied {
  border-color: rgba(195, 51, 93, 0.26);
  box-shadow: 0 20px 40px rgba(195, 51, 93, 0.1);
}

.check-result-card.is-denied::before {
  background: linear-gradient(135deg, rgba(195, 51, 93, 0.08), rgba(195, 51, 93, 0));
}

.check-result-ready {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  min-height: 10rem;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.check-result-ready span,
.check-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 116, 255, 0.1);
  color: #0065d9;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.check-result-ready strong {
  color: #718098;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0;
}

.check-result-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  margin-top: 0.85rem;
}

.check-result-hero {
  display: grid;
  gap: 0.45rem;
}

.check-result-hero strong {
  color: var(--wn-text);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.check-result-hero p {
  margin: 0;
  color: #51627a;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}

.check-result-card.is-denied .check-status-badge {
  background: rgba(195, 51, 93, 0.12);
  color: #bf315a;
}

.check-result-card.is-exit .check-status-badge {
  background: rgba(31, 157, 99, 0.12);
  color: #168157;
}

.check-result-message,
.check-result-note {
  margin: 0;
  border-radius: 0.9rem;
  padding: 0.85rem 0.95rem;
  background: rgba(0, 116, 255, 0.08);
  color: #314158;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.check-result-card.is-denied .check-result-message {
  background: rgba(195, 51, 93, 0.08);
  color: #9b2747;
}

.check-result-message--structured {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
  font-weight: 700;
}

.check-result-message__title {
  margin: 0;
  color: var(--wn-text);
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 900;
}

.check-result-card.is-denied .check-result-message__title {
  color: #9b2747;
}

.check-result-message__list {
  display: grid;
  gap: 0.62rem;
}

.check-result-message__item {
  display: grid;
  gap: 0.28rem;
}

.check-result-message__item span {
  color: #7b8798;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.check-result-message__item ul {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-result-message__item li {
  position: relative;
  margin: 0;
  padding-left: 0.95rem;
  color: #314158;
  font-size: 0.9rem;
  line-height: 1.42;
  font-weight: 750;
}

.check-result-message__item li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.48;
}

.check-result-card.is-denied .check-result-message__item li {
  color: #9b2747;
}

.check-result-note {
  border: 1px solid rgba(232, 175, 63, 0.3);
  background: rgba(255, 247, 222, 0.96);
  color: #8a5d12;
}

.check-result-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.check-result-detail {
  display: grid;
  gap: 0.2rem;
  min-height: 4.35rem;
  align-content: center;
  border: 1px solid rgba(218, 226, 239, 0.86);
  border-radius: 0.9rem;
  padding: 0.7rem 0.82rem;
  background: rgba(255, 255, 255, 0.74);
}

.check-result-detail--wide {
  grid-column: 1 / -1;
}

.check-result-detail span {
  color: #7a8aa1;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-result-detail strong {
  color: var(--wn-text);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.check-recent-card {
  display: grid;
  gap: 0.85rem;
}

.check-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.check-recent-empty {
  margin: 0;
  color: #66788f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.check-recent-list {
  display: grid;
  gap: 0.65rem;
}

.check-recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid rgba(218, 226, 239, 0.86);
  border-radius: 0.9rem;
  padding: 0.78rem 0.85rem;
  background: rgba(255, 255, 255, 0.76);
}

.check-recent-item p,
.check-recent-item span,
.check-recent-item small {
  display: block;
  margin: 0;
  line-height: 1.32;
}

.check-recent-item p {
  color: var(--wn-text);
  font-size: 0.93rem;
  font-weight: 800;
}

.check-recent-item span,
.check-recent-item small {
  margin-top: 0.2rem;
  color: #66788f;
  font-size: 0.78rem;
  font-weight: 600;
}

.check-recent-item .check-recent-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  margin-top: 0;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(0, 116, 255, 0.1);
  color: #0065d9;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.check-recent-item .check-recent-pill.is-exit {
  background: rgba(31, 157, 99, 0.12);
  color: #168157;
}

.check-scanner-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.check-scanner-modal.hidden {
  display: none;
}

.check-scanner-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
}

.check-scanner-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(92vh, 780px);
  display: grid;
  gap: 0.85rem;
  border: 1px solid rgba(223, 229, 240, 0.82);
  border-radius: 1.25rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.26);
}

.check-scanner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.check-scanner-head h2 {
  margin: 0.18rem 0 0;
  color: var(--wn-text);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.check-scanner-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border: 1px solid rgba(210, 221, 238, 0.95);
  border-radius: 0.9rem;
  background: #fff;
  color: #42536a;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.check-scanner-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #101827;
  aspect-ratio: 4 / 3;
}

.check-scanner-viewport video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-scanner-target {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 38%;
  height: 24%;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 0.9rem;
  box-shadow:
    0 0 0 999px rgba(15, 23, 42, 0.28),
    0 12px 34px rgba(0, 0, 0, 0.18);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.check-scanner-target.is-found {
  border-color: #20d382;
  box-shadow:
    0 0 0 999px rgba(15, 23, 42, 0.2),
    0 0 0 5px rgba(32, 211, 130, 0.22),
    0 16px 42px rgba(32, 211, 130, 0.24);
}

.check-scanner-target.is-detected {
  border-color: rgba(32, 211, 130, 0.92);
}

.check-scanner-target span {
  position: absolute;
  left: 50%;
  bottom: -2.55rem;
  transform: translateX(-50%);
  min-width: min(100%, 12rem);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  background: rgba(15, 23, 42, 0.76);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.check-scanner-target.is-found span {
  opacity: 1;
}

.check-scanner-status {
  min-height: 1.4rem;
  margin: 0;
  color: #51627a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.check-scanner-accept {
  justify-self: start;
  min-height: 2.65rem;
  border: 1px solid rgba(31, 157, 99, 0.28);
  border-radius: 999px;
  padding: 0.64rem 1.05rem;
  background: rgba(31, 157, 99, 0.1);
  color: #13754d;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.check-scanner-accept.hidden {
  display: none;
}

.plate-scanner-settings__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.plate-scanner-model-status {
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(210, 221, 238, 0.9);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(244, 248, 253, 0.86);
  color: #62738b;
  font-weight: 700;
}

.plate-scanner-model-status strong {
  color: #101827;
  font-size: 1rem;
  font-weight: 900;
}

.plate-scanner-model-status.is-active {
  border-color: rgba(32, 211, 130, 0.34);
  background: rgba(32, 211, 130, 0.08);
}

.plate-scanner-delete-form {
  margin-top: 0.8rem;
}

.plate-scanner-annotator {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px dashed rgba(115, 137, 165, 0.55);
  border-radius: 1rem;
  background:
    linear-gradient(90deg, rgba(210, 221, 238, 0.38) 1px, transparent 1px),
    linear-gradient(0deg, rgba(210, 221, 238, 0.38) 1px, transparent 1px),
    rgba(247, 250, 254, 0.86);
  background-size: 44px 44px;
  cursor: crosshair;
}

.plate-scanner-annotator.is-empty {
  display: grid;
  place-items: center;
  color: #71839a;
  cursor: default;
}

.plate-scanner-annotator img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.plate-scanner-annotator.is-empty img {
  display: none;
}

.plate-scanner-annotator__box {
  position: absolute;
  display: none;
  border: 3px solid #20d382;
  border-radius: 0.45rem;
  background: rgba(32, 211, 130, 0.12);
  box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.18);
  pointer-events: none;
}

.plate-scanner-annotator.is-error {
  border-color: rgba(225, 29, 72, 0.6);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.plate-scanner-annotator.has-box .plate-scanner-annotator__box {
  display: block;
}

.plate-scanner-samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
}

.plate-scanner-sample-card {
  overflow: hidden;
  border: 1px solid rgba(210, 221, 238, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

.plate-scanner-sample-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #101827;
}

.plate-scanner-sample-card div {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
}

.plate-scanner-sample-card strong {
  color: #101827;
  font-size: 1rem;
  font-weight: 900;
}

.plate-scanner-sample-card span,
.plate-scanner-sample-card p {
  margin: 0;
  color: #62738b;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 820px) {
  .check-screen {
    gap: 0.75rem;
  }

  .plate-scanner-settings__grid {
    grid-template-columns: 1fr;
  }

  .check-page-head h1 {
    font-size: 1.35rem;
  }

  .check-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .check-form-card,
  .check-result-card,
  .check-recent-card {
    padding: 0.82rem;
    border-radius: 1rem;
  }

  .check-form,
  .check-side-stack {
    gap: 0.75rem;
  }

  .check-vehicle-input {
    min-height: 5.2rem;
    font-size: 2.55rem;
  }

  .check-plate-input-group {
    grid-template-columns: minmax(0, 1fr) 4.8rem;
  }

  .check-camera-trigger {
    min-height: 5.2rem;
  }

  .check-action-button {
    min-height: 4rem;
    font-size: 1rem;
  }

  .check-result-hero strong {
    font-size: 2.35rem;
  }
}

@media (max-width: 520px) {
  .check-vehicle-input {
    min-height: 4.8rem;
    font-size: 2.1rem;
  }

  .check-plate-input-group {
    grid-template-columns: minmax(0, 1fr) 4.35rem;
    gap: 0.5rem;
  }

  .check-camera-trigger {
    min-height: 4.8rem;
    border-radius: 0.85rem;
  }

  .check-camera-trigger svg {
    width: 1.65rem;
    height: 1.65rem;
  }

  .check-scanner-modal {
    padding: 0.55rem;
  }

  .check-scanner-panel {
    gap: 0.75rem;
    border-radius: 1rem;
    padding: 0.78rem;
  }

  .check-scanner-head h2 {
    font-size: 1.12rem;
  }

  .check-scanner-close {
    width: 2.65rem;
    height: 2.65rem;
  }

  .check-action-grid,
  .check-result-detail-grid {
    gap: 0.55rem;
  }

  .check-result-detail {
    min-height: 4rem;
    padding: 0.62rem 0.7rem;
  }

  .check-recent-item {
    grid-template-columns: 1fr;
  }

  .check-recent-item .check-recent-pill {
    justify-self: start;
  }
}

.portal-modal__form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.portal-form-grid__full {
  grid-column: 1 / -1;
}

.portal-modal__actions,
.portal-import-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.portal-import-tools .field-input {
  flex: 1 1 260px;
}

.portal-import-preview {
  margin-top: 1.15rem;
}

.portal-import-preview-submit.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  pointer-events: none;
  opacity: 0.92;
}

.portal-import-preview-submit.is-loading::after {
  content: '';
  width: 0.84rem;
  height: 0.84rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-right-color: transparent;
  animation: wn-button-spin 0.7s linear infinite;
}

.portal-import-preview-loader {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.15rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(213, 223, 238, 0.9);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%);
  color: #42536a;
}

.portal-import-preview-loader.hidden,
.portal-import-preview-loader[hidden] {
  display: none;
}

.portal-import-preview-loader__spinner {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(0, 116, 255, 0.24);
  border-top-color: #0074ff;
  animation: wn-button-spin 0.75s linear infinite;
}

.portal-import-preview-loader__copy {
  display: grid;
  gap: 0.18rem;
}

.portal-import-preview-loader__copy strong {
  font-size: 0.88rem;
  color: #1f2f43;
}

.portal-import-preview-loader__copy span {
  font-size: 0.79rem;
  color: #61738b;
}

.portal-preview-wrap {
  display: grid;
  gap: 1rem;
}

.portal-preview-summary {
  padding: 1rem;
  border: 1px solid rgba(223, 229, 240, 0.92);
  border-radius: 1.2rem;
  background: #f7f9fd;
}

.portal-preview-summary p {
  margin: 0;
  color: #42536a;
  font-size: 0.85rem;
  line-height: 1.65;
}

.portal-preview-summary p + p {
  margin-top: 0.35rem;
}

.portal-preview-errors {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
  color: #c3335d;
  font-size: 0.82rem;
  line-height: 1.55;
}

.portal-preview-table-wrap {
  overflow-x: auto;
}

.portal-preview-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.portal-preview-table thead th {
  padding: 0 0.8rem 0.75rem 0;
  border-bottom: 1px solid rgba(223, 229, 240, 0.92);
  color: #6d7d95;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.portal-preview-table td {
  padding: 0.85rem 0.8rem 0.85rem 0;
  border-bottom: 1px solid rgba(223, 229, 240, 0.68);
  color: #4a5b72;
  font-size: 0.82rem;
  line-height: 1.55;
  vertical-align: top;
}

.portal-preview-validation {
  color: #c3335d;
}

.portal-preview-validation.is-ok {
  color: #0e8450;
}

@media (max-width: 1023px) {
  .request-profile-editor__quotas,
  .request-profile-application-form__quotas,
  .portal-application-quotas,
  .request-profile-application-summary {
    grid-template-columns: 1fr;
  }

  .request-profile-form-grid,
  .request-profile-toggle-grid {
    grid-template-columns: 1fr;
  }

  .system-settings-provider-row,
  .system-settings-fields,
  .system-backup-filters {
    grid-template-columns: 1fr;
  }

  .system-backup-filters__actions {
    justify-content: stretch;
  }

  .system-backup-filters__actions .btn-primary,
  .system-backup-filters__actions .btn-secondary {
    width: 100%;
  }

  .request-profile-table-card__head,
  .request-profile-editor__head,
  .request-profile-editor__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .system-template-language {
    justify-items: stretch;
  }

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

  .request-profile-editor__fields--compact {
    grid-template-columns: 1fr;
  }

  .request-profile-application-form__fields {
    grid-template-columns: 1fr;
  }

  .request-profile-search {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .request-profile-statistics-button {
    width: 100%;
  }

  .request-profile-statistics-grid {
    grid-template-columns: 1fr;
  }

  .request-profile-editor__actions-right {
    justify-content: stretch;
  }

  .request-profile-application-card__head,
  .request-profile-application-actions,
  .request-profile-application-reject {
    align-items: stretch;
    flex-direction: column;
  }

  .request-profile-application-actions--primary form,
  .request-profile-application-actions--primary button,
  .request-profile-application-edit > summary {
    width: 100%;
  }

  .request-profile-application-approve-form {
    justify-content: stretch;
  }

  .request-profile-application-duplicate-toggle {
    width: 100%;
  }

  .worldnic-menu-btn {
    display: inline-flex;
    width: 2.95rem;
    height: 2.95rem;
    padding: 0;
    flex-direction: column;
    gap: 0.26rem;
  }

  .worldnic-menu-btn span {
    display: block;
    width: 1rem;
    height: 2px;
    border-radius: 999px;
    background: var(--wn-text);
  }

  .worldnic-close {
    display: inline-flex;
  }

  .worldnic-sidebar {
    width: min(90vw, 320px);
    transform: translateX(-104%);
    transition: transform 0.24s ease;
  }

  .worldnic-sidebar.is-open {
    transform: translateX(0);
  }

  .worldnic-main {
    margin-left: 0;
  }

  .worldnic-header,
  .worldnic-content,
  .worldnic-guest-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .worldnic-header {
    padding-top: 1rem;
    transition: padding-top 0.22s ease;
  }

  .worldnic-header__inner,
  .worldnic-guest-topbar {
    flex-wrap: wrap;
  }

  .worldnic-header__inner {
    overflow: hidden;
    transition:
      padding 0.22s ease,
      border-radius 0.22s ease,
      box-shadow 0.22s ease,
      gap 0.22s ease;
  }

  .worldnic-header__left,
  .worldnic-header__actions,
  .worldnic-guest-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .worldnic-header__left {
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .worldnic-header__event {
    min-width: 0;
    flex: 1 1 auto;
  }

  .worldnic-header__event-actions {
    gap: 0.45rem;
  }

  .worldnic-header__actions {
    max-height: 12rem;
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
    transition:
      max-height 0.24s ease,
      margin-top 0.24s ease,
      opacity 0.18s ease,
      transform 0.24s ease;
  }

  .worldnic-header.is-compact {
    padding-top: 0.6rem;
  }

  .worldnic-header.is-compact .worldnic-header__inner {
    gap: 0;
    padding: 0.72rem;
    border-radius: 1.45rem;
    box-shadow: 0 18px 34px rgba(20, 31, 56, 0.1);
  }

  .worldnic-header.is-compact .worldnic-header__actions {
    max-height: 0;
    margin-top: -0.85rem;
    pointer-events: none;
    transform: translateY(-0.75rem);
    opacity: 0;
  }

  .worldnic-header.is-compact .worldnic-menu-btn {
    width: 2.65rem;
    height: 2.65rem;
  }

  .worldnic-search {
    min-width: 0;
    width: 100%;
  }

  .worldnic-create-btn {
    flex: 1 1 180px;
    justify-content: center;
  }

  .worldnic-user {
    flex: 1 1 100%;
  }

  .worldnic-event-banner__header {
    flex-direction: column;
  }

  .worldnic-event-banner__actions {
    justify-content: flex-start;
  }

  .authincation.worldnic-auth-shell {
    display: block;
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .worldnic-auth-aside.login-aside {
    display: none;
  }

  .worldnic-auth-main {
    min-height: 100dvh;
    padding: 1rem;
    width: 100%;
  }

  .worldnic-auth-card.authincation-content.style-2 {
    max-width: 100%;
    border-radius: 1.5rem;
    padding: 1.1rem;
  }

  .portal-login-card,
  .portal-access-grid,
  .portal-workspace,
  .portal-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .portal-summary-card__header,
  .portal-table-card__header,
  .portal-access-card__head,
  .portal-workspace-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-table-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .portal-table-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .portal-table-quick-actions {
    justify-content: stretch;
    min-width: 0;
  }

  .portal-table-quick-action {
    flex: 1 1 12rem;
  }

  .portal-table-controls {
    justify-content: stretch;
  }

  .portal-table-sort-card {
    min-width: 0;
    flex: 1 1 22rem;
  }

  .portal-workspace-sidebar {
    position: static;
  }

  .portal-workspace-card {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select,
  textarea,
  .field-input {
    font-size: 16px !important;
  }

  .check-vehicle-input {
    font-size: 1.5rem !important;
    line-height: 1.2;
  }

  .request-profile-editor,
  .request-profile-table-card__head,
  .request-profile-table-scroll,
  .system-backup-filters,
  .request-profile-application-toolbar,
  .request-profile-application-list,
  .request-profile-applications-empty,
  .portal-application-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .request-profile-editor {
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
  }

  .request-profile-quota-row {
    grid-template-columns: 1fr;
  }

  .request-profile-statistics-row {
    grid-template-columns: 1fr repeat(2, minmax(0, auto));
  }

  .request-profile-form-section {
    padding: 1rem;
  }

  .request-profile-form-section__head {
    grid-template-columns: 1fr;
  }

  .portal-application-notice {
    grid-template-columns: 1fr;
  }

  .portal-application-notice__icon {
    width: 2.1rem;
    height: 2.1rem;
  }

  .system-backup-details dl {
    grid-template-columns: 1fr;
  }

  .request-profile-editor__stack,
  .request-profile-form-grid--profile,
  .request-profile-toggle-grid--profile,
  .request-profile-editor__actions-grid {
    grid-template-columns: 1fr;
  }

  .request-profile-form-grid__span-6,
  .request-profile-toggle--half,
  .request-profile-editor__action-back,
  .request-profile-editor__submit {
    grid-column: auto;
  }

  .request-profile-inline-input,
  .request-profile-editor__actions-right,
  .request-profile-editor__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .request-profile-editor__actions .btn-primary,
  .request-profile-editor__actions .btn-secondary,
  .request-profile-editor__actions .btn-danger {
    width: 100%;
  }

  .worldnic-brand__copy small,
  .worldnic-user__meta small {
    display: none;
  }

  .worldnic-content,
  .worldnic-guest-main {
    margin-top: 1rem;
  }

  .worldnic-auth-card.authincation-content.style-2 {
    padding: 1.25rem;
    border-radius: 1.6rem;
  }

  .worldnic-auth-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .worldnic-auth-kpis {
    grid-template-columns: 1fr;
  }

  .worldnic-auth-copy h1 {
    font-size: 1.95rem;
  }

  .worldnic-event-banner__title {
    font-size: 1.45rem;
  }

  .portal-login-card,
  .portal-login-panel,
  .portal-action-hub,
  .portal-summary-card__header,
  .portal-table-card__header,
  .portal-access-grid,
  .portal-table-toolbar,
  .portal-table-scroll,
  .portal-workspace-card__header,
  .portal-workspace-view[data-portal-view-panel="request"].is-active,
  .portal-workspace-view[data-portal-view-panel="import"].is-active,
  .portal-modal__dialog {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .portal-summary-grid {
    padding-left: 0;
    padding-right: 0;
  }

  .portal-page-workspace {
    min-height: auto;
  }

  .portal-page-stack {
    gap: 0.78rem;
  }

  .portal-action-hub {
    grid-template-columns: 1fr;
    gap: 0.58rem;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    border-radius: 1.15rem;
  }

  .portal-action-hub__group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.55rem;
    border-radius: 0.95rem;
  }

  .portal-action-hub__group .btn-primary,
  .portal-action-hub__group .btn-secondary {
    min-height: 2.7rem;
    padding: 0.58rem 0.62rem;
    font-size: 0.82rem;
    line-height: 1.18;
  }

  .portal-action-hub__table,
  .portal-action-hub__group .btn-primary,
  .portal-action-hub__group .btn-secondary {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .portal-action-hub__label {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-height: 1.6rem;
    padding: 0 0.25rem;
    font-size: 0.62rem;
  }

  .portal-mobile-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 0.5rem;
    padding: 0;
  }

  .portal-mobile-overview__item {
    display: grid;
    gap: 0.18rem;
    align-content: center;
    min-width: 0;
    min-height: 4.35rem;
    padding: 0.72rem 0.52rem;
    border: 1px solid rgba(210, 220, 235, 0.92);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    color: #66758b;
    text-align: center;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
  }

  .portal-mobile-overview__item strong {
    color: var(--wn-text);
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 900;
  }

  .portal-mobile-overview__item span {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #627188;
    font-size: 0.72rem;
    line-height: 1.18;
    font-weight: 850;
    white-space: nowrap;
  }

  .portal-mobile-overview__item.is-active {
    border-color: rgba(0, 116, 255, 0.22);
    background: linear-gradient(135deg, #1bc9e7 0%, #0074ff 100%);
    color: #fff;
    box-shadow: 0 16px 26px rgba(0, 116, 255, 0.18);
  }

  .portal-mobile-overview__item.is-active strong,
  .portal-mobile-overview__item.is-active span {
    color: #fff;
  }

  .portal-workspace-card {
    overflow: visible;
    border-radius: 1.15rem;
  }

  .portal-workspace-card__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding-top: 0.9rem;
    padding-bottom: 0.75rem;
  }

  .portal-workspace-card__copy .worldnic-eyebrow,
  .portal-workspace-card__copy p {
    display: none;
  }

  .portal-workspace-card__copy h2 {
    margin-top: 0;
    font-size: 1.28rem;
    line-height: 1.12;
  }

  .portal-workspace-card__actions {
    width: 100%;
    justify-content: space-between;
  }

  .portal-share-chip {
    max-width: 100%;
    min-height: 2.35rem;
    padding: 0.26rem 0.35rem 0.26rem 0.7rem;
  }

  .portal-share-chip__copy span {
    font-size: 0.58rem;
  }

  .portal-share-chip__copy strong {
    font-size: 0.78rem;
  }

  .portal-table-toolbar {
    position: sticky;
    top: 0.45rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin: 0 -0.2rem;
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
    border-bottom: 1px solid rgba(223, 229, 240, 0.72);
    background: rgba(248, 251, 255, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .portal-table-search {
    order: 1;
    padding: 0 0.72rem;
    border-radius: 0.95rem;
  }

  .portal-table-quick-actions {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .portal-table-quick-action {
    width: 100%;
    min-height: 2.6rem;
    justify-content: center;
    border-radius: 0.95rem;
  }

  .portal-table-search .field-input {
    min-height: 2.35rem;
    font-size: 0.86rem;
  }

  .portal-table-search svg {
    width: 0.9rem;
    height: 0.9rem;
  }

  .portal-table-scroll {
    overflow-x: visible;
    padding-top: 0.85rem;
    padding-bottom: 1rem;
  }

  .portal-requests-table,
  .portal-requests-table tbody,
  .portal-request-row,
  .portal-request-row td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .portal-requests-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .portal-requests-table colgroup,
  .portal-requests-table thead {
    display: none;
  }

  .portal-requests-table tbody {
    display: grid;
    gap: 0.7rem;
  }

  .portal-request-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.68rem 0.75rem;
    padding: 0.95rem;
    border: 1px solid rgba(205, 215, 230, 0.86);
    border-radius: 1.12rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--wn-shadow-sm);
  }

  .portal-request-row.hidden {
    display: none;
  }

  .portal-request-row td {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    align-items: stretch;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  .portal-request-cell--type {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-self: center;
    min-width: 0;
  }

  .portal-request-cell--status {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-self: end;
    align-self: center;
    min-width: 0;
  }

  .portal-request-cell--name {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    min-width: 0;
    padding: 0.1rem 0 0.2rem;
  }

  .portal-request-cell--category,
  .portal-request-cell--company,
  .portal-request-cell--phone {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 6.15rem minmax(0, 1fr);
    gap: 0.68rem;
    align-items: center;
    min-height: 0;
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 0.92rem;
    background: rgba(248, 251, 255, 0.74);
  }

  .portal-request-cell--actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    min-width: 0;
    padding-top: 0.18rem;
  }

  .portal-request-row td::before {
    content: attr(data-cell-label);
    color: #7a89a0;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.065em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .portal-request-cell--type::before,
  .portal-request-cell--name::before,
  .portal-request-cell--status::before,
  .portal-request-cell--actions::before {
    display: none;
  }

  .portal-person-cell__title {
    font-size: 1.12rem;
    line-height: 1.22;
  }

  .portal-person-cell__meta {
    margin-top: 0.28rem;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .portal-type-pill,
  .portal-status-pill {
    justify-self: start;
    min-height: 1.85rem;
    max-width: 100%;
    padding: 0.34rem 0.66rem;
    font-size: 0.68rem;
    line-height: 1.15;
    white-space: normal;
  }

  .portal-request-cell--status .portal-status-pill {
    justify-self: end;
  }

  .portal-data-cell {
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.38;
    overflow-wrap: anywhere;
  }

  .portal-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
  }

  .portal-row-actions form,
  .portal-row-actions .portal-action-button,
  .portal-row-actions form .portal-action-button {
    width: 100%;
  }

  .portal-row-actions form:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }

  .portal-action-button {
    min-height: 2.65rem;
    padding: 0.58rem 0.72rem;
    border-radius: 0.95rem;
    font-size: 0.86rem;
    line-height: 1.18;
    white-space: normal;
  }

  .portal-lock-stack {
    grid-column: 1 / -1;
  }

  .portal-table-controls {
    order: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .portal-table-tabs {
    display: none;
  }

  .portal-table-sort-card {
    grid-template-columns: 1fr;
    align-items: center;
    min-width: 0;
    width: 100%;
    flex: none;
    gap: 0;
  }

  .portal-table-toolbar-label {
    display: none;
  }

  .portal-access-card {
    gap: 0.95rem;
    padding: 1rem;
  }

  .portal-access-card__mobile-bar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }

  .portal-access-card__mobile-copy {
    flex: 1 1 auto;
  }

  .portal-access-card__mobile-copy h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .portal-access-card__mobile-actions {
    flex-shrink: 0;
    gap: 0.55rem;
  }

  .portal-access-card__mobile-primary {
    min-height: 2.45rem;
    padding: 0.58rem 0.82rem;
    border-radius: 0.95rem;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .portal-access-card__mobile-toggle {
    width: 2.45rem;
    min-width: 2.45rem;
    min-height: 2.45rem;
    border-radius: 0.9rem;
  }

  .portal-access-card__content {
    display: none;
    min-width: 0;
  }

  .portal-access-card.is-expanded .portal-access-card__content {
    display: grid;
    gap: 0.95rem;
    padding-top: 0.15rem;
  }

  .portal-access-card__content .portal-access-card__copy h2,
  .portal-access-card__content .portal-card-actions__primary {
    display: none;
  }

  .access-history-summary {
    grid-template-columns: 1fr;
  }

  .access-history-table {
    min-width: 600px;
  }

  .portal-table-sort,
  .portal-table-sort-card,
  .portal-table-tabs {
    width: 100%;
  }

  .portal-table-sort {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 2.55rem;
    padding: 0.2rem;
    border-radius: 0.95rem;
  }

  .portal-table-tabs {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-tab-button {
    width: 100%;
  }

  .portal-table-sort .field-input {
    width: 100%;
    min-width: 0;
    min-height: 2.12rem;
    padding: 0.32rem 0.58rem;
    font-size: 0.84rem;
  }

  .portal-sort-direction {
    width: auto;
    min-width: 6.8rem;
    min-height: 2.12rem;
    padding: 0.32rem 0.55rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .portal-login-card {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  .portal-access-card__mobile-primary {
    padding-left: 0.72rem;
    padding-right: 0.72rem;
    font-size: 0.77rem;
  }

  .portal-login-highlights {
    grid-template-columns: 1fr;
  }

  .portal-form-grid {
    grid-template-columns: 1fr;
  }

  .portal-inline-form__actions,
  .portal-state-pill,
  .portal-tab-button,
  .portal-card-actions .btn-primary,
  .portal-card-actions .btn-secondary,
  .worldnic-portal-topbar-logout .btn-secondary,
  .portal-profile-card__logout .btn-secondary,
  .portal-inline-form__actions .btn-primary,
  .portal-inline-form__actions .btn-secondary,
  .portal-modal__actions .btn-primary,
  .portal-modal__actions .btn-secondary {
    width: 100%;
  }

  .worldnic-guest-topbar-portal {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
  }

  .worldnic-guest-topbar-portal .worldnic-guest-actions {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
  }

  .worldnic-guest-topbar-portal .worldnic-portal-topbar-logout .btn-secondary {
    width: auto;
  }

  .worldnic-portal-topbar-profile {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }

  .worldnic-portal-topbar-profile strong {
    max-width: 100%;
  }

  .portal-modal {
    padding: 0.8rem;
  }
}

@font-face {
  font-family: "PassPrintNotoSans";
  src: url("/assets/fonts/NotoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PassPrintNotoSans";
  src: url("/assets/fonts/NotoSans-Bold.ttf") format("truetype");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

.pass-print-tabs {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.25rem;
  border-radius: 0.95rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.pass-print-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  border-radius: 0.8rem;
  padding: 0.6rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.pass-print-tab:hover,
.pass-print-tab.is-active {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
}

.pass-print-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(27rem, 0.46fr);
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: start;
}

.pass-print-hero__copy {
  min-width: 0;
}

.pass-print-transfer {
  display: grid;
  gap: 1.15rem;
  max-width: 39rem;
  justify-self: end;
  padding-top: 0.25rem;
}

.pass-print-transfer h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.2;
  font-weight: 800;
}

.pass-print-transfer p {
  max-width: 36rem;
  margin: 0.8rem 0 0;
  color: #65758e;
  font-size: 0.96rem;
  line-height: 1.5;
}

.pass-print-transfer__form {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) 3.6rem 3.6rem;
  gap: 0.72rem;
  align-items: center;
}

.pass-print-transfer__file {
  min-height: 3.35rem;
  width: 100%;
}

.pass-print-transfer__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid rgba(205, 215, 230, 0.98);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  color: #42536a;
  text-decoration: none;
  box-shadow: var(--wn-shadow-sm);
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.pass-print-transfer__icon-button:hover,
.pass-print-transfer__icon-button:focus-visible {
  transform: translateY(-1px);
  color: var(--wn-primary);
  border-color: rgba(0, 116, 255, 0.22);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.pass-print-toolbar {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.4rem;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 34%);
}

.pass-print-toolbar__save {
  width: 100%;
  min-height: 3rem;
}

.pass-print-toolbar__main {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.pass-print-toolbar__actions {
  display: grid;
  gap: 0.75rem;
  align-content: end;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(4rem, 0.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.pass-print-toolbar__actions .btn-primary,
.pass-print-toolbar__actions .btn-secondary,
.pass-print-toolbar__actions .btn-danger {
  width: 100%;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.pass-print-toolbar__rotation-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.92);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.pass-print-toolbar__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pass-print-workspace {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.pass-print-editor-form.is-fullscreen {
  position: fixed;
  inset: 1rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 !important;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at top left, rgba(224, 242, 254, 0.46), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.26);
  overflow: auto;
}

body.is-pass-print-fullscreen {
  overflow: hidden;
}

.pass-print-editor-form.is-fullscreen .pass-print-workspace {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.36fr);
}

.pass-print-editor-form.is-fullscreen .pass-print-workspace__stage,
.pass-print-editor-form.is-fullscreen .pass-print-workspace__sidebar,
.pass-print-editor-form.is-fullscreen .pass-print-stage-wrap {
  min-height: 0;
}

.pass-print-editor-form.is-fullscreen .pass-print-stage-wrap,
.pass-print-editor-form.is-fullscreen .pass-print-stage {
  display: flex;
  flex-direction: column;
}

.pass-print-editor-form.is-fullscreen .pass-print-stage {
  flex: 1;
  overflow: auto;
}

.pass-print-editor-form.is-fullscreen .pass-print-page--portrait {
  width: min(100%, 900px);
}

.pass-print-editor-form.is-fullscreen .pass-print-page--landscape {
  width: min(100%, 1120px);
}

.pass-print-workspace__stage,
.pass-print-workspace__sidebar {
  min-width: 0;
}

.pass-print-workspace__sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.pass-print-panel,
.pass-print-stage {
  border-radius: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
    linear-gradient(165deg, rgba(219, 234, 254, 0.16), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pass-print-panel {
  padding: 1.2rem;
}

.pass-print-stage-wrap {
  display: grid;
  gap: 1rem;
}

.pass-print-stage-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pass-print-fullscreen-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pass-print-fullscreen-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.16);
}

.pass-print-fullscreen-icon {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pass-print-fullscreen-icon--exit,
.pass-print-fullscreen-toggle.is-active .pass-print-fullscreen-icon--enter {
  display: none;
}

.pass-print-fullscreen-toggle.is-active .pass-print-fullscreen-icon--exit {
  display: block;
}

.pass-print-stage {
  padding: 1.2rem;
}

.pass-print-page {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto;
  aspect-ratio: 210 / 297;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background-color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.pass-print-page--portrait {
  aspect-ratio: 210 / 297;
}

.pass-print-page--landscape {
  width: min(100%, 860px);
  aspect-ratio: 297 / 210;
}

.pass-print-page__grid,
.pass-print-page__fields,
.pass-print-page__empty {
  position: absolute;
  inset: 0;
}

.pass-print-page__background {
  position: absolute;
  left: var(--pass-print-background-left, 0%);
  top: var(--pass-print-background-top, 0%);
  width: var(--pass-print-background-width, 100%);
  height: var(--pass-print-background-height, 100%);
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform: rotate(var(--pass-print-background-rotation, 0deg));
  transform-origin: top left;
  opacity: 0;
}

.pass-print-page__background.is-active {
  opacity: 1;
}

.pass-print-page__grid {
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 10% 10%;
}

.pass-print-page__fields {
  z-index: 2;
}

.pass-print-page__empty {
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 0.55rem;
  text-align: center;
  padding: 2rem;
  color: #64748b;
}

.pass-print-page__empty.hidden {
  display: none;
}

.pass-print-page__empty strong {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.pass-print-page.has-background .pass-print-page__grid {
  background-image: none;
}

.pass-print-field {
  position: absolute;
  min-width: 72px;
  padding: 0.4rem 0.7rem;
  padding-right: 1.5rem;
  border: 1px dashed rgba(14, 116, 144, 0.58);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.93);
  color: var(--pass-print-text-color, #0f172a);
  font-family: "PassPrintNotoSans", sans-serif;
  cursor: move;
  touch-action: none;
  user-select: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translate(-4%, -4%) rotate(var(--pass-print-rotation, 0deg));
  transform-origin: top left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.pass-print-field:hover,
.pass-print-field.is-active {
  border-color: rgba(37, 99, 235, 0.85);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.14);
  filter: saturate(1.08);
}

.pass-print-field > span:first-child {
  display: block;
  padding-bottom: 5px;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: var(--pass-print-text-align, left);
}

.pass-print-field__content {
  display: block;
  line-height: 1;
  border-bottom: 2px dotted transparent;
  padding-bottom: 0.12rem;
}

.pass-print-field__prefix,
.pass-print-field__variable {
  display: inline-block;
  vertical-align: bottom;
  line-height: 1;
  white-space: pre;
}

.pass-print-field__prefix.is-placeholder {
  color: #64748b;
  opacity: 0.82;
}

.pass-print-field__content.has-bottom-border {
  border-bottom-color: var(--pass-print-border-color, #0f172a);
}

.pass-print-field__resize {
  position: absolute;
  right: 0.28rem;
  bottom: 0.28rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 0.24rem;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.18);
  cursor: ew-resize;
}

.pass-print-variable-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #ffffff;
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 700;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pass-print-variable-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.pass-print-variable-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pass-print-variable-btn img {
  width: 1rem;
  height: 1rem;
  opacity: 0.68;
}

.pass-print-inspector-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.pass-print-inspector-section {
  padding: 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.68);
}

.pass-print-border-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.9rem;
  background: #ffffff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.pass-print-border-toggle input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #2563eb;
}

.pass-print-color-input {
  min-height: 3rem;
  padding: 0.35rem 0.45rem;
}

.pass-print-inspector-metric {
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.88);
}

.pass-print-inspector-metric__label {
  display: block;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pass-print-inspector-metric__value {
  margin-top: 0.45rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.pass-print-remove-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.pass-print-remove-toggle input {
  width: 1rem;
  height: 1rem;
}

.pass-print-print-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
}

.pass-print-toolbar__preview {
  width: 100%;
  min-height: 3rem;
}

.pass-print-preview-modal {
  align-items: flex-start;
  padding-top: clamp(0.8rem, 3vh, 2rem);
}

.pass-print-preview-modal .portal-modal__dialog {
  width: min(100%, 1180px);
  padding: 1.1rem;
  max-height: calc(100vh - 2rem);
}

.pass-print-preview-modal__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.pass-print-preview-modal__id-input {
  width: 8.2rem;
  min-height: 2.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.pass-print-preview-modal__body {
  display: grid;
  gap: 0.9rem;
  padding-top: 1rem;
}

.pass-print-preview-modal__loading,
.pass-print-preview-modal__error {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(213, 223, 238, 0.9);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%);
  color: #42536a;
}

.pass-print-preview-modal__loading.hidden,
.pass-print-preview-modal__error.hidden {
  display: none;
}

.pass-print-preview-modal__loading strong {
  display: block;
  color: #1f2f43;
  font-size: 0.95rem;
}

.pass-print-preview-modal__loading p {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.86rem;
}

.pass-print-preview-modal__error {
  border-color: rgba(244, 63, 94, 0.26);
  background: rgba(255, 241, 242, 0.92);
  color: #be123c;
  font-weight: 700;
}

.pass-print-preview-modal__frame {
  display: block;
  width: 100%;
  min-height: min(82vh, 980px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: #f8fafc;
}

.pass-print-preview-modal__frame.hidden {
  display: none;
}

.pass-print-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.72);
}

.pass-print-type-row strong {
  display: block;
  color: #0f172a;
}

.pass-print-type-row span {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
}

.pass-print-type-row > span:last-child {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .pass-print-hero,
  .pass-print-toolbar,
  .pass-print-workspace,
  .pass-print-print-shell {
    grid-template-columns: 1fr;
  }

  .pass-print-transfer {
    max-width: none;
    justify-self: stretch;
  }

  .pass-print-toolbar__save {
    min-width: 0;
  }

  .pass-print-toolbar__main {
    grid-template-columns: 1fr;
  }

  .pass-print-toolbar__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pass-print-transfer__form {
    grid-template-columns: 1fr 3.35rem 3.35rem;
    gap: 0.55rem;
  }

  .pass-print-transfer__icon-button {
    width: 3.35rem;
    height: 3.35rem;
  }
}

@media (max-width: 900px) {
  .pass-print-editor-form.is-fullscreen {
    inset: 0.5rem;
    padding: 0.75rem;
  }

  .pass-print-editor-form.is-fullscreen .pass-print-workspace {
    grid-template-columns: 1fr;
  }

  .pass-print-stage {
    padding: 1rem;
  }

  .pass-print-page {
    width: 100%;
  }

  .pass-print-field {
    max-width: 220px;
  }
}

@media (max-width: 520px) {
  .pass-print-inspector-metrics {
    gap: 0.5rem;
  }

  .pass-print-inspector-metric {
    padding: 0.78rem 0.8rem;
    border-radius: 0.95rem;
  }

  .pass-print-inspector-metric__label {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .pass-print-inspector-metric__value {
    margin-top: 0.35rem;
    font-size: 0.88rem;
  }
}
