﻿: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);
}

/* Theme: "Nicole" — hive.nicole0.com | family design system (DESIGN-SYSTEM.md) */
:root {
  --font-body: "Courier New", Courier, monospace;
  --font-display: "Courier New", Courier, monospace;
  --font-mono: "Courier New", Courier, monospace;

  --bg-2: #020806;
  --panel-2: rgba(0, 20, 12, 0.6);
  --text-faint: rgba(84, 200, 120, 0.72);

  --accent: #00ff00;
  --accent-2: #8dffb2;
  --accent-text: #020806;
  --accent-soft: rgba(141, 255, 178, 0.055);

  --border-strong: rgba(141, 255, 178, 0.42);
  --focus-ring: rgba(78, 255, 139, 0.11);

  --danger: #ff9d9d;
  --ok: #8dffb2;

  --radius: 10px;
  --radius-lg: 14px;
}

* {
  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;
  flex-direction: column;
  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.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.data-table th,
.data-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;
}

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

.data-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 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;
}

/* Enabled check mark */
.check-on {
  color: #00ff00;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.72);
}

.data-table .check-col {
  text-align: center;
  width: 1%;
  white-space: nowrap;
}

/* Site footer (copyright + logout) */
.site-footer {
  width: min(1100px, 100%);
  margin-top: 20px;
  text-align: center;
  color: rgba(84, 200, 120, 0.72);
  font-size: 0.85rem;
}

.verify-note {
  margin-top: 18px;
  padding: 12px 14px;
  color: var(--text-soft);
  background: rgba(0, 20, 12, 0.5);
  border: 1px solid rgba(141, 255, 178, 0.18);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}
.verify-note a {
  color: #00ff00;
}

.upgrade-note {
  margin-top: 16px;
  color: rgba(84, 200, 120, 0.72);
  font-size: 0.9rem;
  text-align: center;
}
.upgrade-note a {
  color: #00ff00;
}

.switch-note {
  margin-top: 14px;
  color: rgba(84, 200, 120, 0.72);
  font-size: 0.9rem;
  text-align: center;
}
.switch-note a {
  color: #00ff00;
}

/* App icons */
.nav-ico {
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
}

/* ============================================
   /Data/ app — shared class names, Nicole theme
   ============================================ */

.page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.page-head { margin-bottom: 8px; }

.page-head h1 {
  font-size: 2rem;
  color: var(--text);
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(78, 255, 139, 0.25);
}

.page-head h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 14px 0 0;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.page-head .tagline { margin-top: 10px; color: var(--text-faint); font-size: 1rem; }
.page-head .folder-config { margin-top: 6px; }
.page-head .folder-config a { color: var(--accent); font-size: 0.9rem; text-decoration: none; }
.page-head .folder-config a:hover { text-decoration: underline; }
.page-head .folder-access { margin-top: 6px; color: var(--text-faint); font-size: 0.85rem; }
.conn-id { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 2px; }
.conn-name { font-size: 2.2rem; font-weight: 700; color: var(--text); letter-spacing: 0.5px; }
.data-meta { margin-top: 6px; color: var(--text-faint); font-size: 0.9rem; }
.data-desc { margin-top: 6px; color: var(--text-faint); font-size: 0.9rem; font-style: italic; }
.friend-since { display: block; margin-top: 6px; color: var(--text-faint); font-size: 0.8rem; }
.friend-request-msg { display: block; margin: 8px 0; padding: 8px 10px; background: var(--panel-2); border-left: 3px solid var(--accent); color: var(--text-soft); font-size: 0.85rem; line-height: 1.5; }
.friend-request-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.conn-accept { color: var(--ok); font-weight: 600; }
.conn-deny { color: var(--danger); font-weight: 600; }
.conn-hint { color: var(--text-faint); font-size: 0.85rem; }
@media (max-width: 640px) { .conn-name { font-size: 1.5rem; } }

.teaser { margin-top: 4px; text-align: center; }

.hero-media {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
}

.teaser-caption { margin-top: 14px; font-size: 0.95rem; color: var(--text-faint); }

.note {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.note p { margin: 0; }

.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
}

.auth-card h2 { font-size: 1.35rem; color: var(--text); margin-bottom: 6px; }

.auth-card .login-sub { font-size: 0.9rem; color: var(--text-faint); margin-bottom: 22px; }

.field { margin-bottom: 20px; }

.field > label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.field input[type="checkbox"] + label {
  display: inline;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0;
  vertical-align: middle;
}

.field .hint { display: block; font-size: 0.75rem; color: var(--text-faint); margin-top: 5px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 16, 10, 0.62);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: var(--focus-shadow);
}

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

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='8'%20viewBox='0%200%2012%208'%3E%3Cpath%20fill='%2354c878'%20d='M1.41%200L6%204.58%2010.59%200%2012%201.41%206%207.41%200%201.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

input:disabled, textarea:disabled, select:disabled {
  background: var(--panel-2);
  color: var(--text-faint);
  cursor: not-allowed;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 14px rgba(78, 255, 139, 0.35); }
.btn-primary:focus { box-shadow: var(--button-focus-shadow); }

.btn-secondary { background: transparent; color: var(--accent); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--accent-soft); border-color: var(--accent); }

.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--text); }

.btn:disabled {
  background: var(--panel-2);
  color: var(--text-faint);
  border-color: transparent;
  cursor: not-allowed;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.form-msg { display: block; margin-top: 12px; font-size: 0.9rem; color: var(--danger); }
.form-msg-ok { color: var(--ok); }

.check-off { color: var(--danger); }

.app-link { color: var(--text); text-decoration: none; }
.app-link:hover { color: var(--accent); text-decoration: underline; }

.data-path { margin-top: 10px; color: var(--text-faint); font-size: 0.85rem; }
.data-path-value { font-weight: 600; color: var(--text-soft); }

.data-status { margin: 4px 0 0; color: var(--text-faint); font-size: 0.8rem; }

.cfg-hint { display: block; margin-top: 6px; color: var(--text-faint); font-size: 0.8rem; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.4; }

.data-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.data-toolbar input[type="text"] { flex: 1 1 220px; min-width: 0; width: auto; }

.edit-ico { font-size: 0.8em; cursor: pointer; }

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .data-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

.data-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 80px;
  padding: 12px 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.data-item-file { cursor: default; }

.data-item-folder {
  background: #1a2812;
}

.data-item:hover,
.data-item:focus-visible { border-color: var(--accent); background: var(--accent-soft); }

.data-item-icon { font-size: 2rem; line-height: 1; }

.data-item-thumb { width: 100%; height: auto; border-radius: 6px; display: block; }

/* Video tiles: thumbnail + centered play badge. */
.data-item-thumb-video { position: relative; display: block; line-height: 0; }

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    padding-left: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Folders reserve a fixed square icon box so icon/no-icon tiles match and don't jump while images load. */
.data-item-folder .data-item-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  line-height: 1;
  overflow: hidden;
  border-radius: 6px;
}

.data-item-folder .data-item-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.data-item-name {
  max-width: 100%;
  font-size: 0.85rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-item-sub {
  max-width: 100%;
  font-size: 0.7rem;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-search-form { display: contents; }

.data-item-actions { display: flex; gap: 6px; }

.newfile { position: relative; }

.newfile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 150px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  z-index: 50;
  padding: 6px;
}

.newfile-menu.open { display: block; }

.nf-item {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 5px;
}

.nf-item:hover { background: var(--accent-soft); color: var(--accent); }

.nf-item.nf-disabled { color: var(--text-faint); cursor: not-allowed; }
.nf-item.nf-disabled:hover { background: transparent; color: var(--text-faint); }

a.data-item-file[href="#"] { pointer-events: none; cursor: default; }

.img-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: var(--panel-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-faint);
  margin-bottom: 14px;
}

.img-stage img { max-width: 100%; max-height: 560px; }

/* Video preview stage: first-frame image with a big centered play overlay. */
.mov-stage { position: relative; display: inline-block; line-height: 0; max-width: 100%; cursor: pointer; }

.mov-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    line-height: 1;
    padding-left: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* PDF preview stage: first-page image with a big centered open/eye overlay. */
.doc-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    line-height: 1;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.doc-frame {
    display: block;
    width: 100%;
    height: 78vh;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
}

.mov-video { display: block; max-width: 100%; max-height: 560px; border-radius: 10px; background: #000; }

.img-stage a { display: block; line-height: 0; max-width: 100%; }

.img-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.img-toolbar .btn { padding: 8px 11px; }

/* Data app - move file (MoveFile) */
.move-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 120px;
    background: var(--bg-2);
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    margin-bottom: 20px;
}

.move-icon {
    font-size: 2.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.move-icon .data-item-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
}

.move-icon-target {
    color: var(--accent);
}

.move-arrow {
    font-size: 2rem;
    color: var(--text-faint);
}

/* Data app - share file (Share) */
.share-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: var(--bg-2);
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    margin-bottom: 20px;
}

.share-desc {
    margin-bottom: 20px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.img-status { margin: -12px 0 16px; font-size: 0.78rem; color: var(--text-faint); }

.doc-info { margin: 0 0 16px; font-size: 0.9rem; color: var(--text-soft); }

/* Ask Nicole - chat */
.chat-log {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: rgba(0, 20, 12, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 300px;
  max-height: 520px;
  overflow-y: auto;
}

.chat-msg {
  max-width: 76%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.4;
}

.chat-msg p { margin: 0; }

.chat-user {
  align-self: flex-end;
  background: rgba(0, 255, 0, 0.14);
  color: var(--text);
}

.chat-girl {
  align-self: flex-start;
  background: rgba(0, 35, 22, 0.72);
  color: var(--text);
}

.chat-compose {
  margin-top: 16px;
}

.chat-text {
  width: 100%;
  min-height: 48px;
}

.chat-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.chat-toolbar .chat-features {
  width: 220px;
}

@media (max-width: 640px) {
  .chat-text {
    min-height: 40px;
  }
}

/* Welcome banner (home /u/ only) */
.welcome-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
  filter: saturate(0.95) contrast(1.03);
}

/* ToDo / Budget apps */
.todo-table .col-status { width: 1%; white-space: nowrap; text-align: center; }
table.data-table.todo-table { min-width: 560px; }
.todo-table .col-topic { width: 100%; min-width: 180px; }
.todo-table td.col-topic { font-weight: 600; color: var(--text-soft); }
.todo-table .col-date { width: 1%; white-space: nowrap; }
.todo-table .col-actions { width: 1%; white-space: nowrap; }
.todo-table td.col-date { color: var(--text-faint); font-size: 0.85rem; }
.todo-table tfoot td { border-top: 2px solid var(--border-strong); border-bottom: none; }
.todo-toggle { text-decoration: none; font-size: 22px; line-height: 1; display: inline-block; }
.todo-toggle.on { color: var(--ok); }
.todo-toggle.off { color: var(--text-faint); }
.todo-toggle.off:hover { color: var(--text-soft); }
.todo-del { color: var(--danger); text-decoration: none; font-size: 18px; line-height: 1; }
.todo-del:hover { opacity: 0.75; }
.todo-edit { color: var(--accent); text-decoration: none; font-size: 18px; line-height: 1; margin-right: 10px; }
.todo-edit:hover { opacity: 0.75; }
.todo-scroll { overflow-x: auto; }
.todo-path { margin: 4px 0 0; color: var(--text-faint); }
.todo-path a { color: var(--accent); text-decoration: none; }
.todo-path a:hover { text-decoration: underline; }
/* ViewImg */
.viewimg-page { width: 100%; max-width: none; text-align: left; }
.viewimg-full { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); height: auto; display: block; }
.viewimg-info { margin-top: 16px; }
.viewimg-name { font-size: 1.15rem; font-weight: 600; margin: 0 0 4px; }
/* Calendar app */
.cal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
.cal-week {
    flex: 1;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.95rem;
}
.cal-arrow {
    min-width: 40px;
    text-align: center;
    text-decoration: none;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 20px;
}
.cal-day {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    padding: 10px 4px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.cal-day:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.cal-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    display: none;
}
.cal-day.has-friend .cal-dot { display: block; }
.cal-wd {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-faint);
}
.cal-num {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}
.cal-day.other-month .cal-num { color: var(--text-faint); }
.cal-day.other-month .cal-wd { opacity: 0.55; }
.cal-day.sunday { background: var(--bg-2); }
.cal-day.has-appt { background: rgba(110, 220, 150, 0.14); }
.cal-day.today {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px var(--focus-ring);
}
.cal-day.today .cal-num { color: var(--accent); }
.cal-day.selected {
    background: var(--accent);
    border-color: var(--accent-2);
}
.cal-day.selected .cal-num { color: #ffffff; }
.cal-day.selected .cal-wd { color: rgba(255, 255, 255, 0.85); }
.cal-selected-title {
    margin-top: 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}
.cal-today-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.cal-today-link:hover {
    color: var(--accent);
    text-decoration: underline;
}
.cal-task-form {
    margin-top: 20px;
}
.cal-task-form h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}
.cal-appts-title {
    margin: 16px 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.appt-action {
    color: var(--accent);
    text-decoration: none;
    margin-right: 10px;
    font-size: 0.9rem;
}
.appt-action:hover { text-decoration: underline; }
.appt-action-del { color: var(--danger); }
@media (max-width: 720px) {
    .cal-grid { grid-template-columns: repeat(4, 1fr); }
    .cal-day.hide-phone { display: none; }
}

input[type="datetime-local"] {
    width: 100%;
    padding: 9px 11px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}

/* Messenger */
.chat-row { display: flex; margin-bottom: 10px; }
.chat-row.mine { justify-content: flex-start; }
.chat-row.theirs { justify-content: flex-end; }
.chat-bubble {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.35);
}
.chat-row.mine .chat-bubble {
    background: rgba(58, 110, 165, 0.28);
    border-color: rgba(58, 110, 165, 0.46);
    color: var(--text);
    border-radius: 0 14px 14px 14px;
}
.chat-row.theirs .chat-bubble {
    background: rgba(46, 125, 50, 0.28);
    border-color: rgba(46, 125, 50, 0.46);
    color: var(--text);
    border-radius: 14px 0 14px 14px;
}
.msg-text { white-space: pre-wrap; word-break: break-word; }
.chat-time { display: block; font-size: 0.72rem; margin-top: 4px; opacity: 0.72; }
.chat-empty { color: var(--text-faint); text-align: center; padding: 24px 0; }
.thread-list { display: flex; flex-direction: column; gap: 8px; }
.thread-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    text-decoration: none;
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.35);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.thread-item.mine {
    background: rgba(46, 125, 50, 0.28);
    border-color: rgba(46, 125, 50, 0.46);
    border-radius: var(--radius) 0 var(--radius) var(--radius);
}
.thread-item.theirs {
    background: rgba(58, 110, 165, 0.28);
    border-color: rgba(58, 110, 165, 0.46);
    border-radius: 0 var(--radius) var(--radius) var(--radius);
}
.thread-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.thread-name { font-weight: 600; color: var(--text); }
.thread-status { font-size: 0.75rem; font-weight: 400; color: var(--text-faint); }
.thread-preview { font-size: 0.9rem; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-time { font-size: 0.75rem; color: var(--text-faint); }
.composer { margin-bottom: 20px; }
.composer-input { width: 100%; min-height: 60px; resize: vertical; }
.composer-actions { display: flex; justify-content: flex-start; margin-top: 8px; }
.composer-divider { width: 1px; align-self: stretch; margin: 4px 10px; background: var(--border-strong, #d5dae1); }
.chat-divider { border: none; border-top: 1px solid var(--border-strong); margin: 20px 0; }
.badge {
    display: inline-block;
    min-width: 18px;
    padding: 1px 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}
.page-head h1 a { color: inherit; text-decoration: none; }
.page-head h1 a:hover { text-decoration: underline; }
.page-head h1 .breadcrumb-link { color: inherit; text-decoration: none; }
.page-head h1 .breadcrumb-link:hover { text-decoration: underline; }
.page-head h1 .breadcrumb-current { color: var(--text-faint); }

/* ===== Chronicles (theme: Nicole - terminal green) ===== */
.chronicle-list { margin-top: 24px; }
.chronicle-entry { margin-bottom: 16px; padding: 0; background: #07251a; border: 1px solid rgba(141, 255, 178, 0.25); border-radius: 10px; box-shadow: 0 0 14px rgba(0, 0, 0, 0.45); }
.chronicle-title { margin: 0; padding: 6px 12px; font-size: 1.15rem; font-weight: 600; color: #8dffb2; background: rgba(0, 255, 0, 0.10); border-radius: 10px 10px 0 0; overflow-wrap: anywhere; }
.chronicle-meta { margin: 0; padding: 5px 12px; font-size: 0.8rem; color: #54c878; display: flex; gap: 16px; background: rgba(0, 0, 0, 0.30); border-radius: 0; flex-wrap: wrap; }
.chronicle-folder { color: #00ff00; text-decoration: none; }
.chronicle-folder:hover { text-decoration: underline; }
.chronicle-folder-no { color: var(--text-faint); }
.chronicle-actions { margin-left: auto; display: flex; gap: 12px; }
.chronicle-actions a { color: #00ff00; text-decoration: none; }
.chronicle-actions a:hover { text-decoration: underline; }
.chronicle-actions a.chronicle-del { color: #ff7b7b; }
.chronicle-body { margin-top: 0; padding: 14px 20px 18px; color: #8dffb2; line-height: 1.6; overflow-wrap: anywhere; }
.chronicle-body p { margin: 0 0 10px; }
.chronicle-body p:last-child { margin-bottom: 0; }
.chronicle-body h1, .chronicle-body h2, .chronicle-body h3, .chronicle-body h4, .chronicle-body h5, .chronicle-body h6 { margin: 12px 0 6px; }
.chronicle-body ul, .chronicle-body ol { margin: 0 0 10px; padding-left: 22px; }
.chronicle-body img { max-width: 100%; height: auto; }
.chronicle-body blockquote { margin: 0 0 10px; padding: 8px 16px; border-left: 3px solid #00ff00; background: rgba(0, 0, 0, 0.28); }
.chronicle-body pre { margin: 0 0 10px; padding: 12px; background: rgba(0, 0, 0, 0.28); overflow-x: auto; }
.chronicle-body code { font-family: Consolas, 'Courier New', monospace; font-size: 0.9em; }
.folder-link { display: block; margin-top: 6px; color: #00ff00; font-size: 0.8rem; text-decoration: none; }
.folder-prefix { color: #54c878; font-size: 0.8rem; }
.folder-link:hover { text-decoration: underline; }
@media (max-width: 640px) { .chronicle-body { padding: 12px 14px 14px; } }

.fit-title { white-space: nowrap; }

.fit-path { white-space: nowrap; }

.fit-path { white-space: nowrap; overflow-x: auto; overflow-y: hidden; max-width: 100%; }
.page { min-width: 0; }

/* Notifications bar - count shown once on page load */
.notif-bar { width: 100%; max-width: 960px; margin: 0 auto 20px; padding: 12px 16px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--panel); color: var(--text); font-size: 0.95rem; text-align: left; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.notif-bar .notif-ico { font-size: 1.15rem; line-height: 1; }
.notif-bar .notif-msg { flex: 1; }
.notif-bar:empty { display: none; }
