@font-face {
  font-family: "Poppins";
  src: url("../../../assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Poppins";
  src: url("../../../assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("../../../assets/fonts/NotoSansSC-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("../../../assets/fonts/NotoSansSC-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

:root {
  --ink: #302044;
  --ink-soft: #75667f;
  --rose: #ed78a3;
  --rose-deep: #d94f88;
  --rose-bright: #ff9fc0;
  --rose-pale: #ffe2ec;
  --blue-pale: #edf7ff;
  --card: rgba(255, 255, 255, 0.75);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 49% 2%, rgba(255, 255, 255, 0.98) 0 8%, transparent 31%),
    radial-gradient(circle at 5% 38%, rgba(198, 229, 255, 0.54), transparent 29%),
    radial-gradient(circle at 92% 18%, rgba(244, 180, 211, 0.42), transparent 31%),
    radial-gradient(circle at 58% 96%, rgba(205, 181, 245, 0.24), transparent 31%),
    linear-gradient(145deg, #eff9ff 0%, #f6f8ff 38%, #f8efff 69%, #fff1f5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(224, 105, 153, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 146, 211, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 74%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.bubble-canvas,
.ambient-layer,
.network-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bubble-canvas {
  z-index: 0;
}

.ambient-layer {
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.34;
  animation: ambient-drift 14s ease-in-out infinite alternate;
}

.glow-rose {
  width: 31vw;
  height: 31vw;
  right: -10vw;
  top: 5vh;
  background: rgba(243, 132, 177, 0.31);
}

.glow-blue {
  width: 26vw;
  height: 26vw;
  left: -8vw;
  top: 33vh;
  background: rgba(128, 197, 255, 0.25);
  animation-delay: -5s;
}

.glow-lilac {
  width: 28vw;
  height: 28vw;
  left: 36vw;
  bottom: -19vw;
  background: rgba(174, 133, 232, 0.23);
  animation-delay: -9s;
}

.network-layer {
  z-index: 1;
  opacity: 0.65;
}

.network-layer path {
  fill: none;
  stroke: url("#networkStroke");
  stroke-width: 1.65;
  stroke-dasharray: 7 16;
  animation: network-flow 11s linear infinite;
}

.network-layer circle {
  fill: rgba(255, 240, 247, 0.9);
  stroke: rgba(223, 93, 146, 0.48);
  stroke-width: 1.4;
  animation: node-pulse 3.6s ease-in-out infinite;
}

.analyze-shell {
  position: relative;
  z-index: 2;
  width: min(1540px, calc(100% - 36px));
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 14px 0 16px;
  overflow: hidden;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
}

.back-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  padding: 9px 15px;
  overflow: hidden;
  border: 1px solid rgba(226, 114, 157, 0.25);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 248, 251, 0.9), rgba(255, 220, 234, 0.7));
  color: var(--ink);
  font-size: 0.78rem;
  text-decoration: none;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.8), 0 8px 22px rgba(136, 75, 118, 0.1);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(220, 76, 137, 0.64);
  background: linear-gradient(135deg, #ffe1ec 0%, #ff9fc0 48%, #ed6b9e 100%);
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.86), 0 12px 30px rgba(204, 82, 138, 0.25), 0 0 25px rgba(255, 137, 180, 0.4);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(233, 112, 159, 0.42);
  border-radius: 50%;
  background: rgba(255, 244, 249, 0.68);
  box-shadow: 0 8px 24px rgba(180, 73, 129, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(50%);
}

.brand-lockup > span:last-child {
  display: grid;
}

.brand-lockup strong {
  font-size: 0.98rem;
  letter-spacing: 0.13em;
}

.brand-lockup small {
  color: var(--ink-soft);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
}

.page-label,
.panel-kicker,
.section-label small {
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.18em;
}

.page-label {
  justify-self: end;
  color: rgba(112, 70, 126, 0.45);
  font-size: 0.6rem;
}

.workspace {
  display: grid;
  grid-template-columns: clamp(220px, 17vw, 270px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  height: calc(100% - 68px);
  padding-top: 10px;
}

.upload-panel,
.analysis-panel {
  border: 1px solid rgba(231, 131, 169, 0.28);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 16px 42px rgba(105, 68, 126, 0.1);
  backdrop-filter: blur(17px) saturate(1.1);
}

.upload-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 16px;
  border-radius: 25px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.section-label > span {
  color: rgba(217, 79, 136, 0.58);
  font-family: "Poppins", sans-serif;
  font-size: 0.67rem;
}

.section-label div {
  display: grid;
}

.section-label strong {
  font-size: 0.85rem;
}

.section-label small {
  margin-top: 1px;
  color: rgba(107, 78, 119, 0.44);
  font-size: 0.47rem;
}

.upload-button {
  position: relative;
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  overflow: hidden;
  border: 1px solid rgba(232, 126, 166, 0.46);
  border-radius: 20px;
  outline: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.96), transparent 32%),
    linear-gradient(145deg, rgba(255, 241, 247, 0.94), rgba(255, 210, 228, 0.73));
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.72), 0 11px 28px rgba(190, 83, 133, 0.12);
  transition: transform 260ms ease, border-color 320ms ease, background 320ms ease, box-shadow 320ms ease;
}

.upload-button::after,
.review-button::after {
  content: "";
  position: absolute;
  top: -90%;
  left: -48%;
  width: 34%;
  height: 280%;
  opacity: 0;
  transform: rotate(19deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.upload-button:hover,
.upload-button:focus-visible,
.upload-button.is-uploading {
  transform: translateY(-3px);
  border-color: rgba(217, 62, 126, 0.78);
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.98), transparent 27%),
    linear-gradient(135deg, #ffe1ec 0%, #ff9abc 50%, #e95f96 100%);
  box-shadow: inset 0 2px 14px rgba(255, 255, 255, 0.86), inset 0 -9px 20px rgba(188, 49, 108, 0.12), 0 16px 38px rgba(196, 69, 127, 0.25), 0 0 30px rgba(255, 137, 180, 0.42);
}

.upload-button:hover::after,
.upload-button:focus-visible::after,
.upload-button.is-uploading::after,
.review-button:not(:disabled):hover::after {
  opacity: 1;
  animation: button-shine 650ms ease forwards;
}

.upload-icon,
.review-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(226, 109, 155, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.upload-icon img,
.review-icon img {
  width: 22px;
  height: 22px;
}

.upload-copy {
  display: grid;
  text-align: left;
}

.upload-copy strong {
  font-size: 0.79rem;
}

.upload-copy small {
  margin-top: 2px;
  color: rgba(97, 70, 107, 0.57);
  font-family: "Poppins", sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
}

.upload-arrow {
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
}

.upload-progress {
  margin-top: 14px;
  padding: 13px 12px 11px;
  border: 1px solid rgba(231, 140, 175, 0.2);
  border-radius: 17px;
  background: rgba(255, 250, 252, 0.62);
}

.progress-copy,
.review-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.progress-copy strong,
.review-progress-copy strong {
  color: var(--rose-deep);
  font-family: "Poppins", sans-serif;
  font-size: 0.63rem;
}

.progress-track,
.review-progress-track {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(230, 145, 179, 0.15);
  box-shadow: inset 0 1px 3px rgba(115, 66, 93, 0.08);
}

.progress-track span,
.review-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f7bfd2, #f080aa, #d94f88);
  box-shadow: 0 0 12px rgba(232, 92, 148, 0.46);
  transition: width 380ms cubic-bezier(.2,.82,.3,1);
}

.upload-progress p {
  margin: 9px 0 0;
  overflow: hidden;
  color: rgba(91, 69, 99, 0.64);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-token {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 0 3px;
}

.task-token span {
  color: var(--ink-soft);
  font-size: 0.58rem;
}

.task-token strong {
  overflow: hidden;
  color: rgba(77, 50, 88, 0.76);
  font-family: "Poppins", sans-serif;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-entry {
  position: relative;
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid rgba(232, 126, 166, 0.44);
  border-radius: 20px;
  outline: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.96), transparent 32%),
    linear-gradient(145deg, rgba(255, 242, 247, 0.94), rgba(255, 214, 231, 0.7));
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.72), 0 11px 28px rgba(190, 83, 133, 0.11);
  transition: transform 280ms ease, border-color 320ms ease, background 320ms ease, box-shadow 320ms ease, filter 320ms ease;
}

.review-entry::before {
  content: "";
  position: absolute;
  inset: -70%;
  opacity: 0;
  background: conic-gradient(from 20deg, transparent, rgba(255, 255, 255, 0.78), transparent 28%, rgba(235, 71, 139, 0.24), transparent 62%);
  transition: opacity 300ms ease;
  animation: review-spin 9s linear infinite;
}

.review-entry::after {
  content: "";
  position: absolute;
  top: -90%;
  left: -48%;
  width: 34%;
  height: 280%;
  opacity: 0;
  transform: rotate(19deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.review-entry:hover,
.review-entry:focus-visible,
.review-entry.is-complete {
  transform: translateY(-3px);
  border-color: rgba(214, 55, 121, 0.84);
  background:
    radial-gradient(circle at 19% 16%, rgba(255, 255, 255, 0.98), transparent 27%),
    linear-gradient(135deg, #ffe1ec 0%, #ff98bb 49%, #e75b94 100%);
  box-shadow: inset 0 2px 14px rgba(255, 255, 255, 0.87), inset 0 -10px 21px rgba(181, 42, 103, 0.13), 0 16px 39px rgba(195, 65, 125, 0.26), 0 0 31px rgba(255, 135, 179, 0.43);
}

.review-entry:hover::before,
.review-entry:focus-visible::before,
.review-entry.is-complete::before {
  opacity: 1;
}

.review-entry:hover::after,
.review-entry:focus-visible::after,
.review-entry.is-complete::after {
  opacity: 1;
  animation: button-shine 650ms ease forwards;
}

.review-entry > * {
  position: relative;
  z-index: 1;
}

.review-entry-copy {
  min-width: 0;
  display: grid;
  text-align: left;
}

.review-entry-copy small {
  color: rgba(106, 72, 113, 0.62);
  font-size: 0.52rem;
}

.review-entry-copy strong {
  margin-top: 1px;
  font-size: 0.74rem;
}

.review-entry-copy em {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(89, 62, 98, 0.58);
  font-size: 0.5rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-entry.is-complete .review-entry-copy strong {
  color: #5f153d;
  font-size: 0.8rem;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.46);
}

.review-entry-arrow {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: transform 240ms ease;
}

.review-entry:hover .review-entry-arrow,
.review-entry.is-complete .review-entry-arrow {
  transform: translateX(3px);
}

.analysis-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px;
  border-width: 4px;
  border-color: rgba(244, 171, 198, 0.72);
  border-radius: 29px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 19px 52px rgba(107, 66, 130, 0.12), 0 0 0 7px rgba(255, 213, 229, 0.12);
  transition: border-color 360ms ease, box-shadow 360ms ease, transform 360ms ease;
}

.analysis-panel:hover,
.analysis-panel:focus-within,
.analysis-panel.has-frame {
  border-color: rgba(231, 87, 145, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 249, 0.9), 0 24px 62px rgba(191, 68, 127, 0.2), 0 0 34px rgba(255, 138, 182, 0.3), 0 0 0 8px rgba(255, 203, 223, 0.14);
}

.analysis-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 3px;
}

.panel-kicker {
  color: rgba(214, 73, 132, 0.58);
  font-size: 0.52rem;
  font-weight: 600;
}

.analysis-heading h1 {
  margin: 2px 0 0;
  font-size: clamp(1.06rem, 1.5vw, 1.4rem);
  letter-spacing: 0.08em;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 44%;
  padding: 7px 11px;
  overflow: hidden;
  border: 1px solid rgba(228, 123, 164, 0.24);
  border-radius: 999px;
  background: rgba(255, 239, 246, 0.72);
  color: var(--ink-soft);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d7b7c4;
}

.live-status.is-live i {
  background: var(--rose-deep);
  box-shadow: 0 0 0 5px rgba(228, 76, 140, 0.11), 0 0 12px rgba(228, 76, 140, 0.62);
  animation: live-pulse 1.6s ease-in-out infinite;
}

.frame-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(227, 140, 174, 0.27);
  border-radius: 21px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.95), transparent 42%),
    linear-gradient(145deg, rgba(244, 250, 255, 0.86), rgba(255, 238, 246, 0.7));
  box-shadow: inset 0 0 32px rgba(119, 93, 139, 0.05);
}

.frame-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(223, 104, 151, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 104, 151, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
}

.frame-stage > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #11131a;
}

.frame-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.placeholder-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border: 1px solid rgba(229, 122, 164, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 28px rgba(124, 83, 137, 0.1);
}

.placeholder-icon img {
  width: 31px;
  height: 31px;
  opacity: 0.63;
}

.frame-placeholder strong {
  font-size: 0.92rem;
  letter-spacing: 0.07em;
}

.frame-placeholder p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.frame-message {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid rgba(231, 128, 168, 0.21);
  border-radius: 999px;
  background: rgba(255, 248, 251, 0.8);
  color: rgba(74, 53, 83, 0.72);
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.2fr 0.72fr 0.72fr;
  gap: 9px;
}

.metric-card {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border: 2px solid rgba(244, 183, 205, 0.62);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 234, 242, 0.55));
  box-shadow: inset 0 0 13px rgba(255, 255, 255, 0.58), 0 7px 17px rgba(138, 83, 121, 0.07);
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(231, 86, 144, 0.72);
  box-shadow: 0 9px 24px rgba(203, 91, 143, 0.14), 0 0 15px rgba(255, 156, 194, 0.18);
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 0.56rem;
}

.metric-card strong {
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(300px, 2fr) auto;
  align-items: center;
  gap: 19px;
  min-height: 0;
  padding: 10px 13px;
  border-width: 2px;
  border-color: rgba(242, 169, 198, 0.65);
  border-radius: 22px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 380ms ease, transform 450ms cubic-bezier(.2,.82,.3,1), border-color 300ms ease, box-shadow 300ms ease;
}

.review-strip.is-concealed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px);
}

.review-strip:not(.is-concealed):hover,
.review-strip.is-complete {
  border-color: rgba(225, 75, 137, 0.82);
  box-shadow: 0 15px 38px rgba(191, 68, 127, 0.19), 0 0 27px rgba(255, 139, 183, 0.27);
}

.review-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.review-identity div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.review-identity span,
.review-progress-copy span {
  color: var(--ink-soft);
  font-size: 0.57rem;
}

.review-identity strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-progress-wrap {
  min-width: 0;
}

.review-progress-track {
  height: 6px;
  margin-top: 6px;
}

.review-button {
  position: relative;
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 15px;
  overflow: hidden;
  border: 1px solid rgba(223, 86, 142, 0.24);
  border-radius: 15px;
  background: rgba(255, 229, 239, 0.68);
  color: rgba(83, 60, 91, 0.52);
  font-size: 0.68rem;
  cursor: not-allowed;
}

.review-button:not(:disabled) {
  border-color: rgba(217, 63, 126, 0.7);
  background: linear-gradient(135deg, #ffe3ed, #ff9dbd 52%, #e85c94);
  color: #44223a;
  cursor: pointer;
  box-shadow: inset 0 2px 11px rgba(255, 255, 255, 0.82), 0 10px 28px rgba(199, 67, 126, 0.22), 0 0 23px rgba(255, 140, 182, 0.34);
}

.review-button:not(:disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.04) saturate(1.08);
}

.page-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  max-width: calc(100% - 30px);
  padding: 10px 17px;
  border: 1px solid rgba(226, 102, 152, 0.24);
  border-radius: 999px;
  background: rgba(255, 244, 248, 0.9);
  color: var(--ink);
  font-size: 0.7rem;
  box-shadow: 0 16px 40px rgba(116, 67, 106, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  backdrop-filter: blur(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.page-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes ambient-drift { to { transform: translate3d(4vw, -3vh, 0) scale(1.1); } }
@keyframes network-flow { to { stroke-dashoffset: -92; } }
@keyframes node-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; transform: scale(1.16); } }
@keyframes live-pulse { 0%, 100% { opacity: 0.62; } 50% { opacity: 1; } }
@keyframes button-shine { from { left: -48%; } to { left: 126%; } }
@keyframes review-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .analyze-shell {
    width: calc(100% - 18px);
    padding: 7px 0 9px;
  }

  .topbar {
    min-height: 48px;
  }

  .back-link {
    gap: 5px;
    padding: 7px 9px;
    font-size: 0.65rem;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-lockup strong {
    font-size: 0.8rem;
  }

  .brand-lockup small,
  .page-label {
    display: none;
  }

  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: 132px minmax(0, 1fr);
    gap: 8px;
    height: calc(100% - 54px);
    padding-top: 5px;
    min-width: 0;
  }

  .upload-panel {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: 62px 46px;
    align-items: center;
    gap: 8px 9px;
    height: 132px;
    padding: 8px;
    border-radius: 18px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .section-label,
  .task-token {
    display: none;
  }

  .upload-button {
    min-height: 62px;
    gap: 7px;
    padding: 8px;
    border-radius: 15px;
  }

  .upload-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .upload-icon img {
    width: 18px;
    height: 18px;
  }

  .upload-copy strong {
    font-size: 0.68rem;
  }

  .upload-copy small,
  .upload-arrow {
    display: none;
  }

  .upload-progress {
    min-width: 0;
    margin: 0;
    padding: 9px;
    border-radius: 14px;
  }

  .upload-progress p {
    margin-top: 5px;
    font-size: 0.52rem;
  }

  .review-entry {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 46px;
    height: 46px;
    margin-top: 0;
    padding: 6px 9px;
    border-radius: 14px;
  }

  .review-entry .review-icon {
    width: 31px;
    height: 31px;
  }

  .review-entry-copy strong {
    font-size: 0.64rem;
  }

  .review-entry-copy em {
    font-size: 0.44rem;
  }

  .analysis-panel {
    grid-row: 2;
    gap: 7px;
    padding: 9px;
    border-width: 3px;
    border-radius: 21px;
    width: 100%;
    max-width: 100%;
  }

  .panel-kicker {
    display: none;
  }

  .analysis-heading h1 {
    font-size: 0.91rem;
  }

  .live-status {
    max-width: 58%;
    padding: 5px 8px;
    font-size: 0.55rem;
  }

  .frame-stage {
    border-radius: 15px;
  }

  .placeholder-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 7px;
    border-radius: 15px;
  }

  .placeholder-icon img {
    width: 24px;
    height: 24px;
  }

  .frame-placeholder strong {
    font-size: 0.74rem;
  }

  .frame-placeholder p {
    max-width: 240px;
    font-size: 0.55rem;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .metric-card {
    gap: 1px;
    padding: 5px 7px;
    border-width: 1px;
    border-radius: 10px;
  }

  .metric-card span {
    font-size: 0.46rem;
  }

  .metric-card strong {
    font-size: 0.57rem;
  }

  .review-strip {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
    gap: 7px;
    height: 66px;
    padding: 7px;
    border-radius: 16px;
  }

  .review-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .review-icon img {
    width: 19px;
    height: 19px;
  }

  .review-identity span,
  .review-progress-copy span {
    font-size: 0.46rem;
  }

  .review-identity strong {
    font-size: 0.56rem;
  }

  .review-button {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 13px;
  }

  .review-button span:first-child {
    display: none;
  }
}

@media (max-height: 650px) {
  .analyze-shell {
    padding-top: 5px;
  }

  .topbar {
    min-height: 42px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .workspace {
    height: calc(100% - 46px);
    grid-template-rows: minmax(0, 1fr);
  }

  .upload-panel {
    padding: 11px;
  }

  .section-label {
    margin-bottom: 8px;
  }

  .upload-progress {
    margin-top: 8px;
  }

  .task-token {
    display: none;
  }

  .analysis-panel {
    gap: 7px;
    padding: 10px;
  }

  .placeholder-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 7px;
  }

  .metric-card {
    padding: 6px 9px;
  }
}

@media (max-width: 760px) and (max-height: 650px) {
  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: 112px minmax(0, 1fr);
  }

  .upload-panel {
    grid-template-rows: 52px 40px;
    height: 112px;
    padding: 6px;
  }

  .upload-button {
    min-height: 54px;
  }

  .upload-progress {
    padding: 6px 8px;
  }

  .review-entry {
    min-height: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
