:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: #0c0910;
  color: #f8f2f8;
  --surface: #18121d;
  --surface-raised: #201724;
  --surface-soft: #130f18;
  --border: rgb(217 119 177 / 18%);
  --border-strong: rgb(226 115 177 / 34%);
  --muted: #b6aab9;
  --pink: #e879b4;
  --pink-bright: #f49bcb;
  --purple: #a68ae8;
  --green: #73d6ad;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  isolation: isolate;
  display: grid;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  place-items: center;
  padding: 12px;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 12% 4%, rgb(104 54 100 / 24%), transparent 34rem),
    radial-gradient(ellipse at 92% 20%, rgb(67 54 122 / 22%), transparent 38rem),
    #0c0910;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 6% 14%, #fff 98%, transparent),
    radial-gradient(1px 1px at 16% 57%, #fff 98%, transparent),
    radial-gradient(1.5px 1.5px at 29% 26%, #f5b5d7 98%, transparent),
    radial-gradient(1px 1px at 38% 72%, #fff 98%, transparent),
    radial-gradient(1.5px 1.5px at 51% 11%, #fff 98%, transparent),
    radial-gradient(1px 1px at 62% 48%, #f5b5d7 98%, transparent),
    radial-gradient(1px 1px at 73% 23%, #fff 98%, transparent),
    radial-gradient(1.5px 1.5px at 86% 67%, #fff 98%, transparent),
    radial-gradient(1px 1px at 94% 35%, #f5b5d7 98%, transparent);
  content: "";
  opacity: 0.3;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pink-bright);
  outline-offset: 3px;
}

.tablet-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(100%, 1500px);
  height: 78vh;
  min-height: 0;
  max-height: 760px;
  place-items: center;
  margin: auto;
}

.device-frame {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 220px), 1280px);
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid rgb(245 221 247 / 35%);
  border-radius: 31px;
  background:
    linear-gradient(145deg, #71677c, #393141 8%, #211b29 28%, #44394b 78%, #8c7894);
  box-shadow:
    0 34px 72px rgb(0 0 0 / 48%),
    inset 0 1px 1px rgb(255 255 255 / 54%),
    inset 0 -2px 3px rgb(0 0 0 / 58%);
}

.device-frame::before {
  position: absolute;
  z-index: 1;
  inset: 5px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 25px;
  background: linear-gradient(145deg, #2c2533, #18131e 58%, #302639);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 30%);
  content: "";
  pointer-events: none;
}

.device-camera {
  position: absolute;
  z-index: 3;
  top: 5px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid #554b60;
  border-radius: 50%;
  background: #09070c;
  box-shadow: 0 0 0 2px rgb(0 0 0 / 18%);
  transform: translateX(-50%);
}

.tablet-hands {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.tablet-hand {
  position: absolute;
  top: 28%;
  width: 235px;
  height: 68%;
  overflow: visible;
  filter: drop-shadow(0 11px 12px rgb(0 0 0 / 22%));
}

.hand-left {
  left: -85px;
}

.hand-right {
  right: -85px;
  transform: scaleX(-1);
}

.hand-shape {
  filter: drop-shadow(0 5px 5px rgb(77 42 46 / 18%));
}

@media (max-width: 1050px) {
  .tablet-stage {
    height: 84vh;
  }

  .tablet-hand {
    top: 29%;
    width: 170px;
    height: 66%;
  }

  .hand-left {
    left: -85px;
  }

  .hand-right {
    right: -85px;
  }
}

.device-screen {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: 252px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 58% -10%, rgb(98 52 92 / 16%), transparent 37rem),
    #100c15;
  box-shadow: inset 0 0 30px rgb(0 0 0 / 23%);
}

.sidebar {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px 16px 18px;
  border-right: 1px solid rgb(255 255 255 / 6%);
  background:
    radial-gradient(ellipse at 0 0, rgb(129 70 122 / 15%), transparent 22rem),
    linear-gradient(180deg, #17111d, #110d16);
}

.brand-lockup {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgb(232 121 180 / 30%));
}

.brand-name,
.brand-caption {
  display: block;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.brand-caption {
  margin-top: 3px;
  color: #b6a4b9;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.sidebar-divider {
  height: 1px;
  margin: 24px 0 22px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.nav-caption,
.eyebrow {
  margin: 0;
  color: var(--pink-bright);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.nav-caption {
  padding: 0 10px 11px;
  color: #8e7c91;
}

.main-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #bcb0c0;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.nav-item:hover:not(:disabled) {
  background: rgb(255 255 255 / 4%);
  color: #fff;
}

.nav-item.is-active {
  border-color: rgb(232 121 180 / 18%);
  background: linear-gradient(100deg, rgb(203 89 152 / 19%), rgb(125 83 152 / 9%));
  color: #ffe4f2;
  box-shadow: inset 3px 0 0 var(--pink);
}

.nav-item:disabled {
  color: #706876;
  cursor: not-allowed;
  opacity: 0.58;
}

.nav-item.is-locked:not(.is-active) {
  color: #8e8292;
}

.nav-item.is-locked:not(.is-active)::after {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border: 1px solid #85728c;
  border-radius: 50%;
  content: "";
}

.nav-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 7px;
  color: var(--pink-bright);
  font-size: 1.1rem;
}

.nav-svg-icon,
.quick-svg,
.stat-svg-icon {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-svg-icon {
  width: 15px;
  height: 15px;
}

.stat-svg-icon {
  width: 16px;
  height: 16px;
}

.sidebar-spacer {
  flex: 1;
  min-height: 38px;
}

.sidebar-profile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 11px 9px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 13px;
  background: rgb(255 255 255 / 3%);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 2px solid rgb(232 121 180 / 55%);
  border-radius: 50%;
  background: #251a2b;
  object-fit: cover;
}

.sidebar-profile-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.sidebar-profile-copy strong,
.sidebar-profile-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile-copy strong {
  font-size: 0.77rem;
}

.sidebar-profile-copy span {
  color: var(--muted);
  font-size: 0.68rem;
}

.online-dot,
.server-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgb(115 214 173 / 72%);
}

.sidebar-profile > .online-dot {
  margin-left: auto;
}

.sidebar-footnote {
  margin: 16px 0 0;
  color: #766b7b;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-align: center;
}

.app-area {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 32px 18px;
  scrollbar-color: rgb(232 121 180 / 34%) transparent;
  scrollbar-width: thin;
}

.app-topbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.breadcrumb,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.breadcrumb {
  color: #94889a;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.breadcrumb strong {
  color: #eee5ef;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.breadcrumb-mark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 0 11px rgb(232 121 180 / 56%);
  transform: rotate(45deg);
}

.breadcrumb-divider {
  color: #65596a;
}

.active-server-context {
  max-width: 240px;
  overflow: hidden;
  padding: 6px 10px;
  border: 1px solid rgb(232 121 180 / 19%);
  border-radius: 999px;
  background: rgb(232 121 180 / 7%);
  color: #e8cadd;
  font-size: 0.68rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  flex: 0 0 auto;
}

.session-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b9aebb;
  font-size: 0.72rem;
}

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid rgb(255 191 222 / 25%);
  border-radius: 10px;
  background: linear-gradient(135deg, #d95f9e, #a84887);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.72rem;
}

.button-muted {
  border-color: var(--border);
  background: rgb(39 29 44 / 85%);
}

.button-muted:hover {
  border-color: rgb(242 149 200 / 48%);
}

.status {
  min-height: 20px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.status:empty {
  min-height: 0;
  margin: 0;
}

.status.error {
  color: #ff9aaf;
}

.dashboard-content {
  width: min(100%, 1180px);
  flex: 1;
  align-self: center;
  padding: 22px 0 36px;
}

.content-view {
  animation: view-enter 220ms ease both;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-row {
  position: relative;
  display: flex;
  min-height: 144px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 17px 24px;
  border: 1px solid rgb(232 121 180 / 11%);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 80% 0, rgb(176 93 164 / 17%), transparent 23rem),
    linear-gradient(115deg, rgb(37 25 43 / 94%), rgb(22 17 28 / 86%));
}

.welcome-row h1,
.page-heading h1 {
  margin: 9px 0 7px;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  font-weight: 850;
  letter-spacing: -0.05em;
}

.welcome-row h1 span:not(.welcome-comma) {
  color: var(--pink-bright);
}

.welcome-comma {
  color: #f8f2f8;
}

.welcome-copy,
.page-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-mark {
  position: relative;
  display: grid;
  width: 150px;
  height: 122px;
  flex: 0 0 150px;
  place-items: center;
}

.hero-mark img {
  z-index: 1;
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgb(232 121 180 / 42%));
}

.hero-orbit {
  position: absolute;
  width: 110px;
  height: 58px;
  border: 1px solid rgb(232 121 180 / 34%);
  border-radius: 50%;
  transform: rotate(-25deg);
}

.hero-orbit-two {
  width: 138px;
  height: 78px;
  border-color: rgb(166 138 232 / 31%);
  transform: rotate(35deg);
}

.profile-banner {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 100% 0, rgb(232 121 180 / 13%), transparent 34rem),
    linear-gradient(110deg, #201522, #18121c);
  box-shadow: 0 16px 38px rgb(0 0 0 / 18%);
}

.profile-avatar {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border: 3px solid rgb(232 121 180 / 62%);
  border-radius: 22px;
  background: #281a2c;
  box-shadow: 0 0 0 5px rgb(232 121 180 / 8%), 0 0 28px rgb(232 121 180 / 18%);
  object-fit: cover;
}

.profile-main {
  min-width: 0;
  flex: 1;
}

.profile-main h2 {
  overflow: hidden;
  margin: 5px 0 7px;
  font-size: 1.12rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgb(232 121 180 / 25%);
  border-radius: 999px;
  background: rgb(232 121 180 / 9%);
  color: #f4cae1;
  font-size: 0.67rem;
  font-weight: 750;
}

.role-badge.role-badge-technical {
  border-color: rgb(166 138 232 / 27%);
  background: rgb(166 138 232 / 9%);
  color: #d3c4fa;
}

.profile-server {
  display: grid;
  min-width: 180px;
  grid-template-columns: 9px 1fr;
  align-items: center;
  column-gap: 9px;
  color: var(--muted);
  font-size: 0.68rem;
}

.profile-server .server-pulse {
  grid-row: span 2;
}

.profile-server strong {
  margin-top: 4px;
  color: #f3eaf4;
  font-size: 0.82rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 28px;
}

.stat-card {
  position: relative;
  display: grid;
  min-height: 128px;
  align-content: start;
  gap: 5px;
  overflow: hidden;
  padding: 16px 17px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(32 24 38 / 96%), rgb(21 16 26 / 96%));
}

.stat-card::after {
  position: absolute;
  top: -34px;
  right: -32px;
  width: 95px;
  height: 95px;
  border: 1px solid rgb(232 121 180 / 9%);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgb(232 121 180 / 3%);
  content: "";
}

.stat-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 8px;
  font-size: 1rem;
}

.stat-icon-pink {
  background: rgb(232 121 180 / 12%);
  color: var(--pink-bright);
}

.stat-icon-purple {
  background: rgb(166 138 232 / 13%);
  color: #c2aafa;
}

.stat-icon-green {
  background: rgb(115 214 173 / 12%);
  color: var(--green);
}

.stat-label {
  color: #a99bad;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.stat-card > strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.stat-card > strong.stat-online {
  color: var(--green);
  font-size: 1.08rem;
}

.stat-caption {
  color: #8f8394;
  font-size: 0.68rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: 1.18rem;
}

.section-hint {
  color: #918596;
  font-size: 0.68rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-card {
  position: relative;
  display: grid;
  min-height: 126px;
  align-content: start;
  justify-items: start;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 100% 0, rgb(232 121 180 / 7%), transparent 15rem),
    #18121d;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.quick-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgb(232 121 180 / 37%);
  background-color: #211726;
}

.quick-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.quick-card.is-locked {
  border-style: dashed;
  opacity: 0.62;
}

.quick-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: rgb(232 121 180 / 11%);
  color: var(--pink-bright);
  font-size: 1rem;
}

.quick-svg {
  width: 16px;
  height: 16px;
}

.quick-title {
  font-size: 0.86rem;
  font-weight: 800;
}

.quick-copy {
  max-width: 90%;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.quick-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #b990bf;
}

.locked-tools-hint {
  margin: 12px 0 0;
  color: #a99bad;
  font-size: 0.72rem;
  line-height: 1.5;
}

.page-heading {
  margin: 4px 0 22px;
}

.page-heading h1 {
  margin-top: 7px;
}

.panel-card {
  margin-bottom: 15px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 100% 0, rgb(232 121 180 / 7%), transparent 25rem),
    rgb(25 19 30 / 95%);
  box-shadow: 0 18px 44px rgb(0 0 0 / 16%);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
}

.card-heading-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgb(232 121 180 / 24%);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(232 121 180 / 15%), rgb(166 138 232 / 9%));
  color: var(--pink-bright);
  font-size: 1.35rem;
}

.card-heading .eyebrow {
  margin-bottom: 4px;
}

.card-heading h2 {
  margin: 0;
  font-size: 1.06rem;
}

.server-card label,
.search-form label {
  display: block;
  margin: 14px 0 7px;
  color: #dfd1df;
  font-size: 0.82rem;
  font-weight: 650;
}

.server-card select,
.search-row input,
.global-ban-form input,
.global-ban-form select,
.global-ban-form textarea,
.configuration-field input,
.configuration-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid rgb(211 153 190 / 24%);
  border-radius: 10px;
  background: rgb(13 11 18 / 88%);
  color: inherit;
}

.server-card select {
  max-width: 560px;
}

.server-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 10px;
  margin-top: 16px;
}

.server-tile {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 13px;
  background: linear-gradient(135deg, rgb(255 255 255 / 3%), rgb(255 255 255 / 1%));
  transition: border-color 140ms ease, background 140ms ease;
}

.server-tile-principal {
  border-color: rgb(232 121 180 / 36%);
  background: linear-gradient(125deg, rgb(232 121 180 / 10%), rgb(166 138 232 / 5%));
}

.server-tile-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.server-tile-icon {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 13px;
  object-fit: cover;
}

.server-tile-icon-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgb(232 121 180 / 23%), rgb(166 138 232 / 19%));
  color: #f5c5df;
  font-size: 1.1rem;
  font-weight: 800;
}

.server-tile-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.server-tile-copy strong {
  overflow: hidden;
  color: #f5ebf5;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-tile-copy span {
  color: #b99db2;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.button-small {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  font-size: 0.72rem;
}

.server-scope-note,
.empty-state {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.server-scope-note span {
  margin-right: 5px;
  color: var(--pink-bright);
}

.empty-state {
  padding: 13px 15px;
  border: 1px solid rgb(166 138 232 / 19%);
  border-radius: 10px;
  background: rgb(166 138 232 / 6%);
}

.search-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.search-row input {
  padding: 0 12px;
}

.search-row .button {
  flex: 0 0 auto;
}

.result-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.result-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid rgb(211 153 190 / 20%);
  border-radius: 10px;
  background: rgb(18 14 23 / 74%);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.result-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgb(232 121 180 / 42%);
  border-radius: 8px;
  object-fit: cover;
}

.result-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-button:hover {
  border-color: rgb(242 149 200 / 60%);
  background: rgb(46 27 44 / 76%);
}

.citizen-modal {
  display: none;
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  max-height: min(84vh, 820px);
  max-height: min(84dvh, 820px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(232 121 180 / 42%);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 4% 0%, rgb(232 121 180 / 10%), transparent 32rem),
    #110d16;
  color: #f8f2f8;
  box-shadow:
    0 32px 100px rgb(0 0 0 / 72%),
    0 0 44px rgb(232 121 180 / 8%),
    inset 0 1px rgb(255 255 255 / 5%);
}

.citizen-modal[open] {
  display: flex;
}

.citizen-modal::backdrop {
  background: rgb(5 3 8 / 78%);
  backdrop-filter: blur(7px);
}

.citizen-modal-content {
  display: flex;
  width: 100%;
  min-height: 0;
  max-height: min(84vh, 820px);
  max-height: min(84dvh, 820px);
  flex-direction: column;
}

.citizen-modal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgb(232 121 180 / 18%);
  background:
    linear-gradient(110deg, rgb(232 121 180 / 12%), rgb(166 138 232 / 7%) 58%, transparent);
}

.citizen-modal-header .eyebrow {
  margin: 0 0 4px;
}

.citizen-modal-header h2 {
  margin: 0;
  color: #fff0f8;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.citizen-modal-server {
  margin: 4px 0 0;
  color: #b6aab9;
  font-size: 0.72rem;
}

.citizen-modal-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.profile-output {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px 20px 24px;
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  scrollbar-color: rgb(232 121 180 / 55%) transparent;
  scrollbar-width: thin;
}

.citizen-identity-card {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 16px;
  padding: 15px 17px;
  border: 1px solid rgb(232 121 180 / 28%);
  border-radius: 16px;
  background:
    linear-gradient(112deg, rgb(232 121 180 / 13%), rgb(166 138 232 / 7%) 58%, rgb(255 255 255 / 2%));
  box-shadow: inset 0 1px rgb(255 255 255 / 4%);
}

.citizen-profile-avatar {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border: 2px solid rgb(247 174 214 / 74%);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgb(0 0 0 / 32%);
}

.citizen-identity-copy {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 3px;
}

.citizen-identity-copy h3 {
  margin: 0;
  color: #fff0f8;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.citizen-identity-copy p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.citizen-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 5px;
  padding: 2px 8px;
  border: 1px solid rgb(115 214 173 / 27%);
  border-radius: 999px;
  background: rgb(115 214 173 / 9%);
  color: #a7ebcf;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.citizen-status-pill-active {
  border-color: rgb(242 149 200 / 32%);
  background: rgb(232 121 180 / 10%);
  color: #f2a6d0;
}

.citizen-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
  margin-top: 11px;
}

.citizen-summary-card {
  display: grid;
  min-height: 76px;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: baseline;
  column-gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgb(232 121 180 / 15%);
  border-radius: 13px;
  background: linear-gradient(145deg, rgb(255 255 255 / 4%), rgb(255 255 255 / 1%));
}

.citizen-summary-card span {
  grid-column: 1 / -1;
  color: #b7a7b9;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.citizen-summary-card strong {
  color: #fff2f8;
  font-size: 1.15rem;
  line-height: 1.2;
}

.citizen-summary-card small {
  color: #bbaebd;
  font-size: 0.64rem;
}

.citizen-detail-section {
  margin-top: 11px;
  padding: 14px;
  border: 1px solid rgb(211 153 190 / 15%);
  border-radius: 15px;
  background:
    linear-gradient(140deg, rgb(255 255 255 / 2%), transparent 65%),
    rgb(13 11 18 / 72%);
}

.citizen-detail-section h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: #f5d7e8;
  font-size: 0.82rem;
  letter-spacing: 0.025em;
}

.citizen-detail-section h4::before {
  width: 3px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--pink-bright), var(--purple));
  content: "";
}

.citizen-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 9px;
}

.citizen-detail-section-wide .citizen-detail-list,
.citizen-detail-section-audit .citizen-detail-list {
  grid-template-columns: 1fr;
}

.citizen-detail-item {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 11px;
  background:
    linear-gradient(110deg, rgb(232 121 180 / 3%), transparent 42%),
    rgb(255 255 255 / 2%);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.citizen-detail-item:hover {
  border-color: rgb(232 121 180 / 24%);
  background-color: rgb(232 121 180 / 3%);
}

.citizen-detail-section-audit .citizen-detail-item {
  border-left: 2px solid rgb(232 121 180 / 45%);
}

.citizen-detail-field {
  display: grid;
  gap: 3px;
  margin: 0;
}

.citizen-detail-field + .citizen-detail-field {
  margin-top: 8px;
}

.citizen-detail-field span {
  color: #b5a7b8;
  font-size: 0.65rem;
}

.citizen-detail-field strong {
  color: #f0e7f1;
  font-size: 0.77rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.citizen-detail-empty {
  margin: 0;
  color: #a899ad;
  font-size: 0.74rem;
}

.form-intro {
  margin: -5px 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.global-ban-form {
  display: grid;
  max-width: 680px;
  gap: 8px;
}

.global-ban-form label {
  margin: 7px 0 0;
}

.global-ban-form textarea {
  min-height: 94px;
  resize: vertical;
}

.global-ban-form .button {
  justify-self: start;
  margin-top: 8px;
}

.configuration-module {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.configuration-module h3 {
  margin: 0 0 12px;
  color: #f3d9e9;
}

.configuration-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.configuration-field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgb(211 153 190 / 15%);
  border-radius: 12px;
  background: rgb(15 12 20 / 44%);
}

.configuration-field label {
  color: #dfd1df;
  font-size: 0.82rem;
  font-weight: 650;
}

.configuration-field textarea {
  min-height: 92px;
  resize: vertical;
}

.configuration-field-help {
  margin: -2px 0 0;
  color: #a899ad;
  font-size: 0.7rem;
  line-height: 1.45;
}

.configuration-field .button {
  justify-self: start;
}

.configuration-previews {
  display: grid;
  gap: 20px;
}

.message-template-previews {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.components-v2-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  align-items: start;
  gap: 14px;
}

.components-v2-preview-card {
  min-width: 0;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgb(211 153 190 / 24%);
  border-left: 4px solid #e34d9b;
  border-radius: 12px;
  background: #232329;
  color: #ececf0;
  box-shadow: 0 12px 30px rgb(0 0 0 / 18%);
}

.components-v2-preview-brand {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  color: #f7e7f2;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.components-v2-preview-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.components-v2-preview-banner {
  display: block;
  width: 100%;
  max-height: 82px;
  margin: 8px 0 13px;
  border-radius: 7px;
  object-fit: cover;
}

.components-v2-preview-heading h4 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.components-v2-preview-heading > p {
  margin: 5px 0 12px;
  color: #c6c2ca;
  font-size: 0.74rem;
  line-height: 1.5;
}

.components-v2-preview-section {
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / 13%);
}

.components-v2-preview-section h5 {
  margin: 0 0 7px;
  color: #f0c4dc;
  font-size: 0.76rem;
}

.components-v2-preview-section p {
  margin: 0 0 8px;
  color: #e2dfe5;
  font-size: 0.74rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.components-v2-preview-card footer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: #aaa4b0;
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.components-v2-preview-action {
  display: inline-flex;
  margin-top: 4px;
  padding: 7px 12px;
  border-radius: 6px;
  background: #e34d9b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.welcome-preview {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.welcome-preview-heading h3,
.welcome-preview-panel h4 {
  margin: 0;
  color: #f3d9e9;
}

.welcome-preview-heading .eyebrow {
  margin: 0 0 4px;
}

.welcome-preview-panel {
  padding: 14px;
  border: 1px solid rgb(211 153 190 / 14%);
  border-radius: 12px;
  background: rgb(13 11 18 / 70%);
}

.welcome-preview-panel h4 {
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.discord-preview {
  max-width: 760px;
  padding: 10px;
  border-radius: 9px;
  background: #313338;
}

.discord-preview-content {
  margin: 0 0 8px;
  color: #dbdee1;
  font-size: 0.75rem;
}

.discord-preview-embed {
  max-width: 620px;
  padding: 12px 14px;
  border-left: 4px solid #7c3aed;
  border-radius: 4px;
  background: #2b2d31;
  color: #dbdee1;
}

.discord-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f2f3f5;
  font-size: 0.68rem;
}

.discord-preview-header img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-preview-embed h5 {
  margin: 12px 0 6px;
  color: #fff;
  font-size: 0.95rem;
}

.discord-preview-description {
  margin: 0;
  color: #dbdee1;
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.discord-preview-description strong {
  color: #fff;
}

.discord-preview-banner,
.discord-preview-artwork img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 4px;
}

.discord-preview-artwork {
  max-width: 620px;
  margin-top: 8px;
}

.discord-preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 14px;
}

.discord-preview-stats div {
  display: grid;
  gap: 2px;
}

.discord-preview-stats span {
  color: #aeb2b8;
  font-size: 0.62rem;
}

.discord-preview-stats strong {
  color: #f2f3f5;
  font-size: 0.72rem;
}

.discord-preview-footer {
  margin: 12px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: #aeb2b8;
  font-size: 0.62rem;
}

.permission-summary {
  margin: -2px 0 15px;
  color: var(--muted);
  font-size: 0.78rem;
}

.permission-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.permission-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 9px;
  background: rgb(13 11 18 / 54%);
  color: #d2c7d4;
  font-size: 0.75rem;
}

.permission-list li::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px rgb(115 214 173 / 45%);
  content: "";
}

.permission-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.module-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 15px;
  background:
    radial-gradient(ellipse at 100% 0, rgb(166 138 232 / 10%), transparent 24rem),
    rgb(25 19 30 / 95%);
}

.module-notice h2 {
  margin: 6px 0;
  font-size: 1rem;
}

.module-notice p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.notice-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  background: rgb(166 138 232 / 12%);
  color: #cbb8ff;
}

.access-card {
  position: relative;
  display: grid;
  min-height: 480px;
  align-content: center;
  justify-items: start;
  overflow: hidden;
  margin: 30px auto;
  padding: clamp(28px, 7vw, 64px);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 100% 0, rgb(232 121 180 / 18%), transparent 32rem),
    linear-gradient(125deg, #241a2c, #15101b 70%);
}

.access-art {
  position: absolute;
  top: 50%;
  right: 4%;
  display: grid;
  width: 290px;
  height: 290px;
  place-items: center;
  opacity: 0.18;
  transform: translateY(-50%);
}

.access-art img {
  z-index: 1;
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px var(--pink));
}

.access-art span {
  position: absolute;
  width: 270px;
  height: 150px;
  border: 1px solid var(--pink);
  border-radius: 50%;
  transform: rotate(-30deg);
}

.access-card > :not(.access-art) {
  position: relative;
  z-index: 2;
}

.access-card h1 {
  margin: 11px 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.access-card h1 span {
  color: var(--pink-bright);
}

.access-card > p:not(.eyebrow, .access-note) {
  max-width: 510px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.access-note {
  margin: 13px 0 0;
  color: #867b8d;
  font-size: 0.7rem;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgb(255 255 255 / 6%);
  color: #766d7e;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-dot {
  padding: 0 4px;
  color: var(--pink);
}

.hidden {
  display: none !important;
}

@media (max-width: 1050px) {
  .tablet-stage {
    width: calc(100% - 100px);
  }

  .device-frame {
    width: 100%;
  }

  .device-screen {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .app-area {
    padding-right: 22px;
    padding-left: 22px;
  }

  .profile-server {
    min-width: 145px;
  }
}

@media (max-width: 780px) {
  body {
    padding: 8px;
  }

  .tablet-stage {
    height: 84vh;
    width: calc(100% - 100px);
  }

  .device-frame {
    width: 100%;
    min-height: 0;
    max-height: 740px;
    padding: 12px;
    border-radius: 25px;
  }

  .device-screen {
    min-height: 0;
    grid-template-columns: 185px minmax(0, 1fr);
    border-radius: 13px;
  }

  .sidebar {
    padding: 18px 10px 14px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-caption {
    font-size: 0.52rem;
  }

  .nav-item {
    gap: 8px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .app-area {
    padding-right: 16px;
    padding-left: 16px;
  }

  .app-topbar {
    min-height: 58px;
  }

  .breadcrumb {
    gap: 7px;
    font-size: 0.58rem;
  }

  .breadcrumb strong {
    font-size: 0.68rem;
  }

  .session-indicator {
    display: none;
  }

  .profile-banner {
    flex-wrap: wrap;
  }

  .profile-server {
    width: 100%;
    margin-left: 87px;
  }
}

@media (max-width: 680px) {
  body {
    padding: 0;
  }

  .tablet-stage {
    width: 100%;
    height: 88vh;
  }

  .device-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 10px;
    border-radius: 22px;
  }

  .device-frame::before,
  .device-camera {
    display: none;
  }

  .tablet-hands {
    display: none;
  }

  .device-screen {
    grid-template-columns: 175px minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .tablet-stage {
    height: 100vh;
  }

  .device-frame {
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: #100c15;
    box-shadow: none;
  }

  .device-frame::before {
    display: none;
  }

  .device-screen {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-columns: 56px minmax(0, 1fr);
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .sidebar {
    position: sticky;
    z-index: 5;
    top: 0;
    height: 100%;
    padding: 12px 7px;
    border-right: 0;
    border-right: 1px solid rgb(255 255 255 / 7%);
    background: rgb(20 15 24 / 96%);
    backdrop-filter: blur(16px);
  }

  .brand-lockup {
    min-height: 40px;
    justify-content: center;
  }

  .brand-logo {
    width: 39px;
    height: 39px;
  }

  .brand-lockup > span,
  .sidebar-divider,
  .nav-caption,
  .sidebar-profile,
  .sidebar-footnote {
    display: none;
  }

  .main-nav {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 16px;
  }

  .nav-item {
    position: relative;
    width: 40px;
    min-height: 40px;
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: 0;
  }

  .nav-item > span:not(.nav-icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nav-item.is-active {
    box-shadow: inset 3px 0 0 var(--pink);
  }

  .nav-item.is-locked:not(.is-active)::after {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 5px;
    height: 5px;
  }

  .nav-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border: 0;
    font-size: 0.95rem;
  }

  .nav-svg-icon {
    width: 20px;
    height: 20px;
  }

  .app-area {
    flex: 1;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 0 15px 14px;
  }

  .app-topbar {
    min-height: 47px;
  }

  .breadcrumb {
    font-size: 0.53rem;
    letter-spacing: 0.05em;
  }

  .breadcrumb strong {
    font-size: 0.64rem;
  }

  .button-small {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.64rem;
  }

  .dashboard-content {
    padding-top: 15px;
  }

  .welcome-row {
    min-height: 120px;
    padding: 17px;
  }

  .welcome-row h1 {
    font-size: 1.7rem;
  }

  .welcome-copy {
    max-width: 270px;
    font-size: 0.76rem;
  }

  .hero-mark {
    width: 72px;
    height: 80px;
    flex-basis: 72px;
    margin-right: -6px;
  }

  .hero-mark img {
    width: 48px;
    height: 48px;
  }

  .hero-orbit {
    width: 65px;
    height: 34px;
  }

  .hero-orbit-two {
    width: 76px;
    height: 44px;
  }

  .profile-banner {
    gap: 12px;
    padding: 14px;
  }

  .profile-avatar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 17px;
  }

  .profile-main h2 {
    font-size: 0.95rem;
  }

  .profile-server {
    margin-left: 68px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 22px;
  }

  .stat-card {
    min-height: 112px;
    padding: 12px;
  }

  .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .stat-label {
    font-size: 0.55rem;
  }

  .stat-caption {
    font-size: 0.62rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quick-card {
    min-height: 110px;
  }

  .page-heading h1 {
    font-size: 2rem;
  }

  .panel-card {
    padding: 16px;
  }

  .search-row,
  .citizen-modal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .search-row .button,
  .citizen-modal-actions .button {
    width: 100%;
  }

  .citizen-modal {
    width: calc(100vw - 16px);
    max-height: min(84vh, 820px);
    max-height: min(84dvh, 820px);
  }

  .citizen-modal-content {
    max-height: min(84vh, 820px);
    max-height: min(84dvh, 820px);
  }

  .citizen-modal-header {
    padding: 14px;
  }

  .citizen-modal-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .profile-output {
    padding: 12px;
  }

  .citizen-detail-list {
    grid-template-columns: 1fr;
  }

  .citizen-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .configuration-fields-grid {
    grid-template-columns: 1fr;
  }

  .permission-list {
    grid-template-columns: 1fr;
  }

  .access-card {
    min-height: 410px;
    margin: 16px 0;
    padding: 28px 22px;
  }

  .access-art {
    top: auto;
    right: -48px;
    bottom: -44px;
    transform: none;
  }

  .app-footer {
    font-size: 0.52rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
