:root {
  color-scheme: dark;
  --pointer-x: 50%;
  --pointer-y: 18%;
  --bg-top: #04101f;
  --bg-mid: #0a2040;
  --bg-bottom: #103764;
  --surface: rgba(9, 24, 44, 0.78);
  --surface-strong: rgba(10, 29, 52, 0.9);
  --surface-soft: rgba(12, 34, 61, 0.66);
  --text: #eef7ff;
  --muted: #a8c5df;
  --muted-strong: #c9dff3;
  --accent: #7dd8ff;
  --accent-strong: #2b8fff;
  --accent-soft: #8beed8;
  --danger: #ff9fb4;
  --danger-strong: #ff6f8d;
  --line: rgba(161, 214, 255, 0.16);
  --line-strong: rgba(185, 229, 255, 0.3);
  --shadow: 0 26px 70px rgba(1, 7, 16, 0.42);
  --glow: 0 0 40px rgba(125, 216, 255, 0.18);
  --font-display: "Iowan Old Style", "Noto Serif SC", "STSong", serif;
  --font-body: "Avenir Next", "Segoe UI Variable", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(125, 216, 255, 0.16), transparent 20%),
    radial-gradient(circle at 14% 12%, rgba(139, 238, 216, 0.14), transparent 22%),
    radial-gradient(circle at 84% 20%, rgba(87, 146, 255, 0.16), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 86%);
  opacity: 0.15;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb,
.ambient-ribbon {
  position: absolute;
}

.ambient-orb {
  border-radius: 50%;
  filter: blur(10px);
}

.orb-a {
  top: -80px;
  left: -110px;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(125, 216, 255, 0.26) 0%, rgba(125, 216, 255, 0) 70%);
  animation: drift-a 20s ease-in-out infinite alternate;
}

.orb-b {
  right: -120px;
  top: 22%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(139, 238, 216, 0.2) 0%, rgba(139, 238, 216, 0) 70%);
  animation: drift-b 24s ease-in-out infinite alternate;
}

.ambient-ribbon {
  border: 1px solid rgba(177, 226, 255, 0.12);
  border-radius: 999px;
}

.ribbon-a {
  left: -8%;
  top: 20%;
  width: 58vw;
  height: 180px;
  opacity: 0.42;
  transform: rotate(-7deg);
  animation: ribbon-wave 18s ease-in-out infinite alternate;
}

.ribbon-b {
  right: -10%;
  bottom: 14%;
  width: 50vw;
  height: 150px;
  opacity: 0.26;
  transform: rotate(9deg);
  animation: ribbon-wave 22s ease-in-out infinite alternate-reverse;
}

.ambient-particles {
  position: absolute;
  inset: 0;
}

.ambient-particles span {
  position: absolute;
  bottom: -28px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 247, 255, 0.95) 0%, rgba(125, 216, 255, 0.34) 55%, rgba(125, 216, 255, 0) 76%);
  box-shadow: 0 0 18px rgba(125, 216, 255, 0.36);
  opacity: 0;
  animation: particle-rise 13s linear infinite;
}

.ambient-particles span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.ambient-particles span:nth-child(2) {
  left: 24%;
  animation-delay: 2.2s;
  animation-duration: 15s;
}

.ambient-particles span:nth-child(3) {
  left: 42%;
  animation-delay: 5s;
  animation-duration: 12s;
}

.ambient-particles span:nth-child(4) {
  left: 61%;
  animation-delay: 3.4s;
  animation-duration: 14s;
}

.ambient-particles span:nth-child(5) {
  left: 78%;
  animation-delay: 6.4s;
  animation-duration: 16s;
}

.ambient-particles span:nth-child(6) {
  left: 91%;
  animation-delay: 1.4s;
  animation-duration: 13s;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(12, 31, 56, 0.92), rgba(8, 22, 40, 0.88)),
    radial-gradient(circle at top right, rgba(125, 216, 255, 0.08), transparent 28%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.hero-panel {
  padding: 34px 34px 36px;
  animation: fade-up 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-panel h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.9vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, #f6fcff 0%, #c4e8ff 38%, #95ecd9 72%, #f6fcff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: var(--glow);
  animation: title-shift 9s ease-in-out infinite;
}

.hero-copy {
  max-width: 42ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.92;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 10px 15px;
  border: 1px solid rgba(185, 229, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 30, 53, 0.56);
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.utility-column {
  display: grid;
  gap: 18px;
}

.metrics-panel,
.admin-panel {
  padding: 22px;
  animation: fade-up 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.metrics-panel {
  display: grid;
  gap: 12px;
}

.metric-card {
  padding: 16px 18px;
  border: 1px solid rgba(185, 229, 255, 0.14);
  border-radius: 22px;
  background: rgba(9, 24, 43, 0.52);
}

.metric-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  line-height: 1.7;
}

.admin-panel summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.admin-panel summary::-webkit-details-marker {
  display: none;
}

.admin-panel summary span {
  font-weight: 700;
  font-size: 1rem;
}

.admin-panel summary b {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 31, 55, 0.82);
  color: var(--accent-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-panel[open] summary b {
  color: #031624;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.admin-copy,
.admin-hint {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.82;
}

.admin-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-form input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(185, 229, 255, 0.14);
  border-radius: 16px;
  background: rgba(7, 21, 39, 0.72);
  color: var(--text);
  font: inherit;
}

.admin-form input::placeholder {
  color: rgba(168, 197, 223, 0.72);
}

.admin-form input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(125, 216, 255, 0.1);
}

.admin-form button,
.ghost-button {
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #03101d;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  box-shadow: 0 14px 28px rgba(43, 143, 255, 0.22);
}

.admin-form button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
}

.admin-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ghost-button {
  background: rgba(12, 31, 55, 0.9);
  color: var(--text);
  border: 1px solid rgba(185, 229, 255, 0.16);
  box-shadow: none;
}

.alerts {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.alert {
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.7;
  animation: fade-up 420ms ease both;
}

.alert-success {
  border-color: rgba(139, 238, 216, 0.2);
  background: rgba(90, 204, 175, 0.15);
  color: #a7ffea;
}

.alert-error {
  border-color: rgba(255, 177, 194, 0.22);
  background: rgba(255, 109, 141, 0.14);
  color: #ffd3de;
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.composer-panel,
.timeline-panel {
  padding: 28px;
  animation: fade-up 860ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.composer-panel {
  position: sticky;
  top: 20px;
}

.section-head {
  margin-bottom: 20px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.82;
}

.message-form {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-size: 0.95rem;
  font-weight: 700;
}

.field-group input[type="text"],
.field-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(185, 229, 255, 0.14);
  border-radius: 18px;
  background: rgba(6, 19, 35, 0.7);
  color: var(--text);
  font: inherit;
  resize: vertical;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.field-group input[type="text"]::placeholder,
.field-group textarea::placeholder {
  color: rgba(168, 197, 223, 0.72);
}

.field-group input[type="text"]:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(125, 216, 255, 0.1);
}

.upload-dropzone {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  min-height: 138px;
  padding: 22px;
  border: 1px dashed rgba(185, 229, 255, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(12, 32, 58, 0.86), rgba(8, 22, 41, 0.74)),
    radial-gradient(circle at top right, rgba(125, 216, 255, 0.16), transparent 34%);
  align-content: center;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.upload-dropzone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(125, 216, 255, 0.06), transparent);
  transform: translateY(-100%);
  animation: dropzone-scan 6.2s ease-in-out infinite;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragging,
.upload-dropzone.has-file {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(3, 11, 22, 0.24);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-title,
.upload-meta {
  position: relative;
}

.upload-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.upload-meta {
  color: var(--muted);
  line-height: 1.72;
}

.upload-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(185, 229, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 22, 40, 0.68);
}

.upload-preview img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.upload-preview-copy {
  min-width: 0;
}

.upload-preview-copy strong,
.upload-preview-copy span {
  display: block;
}

.upload-preview-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.upload-preview-copy span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.upload-clear {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(185, 229, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 31, 55, 0.92);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 18px;
}

.form-actions p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.form-actions button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #03111d;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(43, 143, 255, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  animation: button-breathe 4.2s ease-in-out infinite;
}

.form-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(43, 143, 255, 0.32);
  filter: saturate(1.08);
}

.admin-state {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 238, 216, 0.16);
  border-radius: 16px;
  background: rgba(90, 204, 175, 0.11);
  color: #b7ffef;
  line-height: 1.7;
}

.visit-panel {
  margin-top: 24px;
  padding: 28px;
  animation: fade-up 920ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.visit-head {
  margin-bottom: 22px;
}

.visit-list {
  display: grid;
  gap: 14px;
}

.visit-card {
  padding: 18px 18px 16px;
  border: 1px solid rgba(185, 229, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(13, 34, 60, 0.92), rgba(8, 22, 40, 0.84)),
    radial-gradient(circle at top right, rgba(125, 216, 255, 0.08), transparent 32%);
}

.visit-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: center;
}

.visit-card-head strong {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
}

.visit-card-head time {
  color: var(--muted);
  font-size: 0.88rem;
}

.visit-primary {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  font-family: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  word-break: break-all;
}

.visit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 10px;
}

.visit-meta span {
  padding: 7px 11px;
  border: 1px solid rgba(185, 229, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 21, 38, 0.54);
  color: var(--muted-strong);
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-word;
}

.visit-agent {
  margin: 12px 0 0;
  color: rgba(168, 197, 223, 0.84);
  font-size: 0.84rem;
  line-height: 1.72;
  word-break: break-word;
}

.message-list {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 26px;
}

.message-list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(125, 216, 255, 0.45), rgba(139, 238, 216, 0.15), rgba(125, 216, 255, 0.02));
}

.message-card {
  position: relative;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(185, 229, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 37, 67, 0.94), rgba(8, 23, 42, 0.84));
  opacity: 0;
  transform: translateY(14px);
  animation: card-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--delay, 0) * 70ms);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.message-card:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 229, 255, 0.24);
  box-shadow: 0 18px 36px rgba(2, 9, 18, 0.24);
}

.message-marker {
  position: absolute;
  left: -25px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 20px rgba(125, 216, 255, 0.34);
}

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

.message-author {
  display: grid;
  gap: 4px;
}

.message-author-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: baseline;
}

.message-author-line strong {
  font-size: 1rem;
}

.message-index {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.message-location {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

.message-admin-meta {
  color: rgba(168, 197, 223, 0.84);
  font-size: 0.78rem;
  line-height: 1.7;
  font-family: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  word-break: break-all;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  align-items: center;
}

.message-actions time {
  color: var(--muted);
  font-size: 0.9rem;
}

.delete-form {
  margin: 0;
}

.delete-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 159, 180, 0.24);
  border-radius: 999px;
  background: rgba(86, 26, 41, 0.36);
  color: #ffd3de;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.delete-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 159, 180, 0.42);
  background: rgba(110, 28, 50, 0.48);
}

.message-text {
  margin: 0;
  color: rgba(238, 247, 255, 0.94);
  line-height: 1.88;
  white-space: pre-wrap;
}

.message-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(185, 229, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(8, 21, 38, 0.84), rgba(6, 18, 33, 0.74)),
    radial-gradient(circle at top, rgba(125, 216, 255, 0.08), transparent 28%);
}

.message-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 780px);
  max-height: min(68vh, 560px);
  object-fit: contain;
  border-radius: 14px;
  transition: transform 240ms ease, filter 240ms ease;
}

.message-media:hover img {
  transform: scale(1.016);
  filter: saturate(1.05);
}

.empty-state {
  padding: 30px 24px;
  border: 1px dashed rgba(185, 229, 255, 0.2);
  border-radius: 22px;
  background: rgba(8, 21, 39, 0.48);
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes title-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(34px, -18px, 0) scale(1.06);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-40px, 24px, 0) scale(1.05);
  }
}

@keyframes ribbon-wave {
  from {
    transform: translate3d(0, 0, 0) rotate(-7deg) scale(1);
  }

  to {
    transform: translate3d(24px, -16px, 0) rotate(-11deg) scale(1.04);
  }
}

@keyframes particle-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0;
  }

  10% {
    opacity: 0.82;
  }

  70% {
    opacity: 0.62;
  }

  100% {
    transform: translate3d(28px, -112vh, 0) scale(1.08);
    opacity: 0;
  }
}

@keyframes dropzone-scan {
  0%,
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  58% {
    transform: translateY(110%);
    opacity: 0.84;
  }
}

@keyframes button-breathe {
  0%,
  100% {
    box-shadow: 0 18px 34px rgba(43, 143, 255, 0.22);
  }

  50% {
    box-shadow: 0 22px 40px rgba(43, 143, 255, 0.34);
  }
}

@media (max-width: 980px) {
  .masthead,
  .board-grid {
    grid-template-columns: 1fr;
  }

  .composer-panel {
    position: static;
  }

  .hero-panel h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 22px, 1160px);
    padding-top: 24px;
    padding-bottom: 42px;
  }

  .panel,
  .hero-panel,
  .composer-panel,
  .timeline-panel,
  .metrics-panel,
  .admin-panel {
    border-radius: 24px;
  }

  .hero-panel,
  .composer-panel,
  .timeline-panel {
    padding: 22px;
  }

  .hero-panel h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .section-head h2 {
    font-size: 1.7rem;
  }

  .message-list {
    padding-left: 20px;
  }

  .message-marker {
    left: -19px;
  }

  .upload-preview {
    grid-template-columns: 1fr;
  }

  .upload-preview img {
    width: 100%;
    height: auto;
    max-height: 260px;
  }

  .form-actions,
  .message-header,
  .message-actions {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
