:root {
  --bg: #071018;
  --bg-2: #0d1824;
  --panel: rgba(12, 21, 31, 0.82);
  --panel-strong: rgba(15, 27, 40, 0.94);
  --line: rgba(180, 204, 223, 0.11);
  --line-strong: rgba(180, 204, 223, 0.2);
  --text: #edf3f7;
  --muted: #9aa9b7;
  --accent: #76d5c5;
  --accent-2: #93b8e8;
  --warning: #efc27a;
  --danger: #ff7777;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.16);
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(118, 213, 197, 0.1), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(147, 184, 232, 0.14), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(239, 194, 122, 0.06), transparent 30%),
    linear-gradient(160deg, var(--bg) 0%, #0b1520 48%, var(--bg-2) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black, transparent 84%);
}

body::after {
  content: "";
  position: fixed;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(118, 213, 197, 0.06), transparent 24%),
    radial-gradient(circle at 76% 18%, rgba(147, 184, 232, 0.08), transparent 26%),
    radial-gradient(circle at 54% 82%, rgba(239, 194, 122, 0.05), transparent 24%);
  filter: blur(26px);
  animation: ambientShift 16s ease-in-out infinite alternate;
}

.shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.login-shell {
  max-width: 560px;
  padding-top: min(12vh, 96px);
}

.card,
.notice-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.card::after,
.notice-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 24%);
  opacity: 0.9;
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    var(--panel);
  padding: 26px;
}

.card-muted {
  background:
    linear-gradient(180deg, rgba(147, 184, 232, 0.025), rgba(118, 213, 197, 0.016)),
    rgba(12, 21, 31, 0.76);
}

.card:hover,
.notice-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 204, 223, 0.18);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: 22px;
  margin-bottom: 22px;
}

.hero-copy {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.shell > * {
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.shell > :nth-child(1) { animation-delay: 0.04s; }
.shell > :nth-child(2) { animation-delay: 0.12s; }
.shell > :nth-child(3) { animation-delay: 0.2s; }
.shell > :nth-child(4) { animation-delay: 0.28s; }

.hero-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.layout-grid,
.admin-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
}

.layout-grid {
  align-items: start;
}

.admin-grid {
  align-items: start;
}

.side-stack,
.user-admin-list,
.stack {
  display: grid;
  gap: 18px;
}

.eyebrow,
.notice-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  margin-bottom: 10px;
  max-width: 16ch;
}

h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

h3 {
  margin-bottom: 8px;
}

.lead,
.muted,
.stamp,
.empty-state {
  color: var(--muted);
}

.lead,
.stamp,
.empty-state,
.message,
.meta-text {
  line-height: 1.55;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.notice-banner {
  padding: 18px 20px 16px;
  background:
    linear-gradient(135deg, rgba(239, 194, 122, 0.16), rgba(210, 154, 96, 0.1)),
    rgba(42, 28, 18, 0.62);
  border-color: rgba(239, 194, 122, 0.18);
  animation: noticeGlow 3.4s ease-in-out infinite;
}

.notice-banner h2 {
  margin-bottom: 10px;
}

.notice-banner p:last-child {
  margin-bottom: 0;
}

.notice-pulse {
  position: absolute;
  top: -36px;
  right: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 231, 166, 0.34), transparent 70%);
  animation: pulseOrb 3.8s ease-in-out infinite;
}

.admin-badge {
  min-height: 88px;
}

.hero-panel .card,
.hero-panel .notice-banner {
  padding-top: 16px;
  padding-bottom: 14px;
}

.hero-panel h1 {
  font-size: clamp(16px, 2.1vw, 26px);
  line-height: 1.02;
  margin-bottom: 6px;
  max-width: 26ch;
}

.hero-panel .lead {
  font-size: 12px;
  margin-bottom: 0;
}

.hero-panel .hero-links {
  margin-top: 10px;
  gap: 14px;
}

.hero-panel .eyebrow,
.hero-panel .notice-label {
  margin-bottom: 8px;
}

.hero-panel .notice-banner h2 {
  font-size: 15px;
  margin-bottom: 6px;
}

.hero-panel .notice-banner p {
  font-size: 12px;
}

.user-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(180, 204, 223, 0.06);
  background: rgba(255, 255, 255, 0.028);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.user-item.active {
  border-color: rgba(118, 213, 197, 0.28);
  background: rgba(118, 213, 197, 0.08);
  box-shadow: var(--shadow-soft);
}

.user-item:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 184, 232, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.user-item.empty {
  color: var(--muted);
}

.user-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(125, 201, 255, 0.12);
  color: var(--accent-2);
  font-weight: 700;
}

.user-name {
  font-weight: 700;
}

label span {
  display: block;
  margin-bottom: 10px;
  color: #d5e6f4;
  font-size: 14px;
}

input,
select,
textarea,
button {
  width: 100%;
  border-radius: 16px;
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  background: rgba(8, 18, 28, 0.86);
  color: var(--text);
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(125, 201, 255, 0.12);
}

textarea {
  min-height: 148px;
  resize: vertical;
}

button {
  border: 0;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 800;
  color: #07131b;
  background: linear-gradient(135deg, #74d6c6 0%, #8ec1e8 100%);
  box-shadow: 0 10px 24px rgba(116, 214, 198, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

button:hover,
button:focus-visible,
.button-like:hover,
.button-like:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 28px rgba(116, 214, 198, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.ghost-button,
.text-link {
  color: var(--text);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  filter: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.danger-button {
  color: #fff;
  background: linear-gradient(135deg, #ec7f8e 0%, #dd5b78 100%);
  box-shadow: 0 10px 24px rgba(221, 91, 120, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.danger-button:hover,
.danger-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 28px rgba(221, 91, 120, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-row span {
  margin: 0;
}

.message {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
}

.wide-message {
  margin-bottom: 18px;
}

.message.error {
  color: #ffd0d0;
  background: rgba(255, 103, 103, 0.12);
  border-color: rgba(255, 103, 103, 0.18);
}

.message.success {
  color: #ccffe4;
  background: rgba(92, 242, 201, 0.12);
  border-color: rgba(92, 242, 201, 0.18);
}

.meta-text {
  color: var(--muted);
  margin-bottom: 14px;
}

.update-pill {
  align-self: start;
  padding: 10px 12px;
  border-radius: 999px;
  color: #1c1202;
  font-weight: 800;
  background: linear-gradient(135deg, var(--warning) 0%, #ff9966 100%);
}

.config-card textarea,
.config-output textarea {
  min-height: 220px;
  font-family: Consolas, "Courier New", monospace;
}

.config-output {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(92, 242, 201, 0.16);
  background: rgba(92, 242, 201, 0.06);
}

.config-output-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.config-extras {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.qr-card,
.password-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.prose-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px;
  line-height: 1.65;
}

.prose-card > :first-child {
  margin-top: 0;
}

.prose-card > :last-child {
  margin-bottom: 0;
}

.prose-card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: 18px;
}

.prose-card h2,
.prose-card h3 {
  margin-top: 24px;
}

.prose-card h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
}

.prose-card p,
.prose-card li {
  font-size: 17px;
}

.prose-card ul,
.prose-card ol {
  display: grid;
  gap: 12px;
  padding-left: 24px;
}

.prose-card code {
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.qr-card img {
  width: 100%;
  max-width: 240px;
  display: block;
  border-radius: 18px;
  background: white;
  padding: 10px;
}

.compact-stack {
  gap: 14px;
}

.login-panel {
  padding: 32px;
}

.page-public .config-card,
.page-admin-dashboard .admin-grid > section.card,
.page-admin-help .editor-panel-card {
  padding: 28px;
}

.page-public .user-list {
  gap: 12px;
}

.page-public .user-item {
  min-height: 76px;
}

.public-guide-card {
  gap: 18px;
}

.access-steps {
  display: grid;
  gap: 14px;
}

.access-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(173, 226, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.access-step strong {
  display: block;
  margin-bottom: 6px;
}

.access-step p {
  margin-bottom: 0;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(92, 242, 201, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.user-picker-item {
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.user-picker-item:hover,
.user-picker-item:focus-visible {
  border-color: rgba(125, 201, 255, 0.28);
  background: rgba(125, 201, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(125, 201, 255, 0.08), 0 0 20px rgba(125, 201, 255, 0.08);
}

.public-config-card {
  display: grid;
  gap: 14px;
  padding-top: 20px !important;
  padding-bottom: 22px !important;
}

.public-config-card .section-head {
  margin-bottom: 0;
}

.public-config-card h2 {
  margin-bottom: 0;
}

.public-form-intro {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(173, 226, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.public-form-intro p {
  margin-bottom: 0;
}

.intro-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(92, 242, 201, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-access-form {
  gap: 14px;
}

.secure-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.inline-icon-button {
  width: auto;
  min-width: 118px;
  padding-inline: 16px;
}

.public-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.status-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(173, 226, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.status-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-card strong {
  line-height: 1.45;
}

.support-links {
  margin-top: 14px;
}

.page-public .config-output {
  margin-top: 22px;
  padding: 22px;
}

.page-public .config-output-head {
  align-items: flex-start;
}

.page-public .config-extras {
  margin-top: 22px;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.page-public .password-card form.compact-stack {
  gap: 16px;
}

.page-help-public .hero-copy {
  min-height: 200px;
}

.page-help-public .prose-card {
  max-width: 1120px;
}

.page-help-public .instruction-figure {
  margin: 24px 0;
}

.page-admin-login .login-panel {
  padding: 34px 34px 30px;
}

.page-admin-login .login-panel .lead {
  margin-bottom: 6px;
}

.page-admin-dashboard .admin-grid {
  grid-template-columns: 340px minmax(0, 1fr);
}

.page-admin-dashboard .side-stack > .card {
  padding: 24px;
}

.page-admin-dashboard .user-admin-list {
  gap: 18px;
}

.page-admin-dashboard .admin-user-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.03);
}

.page-admin-dashboard .card-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 0;
}

.admin-user-panel {
  gap: 20px;
}

.admin-user-title h3 {
  margin-bottom: 6px;
}

.admin-user-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  width: min(100%, 480px);
}

.admin-meta-chip {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(173, 226, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.admin-meta-chip strong {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.admin-meta-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-user-form {
  gap: 16px;
}

.admin-action-group {
  display: grid;
  gap: 10px;
}

.action-group-title {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-action-row {
  gap: 12px;
}

.admin-action-row > form {
  display: flex;
}

.page-admin-dashboard .stamp {
  margin-bottom: 0;
}

.page-admin-dashboard .button-row {
  gap: 14px;
}

.page-admin-dashboard .button-row > button,
.page-admin-dashboard .button-row > a,
.page-admin-dashboard .button-row > form {
  flex: 1 1 200px;
}

.page-admin-dashboard textarea {
  min-height: 168px;
}

.page-admin-help .admin-grid {
  grid-template-columns: 320px minmax(0, 1fr);
}

.page-admin-help .side-stack {
  gap: 20px;
}

.page-admin-help .builder-empty {
  min-height: 78px;
  display: flex;
  align-items: center;
}

.page-admin-help .helper-note,
.page-admin-help .editor-note {
  font-size: 13px;
}

.page-admin-help .editor-textarea {
  min-height: 300px;
}

.user-admin-list {
  margin-top: 14px;
}

.admin-user-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.side-panel-card {
  padding: 24px;
}

.side-panel-card .section-head {
  margin-bottom: 16px;
}

.side-panel-card h2 {
  margin-bottom: 0;
}

.helper-note {
  margin: -2px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(125, 201, 255, 0.12);
  background: rgba(125, 201, 255, 0.05);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.library-side-card .empty-state {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.editor-panel-card {
  padding: 24px;
}

.editor-panel-card .section-head {
  margin-bottom: 16px;
}

.editor-panel-card h2 {
  margin-bottom: 0;
}

.editor-stack {
  gap: 16px;
}

.builder-side-card {
  background:
    linear-gradient(180deg, rgba(125, 201, 255, 0.04), rgba(92, 242, 201, 0.02)),
    var(--panel);
}

.html-side-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.builder-helper-note {
  margin-top: 2px;
}

.editor-note {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(125, 201, 255, 0.14);
  background: rgba(125, 201, 255, 0.05);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.card-topline {
  margin-bottom: 18px;
}

.button-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button-row > button,
.button-row > a,
.button-row > form {
  flex: 1 1 220px;
}

.button-row form {
  flex: 1 1 220px;
}

.button-row > button,
.button-row > a,
.button-row > form > button {
  min-height: 54px;
}

.button-row-tight > button,
.button-row-tight > a,
.button-row-tight > form {
  flex-basis: 180px;
}

.button-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  color: #08131f;
  background: linear-gradient(135deg, var(--accent) 0%, #79e1ff 100%);
  box-shadow: 0 0 0 1px rgba(125, 201, 255, 0.08), 0 0 22px rgba(92, 242, 201, 0.12);
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-picker {
  display: grid;
  gap: 12px;
}

.file-picker-trigger {
  width: 100%;
  cursor: pointer;
}

.file-picker-name {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 22, 39, 0.72);
  color: var(--muted);
  line-height: 1.45;
}

.file-picker.has-file .file-picker-name {
  color: var(--text);
  border-color: rgba(92, 242, 201, 0.22);
}

.small-button {
  width: auto;
  min-width: 180px;
  padding: 12px 16px;
}

.copy-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.steps-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 14px;
  color: var(--text);
}

.editor-textarea {
  min-height: 360px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.92), rgba(5, 14, 26, 0.98)),
    rgba(9, 22, 39, 0.88);
  border-color: rgba(125, 201, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.image-card img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(173, 226, 255, 0.1);
}

.image-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.image-card .compact-stack {
  gap: 12px;
}

.image-card input[readonly] {
  font-size: 13px;
}

.builder-list {
  display: grid;
  gap: 16px;
  min-height: 72px;
}

.builder-empty {
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(125, 201, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  line-height: 1.55;
}

.builder-upload-box {
  display: grid;
  gap: 16px;
}

.builder-paste-zone {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.builder-paste-zone:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(125, 201, 255, 0.12);
}

.builder-preview {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.builder-block {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.builder-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.builder-head .danger-button {
  width: auto;
  flex: 0 0 auto;
  min-width: 120px;
  padding: 10px 14px;
}

.builder-block label {
  display: grid;
  gap: 10px;
  margin: 0;
}

.builder-block .builder-upload-box,
.builder-block .builder-upload-status {
  margin: 0;
}

.instruction-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.instruction-gallery img {
  width: 100%;
  border-radius: 18px;
}

.instruction-figure {
  margin: 18px 0;
}

.instruction-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
}

.text-link {
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  transition: color 0.18s ease, border-color 0.18s ease, text-shadow 0.18s ease, opacity 0.18s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: #f6fbff;
  border-bottom-color: rgba(147, 184, 232, 0.42);
  text-shadow: 0 0 14px rgba(147, 184, 232, 0.12);
  opacity: 1;
}

@keyframes ambientShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, -1.5%, 0) scale(1.03);
  }
}

@keyframes riseIn {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes noticeGlow {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: var(--shadow), 0 0 0 rgba(239, 194, 122, 0);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: var(--shadow), 0 0 24px rgba(239, 194, 122, 0.1);
  }
}

@keyframes pulseOrb {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero-panel,
  .layout-grid,
  .admin-grid,
  .config-extras {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .page-admin-dashboard .card-topline,
  .config-output-head,
  .public-note-row {
    flex-direction: column;
  }

  .page-admin-dashboard .admin-grid,
  .page-admin-help .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-meta {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 100%);
    padding: 18px 0 28px;
  }

  .card,
  .notice-banner {
    padding: 20px;
    border-radius: 22px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 22px;
  }

  .hero-copy,
  .admin-badge {
    min-height: auto;
  }

  .hero-links {
    gap: 12px;
  }

  .button-row,
  .button-row-tight {
    gap: 12px;
  }

  .copy-banner {
    align-items: stretch;
  }

  .small-button {
    width: 100%;
  }

  .prose-card {
    padding: 22px;
  }

  .prose-card p,
  .prose-card li {
    font-size: 16px;
  }

  .page-admin-dashboard .admin-user-card,
  .page-public .config-output,
  .page-public .qr-card,
  .page-public .password-card {
    padding: 18px;
  }

  .secure-input {
    grid-template-columns: 1fr;
  }

  .inline-icon-button {
    width: 100%;
  }

  .access-step {
    grid-template-columns: 1fr;
  }

  .page-admin-dashboard .admin-user-panel {
    gap: 16px;
  }

  .page-admin-dashboard .admin-user-head {
    gap: 14px;
  }

  .page-admin-dashboard .admin-action-row {
    gap: 10px;
  }

  .page-admin-help .builder-head {
    align-items: stretch;
    flex-direction: column;
  }

  .page-admin-help .builder-head .danger-button {
    width: 100%;
  }

  .page-admin-help .builder-empty {
    min-height: 96px;
  }
}
