:root {
  --export-ready: #e4f6ec;
  --export-ready-ink: #205c43;
  --export-ready-border: #83b79e;
  --magnetic-gradient: linear-gradient(145deg, #bd396e, #97264f);
}
html[data-theme="dark"] {
  --export-ready: #264638;
  --export-ready-ink: #c0efd6;
  --export-ready-border: #5f9f80;
  --magnetic-gradient: linear-gradient(145deg, #a53d67, #84304f);
}

.export-slot {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 13.4rem;
  max-inline-size: 100%;
}
.report-actions .export-button {
  display: grid;
  place-items: center;
  inline-size: 100%;
  min-inline-size: 0;
  min-height: 3rem;
  border-radius: 999px;
  color: var(--action);
  transition: inline-size .34s cubic-bezier(.22,.85,.35,1.15), background-color .22s ease, color .22s ease, box-shadow .18s ease;
}
.report-actions .export-button[data-export-state="loading"] {
  inline-size: 3rem;
  cursor: progress;
}
.report-actions .export-button[data-export-state="success"] {
  color: var(--export-ready-ink);
  background: var(--export-ready);
  border-color: var(--export-ready-border);
  box-shadow: none;
}
.export-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding-inline: .55rem;
  font-size: .82rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(.36rem);
  transition: opacity .14s ease, transform .26s cubic-bezier(.2,.64,.32,1);
}
.export-button:not([data-export-state]) .export-face-idle,
.export-button[data-export-state="idle"] .export-face-idle,
.export-button[data-export-state="loading"] .export-face-loading,
.export-button[data-export-state="success"] .export-face-success,
.export-button[data-export-state="error"] .export-face-error { opacity: 1; transform: translateY(0); }
.export-spinner {
  inline-size: 1.13rem;
  block-size: 1.13rem;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
}
.export-button[data-export-state="loading"] .export-spinner { animation: export-spin .68s linear infinite; }
.export-button[data-export-state="success"] .export-face-success path {
  stroke-dasharray: 1;
  animation: export-draw .32s .12s ease-out both;
}
@keyframes export-spin { to { transform: rotate(1turn); } }
@keyframes export-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.login-form .login-submit {
  position: relative;
  min-height: 3.1rem;
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.login-form .login-submit:is(:hover, :active) { background: transparent; box-shadow: none; }
html[data-theme="dark"] .login-shell .motion-button { background: var(--workspace-card); color: var(--muted); }
.login-submit-face {
  --login-glass: linear-gradient(150deg, #fff5facf, #fddee6c7 48%, #ed9cbbd9), #f7c7d9;
  --login-glass-ink: #681f43;
  --login-glass-edge: #d17a9d;
  --login-glass-bevel: inset 0 1px 1px #fffffff5, inset 0 -2px 5px #96214c29;
  --login-glass-glow: 0 6px 17px #ac295c36, 0 0 17px #f1699c42;
  --login-glass-glow-active: 0 7px 21px #ac295c48, 0 0 24px #ec579469;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 3.25rem;
  border: 1px solid var(--login-glass-edge);
  border-radius: inherit;
  color: var(--login-glass-ink);
  background: var(--login-glass);
  box-shadow: var(--login-glass-bevel), var(--login-glass-glow);
  letter-spacing: .012em;
  pointer-events: none;
  transition: box-shadow .22s ease, scale .2s var(--workspace-ease);
}
[data-theme="dark"] .login-submit-face {
  --login-glass: linear-gradient(158deg, #ffa7c453, #e4609038 46%, #df448c19), #4c2137;
  --login-glass-ink: #fff5f8;
  --login-glass-edge: #d78aab;
  --login-glass-bevel: inset 0 1px 1px #ffedf1a6, inset 0 -2px 6px #21091870;
  --login-glass-glow: 0 6px 18px #cf407d42, 0 0 16px #f270ab36;
  --login-glass-glow-active: 0 8px 24px #d2418262, 0 0 24px #fa75ae62;
}
.login-submit-face::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, #ffe5ef30 43%, #fff4f88c 50%, #ffe5ef30 56%, transparent 70%);
  opacity: 0;
}
.login-submit:focus-visible .login-submit-face {
  box-shadow: var(--login-glass-bevel), var(--login-glass-glow-active);
}
@media (hover: hover) {
  .login-submit:hover .login-submit-face {
    box-shadow: var(--login-glass-bevel), var(--login-glass-glow-active);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .login-submit:focus-visible .login-submit-face::before { animation: login-glass-sheen .72s var(--workspace-ease); }
  @media (hover: hover) {
    .login-submit:hover .login-submit-face::before { animation: login-glass-sheen .72s var(--workspace-ease); }
  }
  @media (hover: none) {
    .login-submit:active .login-submit-face { scale: .97; }
  }
}
@keyframes login-glass-sheen {
  0% { opacity: 0; transform: translateX(-80%); }
  30%, 70% { opacity: .8; }
  100% { opacity: 0; transform: translateX(80%); }
}
@media (forced-colors: active) {
  .login-submit-face { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
  .login-submit-face::before { display: none; }
}

/* Share the export button's inset light and outer ring with the other controls. */
button:not(:disabled, .login-submit, [data-copied], [data-export-state="success"]):focus-visible {
  box-shadow: var(--button-glow);
}
@media (hover: hover) {
  button:not(:disabled, .login-submit, [data-copied], [data-export-state="success"]):hover {
    box-shadow: var(--button-glow);
  }
}

.springy-field { position: relative; display: block; width: 100%; min-width: 0; }
.springy-mirror {
  position: absolute;
  inset-block: 1px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  white-space: pre;
  pointer-events: none;
}
.springy-line { grid-area: 1 / 1; justify-self: start; width: max-content; }
.springy-removed { color: transparent; }
.springy-removed .springy-glyph { color: var(--action); }
.springy-glyph { display: inline-block; }
input.springy-native { color: transparent; caret-color: var(--ink); }
input.springy-native::placeholder { opacity: 0; }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  padding: 0 1.4rem .85rem;
  margin: 0;
  list-style: none;
}
.filter-chips li { min-width: 0; max-width: 100%; }
.filter-chip {
  display: flex;
  align-items: center;
  gap: .44rem;
  max-width: 100%;
  min-height: 2rem;
  padding: .25rem .56rem .25rem .67rem;
  color: var(--ink);
  background: var(--pink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-align: start;
}
.filter-chip-mark { flex: 0 0 auto; color: var(--action); font-size: 1.08rem; line-height: 1; }
@media (max-width: 39rem) { .filter-chips { padding-inline: 1.15rem; } }

@media (prefers-reduced-motion: reduce) {
  .report-actions .export-button, .export-face, .login-submit-face { transition: none; }
  .export-button[data-export-state="loading"] .export-spinner,
  .export-button[data-export-state="success"] .export-face-success path { animation: none; }
}
