:root {
  color-scheme: light;
  --bg: #f4f4f1;
  --paper: #ffffff;
  --paper-2: #f0efea;
  --ink: #171717;
  --muted: #686762;
  --line: rgba(24, 24, 24, 0.11);
  --accent: #2d6cdf;
  --accent-2: #111111;
  --green: #4f8f6b;
  --warm: #b36b3c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 76% 4%, rgba(45,108,223,.12), transparent 25rem),
    radial-gradient(circle at 4% 28%, rgba(79,143,107,.12), transparent 22rem),
    linear-gradient(180deg, #fbfbf9 0%, var(--bg) 62%, #ecebe6 100%);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(22px, 5vw, 76px);
  background: rgba(250, 250, 248, .78);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
.brand, nav { display: flex; align-items: center; gap: 18px; }
.brand { gap: 10px; font-weight: 760; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
nav { color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--ink); }
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 116px;
}
.account-trigger,
.account-chip button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  cursor: pointer;
  font-weight: 730;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 5px 4px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 690;
}
.account-chip button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(350px, .78fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding: clamp(48px, 8vw, 100px) clamp(22px, 5vw, 76px);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, p { letter-spacing: 0; }
h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(58px, 8vw, 122px);
  line-height: .94;
  font-weight: 780;
}
h2 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.06;
  font-weight: 740;
}
h3 { margin: 0; font-size: 21px; line-height: 1.28; }
.lede, .section p, .scene-list p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}
.lede { max-width: 670px; margin: 26px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 730;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.primary { background: var(--accent-2); color: #fff; }
.secondary { background: rgba(255,255,255,.72); border-color: var(--line); color: var(--ink); }
.full { width: 100%; margin-top: 10px; }
.fine, .note { margin-top: 14px; color: var(--muted); font-size: 13px; }

.hero-device {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 38px;
  background: linear-gradient(145deg, #2d3030, #0c0d0e);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-device::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 37px;
  background: radial-gradient(circle at 30% 10%, rgba(255,255,255,.16), transparent 22rem);
}
.hero-device img {
  position: relative;
  width: min(58%, 360px);
  border-radius: 26%;
  box-shadow: 0 24px 72px rgba(0,0,0,.34);
}
.hud {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  width: 300px;
  height: 56px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 14px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(24,24,24,.88);
  box-shadow: 0 18px 44px rgba(0,0,0,.30), inset 0 0 0 1px rgba(255,255,255,.13);
}
.close, .check {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 32px;
}
.close { color: #fff; background: rgba(255,255,255,.14); }
.check { color: #111; background: #fff; }
.wave { display: flex; align-items: center; justify-content: center; gap: 5px; }
.wave i {
  display: block;
  width: 4px;
  height: 12px;
  border-radius: 4px;
  background: rgba(255,255,255,.88);
  animation: pulse 1.15s ease-in-out infinite;
}
.wave i:nth-child(2n) { animation-delay: .12s; }
.wave i:nth-child(3n) { animation-delay: .24s; }
@keyframes pulse { 50% { height: 25px; opacity: .72; } }

.section { padding: 94px clamp(22px, 5vw, 76px); border-top: 1px solid var(--line); }
.section-head { max-width: 1200px; margin-bottom: 28px; }
.section-head.compact { max-width: 1040px; }
.section-head h2 { white-space: nowrap; }
.feature-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr .82fr;
  gap: 16px;
}
.panel, .account-entry, .auth-dialog, .feedback-lock, .feedback-form, .feedback-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .055);
}
.panel { padding: 28px; min-height: 228px; }
.panel.wide { min-height: 300px; }
.panel h3 { max-width: 680px; }
.examples {
  background:
    radial-gradient(circle at 76% 8%, rgba(17, 17, 17, .06), transparent 20rem),
    rgba(255,255,255,.34);
}
.examples .section-head p {
  max-width: 760px;
  margin-bottom: 0;
}
.rewrite-stage {
  max-width: 1120px;
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 24px 70px rgba(0,0,0,.07);
  overflow: hidden;
}
.rewrite-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(17,17,17,.055);
}
.rewrite-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 730;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.rewrite-tab:hover { color: var(--ink); }
.rewrite-tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.rewrite-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}
.rewrite-column {
  min-height: 278px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  transition: transform .32s ease, opacity .32s ease, border-color .32s ease;
}
.rewrite-column.raw {
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(244,244,241,.72));
}
.rewrite-column.polished {
  background:
    radial-gradient(circle at 92% 12%, rgba(79,143,107,.13), transparent 13rem),
    #fff;
  border-color: rgba(79,143,107,.25);
}
.column-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.rewrite-column p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.52;
  font-weight: 690;
}
.rewrite-column.raw p {
  color: rgba(23,23,23,.62);
  font-weight: 560;
}
.rewrite-flow {
  position: relative;
  display: grid;
  place-items: center;
}
.rewrite-flow span {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(17,17,17,.06);
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.08);
}
.rewrite-flow i {
  position: absolute;
  width: 76px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(17,17,17,.58), transparent);
  animation: rewriteSweep 2.8s ease-in-out infinite;
}
.rewrite-flow em {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(79,143,107,.14);
  animation: rewriteDot 2.8s ease-in-out infinite;
}
.rewrite-meter {
  height: 4px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17,17,17,.08);
}
.rewrite-meter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--accent));
  transform-origin: left center;
  animation: rewriteMeter 4.8s linear infinite;
}
.rewrite-stage.is-switching .rewrite-column.raw {
  opacity: .54;
  transform: translateX(8px) scale(.992);
}
.rewrite-stage.is-switching .rewrite-column.polished {
  transform: translateX(-8px) scale(1.008);
  border-color: rgba(45,108,223,.32);
}
@keyframes rewriteSweep {
  0%, 100% { transform: translateX(-12px); opacity: .42; }
  50% { transform: translateX(12px); opacity: 1; }
}
@keyframes rewriteDot {
  0%, 100% { transform: translateX(-28px) scale(.82); opacity: .58; }
  50% { transform: translateX(28px) scale(1); opacity: 1; }
}
@keyframes rewriteMeter {
  0% { transform: scaleX(0); }
  92% { transform: scaleX(1); }
  100% { transform: scaleX(1); }
}
.scenes { background: rgba(255,255,255,.28); }
.scene-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.scene-list div {
  min-height: 235px;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
}
.scene-list span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 760;
}
.scene-list strong { display: block; font-size: 20px; }
.scene-list p { margin-bottom: 0; font-size: 15px; }
.download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #171717;
  color: #fff;
}
.download p { max-width: 680px; color: rgba(255,255,255,.68); }
.download .eyebrow { color: #9ec2ff; }
.download .primary { background: #fff; color: #171717; }
.account {
  display: grid;
  grid-template-columns: .8fr minmax(360px, 520px);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.account-entry {
  padding: 28px;
  min-height: 270px;
  display: grid;
  align-content: start;
  gap: 16px;
  background:
    radial-gradient(circle at 92% 6%, rgba(45,108,223,.10), transparent 13rem),
    rgba(255,255,255,.76);
}
.account-entry h3 { max-width: 390px; font-size: 26px; }
.account-entry p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.account-entry .button { width: fit-content; margin-top: 8px; }
.account-badge {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17,17,17,.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.modal-open { overflow: hidden; }
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20,20,18,.34);
  backdrop-filter: blur(18px);
  cursor: default;
}
.auth-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45,108,223,.10), transparent 17rem),
    rgba(255,255,255,.93);
  box-shadow: 0 34px 110px rgba(0,0,0,.22);
}
.auth-dialog h2 {
  font-size: clamp(36px, 5vw, 54px);
  margin-bottom: 8px;
}
.auth-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.70);
  color: var(--muted);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}
.auth-flow {
  display: grid;
  gap: 2px;
}
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.tab.active { color: var(--ink); background: var(--paper-2); }
label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 13px;
  background: rgba(255,255,255,.78);
  color: var(--ink);
  outline: none;
}
input { height: 44px; }
textarea {
  min-height: 116px;
  resize: vertical;
  padding-top: 13px;
  line-height: 1.55;
}
input:focus, textarea:focus { border-color: rgba(45,108,223,.48); box-shadow: 0 0 0 4px rgba(45,108,223,.10); }
#emailAction, #registerAction { width: 100%; margin-top: 18px; }
.code-row {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 10px;
}
.code-row .button {
  min-height: 44px;
  border-radius: 13px;
  padding: 0 12px;
  white-space: nowrap;
}
.code-row .button:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
}
.message { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
.dictionary-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; color: var(--muted); }
.text-button { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-weight: 700; }
.terms { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.term-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.70);
}
.term-row strong { display: block; margin-bottom: 4px; }
.term-row span { color: var(--muted); font-size: 12px; }
.feedback { background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(244,244,241,.72)); }
.feedback-lock {
  max-width: 680px;
  padding: 28px;
  display: grid;
  gap: 10px;
}
.feedback-lock strong { font-size: 24px; }
.feedback-lock span { color: var(--muted); }
.feedback-app {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 18px;
  align-items: start;
}
.feedback-form { padding: 20px; display: grid; gap: 12px; }
.feedback-list { display: grid; gap: 12px; }
.feedback-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 18px;
}
.vote {
  width: 60px;
  height: 70px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  color: var(--muted);
  cursor: pointer;
}
.vote.active { background: rgba(45,108,223,.12); color: var(--accent); border-color: rgba(45,108,223,.24); }
.vote strong { display: block; font-size: 22px; }
.vote span { font-size: 12px; }
.feedback-meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.feedback-main h3 { margin-bottom: 8px; }
.feedback-main p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; }
details { color: var(--muted); }
summary { cursor: pointer; font-size: 13px; }
.comment-list p {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.035);
  font-size: 13px;
}
.comment-box { display: grid; grid-template-columns: 1fr 64px; gap: 8px; margin-top: 10px; }
.comment-box input { height: 36px; }
.comment-box button {
  border: 0;
  border-radius: 11px;
  background: #171717;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.feedback-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
}
footer {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 28px clamp(22px, 5vw, 76px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer a:hover { color: var(--ink); }

.legal {
  max-width: 940px;
  margin: 0 auto;
  padding: 84px 24px 110px;
}
.legal h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 92px);
}
.legal .lede {
  max-width: 760px;
  margin-bottom: 34px;
}
.legal-card {
  margin-top: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .045);
}
.legal-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}
.legal-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .hero, .feature-grid, .account, .feedback-app, .rewrite-card { grid-template-columns: 1fr; }
  .section-head h2 { white-space: normal; }
  .rewrite-flow { min-height: 54px; }
  .rewrite-flow i {
    width: 2px;
    height: 54px;
    background: linear-gradient(180deg, transparent, rgba(17,17,17,.58), transparent);
    animation-name: rewriteSweepY;
  }
  .rewrite-flow em { animation-name: rewriteDotY; }
  .scene-list { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; }
  nav { display: none; }
  .download { align-items: flex-start; flex-direction: column; }
  .topbar { gap: 14px; }
  .topbar-actions { margin-left: auto; }
}

@keyframes rewriteSweepY {
  0%, 100% { transform: translateY(-8px); opacity: .42; }
  50% { transform: translateY(8px); opacity: 1; }
}
@keyframes rewriteDotY {
  0%, 100% { transform: translateY(-22px) scale(.82); opacity: .58; }
  50% { transform: translateY(22px) scale(1); opacity: 1; }
}

@media (max-width: 620px) {
  .scene-list { grid-template-columns: 1fr; }
  .feedback-item { grid-template-columns: 1fr; }
  .auth-dialog { padding: 24px 18px; }
  .code-row { grid-template-columns: 1fr; }
  .account-chip span { max-width: 138px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.admin-page {
  background: #f5f3ee;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(18, 18, 16, .08);
  background: rgba(245, 243, 238, .86);
  backdrop-filter: blur(20px);
}
.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.admin-shell {
  padding: 48px clamp(20px, 4vw, 56px) 80px;
}
.admin-hero {
  max-width: 920px;
  margin-bottom: 28px;
}
.admin-hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -.03em;
}
.admin-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.admin-notice {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  color: var(--muted);
}
.admin-notice.error {
  color: #6b1f1b;
  background: rgba(255, 235, 232, .82);
}
.admin-notice a { color: var(--ink); font-weight: 800; }
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.admin-metrics article,
.admin-users,
.admin-main,
.admin-daily-card {
  border: 1px solid rgba(18, 18, 16, .09);
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 24px 80px rgba(0,0,0,.045);
}
.admin-metrics article {
  padding: 20px;
}
.admin-metrics span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}
.admin-metrics strong {
  font-size: 36px;
  letter-spacing: -.02em;
}
.admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-users,
.admin-main,
.admin-daily-card {
  padding: 18px;
}
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-section-head h2 {
  margin: 0;
  font-size: 22px;
}
.admin-section-head span {
  color: var(--muted);
  font-size: 14px;
}
.admin-filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}
.admin-filter select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255,255,255,.9);
}
.admin-user-list {
  display: grid;
  gap: 8px;
}
.admin-user {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  padding: 12px 14px;
  color: var(--ink);
  cursor: pointer;
}
.admin-user:hover,
.admin-user.active {
  border-color: rgba(18,18,16,.10);
  background: rgba(18,18,16,.055);
}
.admin-user span {
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-user em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}
.admin-timeline {
  display: grid;
  gap: 10px;
  max-height: 880px;
  overflow: auto;
  padding-right: 4px;
}
.admin-event {
  border: 1px solid rgba(18,18,16,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  overflow: hidden;
}
.admin-event summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px 12px;
  align-items: center;
}
.admin-event summary::-webkit-details-marker { display: none; }
.event-type {
  padding: 5px 9px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.admin-event.learning .event-type { background: #2b7653; }
.admin-event.product_feedback .event-type { background: #6549a8; }
.event-time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-event summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-event summary em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}
.admin-event summary p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #25241f;
  line-height: 1.55;
}
.event-detail {
  border-top: 1px solid rgba(18,18,16,.08);
  padding: 14px 16px 18px;
  display: grid;
  gap: 12px;
}
.detail-block span,
.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
}
.detail-block p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.detail-grid div {
  border-radius: 14px;
  background: rgba(18,18,16,.045);
  padding: 10px 12px;
  min-width: 0;
}
.detail-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-daily-card {
  margin-top: 18px;
}
.admin-daily {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}
.daily-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr) repeat(4, auto);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(18,18,16,.07);
}
.daily-row span,
.daily-row em {
  color: var(--muted);
  font-style: normal;
}
.admin-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .admin-metrics,
  .admin-layout,
  .detail-grid,
  .daily-row {
    grid-template-columns: 1fr;
  }
}
