
    :root {
      --ink: #07162e;
      --muted: #63728a;
      --bg: #eef4fb;
      --panel: #ffffff;
      --line: #d8e2ee;
      --blue: #2563eb;
      --blue-soft: #e9f1ff;
      --cyan: #16a7b5;
      --cyan-soft: #e7f8fa;
      --green: #14a46f;
      --green-soft: #e8f8f0;
      --amber: #f3a12f;
      --amber-soft: #fff5df;
      --pink: #db2777;
      --pink-soft: #ffeaf4;
      --violet: #8b5cf6;
      --violet-soft: #f2ecff;
      font-family: Inter, "Segoe UI", Arial, sans-serif;
      color-scheme: light;
    }

    * { box-sizing: border-box; }

    html,
    body {
      width: 100%;
      height: 100%;
      margin: 0;
      overflow: hidden;
      background:
        linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
        var(--bg);
      background-size: 38px 38px;
      color: var(--ink);
    }

    .shell {
      width: 100vw;
      height: 100vh;
      display: grid;
      place-items: center;
      overflow: hidden;
      padding: 10px;
    }

    .stage {
      position: relative;
      width: 680px;
      height: 430px;
      transform-origin: left top;
      overflow: hidden;
      border: 1px solid rgba(7, 22, 46, 0.18);
      background:
        radial-gradient(circle at 60% 12%, rgba(37, 99, 235, 0.13), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 252, 0.96));
      box-shadow: 0 24px 58px rgba(18, 42, 78, 0.18);
      isolation: isolate;
    }

    .stage::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(37, 99, 235, 0.052) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.052) 1px, transparent 1px);
      background-size: 28px 28px;
      animation: grid-drift 18s linear infinite;
    }

    .paused .stage,
    .paused .stage *,
    .paused .stage::before {
      animation-play-state: paused !important;
    }

    .app {
      position: absolute;
      inset: 12px 12px 38px 12px;
      z-index: 2;
      display: grid;
      grid-template-rows: 30px 32px 1fr 68px;
      overflow: hidden;
      border: 1px solid #cfd9e7;
      background: #ffffff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    .titlebar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 10px;
      min-width: 0;
      padding: 0 12px;
      border-bottom: 1px solid #e2e8f2;
      background: #fbfdff;
    }

    .doc-title {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      color: var(--ink);
      font-size: 11px;
      line-height: 1;
      font-weight: 880;
    }

    .doc-title i::before {
      content: "\25cc";
      display: grid;
      place-items: center;
      width: 18px;
      height: 18px;
      border: 1px solid rgba(37, 99, 235, 0.26);
      border-radius: 5px;
      color: var(--blue);
      background: var(--blue-soft);
      font-family: Inter, "Segoe UI", Arial, sans-serif;
      font-style: normal;
      font-size: 11px;
      line-height: 1;
    }

    .doc-title b {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .doc-title span {
      color: var(--muted);
      font-size: 9.2px;
      font-weight: 780;
    }

    .prep-status {
      display: flex;
      align-items: center;
      gap: 6px;
      height: 20px;
      min-width: 116px;
      padding: 0 8px;
      border: 1px solid rgba(22, 167, 181, 0.28);
      border-radius: 999px;
      background: rgba(231, 248, 250, 0.82);
      color: #0f6f79;
      font-size: 7.6px;
      line-height: 1;
      font-weight: 920;
      white-space: nowrap;
    }

    .prep-status::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--cyan);
      box-shadow: 0 0 11px rgba(22, 167, 181, 0.48);
      animation: ping-dot 1.55s ease-in-out infinite;
    }

    .prep-status b {
      color: var(--ink);
      font-size: 8px;
      font-weight: 950;
    }

    .window-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #7b889b;
      font-size: 16px;
      line-height: 1;
    }

    .chips {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 0 8px;
      border-bottom: 1px solid #e2e8f2;
      background: #f8fbff;
      overflow: hidden;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      height: 17px;
      border-radius: 999px;
      padding: 0 6px;
      background: var(--soft);
      color: var(--color);
      font-size: 7.3px;
      line-height: 1;
      font-weight: 900;
      white-space: nowrap;
      animation: chip-live 4.8s ease-in-out infinite;
      animation-delay: var(--delay);
    }

    .chip b {
      color: inherit;
      font-size: 7.8px;
      font-weight: 950;
    }

    .chip::before {
      content: "";
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--color);
      box-shadow: 0 0 9px color-mix(in srgb, var(--color), transparent 35%);
    }

    .chip.ready { --color: var(--green); --soft: var(--green-soft); --delay: 0s; }
    .chip.cache { --color: var(--blue); --soft: var(--blue-soft); --delay: 0.35s; }
    .chip.pdf { --color: var(--amber); --soft: var(--amber-soft); --delay: 1.05s; }
    .chip.source { --color: var(--cyan); --soft: var(--cyan-soft); --delay: 1.4s; }

    .workspace {
      position: relative;
      min-height: 0;
      display: grid;
      grid-template-columns: 108px minmax(0, 1fr) 136px;
      gap: 8px;
      padding: 8px;
      background: #f2f6fb;
      overflow: hidden;
    }

    .history,
    .chat,
    .viewer {
      position: relative;
      min-width: 0;
      overflow: hidden;
      border: 1px solid #e0e7f1;
      background: #ffffff;
      box-shadow: 0 8px 18px rgba(18, 42, 78, 0.06);
    }

    .history {
      padding: 8px 6px;
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 6px;
    }

    .panel-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      color: var(--ink);
      font-size: 8.2px;
      line-height: 1;
      font-weight: 950;
    }

    .panel-title span {
      color: var(--muted);
      font-size: 7px;
      font-weight: 780;
    }

    .asked-list {
      display: grid;
      align-content: start;
      gap: 6px;
      min-height: 0;
    }

    .asked {
      position: relative;
      min-height: 36px;
      border: 1px solid #edf2f7;
      border-left: 3px solid var(--asked-color, var(--blue));
      border-radius: 6px;
      background: var(--asked-soft, #f7fbff);
      padding: 6px 6px 5px;
      overflow: hidden;
      animation: asked-live 5s ease-in-out infinite;
      animation-delay: var(--delay);
    }

    .asked strong {
      display: block;
      color: var(--asked-color, var(--blue));
      font-size: 7.4px;
      line-height: 1;
      font-weight: 950;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .asked span {
      display: block;
      margin-top: 4px;
      color: #495b72;
      font-size: 6.7px;
      line-height: 1.18;
      font-weight: 730;
    }

    .asked.a1 { --asked-color: var(--blue); --asked-soft: #f6faff; --delay: 0.2s; }
    .asked.a2 { --asked-color: var(--green); --asked-soft: var(--green-soft); --delay: 0.8s; }
    .asked.a3 { --asked-color: var(--cyan); --asked-soft: var(--cyan-soft); --delay: 1.4s; }
    .asked.a4 { --asked-color: var(--pink); --asked-soft: var(--pink-soft); --delay: 2s; }

    .chat {
      display: grid;
      grid-template-rows: 28px 1fr 34px;
      background: #fbfdff;
    }

    .chat-head {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-width: 0;
      padding: 0 8px;
      border-bottom: 1px solid #edf2f7;
      color: var(--ink);
      font-size: 8px;
      line-height: 1;
      font-weight: 920;
    }

    .chat-head b {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .chat-head b::before {
      content: "";
      width: 10px;
      height: 10px;
      border-radius: 2px;
      background:
        linear-gradient(90deg, #e64855 0 40%, transparent 40%),
        linear-gradient(#ffffff, #ffffff);
      border: 1px solid rgba(230, 72, 85, 0.35);
    }

    .chat-head span {
      flex: 0 0 auto;
      color: var(--muted);
      font-size: 7px;
      font-weight: 780;
    }

    .conversation {
      position: relative;
      min-height: 0;
      padding: 10px 10px 8px;
      overflow: hidden;
    }

    .prepare-card {
      position: absolute;
      left: 12px;
      right: 12px;
      top: 14px;
      z-index: 20;
      min-height: 96px;
      display: grid;
      grid-template-columns: 66px 1fr;
      gap: 11px;
      align-items: center;
      border: 1px solid rgba(37, 99, 235, 0.18);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.96);
      padding: 13px;
      box-shadow: 0 18px 34px rgba(18, 42, 78, 0.16);
      opacity: 1;
      transform: translateY(0);
      transition: opacity 360ms ease, transform 360ms ease;
    }

    .stage.is-ready .prepare-card {
      opacity: 0;
      transform: translateY(-12px);
      pointer-events: none;
    }

    .file-card {
      height: 64px;
      display: grid;
      place-items: center;
      border: 1px solid #d9e5f2;
      border-radius: 7px;
      background:
        linear-gradient(135deg, #ffffff 0 72%, #edf3fb 72%),
        #ffffff;
      box-shadow: 0 10px 18px rgba(18, 42, 78, 0.08);
      animation: file-select 4.2s ease-in-out infinite;
    }

    .file-card::before {
      content: "PDF";
      display: grid;
      place-items: center;
      width: 34px;
      height: 40px;
      border-radius: 5px;
      background: #fff3f4;
      color: #e64855;
      font-size: 10px;
      line-height: 1;
      font-weight: 950;
      box-shadow: inset 0 0 0 1px rgba(230, 72, 85, 0.18);
    }

    .prepare-copy strong {
      display: block;
      color: var(--ink);
      font-size: 12px;
      line-height: 1.1;
      font-weight: 950;
    }

    .prepare-copy p {
      margin: 7px 0 9px;
      color: #42536a;
      font-size: 8px;
      line-height: 1.25;
      font-weight: 760;
    }

    .prepare-bar {
      height: 5px;
      overflow: hidden;
      border-radius: 999px;
      background: #d9e6f2;
    }

    .prepare-bar span {
      display: block;
      height: 100%;
      width: var(--prep, 0%);
      border-radius: inherit;
      background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
      box-shadow: 0 0 12px rgba(22, 167, 181, 0.34);
      transition: width 120ms linear;
    }

    .messages {
      position: relative;
      display: grid;
      align-content: end;
      gap: 8px;
      height: 100%;
      padding-top: 86px;
      transition: padding-top 360ms ease;
    }

    .stage.is-ready .messages {
      padding-top: 54px;
    }

    .stage.is-answering .messages {
      padding-top: 18px;
    }

    .suggestions {
      position: absolute;
      left: 10px;
      right: 10px;
      top: 38px;
      z-index: 5;
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      opacity: 0;
      transform: translateY(12px);
      transition: opacity 360ms ease, transform 360ms ease;
    }

    .stage.is-ready .suggestions {
      opacity: 1;
      transform: translateY(0);
    }

    .stage.is-answering .suggestions {
      opacity: 0;
      transform: translateY(6px);
      pointer-events: none;
    }

    .suggestion {
      min-height: 21px;
      display: flex;
      align-items: center;
      gap: 5px;
      min-width: 0;
      border: 1px solid #dfe7f2;
      border-radius: 6px;
      background: #ffffff;
      padding: 5px 7px;
      color: #52657c;
      font-size: 6.8px;
      line-height: 1.12;
      font-weight: 790;
      box-shadow: 0 6px 12px rgba(18, 42, 78, 0.04);
    }

    .suggestion::before {
      content: "";
      width: 5px;
      height: 5px;
      flex: 0 0 auto;
      border-radius: 50%;
      background: var(--blue);
    }

    .message {
      position: relative;
      max-width: 94%;
      border-radius: 8px;
      padding: 8px 9px;
      font-size: 8.25px;
      line-height: 1.28;
      font-weight: 760;
      box-shadow: 0 8px 18px rgba(18, 42, 78, 0.06);
    }

    .message.user {
      justify-self: end;
      background: var(--blue);
      color: #ffffff;
      opacity: 0;
      transform: translateY(12px);
      transition: opacity 280ms ease, transform 280ms ease;
    }

    .stage.is-answering .message.user {
      opacity: 1;
      transform: translateY(0);
    }

    .message.bot {
      justify-self: start;
      border: 1px solid #e2e8f2;
      background: #ffffff;
      color: #2c3e56;
      min-height: 74px;
      opacity: 0;
      transform: translateY(12px);
      transition: opacity 300ms ease 80ms, transform 300ms ease 80ms;
    }

    .stage.is-answering .message.bot {
      opacity: 1;
      transform: translateY(0);
    }

    .message.bot::before {
      content: "AI";
      position: absolute;
      left: -8px;
      top: -8px;
      display: grid;
      place-items: center;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--cyan);
      color: #ffffff;
      font-size: 8px;
      line-height: 1;
      font-weight: 950;
      box-shadow: 0 0 16px rgba(22, 167, 181, 0.35);
    }

    .source-tag {
      display: inline-grid;
      place-items: center;
      min-width: 15px;
      height: 15px;
      margin-left: 3px;
      border-radius: 50%;
      background: var(--blue-soft);
      color: var(--blue);
      font-size: 7px;
      line-height: 1;
      font-weight: 950;
      vertical-align: 1px;
      animation: tag-pulse 2.2s ease-in-out infinite;
    }

    .answer-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 6px;
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 220ms ease, transform 220ms ease;
    }

    .stage.is-source .answer-meta {
      opacity: 1;
      transform: translateY(0);
    }

    .answer-meta span {
      display: inline-grid;
      place-items: center;
      min-height: 15px;
      border-radius: 999px;
      background: var(--cyan-soft);
      color: #0f6f79;
      padding: 0 6px;
      font-size: 6.5px;
      line-height: 1;
      font-weight: 900;
      white-space: nowrap;
    }

    .input-row {
      display: grid;
      grid-template-columns: 1fr 25px;
      align-items: center;
      gap: 6px;
      padding: 6px 8px;
      border-top: 1px solid #edf2f7;
      background: #ffffff;
    }

    .input-row span {
      height: 22px;
      display: flex;
      align-items: center;
      border: 1px solid #dfe7f2;
      border-radius: 999px;
      padding: 0 10px;
      color: #76869a;
      font-size: 7.2px;
      line-height: 1;
      font-weight: 760;
    }

    .send {
      height: 22px;
      display: grid;
      place-items: center;
      border: 0;
      border-radius: 50%;
      background: var(--blue);
      color: #ffffff;
      font-size: 11px;
      line-height: 1;
      font-weight: 950;
      box-shadow: 0 8px 14px rgba(37, 99, 235, 0.2);
      animation: send-pulse 2.2s ease-in-out infinite;
    }

    .viewer {
      display: grid;
      grid-template-rows: 28px 1fr;
      background: #f9fbfe;
    }

    .viewer-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 8px;
      border-bottom: 1px solid #edf2f7;
      color: var(--ink);
      font-size: 8px;
      line-height: 1;
      font-weight: 920;
    }

    .viewer-head span {
      color: var(--muted);
      font-size: 7px;
      font-weight: 780;
    }

    .doc-page {
      position: relative;
      width: 98px;
      height: 156px;
      margin: 14px auto 0;
      overflow: hidden;
      border: 1px solid #dfe8f3;
      background: #ffffff;
      box-shadow: 0 12px 24px rgba(18, 42, 78, 0.08);
      padding: 12px 10px;
    }

    .doc-logo {
      display: block;
      width: 46px;
      height: 7px;
      border-radius: 2px;
      background: #07162e;
      margin-bottom: 9px;
    }

    .doc-line {
      display: block;
      height: 4px;
      margin-top: 6px;
      border-radius: 999px;
      background: #dfe8f3;
    }

    .doc-line:nth-of-type(2) { width: 82%; }
    .doc-line:nth-of-type(3) { width: 94%; }
    .doc-line:nth-of-type(4) { width: 70%; }
    .doc-line:nth-of-type(5) { width: 90%; }
    .doc-line:nth-of-type(6) { width: 76%; }
    .doc-line:nth-of-type(7) { width: 96%; }
    .doc-line:nth-of-type(8) { width: 66%; }
    .doc-line:nth-of-type(9) { width: 88%; }

    .source-highlight {
      position: absolute;
      left: 10px;
      right: 10px;
      top: 78px;
      height: 31px;
      border: 1px solid rgba(22, 164, 111, 0.62);
      border-radius: 5px;
      background: rgba(232, 248, 240, 0.72);
      box-shadow: 0 0 26px rgba(22, 164, 111, 0.28);
      opacity: 0;
      transform: scaleY(0.78);
      transform-origin: center center;
      transition: opacity 260ms ease, transform 260ms ease;
    }

    .stage.is-source .source-highlight {
      opacity: 1;
      transform: scaleY(1);
      animation: source-breathe 2.4s ease-in-out infinite;
    }

    .source-label {
      position: absolute;
      left: 14px;
      top: 82px;
      z-index: 2;
      min-height: 15px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: rgba(22, 164, 111, 0.95);
      color: #ffffff;
      padding: 0 6px;
      font-size: 6.2px;
      line-height: 1;
      font-weight: 950;
      opacity: 0;
      transform: translateY(5px);
      transition: opacity 220ms ease, transform 220ms ease;
    }

    .stage.is-source .source-label {
      opacity: 1;
      transform: translateY(0);
    }

    .source-pointer {
      position: absolute;
      left: 0;
      top: 0;
      z-index: 38;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: var(--green);
      opacity: 0;
      box-shadow: 0 0 20px rgba(22, 164, 111, 0.46);
      pointer-events: none;
    }

    .source-pointer::after {
      content: "";
      position: absolute;
      inset: -7px;
      border: 1px solid var(--green);
      border-radius: 50%;
      animation: pulse 1.4s ease-in-out infinite;
    }

    .scan-band {
      position: absolute;
      left: 116px;
      top: 35px;
      z-index: 26;
      width: 38%;
      height: calc(100% - 45px);
      pointer-events: none;
      background:
        linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.14), rgba(22, 167, 181, 0.27), rgba(255, 255, 255, 0.56), rgba(22, 167, 181, 0.16), transparent);
      mix-blend-mode: multiply;
      transform: translateX(-135%);
      animation: scan-x 4.7s ease-in-out infinite;
    }

    .scan-band::after {
      content: "";
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 8px);
      opacity: 0.54;
    }

    .link-beam {
      position: absolute;
      left: 300px;
      top: 184px;
      z-index: 24;
      width: 138px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
      opacity: 0;
      transform: scaleX(0.2);
      transform-origin: left center;
      transition: opacity 260ms ease, transform 260ms ease;
      box-shadow: 0 0 14px rgba(22, 167, 181, 0.45);
    }

    .stage.is-source .link-beam {
      opacity: 0.9;
      transform: scaleX(1);
      animation: beam-live 2.3s ease-in-out infinite;
    }

    .footer-metrics {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      padding: 7px 8px 8px;
      background: #eef4fb;
    }

    .metric {
      position: relative;
      min-width: 0;
      overflow: hidden;
      border: 1px solid #dce5f0;
      background: #ffffff;
      padding: 6px 10px 8px;
      box-shadow: 0 9px 18px rgba(18, 42, 78, 0.06);
    }

    .metric::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 3px;
      background: var(--metric-color);
      transform: scaleX(var(--meter, 0.2));
      transform-origin: left center;
      transition: transform 120ms linear;
    }

    .metric strong {
      display: block;
      color: var(--ink);
      font-size: 18px;
      line-height: 1;
      font-weight: 950;
      letter-spacing: 0;
    }

    .metric span {
      display: block;
      margin-top: 4px;
      color: #738197;
      font-size: 9px;
      line-height: 1.12;
      font-weight: 800;
    }

    .metric:nth-child(1) { --metric-color: var(--cyan); }
    .metric:nth-child(2) { --metric-color: var(--blue); }
    .metric:nth-child(3) { --metric-color: var(--green); }

    .progress {
      position: absolute;
      left: 20px;
      right: 58px;
      bottom: 12px;
      z-index: 45;
      height: 4px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(7, 22, 46, 0.12);
    }

    .progress span {
      display: block;
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green), var(--amber), var(--pink));
      box-shadow: 0 0 14px rgba(37, 99, 235, 0.28);
    }

    .controls {
      position: absolute;
      right: 14px;
      bottom: 8px;
      z-index: 48;
      display: flex;
      gap: 5px;
    }

    .control {
      width: 28px;
      height: 24px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(37, 99, 235, 0.36);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.9);
      color: var(--ink);
      font-size: 12px;
      line-height: 1;
      font-weight: 950;
      cursor: pointer;
    }

    @keyframes grid-drift {
      from { background-position: 0 0, 0 0; }
      to { background-position: 56px 28px, -28px 56px; }
    }

    @keyframes ping-dot {
      0%, 100% { transform: scale(0.85); opacity: 0.55; }
      50% { transform: scale(1.18); opacity: 1; }
    }

    @keyframes chip-live {
      0%, 100% { transform: translateY(0); filter: saturate(1); }
      48%, 62% { transform: translateY(-1px); filter: saturate(1.25); }
    }

    @keyframes asked-live {
      0%, 100% { transform: translateX(0); }
      42%, 62% { transform: translateX(3px); }
    }

    @keyframes file-select {
      0%, 100% { transform: translateY(0); }
      45%, 62% { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(37, 99, 235, 0.13); }
    }

    @keyframes tag-pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.12); }
    }

    @keyframes send-pulse {
      0%, 100% { box-shadow: 0 8px 14px rgba(37, 99, 235, 0.2); }
      50% { box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1), 0 10px 18px rgba(37, 99, 235, 0.24); }
    }

    @keyframes source-breathe {
      0%, 100% { box-shadow: 0 0 20px rgba(22, 164, 111, 0.22); }
      50% { box-shadow: 0 0 34px rgba(22, 164, 111, 0.4); }
    }

    @keyframes pulse {
      0%, 100% { transform: scale(0.9); opacity: 0.32; }
      50% { transform: scale(1.22); opacity: 0.9; }
    }

    @keyframes scan-x {
      0%, 100% { transform: translateX(-135%); opacity: 0; }
      12%, 76% { opacity: 1; }
      88% { transform: translateX(190%); opacity: 0; }
    }

    @keyframes beam-live {
      0%, 100% { filter: brightness(1); }
      50% { filter: brightness(1.45); }
    }

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