:root {
  --bg: #03140f;
  --panel: rgba(0, 35, 22, 0.72);
  --text: #8dffb2;
  --text-soft: #54c878;
  --glow: rgba(78, 255, 139, 0.45);
  --border: rgba(141, 255, 178, 0.22);
  --focus-border: rgba(141, 255, 178, 0.42);
  --focus-shadow: 0 0 14px rgba(78, 255, 139, 0.11);
  --button-focus-border: #8dffb2;
  --button-focus-shadow: 0 0 12px rgba(141, 255, 178, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 90, 50, 0.35), transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(0, 70, 38, 0.28), transparent 35%),
    linear-gradient(135deg, #020806, var(--bg));
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(141, 255, 178, 0.035),
    rgba(141, 255, 178, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(circle, transparent 48%, rgba(0, 0, 0, 0.58) 100%);
}

main {
  width: min(1100px, 100%);
  position: relative;
  z-index: 1;
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.52),
    0 0 24px rgba(78, 255, 139, 0.08),
    inset 0 0 28px rgba(78, 255, 139, 0.045);
  backdrop-filter: blur(6px);
}

.terminal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  opacity: 0.85;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--text-soft);
  box-shadow: 0 0 8px var(--glow);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--text);
  text-shadow:
    0 0 8px var(--glow),
    0 0 28px rgba(78, 255, 139, 0.18);
}

.status {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

p {
  margin: 0 0 12px;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
  text-shadow: 0 0 10px rgba(78, 255, 139, 0.16);
}

.cursor::after {
  content: "_";
  display: inline-block;
  margin-left: 4px;
  animation: blink 0.9s steps(2, start) infinite;
}



a,
a:visited {
  color: var(--text-soft);
  text-decoration-color: rgba(84, 200, 120, 0.55);
}

a:hover,
a:focus-visible {
  color: #00ff00;
  text-decoration-color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea, select):focus {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: var(--focus-shadow);
}

.nicole-input {
  color: var(--text);
  background: rgba(0, 16, 10, 0.62);
  border: 1px solid rgba(141, 255, 178, 0.2);
  border-radius: 10px;
  padding: 12px 13px;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  outline: none;
}

.nicole-input::placeholder {
  color: rgba(84, 200, 120, 0.58);
}

:where(button, input[type="button"], input[type="submit"], input[type="reset"]):focus-visible {
  outline: none;
  border-color: var(--button-focus-border);
  box-shadow: var(--button-focus-shadow);
}

.signature {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.98rem;
}

.come-back {
  margin-top: 30px;
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@media (max-width: 520px) {
  body {
    padding-left: 3px;
    padding-right: 3px;
  }

  main {
    padding: 22px 14px;
  }
}


/* Admin / log viewer */
body.admin-page {
  overflow: auto;
  align-items: flex-start;
}

body.admin-page main {
  width: min(1100px, 100%);
  margin: 24px 0;
}

body.admin-page h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table.log-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.log-table th,
.log-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(141, 255, 178, 0.14);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.log-table th {
  color: var(--text);
  background: rgba(0, 20, 12, 0.55);
  position: sticky;
  top: 0;
}

.log-table td {
  color: var(--text-soft);
}

.user-shortcut-wrap,
.user-data-table-wrap {
  border-radius: 8px;
}

.data-nav {
  font-size: 0.86rem;
  line-height: 1.35;
}

.user-data-table {
  width: max-content;
  min-width: 0;
  max-width: none;
  table-layout: auto;
}

table.user-shortcut-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.user-shortcut-table th,
.user-shortcut-table td,
.user-data-table th,
.user-data-table td {
  padding: 7px 9px;
  font-size: 0.84rem;
  line-height: 1.35;
}

.user-shortcut-table th:first-child,
.user-shortcut-table td:first-child {
  width: 1%;
  white-space: nowrap;
  padding-right: 10px;
}

.user-shortcut-table th:nth-child(2),
.user-shortcut-table td:nth-child(2) {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

.user-data-table th,
.user-data-table td {
  width: 1%;
  white-space: nowrap;
}

.user-data-table th:nth-child(2),
.user-data-table td:nth-child(2) {
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
}

.user-data-table img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid rgba(141, 255, 178, 0.16);
  border-radius: 4px;
}

@media (max-width: 720px) {
  .user-data-table {
    min-width: 0;
  }
}

.mono {
  font-family: "Courier New", Courier, monospace;
}

.error {
  color: #ff9d9d;
}

.terminal-header a.dot {
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.terminal-header a.dot:hover {
  background: #00ff00;
  border-color: #00ff00;
  box-shadow: 0 0 10px #00ff00;
}


.upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
}

.upload-form input,
.upload-form button {
  color: var(--text);
  background: rgba(0, 20, 12, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: "Courier New", Courier, monospace;
}

.upload-form button {
  cursor: pointer;
}

.upload-form button:hover,
.upload-form button:focus-visible {
  color: #020806;
  background: #00ff00;
  border-color: #00ff00;
  box-shadow: 0 0 10px #00ff00;
}


.hero-image-link {
  display: block;
  width: 100%;
  padding: 0;
  margin: 8px auto 0;
  border-radius: 10px;
  transition: box-shadow 0.18s ease, filter 0.18s ease;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 0 22px rgba(78, 255, 139, 0.12);
  opacity: 0.7;
  transition: opacity 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-image-link:hover,
.hero-image-link:focus-visible,
.hero-image-link:active {
  outline: none;
  box-shadow:
    0 0 12px rgba(141, 255, 178, 0.26),
    0 0 30px rgba(78, 255, 139, 0.2);
}

.hero-image-link:hover .hero-image,
.hero-image-link:focus-visible .hero-image,
.hero-image-link:active .hero-image {
  opacity: 1;
  border-color: rgba(141, 255, 178, 0.58);
  box-shadow:
    0 0 18px rgba(141, 255, 178, 0.22),
    0 0 38px rgba(78, 255, 139, 0.22);
}
﻿
/* Nicole intimate status page */
body.status-page {
  display: block;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  align-items: initial;
  justify-content: initial;
  -webkit-overflow-scrolling: touch;
}

body.status-page main {
  width: min(1100px, 100%);
  margin: 24px auto;
}

body.status-page h1 {
  font-size: clamp(2.2rem, 7vw, 5rem);
}

.mood-card {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 10px 0 28px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 18, 12, 0.38);
  box-shadow: inset 0 0 22px rgba(78, 255, 139, 0.04);
  overflow: hidden;
}

.mood-card > div {
  min-width: 0;
}

.mood-card p {
  overflow-wrap: anywhere;
}

.mood-image {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow:
    0 0 24px rgba(78, 255, 139, 0.16),
    0 0 44px rgba(255, 80, 118, 0.08);
}

.status-note {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.meter-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.meter-row {
  padding: 12px;
  border: 1px solid rgba(141, 255, 178, 0.16);
  border-radius: 10px;
  background: rgba(0, 20, 12, 0.34);
}

.meter-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.meter-label strong {
  color: #baffcc;
  text-shadow: 0 0 10px var(--glow);
}

.meter {
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #54c878, #8dffb2, #ff6f9b);
  box-shadow: 0 0 14px rgba(141, 255, 178, 0.38);
}

.meter-row p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.signal-list {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 18, 12, 0.34);
}

.signal-list p {
  margin-bottom: 8px;
  font-size: 1rem;
}

.signal-list span {
  color: #baffcc;
}

@media (max-width: 680px) {
  .mood-card {
    grid-template-columns: 1fr;
  }
}


/* Strong scroll override for Nicole status page */
html.status-html,
html.status-html body.status-page {
  min-height: 100%;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html.status-html body.status-page {
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

html.status-html body.status-page main {
  margin: 24px auto 48px !important;
}

@media (max-width: 520px) {
  html.status-html body.status-page {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* User login/register entry */
.user-email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0 18px;
}

.user-email-form input,
.user-email-form button,
#handoff button {
  color: var(--text);
  background: rgba(0, 20, 12, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
}

.user-email-form input {
  flex: 1 1 260px;
  min-width: 0;
}

.user-email-form .login-email-input {
  flex: 0 1 320px;
  width: min(320px, 100%);
}

.user-email-form button,
#handoff button {
  cursor: pointer;
}

.user-email-form button:hover,
.user-email-form button:focus-visible,
#handoff button:hover,
#handoff button:focus-visible {
  color: #020806;
  background: #00ff00;
  border-color: #00ff00;
  box-shadow: 0 0 10px #00ff00;
}

.user-error {
  margin-top: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.user-register-form {
  align-items: stretch;
}

.user-register-form input[type="password"] {
  flex: 1 1 220px;
  min-width: 0;
}

.user-register-form button {
  text-transform: uppercase;
}
.user-login-form input[type="password"] {
  flex: 1 1 260px;
  min-width: 0;
}

.user-login-form button {
  text-transform: uppercase;
}

/* User home terminal command window */
body.home-page main {
  width: min(1100px, 100%);
}

.command-window {
  position: relative;
  margin: 24px 0 18px;
  border: 1px solid rgba(141, 255, 178, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 32, 20, 0.54), rgba(0, 10, 7, 0.72)),
    radial-gradient(circle at 18% 0%, rgba(78, 255, 139, 0.10), transparent 38%);
  box-shadow:
    inset 0 0 34px rgba(78, 255, 139, 0.045),
    0 0 24px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(78, 255, 139, 0.055);
  overflow: hidden;
}

.command-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(141, 255, 178, 0.025),
    rgba(141, 255, 178, 0.025) 1px,
    transparent 1px,
    transparent 7px
  );
  opacity: 0.75;
}

.command-window-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px 10px;
  border-bottom: 1px solid rgba(141, 255, 178, 0.15);
  color: var(--text-soft);
  background: rgba(0, 8, 6, 0.34);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.command-title::before {
  content: "// ";
  color: #00ff00;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.72);
}

.command-history {
  position: relative;
  min-height: 230px;
  max-height: 340px;
  overflow-y: auto;
  padding: 16px 14px 14px;
}

.command-history::-webkit-scrollbar {
  width: 8px;
}

.command-history::-webkit-scrollbar-thumb {
  background: rgba(141, 255, 178, 0.22);
  border-radius: 10px;
}

.command-line {
  display: grid;
  grid-template-columns: 1.8rem auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  margin: 0 0 7px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.94rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-shadow: 0 0 9px rgba(78, 255, 139, 0.16);
}

.command-empty {
  grid-template-columns: auto minmax(0, 1fr);
  color: var(--text-soft);
}

.command-status-line {
  color: rgba(141, 255, 178, 0.76);
}

.command-status-line .command-prompt {
  color: #8dffb2;
}

.command-unread-line {
  color: #ffbd75;
  text-shadow: 0 0 10px rgba(255, 151, 64, 0.26);
}

.command-unread-line .command-time {
  color: rgba(255, 189, 117, 0.74);
}

.command-unread-line .command-prompt,
.command-unread-line .command-replay {
  color: #ffbd75;
}

.command-unread-line .command-replay {
  text-decoration-color: rgba(255, 189, 117, 0.48);
}

.command-unread-line .command-replay:hover,
.command-unread-line .command-replay:focus-visible {
  color: #ffd29b;
  text-shadow: 0 0 12px rgba(255, 151, 64, 0.5);
}

.command-replay {
  width: fit-content;
  max-width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  text-decoration: underline dotted rgba(141, 255, 178, 0.42);
  text-underline-offset: 3px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.command-replay:hover,
.command-replay:focus-visible {
  color: #8dffb2;
  outline: none;
  text-shadow: 0 0 12px rgba(141, 255, 178, 0.48);
}

.command-time {
  color: rgba(84, 200, 120, 0.72);
  cursor: help;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
}

.command-prompt {
  color: #00ff00;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.78);
}

.command-line .command-prompt,
.command-entry .command-prompt {
  color: #00ff00;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.78);
}

.command-line .command-status-spacer {
  min-width: 1ch;
  text-shadow: none;
}

.command-entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(141, 255, 178, 0.18);
  border-radius: 10px;
  background: rgba(0, 20, 12, 0.58);
  box-shadow: inset 0 0 18px rgba(78, 255, 139, 0.035);
}

.command-entry:focus-within {
  border-color: rgba(141, 255, 178, 0.36);
  box-shadow:
    inset 0 0 18px rgba(78, 255, 139, 0.045),
    0 0 14px rgba(78, 255, 139, 0.11);
}

.command-entry input {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  caret-color: #00ff00;
}

.command-entry input::placeholder {
  color: rgba(84, 200, 120, 0.58);
}

.command-entry button {
  color: var(--text-soft);
  background: transparent;
  border: 1px solid rgba(141, 255, 178, 0.22);
  border-radius: 8px;
  padding: 8px 11px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.command-entry button:hover,
.command-entry button:focus-visible {
  color: #020806;
  background: #8dffb2;
  border-color: #8dffb2;
  box-shadow: 0 0 12px rgba(141, 255, 178, 0.42);
}

@media (max-width: 620px) {
  body.home-page main {
    padding: 26px 20px;
  }

  .command-line {
    grid-template-columns: 1.8rem auto minmax(0, 1fr);
  }

  .command-entry {
    margin-inline: 10px;
  }
}



/* Contact form */
body.contact-page main {
  width: min(1100px, 100%);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 24px 0 18px;
  padding: 14px;
  border: 1px solid rgba(141, 255, 178, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 32, 20, 0.42), rgba(0, 10, 7, 0.56)),
    radial-gradient(circle at 12% 0%, rgba(78, 255, 139, 0.08), transparent 34%);
  box-shadow: inset 0 0 24px rgba(78, 255, 139, 0.04);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  color: var(--text);
  background: rgba(0, 16, 10, 0.62);
  border: 1px solid rgba(141, 255, 178, 0.2);
  border-radius: 10px;
  padding: 12px 13px;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  outline: none;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.55;
}


.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
  cursor: pointer;
  padding-right: 44px;
  background-color: rgba(0, 16, 10, 0.78);
  background-image:
    linear-gradient(45deg, transparent 50%, #8dffb2 50%),
    linear-gradient(135deg, #8dffb2 50%, transparent 50%),
    linear-gradient(180deg, rgba(0, 24, 14, 0.82), rgba(0, 10, 7, 0.68));
  background-position:
    calc(100% - 23px) 52%,
    calc(100% - 16px) 52%,
    0 0;
  background-size:
    7px 7px,
    7px 7px,
    100% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 14px rgba(78, 255, 139, 0.035);
}

.contact-form select:hover {
  border-color: rgba(141, 255, 178, 0.34);
}

.contact-form select option {
  color: #d8ffe4;
  background: #020806;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(141, 255, 178, 0.42);
  box-shadow: 0 0 14px rgba(78, 255, 139, 0.11);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(84, 200, 120, 0.58);
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-actions button {
  color: var(--text-soft);
  background: transparent;
  border: 1px solid rgba(141, 255, 178, 0.24);
  border-radius: 8px;
  padding: 9px 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.contact-actions button:hover,
.contact-actions button:focus-visible {
  color: #020806;
  background: #8dffb2;
  border-color: #8dffb2;
  box-shadow: 0 0 12px rgba(141, 255, 178, 0.42);
}


/* Long page scroll behavior */
@media (max-height: 820px) {
  body {
    align-items: flex-start;
  }

  main {
    margin-block: 24px;
  }
}


/* Help page */
.help-table-wrap {
  margin: 22px 0 18px;
}

.help-table td:first-child {
  white-space: nowrap;
  color: var(--text);
}

.help-table td:last-child {
  min-width: 260px;
}


.mail-command-link {
  color: inherit;
  text-decoration: underline dotted rgba(141, 255, 178, 0.36);
  text-underline-offset: 3px;
}

.mail-command-link:hover,
.mail-command-link:focus-visible {
  color: #8dffb2;
  outline: none;
  text-shadow: 0 0 10px rgba(141, 255, 178, 0.38);
}


.mail-command-row {
  cursor: pointer;
}

.mail-command-row:hover,
.mail-command-row:focus-visible {
  color: #8dffb2;
  background: rgba(141, 255, 178, 0.055);
  outline: none;
}

.mail-command-row:hover .mono,
.mail-command-row:focus-visible .mono {
  color: #8dffb2;
}


/* Data gallery */
body.gallery-page main {
  width: min(1100px, 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 20px;
}

.gallery-card,
.data-preview-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(141, 255, 178, 0.18);
  border-radius: 14px;
  background: rgba(0, 20, 12, 0.48);
  box-shadow: inset 0 0 18px rgba(78, 255, 139, 0.035);
  overflow: hidden;
}

.gallery-card {
  padding: 10px;
}

.gallery-card:hover,
.gallery-card:focus-visible,
.data-preview-card:hover,
.data-preview-card:focus-visible {
  border-color: rgba(141, 255, 178, 0.42);
  box-shadow: 0 0 16px rgba(141, 255, 178, 0.12);
  outline: none;
}

.gallery-card img,
.data-preview-card img {
  display: block;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 10px;
  background: rgba(0, 8, 6, 0.72);
}

.gallery-card-title,
.gallery-card-meta {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card-meta {
  color: rgba(84, 200, 120, 0.78);
  font-size: 0.72rem;
}

.data-preview-card {
  width: fit-content;
  padding: 10px;
  margin: 18px auto 16px;
}

.data-preview-card.data-preview-card-hd {
  width: min(800px, 100%);
}

.data-preview-card.data-preview-card-hd img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.data-file-link-row {
  margin-bottom: 4px;
  line-height: 1.35;
}

.data-download-icon,
.data-download-icon:visited {
  display: inline-block;
  margin-left: 6px;
  text-decoration: none;
  text-shadow: none;
}

.data-download-icon:hover,
.data-download-icon:focus-visible {
  text-decoration: none;
}

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: 1fr; }
}


/* Nicole tools/workshop page */
body.tools-page {
  align-items: flex-start;
}

body.tools-page main {
  width: min(1100px, 100%);
  margin: 24px 0 48px;
}

.tool-panel {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(141, 255, 178, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 32, 20, 0.38), rgba(0, 10, 7, 0.58)),
    radial-gradient(circle at 12% 0%, rgba(78, 255, 139, 0.07), transparent 36%);
  box-shadow: inset 0 0 24px rgba(78, 255, 139, 0.035);
}

.tool-panel h2 {
  margin: 0 0 12px;
  color: #baffcc;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(141, 255, 178, 0.24);
}

.tool-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.65;
}

.tool-list li {
  margin: 4px 0;
}

.tool-table-wrap {
  margin: 12px 0 0;
}

.tool-table {
  min-width: 760px;
}

.tool-ok {
  color: #8dffb2 !important;
}

.tool-missing {
  color: #ffcf8a !important;
}
