:root {
  --ink: #132033;
  --muted: #5f6c80;
  --mist: #ecf1f7;
  --paper: rgba(255, 252, 247, 0.88);
  --panel: rgba(16, 33, 52, 0.92);
  --accent: #d17f31;
  --accent-strong: #a45616;
  --success: #1d7a53;
  --danger: #a03232;
  --line: rgba(19, 32, 51, 0.12);
  --shadow: 0 24px 60px rgba(17, 31, 49, 0.18);
  --radius-xl: 14px;
  --radius-lg: 10px;
  --etcs-white: rgb(255, 255, 255);
  --etcs-black: rgb(0, 0, 0);
  --etcs-grey: rgb(195, 195, 195);
  --etcs-medium-grey: rgb(150, 150, 150);
  --etcs-dark-grey: rgb(85, 85, 85);
  --etcs-dark-blue: rgb(3, 17, 34);
  --etcs-shadow: rgb(8, 24, 57);
  --etcs-yellow: rgb(223, 223, 0);
  --etcs-orange: rgb(234, 145, 0);
  --etcs-red: rgb(191, 0, 2);
  --etcs-pasp-dark: rgb(33, 49, 74);
  --etcs-pasp-light: rgb(41, 74, 107);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Trebuchet MS", "Gill Sans MT", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(209, 127, 49, 0.28), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(27, 106, 132, 0.18), transparent 24%),
    linear-gradient(135deg, #eef4fb 0%, #f8f2e7 55%, #f6efe3 100%);
}

.login-body::before,
.login-body::after,
.dashboard-body::before,
.dashboard-body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: 0;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
}

.login-body::before,
.dashboard-body::before {
  width: 18rem;
  height: 18rem;
  top: 2rem;
  right: 6vw;
  background: rgba(209, 127, 49, 0.18);
}

.login-body::after,
.dashboard-body::after {
  width: 14rem;
  height: 14rem;
  bottom: 4rem;
  left: 5vw;
  background: rgba(38, 103, 124, 0.15);
}

.shell,
.dashboard-shell,
.app-shell,
.admin-users-layout {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.shell {
  grid-template-columns: 1.2fr 0.9fr;
  padding: 2rem 0;
}

.app-shell {
  padding: 2rem 0;
  align-items: start;
}

.hero-panel,
.login-panel,
.dashboard-panel,
.app-header-card,
.dashboard-side {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel {
  padding: 3rem;
  background: linear-gradient(160deg, rgba(19, 32, 51, 0.96), rgba(17, 71, 88, 0.92));
  color: #fdf7ef;
  animation: slide-up 0.7s ease both;
}

.hero-panel h1,
.panel-header h2,
.dashboard-top h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.hero-panel h1 {
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.98;
  max-width: 12ch;
}

.lead {
  max-width: 42rem;
  margin-top: 1.25rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(253, 247, 239, 0.84);
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-card {
  margin-top: 2.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-card-label {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 14px;
  background: rgba(209, 127, 49, 0.16);
  color: #ffd4ae;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.security-points {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.75;
  color: rgba(253, 247, 239, 0.9);
}

.login-panel,
.dashboard-panel,
.app-header-card,
.dashboard-side {
  background: var(--paper);
  backdrop-filter: blur(16px);
}

.login-panel {
  padding: 2rem;
  animation: slide-up 0.85s ease both;
}

.panel-header p,
.panel-header h2 {
  color: var(--ink);
}

.panel-header h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.login-form,
.dashboard-grid {
  display: grid;
  gap: 0.95rem;
}

.login-form {
  margin-top: 1.8rem;
}

label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

input {
  width: 100%;
  border: 1px solid rgba(19, 32, 51, 0.14);
  border-radius: 8px;
  padding: 1rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: rgba(209, 127, 49, 0.8);
  box-shadow: 0 0 0 4px rgba(209, 127, 49, 0.14);
  transform: translateY(-1px);
}

button {
  border: 0;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fffdf8;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(161, 83, 21, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(161, 83, 21, 0.34);
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.status-box {
  min-height: 1.5rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(19, 32, 51, 0.05);
  color: var(--muted);
  line-height: 1.5;
}

.status-box.is-error {
  background: rgba(160, 50, 50, 0.1);
  color: var(--danger);
}

.status-box.is-success {
  background: rgba(29, 122, 83, 0.1);
  color: var(--success);
}

.status-box.is-neutral {
  background: rgba(19, 32, 51, 0.05);
  color: var(--muted);
}

.footnote,
.dashboard-note,
.muted {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.dashboard-body {
  display: block;
}

.site-header {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
}

.site-header-main,
.site-subnav,
.page-content {
  width: 100%;
}

.site-header-main,
.site-subnav {
  position: relative;
}

.site-header-main {
  z-index: 3;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-subnav {
  z-index: 1;
}

.page-content {
  width: min(90vw, 1640px);
  margin: 0 auto;
}

.site-header-main-inner {
  width: min(90vw, 1640px);
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.25rem;
}

.site-subnav {
  margin-top: 0.95rem;
}

.site-subnav-inner {
  width: min(90vw, 1640px);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 0.9rem 1.25rem;
  background: rgba(247, 240, 230, 0.92);
}

.site-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 min(10%, 8.5rem);
  min-height: 4.25rem;
  padding: 0.85rem;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(19, 32, 51, 0.94), rgba(27, 98, 119, 0.92));
  color: #fffdf8;
  text-decoration: none;
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 2.5rem;
}

.display-page-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem 0 2.5rem;
}

.display-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 4fr);
  gap: 1.5rem;
  width: 100%;
  align-items: start;
}

.display-sidebar,
.display-stage {
  min-width: 0;
}

.display-sidebar-panel,
.display-stage-panel {
  min-height: 100%;
}

.display-stage-panel {
  padding: 1.5rem;
}

.display-canvas-shell {
  display: flex;
  justify-content: center;
  width: 100%;
}

.etcs-display-frame {
  width: min(100%, calc((100vh - 11.5rem) * 4 / 3));
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--etcs-shadow);
  border-radius: 0;
  background: var(--etcs-dark-blue);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 50px rgba(8, 24, 57, 0.45);
}

.etcs-display-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: var(--etcs-dark-blue);
  color: var(--etcs-white);
  font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
  letter-spacing: normal;
}

.etcs-display-layers {
  position: relative;
  width: 100%;
  height: 100%;
}

.etcs-display-layer {
  position: absolute;
  inset: 0;
}

.etcs-display-layer-0 {
  z-index: 0;
}

.etcs-display-layer-1 {
  z-index: 1;
}

.etcs-display-layer-2 {
  z-index: 2;
}

.etcs-display-background {
  width: 100%;
  height: 100%;
  background: var(--etcs-dark-blue);
}

.etcs-layer-1-layout,
.etcs-layer-1-middle,
.etcs-layer-1-right,
.etcs-layer-1-top,
.etcs-layer-1-bottom,
.etcs-layer-1-bottom-left {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.etcs-layer-1-layout {
  display: grid;
  grid-template-rows: 15fr 450fr 15fr;
}

.etcs-layer-1-middle {
  display: grid;
  grid-template-columns: 580fr 60fr;
}

.etcs-layer-1-right {
  display: grid;
  grid-template-rows: 300fr 150fr;
}

.etcs-layer-1-top {
  display: grid;
  grid-template-columns: 54fr 280fr 246fr;
}

.etcs-layer-1-bottom {
  display: grid;
  grid-template-columns: 334fr 246fr;
}

.etcs-layer-1-bottom-left {
  display: grid;
  grid-template-rows: 50fr 100fr;
}

.etcs-layer-2-layout,
.etcs-layer-2-middle,
.etcs-layer-2-right,
.etcs-layer-2-top,
.etcs-layer-2-bottom,
.etcs-layer-2-bottom-left,
.etcs-layer-2-area,
.etcs-layer-2-area-c-right,
.etcs-layer-2-area-d-top,
.etcs-layer-2-area-d-middle,
.etcs-layer-2-area-d-bottom,
.etcs-layer-2-area-e-left,
.etcs-layer-2-area-e-middle,
.etcs-layer-2-area-e-right,
.etcs-layer-2-area-g-top,
.etcs-layer-2-area-g-middle,
.etcs-layer-2-area-g-bottom {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.etcs-layer-2-layout {
  display: grid;
  grid-template-rows: 15fr 450fr 15fr;
}

.etcs-layer-2-middle {
  grid-row: 2;
  display: grid;
  grid-template-columns: 580fr 60fr;
}

.etcs-layer-2-right {
  display: grid;
  grid-template-rows: 300fr 150fr;
}

.etcs-layer-2-top {
  display: grid;
  grid-template-columns: 54fr 280fr 246fr;
}

.etcs-layer-2-bottom {
  display: grid;
  grid-template-columns: 334fr 246fr;
}

.etcs-layer-2-bottom-left {
  display: grid;
  grid-template-rows: 50fr 100fr;
}

.etcs-layer-2-area-a {
  display: grid;
  grid-template-rows: 54fr 30fr 191fr 25fr;
}

.etcs-layer-2-area-b {
  position: relative;
  overflow: hidden;
}

.etcs-layer-2-area-c {
  display: grid;
  grid-template-columns: 58fr 37fr 37fr 37fr 37fr 37fr 37fr 54fr;
}

.etcs-layer-2-area-c-right {
  display: grid;
  grid-template-rows: 25fr 25fr;
}

.etcs-layer-2-area-d {
  display: grid;
  grid-template-rows: 15fr 270fr 15fr;
}

.etcs-layer-2-area-d-top,
.etcs-layer-2-area-d-bottom {
  display: grid;
  grid-template-columns: 40fr 166fr 40fr;
}

.etcs-layer-2-area-d-middle {
  display: grid;
  grid-template-columns: 40fr 25fr 25fr 25fr 18fr 14fr 93fr 6fr;
}

.etcs-layer-2-area-e {
  display: grid;
  grid-template-columns: 54fr 234fr 46fr;
}

.etcs-layer-2-area-e-left {
  display: grid;
  grid-template-rows: 25fr 25fr 25fr 25fr;
}

.etcs-layer-2-area-e-middle {
  display: grid;
  grid-template-rows: 20fr 20fr 20fr 20fr 20fr;
}

.etcs-layer-2-area-e-right {
  display: grid;
  grid-template-rows: 50fr 50fr;
}

.etcs-layer-2-area-f {
  display: grid;
  grid-template-rows: repeat(9, 1fr);
}

.etcs-layer-2-area-g {
  display: grid;
  grid-template-rows: 50fr 50fr 50fr;
}

.etcs-layer-2-area-g-top,
.etcs-layer-2-area-g-middle {
  display: grid;
  grid-template-columns: 49fr 49fr 49fr 49fr 50fr;
}

.etcs-layer-2-area-g-bottom {
  display: grid;
  grid-template-columns: 63fr 120fr 63fr;
}

.etcs-area {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--etcs-white);
}

.etcs-area-a::after,
.etcs-area-b::after,
.etcs-area-c::after,
.etcs-area-d::after,
.etcs-area-e::after,
.etcs-area-f::after,
.etcs-area-g::after {
  content: none;
}

.etcs-area::after {
  content: attr(data-area);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem;
  color: var(--etcs-white);
  font-size: clamp(0.42rem, 0.9vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 6px rgba(8, 24, 57, 0.9);
  pointer-events: none;
}

.etcs-shape-box,
.etcs-shape-circle,
.etcs-shape-ring-segment {
  position: absolute;
}

.etcs-shape-circle {
  box-shadow: none;
  border: 0;
  border-radius: 50%;
}

.etcs-shape-ring-segment {
  box-shadow: none;
  background: conic-gradient(
    from -149deg,
    var(--etcs-white) 0deg 298deg,
    transparent 298deg 360deg
  );
  -webkit-mask: radial-gradient(circle closest-side, transparent 93.4%, #000 93.4% 100%);
  mask: radial-gradient(circle closest-side, transparent 93.4%, #000 93.4% 100%);
}

.etcs-area-b0 {
  top: 8.3333%;
  left: 5.3571%;
  width: 89.2857%;
  height: 83.3333%;
  z-index: 3;
}

.etcs-area-b0::after {
  content: none;
}

.etcs-speed-dial-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.etcs-speed-dial-svg-tick {
  stroke: var(--etcs-white);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.etcs-speed-dial-svg-label {
  fill: var(--etcs-white);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: var(--etcs-dark-blue);
  stroke-width: 1.8px;
  vector-effect: non-scaling-stroke;
  text-shadow: 0 0 6px rgba(8, 24, 57, 0.9);
}

.etcs-area-b1 {
  top: 41.6667%;
  left: 41.0714%;
  width: 17.8571%;
  height: 16.6667%;
  z-index: 4;
  overflow: visible;
  box-shadow: none;
}

.etcs-area-b1::after {
  content: none;
}

.etcs-speed-pointer-svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 260%;
  height: 100%;
  display: block;
  overflow: visible;
}

.etcs-speed-pointer-shape.is-grey .etcs-speed-pointer-needle,
.etcs-speed-pointer-shape.is-grey .etcs-speed-pointer-hub {
  fill: var(--etcs-grey);
}

.etcs-speed-pointer-shape.is-red .etcs-speed-pointer-needle,
.etcs-speed-pointer-shape.is-red .etcs-speed-pointer-hub {
  fill: var(--etcs-red);
}

.etcs-speed-pointer-digital {
  font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: normal;
}

.etcs-speed-pointer-digital.is-black {
  fill: var(--etcs-black);
}

.etcs-speed-pointer-digital.is-white {
  fill: var(--etcs-white);
}

.etcs-speed-pointer-digit {
  text-anchor: end;
  dominant-baseline: middle;
}

.etcs-area-b2 {
  top: 4.3333%;
  left: 1.0714%;
  width: 97.8571%;
  height: 91.3333%;
  z-index: 2;
}

.etcs-area-b2::after {
  align-items: flex-start;
  padding-top: 10%;
}

.etcs-area-b3,
.etcs-area-b4,
.etcs-area-b5,
.etcs-area-b6,
.etcs-area-b7,
.etcs-area-b8 {
  width: 12.8571%;
  height: 12%;
  z-index: 4;
}

.etcs-area-b3 {
  top: 85.3333%;
  left: 30.7143%;
}

.etcs-area-b4 {
  top: 85.3333%;
  left: 43.5714%;
}

.etcs-area-b5 {
  top: 85.3333%;
  left: 56.4286%;
}

.etcs-area-b6 {
  top: 85.3333%;
  left: 2.8571%;
}

.etcs-area-b7 {
  top: 85.3333%;
  left: 84.2857%;
}

.etcs-area-b8 {
  top: 66%;
  left: 43.5714%;
}

.etcs-area-d1::after,
.etcs-area-d2::after,
.etcs-area-d3::after,
.etcs-area-d4::after,
.etcs-area-d5::after,
.etcs-area-d6::after,
.etcs-area-d7::after,
.etcs-area-d8::after {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(0.14rem, 0.32vw, 0.36rem);
  letter-spacing: 0.01em;
}

.etcs-display-layer-2 {
  pointer-events: none;
}

.dashboard-shell {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
  min-height: auto;
  padding: 0;
}

.admin-users-layout {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
  min-height: auto;
  padding: 0;
}

.app-shell > .dashboard-shell,
.app-shell > .admin-users-layout {
  width: 100%;
  margin: 0;
}

.content-stack {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.dashboard-panel {
  padding: 2.2rem;
  animation: slide-up 0.7s ease both;
}

.app-header-card {
  display: grid;
  gap: 1.2rem;
  padding: 1.6rem 1.8rem;
  animation: slide-up 0.55s ease both;
}

.dashboard-side {
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(240, 234, 223, 0.94));
  animation: slide-up 0.9s ease both;
}

.dashboard-top {
  display: grid;
  gap: 0.6rem;
}

.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.main-navigation,
.sub-navigation {
  display: block;
  width: 100%;
}

.main-navigation {
  flex: 1 1 auto;
  min-width: 0;
}

.main-navigation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.main-navigation-list,
.sub-navigation-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation-link,
.sub-navigation-link {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.main-navigation-link {
  background: rgba(19, 32, 51, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.main-navigation-link:hover,
.sub-navigation-link:hover {
  transform: translateY(-1px);
}

.main-navigation-link.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffdf8;
}

.account-menu {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
  z-index: 5;
}

.account-menu[open] {
  z-index: 8;
}

.account-menu-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 9px;
  background: rgba(19, 32, 51, 0.06);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.account-menu-summary::-webkit-details-marker {
  display: none;
}

.account-menu-summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid rgba(19, 32, 51, 0.45);
  border-bottom: 2px solid rgba(19, 32, 51, 0.45);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.account-menu[open] .account-menu-summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.account-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.68rem;
  border-radius: 14px;
  background: rgba(29, 122, 83, 0.12);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-menu-identity {
  display: grid;
  gap: 0.18rem;
  text-align: left;
}

.account-menu-name {
  font-weight: 700;
  line-height: 1.1;
}

.account-menu-role {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  min-width: 220px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 18px 36px rgba(17, 31, 49, 0.18);
  z-index: 12;
}

.account-menu-form {
  margin: 0;
}

.account-menu-button {
  width: 100%;
}

.account-menu-status {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sub-navigation-list {
  gap: 0.6rem;
}

.sub-navigation-link {
  padding: 0.55rem 0.85rem;
  background: rgba(19, 32, 51, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.sub-navigation-link.is-active {
  background: rgba(19, 32, 51, 0.14);
  color: var(--ink);
}

.welcome-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 14px;
  background: rgba(19, 32, 51, 0.08);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.7rem;
}

.info-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
}

.info-card h2,
.dashboard-side h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.metric-inline {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.full-width-panel {
  width: 100%;
}

.side-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.75;
}

.logout-form {
  margin-top: 1.6rem;
}

.inline-code {
  padding: 0.16rem 0.42rem;
  border-radius: 4px;
  background: rgba(19, 32, 51, 0.08);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.inline-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
}

.inline-link:hover {
  color: var(--accent);
}

.secondary-button {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(19, 32, 51, 0.08), rgba(19, 32, 51, 0.16));
  box-shadow: none;
}

.secondary-button:hover:not(:disabled) {
  box-shadow: none;
}

.metric-value {
  margin: 0.25rem 0 0.8rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.table-panel {
  display: grid;
  gap: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.user-table th,
.user-table td {
  padding: 1rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(19, 32, 51, 0.08);
  vertical-align: middle;
}

.user-table th {
  background: rgba(19, 32, 51, 0.06);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-table tbody tr:hover {
  background: rgba(209, 127, 49, 0.06);
}

.table-badge,
.table-status {
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.table-badge {
  background: rgba(19, 32, 51, 0.08);
  color: var(--ink);
}

.table-status.is-active {
  background: rgba(29, 122, 83, 0.12);
  color: var(--success);
}

.table-status.is-inactive {
  background: rgba(160, 50, 50, 0.12);
  color: var(--danger);
}

.empty-state {
  color: var(--muted);
  text-align: center;
}

.setup-grid .info-card {
  min-height: 180px;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .shell,
  .dashboard-shell,
  .dashboard-grid,
  .admin-users-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .login-panel,
  .app-header-card,
  .dashboard-panel,
  .dashboard-side {
    padding: 1.5rem;
  }

  .site-header {
    padding-top: 0;
  }

  .site-header-main-inner,
  .site-subnav-inner {
    padding: 1rem;
  }

  .site-header-main-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-logo-placeholder {
    flex: none;
    width: 100%;
    min-height: 3.6rem;
  }

  .display-page-content {
    padding: 1rem;
  }

  .display-workspace {
    grid-template-columns: 1fr;
  }

  .display-stage-panel {
    padding: 1rem;
  }

  .display-canvas-shell {
    justify-content: stretch;
  }

  .etcs-display-frame {
    width: 100%;
  }

  .main-navigation-row {
    flex-direction: column;
    align-items: stretch;
  }

  .main-navigation-list,
  .sub-navigation-list {
    width: 100%;
  }

  .main-navigation-link,
  .sub-navigation-link {
    width: 100%;
    justify-content: center;
  }

  .account-menu,
  .account-menu-summary {
    width: 100%;
  }

  .account-menu-panel {
    position: static;
    margin-top: 0.6rem;
  }

  .hero-panel h1 {
    max-width: 100%;
  }
}
