/* Friis design system (design-system/MOTION-AND-3D.md): tokens, raised/inset surfaces, springy motion.
   Mobile adaptation: 15px UI text and 16px inputs (iOS zooms into anything smaller), 44px+ touch targets. */

:root, [data-theme="dark"] {
  --win: #0A0B0D;
  --text: #EDEEF0; --muted: #8C929B; --faint: #5D646E;
  --accent: #1FC495; --accent-text: #5FE3BC;
  --ok: #3DD68C; --moon: #FFC44D; --err: #FF6B5E;
  --line: #20242A; --divider: #1C2025;

  --raised-fill: linear-gradient(#23282E, #16191D);
  --raised-fill-hover: linear-gradient(#2B3138, #1C2025);
  --raised-edge: linear-gradient(#535B66 0%, #262B31 35%, #1A1D22 80%, #030304 100%);
  --panel-fill: linear-gradient(#15181C, #111316);
  --panel: #15181C;
  --panel-edge: linear-gradient(#2B3037 0%, #191C21 30%, #050607 100%);
  --inset-fill: #0D0F11;
  --inset-edge: linear-gradient(#030304 0%, #15181C 50%, #2A2F36 100%);
  --accent-fill: linear-gradient(#17A97E, #0B8763);
  --accent-fill-hover: linear-gradient(#1CB688, #0E926B);
  --accent-edge: linear-gradient(#7FE8C8 0%, #0E9670 40%, #05402F 100%);
  --knob: #C9CDD2; --knob-edge: #4A4F56;

  --panel-shadow: 0 6px 22px rgba(0, 0, 0, .55);
  --soft-shadow: 0 3px 10px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

[data-theme="light"] {
  --win: #E8EAEE; --text: #16181B; --muted: #59606A; --faint: #8A9099;
  --accent: #0E9F75; --accent-text: #0B7F5E; --err: #D93A2B;
  --line: #D6D9DE; --divider: #E3E6EA;
  --raised-fill: linear-gradient(#FFFFFF, #F2F3F5);
  --raised-fill-hover: linear-gradient(#FFFFFF, #E9EBEE);
  --raised-edge: linear-gradient(#FFFFFF 0%, #DDE0E4 35%, #CDD1D7 80%, #A3A9B1 100%);
  --panel-fill: linear-gradient(#FDFDFE, #F7F8FA); --panel: #FDFDFE;
  --panel-edge: linear-gradient(#FFFFFF 0%, #E2E5E9 30%, #BEC3CA 100%);
  --inset-fill: #EEF0F3;
  --inset-edge: linear-gradient(#B9BEC6 0%, #DFE2E6 50%, #FFFFFF 100%);
  --accent-edge: linear-gradient(#7FE8C8 0%, #0E9670 40%, #076B4F 100%);
  --knob: #FFFFFF; --knob-edge: #A9AEB6;
  --panel-shadow: 0 6px 24px rgba(58, 68, 82, .16);
  --soft-shadow: 0 3px 10px rgba(58, 68, 82, .2);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--win); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--win);
  color: var(--text);
  font: 15px/1.4 "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(36px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: grid;
  gap: 14px;
}

/* ---------- surfaces ---------- */
.raised {
  border: 1px solid transparent; border-bottom-width: 3px;
  background: var(--raised-fill) padding-box, var(--raised-edge) border-box;
  border-radius: 12px;
}
.panel {
  border: 1px solid transparent;
  background: var(--panel-fill) padding-box, var(--panel-edge) border-box;
  border-radius: 16px;
  box-shadow: var(--panel-shadow);
}
.inset {
  border: 1px solid transparent; border-top-width: 2px;
  background: linear-gradient(var(--inset-fill), var(--inset-fill)) padding-box, var(--inset-edge) border-box;
  border-radius: 10px;
}

/* ---------- header ---------- */
.brand { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 10px 8px 4px; }
.logo { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); margin-bottom: 6px; }
h1 { margin: 0; font-size: 26px; font-weight: 750; letter-spacing: -0.02em; }
.sub { margin: 0; max-width: 300px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.sub strong { color: var(--accent-text); font-weight: 650; }

/* ---------- composer ---------- */
.composer { padding: 16px; display: grid; gap: 12px; }
.field { position: relative; }
textarea, input {
  width: 100%;
  font: inherit; font-size: 16px;
  color: var(--text);
  padding: 12px 14px;
  resize: none;
  outline: none;
}
#input { text-align: center; padding: 16px 40px; min-height: 76px; line-height: 1.35; }
textarea::placeholder, input::placeholder { color: var(--faint); }
textarea:focus-visible, input:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.clear {
  position: absolute; top: 50%; right: 8px; translate: 0 -50%;
  width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--muted); cursor: pointer;
}
.clear svg { width: 14px; height: 14px; }
.big { width: 100%; min-height: 58px; font-size: 17px; border-radius: 14px; }
.big .ico { width: 20px; height: 20px; }
#go .i-find { display: none; }
#go.find .i-find { display: block; }
#go.find .i-paste, #go.busy .i-paste, #go.busy .i-find { display: none; }
.tip { margin: -2px 0 0; text-align: center; font-size: 12.5px; color: var(--faint); }
.tip b { color: var(--muted); font-weight: 600; }

fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
fieldset label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }

/* ---------- buttons ---------- */
.raised-btn, .accent-btn, .ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px;
  border: 1px solid transparent; border-bottom-width: 4px;
  border-radius: 10px; white-space: nowrap; outline: none;
  font: inherit; font-size: 15px; cursor: pointer; text-decoration: none;
  user-select: none; -webkit-user-select: none;
}
.raised-btn { background: var(--raised-fill) padding-box, var(--raised-edge) border-box; color: var(--text); font-weight: 600; }
.accent-btn { background: var(--accent-fill) padding-box, var(--accent-edge) border-box; color: #fff; font-weight: 600; box-shadow: var(--soft-shadow); }
.accent-btn:disabled { background: var(--raised-fill) padding-box, var(--raised-edge) border-box; color: var(--muted); box-shadow: none; cursor: progress; }
.ghost { background: transparent; border-bottom-width: 3px; color: var(--muted); min-height: 42px; padding: 0 12px; font-weight: 500; }
@media (hover: hover) {
  .raised-btn:hover { background: var(--raised-fill-hover) padding-box, var(--raised-edge) border-box; }
  .accent-btn:not(:disabled):hover { background: var(--accent-fill-hover) padding-box, var(--accent-edge) border-box; }
  .ghost:hover { background: var(--raised-fill) padding-box, var(--raised-edge) border-box; color: var(--text); }
}
:is(.raised-btn, .accent-btn, .ghost):focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.ico { width: 18px; height: 18px; flex: none; }
.accent-btn .spin { display: none; }
.accent-btn.busy .spin { display: block; animation: spin .9s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- searching ---------- */
.searching { padding: 22px 18px 18px; display: grid; gap: 18px; justify-items: center; overflow: hidden; }
.stage { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.stage .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 25%, transparent), inset 0 0 18px color-mix(in srgb, var(--accent) 20%, transparent);
  animation: pulse 1.8s ease-out infinite;
}
.stage .ring.r2 { animation-delay: .9s; }
@keyframes pulse { from { scale: .6; opacity: 1; } to { scale: 1.25; opacity: 0; } }
.stage .well {
  position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid transparent; border-top-width: 2px;
  background: linear-gradient(var(--inset-fill), var(--inset-fill)) padding-box, var(--inset-edge) border-box;
}
.eq { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.eq i {
  display: block; width: 6px; height: 100%; border-radius: 3px;
  background: var(--accent-fill);
  transform-origin: bottom;
  animation: eq 1s var(--bouncy, ease-in-out) infinite alternate;
}
.eq i:nth-child(1) { animation-duration: .82s; }
.eq i:nth-child(2) { animation-duration: 1.1s; animation-delay: -.3s; }
.eq i:nth-child(3) { animation-duration: .7s; animation-delay: -.5s; }
.eq i:nth-child(4) { animation-duration: .95s; animation-delay: -.2s; }
.eq i:nth-child(5) { animation-duration: .76s; animation-delay: -.65s; }
@keyframes eq { from { scale: 1 .18; } to { scale: 1 1; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; width: 100%; max-width: 300px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 14px; transition: color .22s ease; }
.steps li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid transparent; border-top-width: 2px;
  background: linear-gradient(var(--inset-fill), var(--inset-fill)) padding-box, var(--inset-edge) border-box;
}
.steps li.active { color: var(--text); font-weight: 600; }
.steps li.active::before {
  background: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px) padding-box, var(--inset-edge) border-box, var(--inset-fill);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent);
}
.steps li.done { color: var(--muted); }
.steps li.done::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--accent-fill) padding-box, var(--accent-edge) border-box;
}

.progress { display: flex; align-items: center; gap: 12px; width: 100%; }
.progress .track { position: relative; flex: 1; height: 10px; border-radius: 6px; overflow: hidden; padding: 0; }
.progress .bar {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: var(--accent-fill); border-radius: 6px; overflow: hidden;
  transition: width .45s cubic-bezier(.3, .7, .3, 1);
}
.progress .shine {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: shine 1.3s linear infinite;
}
@keyframes shine { from { translate: -100% 0; } to { translate: 100% 0; } }
.progress .pct { min-width: 46px; text-align: right; font: 700 20px/1 "Cascadia Mono", Consolas, ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--accent-text); }

/* ---------- status notice ---------- */
#status:empty { display: none; }
.notice { padding: 14px 16px; display: grid; gap: 10px; }
.notice .msg { display: flex; gap: 10px; align-items: flex-start; }
.notice .msg .dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--faint); }
.notice.warn .msg .dot { background: var(--moon); box-shadow: 0 0 10px color-mix(in srgb, var(--moon) 45%, transparent); }
.notice.err .msg .dot { background: var(--err); box-shadow: 0 0 10px color-mix(in srgb, var(--err) 45%, transparent); }
.notice .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice .actions > * { flex: 1 1 auto; min-height: 42px; border-bottom-width: 3px; font-size: 14px; }

/* ---------- results: "now playing" view ---------- */
#out { display: grid; gap: 14px; }
#out:empty { display: none; }

/* Ambient page glow from the album art */
#ambient {
  position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.5) brightness(.6);
  opacity: 0; transition: opacity .7s ease;
}
#ambient.on { opacity: .9; }
[data-theme="light"] #ambient { filter: blur(70px) saturate(1.4) brightness(1.15); }
[data-theme="light"] #ambient.on { opacity: .55; }
#ambient-fade {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--win) 35%, transparent) 50%, var(--win) 92%);
}
body { isolation: isolate; }

.now { display: grid; justify-items: center; gap: 14px; padding-top: 6px; }
.now .cover-wrap { position: relative; width: min(64vw, 236px); aspect-ratio: 1; }
.now .cover {
  width: 100%; height: 100%; object-fit: cover; border-radius: 24px; display: block;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
.now .cover.placeholder { display: grid; place-items: center; background: var(--raised-fill); }
.now .cover.placeholder svg { width: 40%; height: 40%; color: var(--faint); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  font-size: 13px; color: var(--muted);
}
.pill .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: #fff; font-size: 12px; font-weight: 800; }
.pill b { color: var(--text); font-weight: 650; }

.glass {
  width: 100%;
  border-radius: 26px; padding: 18px 16px 16px;
  background: color-mix(in srgb, var(--panel) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: var(--panel-shadow);
  display: grid; gap: 14px;
}
.np-head { display: grid; gap: 2px; text-align: center; }
.np-title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 750; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.np-artist { margin: 0; color: var(--muted); font-size: 15.5px; overflow-wrap: anywhere; }
.np-album { margin: 2px 0 0; color: var(--faint); font-size: 12.5px; overflow-wrap: anywhere; }

/* match evidence, drawn like a player's progress bar */
.evidence { display: grid; gap: 6px; }
.evidence .line { position: relative; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 14%, transparent); overflow: hidden; }
.evidence .line i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--accent-fill); transition: width 1.1s cubic-bezier(.2,.65,.3,1) .35s; }
.evidence .ends { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--faint); }
.evidence .ends .mono { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.evidence .ends .mid { color: var(--accent-text); font-weight: 600; text-align: center; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line);
}
.chip.active {
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
}
.np-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.np-tags:empty { display: none; }

.glass .copy { width: 100%; min-height: 56px; font-size: 16.5px; border-radius: 16px; }
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.share-grid .raised-btn { min-height: 52px; padding: 0 10px; font-size: 14.5px; justify-content: flex-start; gap: 10px; }
.brand-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; }
.brand-ico svg { width: 17px; height: 17px; }
.bi-wechat { background: linear-gradient(#2DD46B, #07B53B); }
.bi-snap { background: linear-gradient(#FFF860, #FFE600); color: #111; }
.bi-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.bi-share { background: var(--accent-fill); }
.minor { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: -4px; }

/* ---------- other results: list rows ---------- */
.list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 4px 0; }
.list-head h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.list-head span { font-size: 12.5px; color: var(--faint); }
.list { padding: 6px; display: grid; gap: 2px; border-radius: 22px; }
.row {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center;
  padding: 8px; border-radius: 16px; cursor: pointer; text-align: left;
  background: transparent; border: 0; color: inherit; font: inherit; width: 100%;
}
.row + .row { box-shadow: 0 -1px 0 color-mix(in srgb, var(--text) 6%, transparent); }
@media (hover: hover) { .row:hover { background: color-mix(in srgb, var(--text) 5%, transparent); } }
.row:focus-visible { outline: 2px solid var(--accent); }
.thumb { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--raised-fill); display: grid; place-items: center; box-shadow: var(--soft-shadow); }
.thumb svg { width: 22px; height: 22px; color: var(--faint); }
.row .t { min-width: 0; display: grid; gap: 1px; }
.row .t1 { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t2 { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t3 { color: var(--faint); font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row .t3 .chip { padding: 1px 7px; font-size: 11px; }
.row .t3 .good { color: var(--ok); }
.row .use { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-bottom-width: 3px; }

/* ---------- settings (fold-down card) ---------- */
.settings { padding: 0; overflow: hidden; }
.settings summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; color: var(--muted); font-weight: 600; font-size: 14px;
}
.settings summary::-webkit-details-marker { display: none; }
.settings .chev { width: 18px; height: 18px; transition: rotate .25s; }
.settings[open] .chev { rotate: 180deg; }
.settings-body { padding: 0 16px 16px; display: grid; gap: 8px; }
.settings-body label { font-size: 13px; color: var(--muted); }
.hint { margin: 0; font-size: 12.5px; color: var(--faint); }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  translate: -50% 0;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid transparent; border-bottom-width: 3px;
  background: var(--raised-fill) padding-box, var(--raised-edge) border-box;
  box-shadow: var(--panel-shadow);
  color: var(--text); font-weight: 600; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
  opacity: 0; pointer-events: none;
}
#toast .tick { color: var(--ok); margin-right: 6px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ==========================================================================
   Player-style home (reference: glassy music app): a soft colour glow behind
   everything, frosted-glass cards. Friis buttons, inset fields and motion stay.
   ========================================================================== */

/* Background glow: three slow-drifting blurred orbs in the icon's colours */
#glow { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; transition: opacity .7s ease; }
#glow .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; }
#glow .o1 { width: 70vmax; height: 70vmax; left: -30vmax; top: -28vmax; background: radial-gradient(circle, #7C5CFF 0%, transparent 65%); animation: drift1 11s ease-in-out infinite alternate; }
#glow .o2 { width: 60vmax; height: 60vmax; right: -30vmax; top: 10vh; background: radial-gradient(circle, #14C79A 0%, transparent 65%); opacity: .5; animation: drift2 9s ease-in-out infinite alternate; }
#glow .o3 { width: 55vmax; height: 55vmax; left: -12vmax; bottom: -22vmax; background: radial-gradient(circle, #FF5FA2 0%, #B44CFF 40%, transparent 68%); opacity: .38; animation: drift3 10s ease-in-out infinite alternate; }
@keyframes drift1 { to { translate: 8vmax 6vmax; } }
@keyframes drift2 { to { translate: -6vmax 8vmax; } }
@keyframes drift3 { to { translate: 7vmax -5vmax; } }
[data-theme="light"] #glow .orb { opacity: .28; }
/* When a song is showing, its album-art glow takes over */
body:has(#ambient.on) #glow { opacity: .25; }
#ambient-fade { z-index: -1; }

/* Glass cards instead of opaque panels */
.panel {
  border: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  background: color-mix(in srgb, var(--panel) 58%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35);
}
[data-theme="light"] .panel { background: color-mix(in srgb, var(--panel) 70%, transparent); box-shadow: 0 10px 30px rgba(58, 68, 82, .14); }
.composer { padding: 18px; gap: 14px; }
#input { border-radius: 16px; }
.big { border-radius: 16px; }

/* Header: the logo sits in its own soft halo (no movement) */
.logo { box-shadow: 0 14px 40px rgba(124, 92, 255, .35), 0 6px 18px rgba(0, 0, 0, .45); }
h1 { font-size: 28px; }

/* Settings + list headers match the reference's section titles */
.settings summary { padding: 16px 18px; color: var(--text); font-weight: 650; font-size: 15px; }

/* Recently sent (homepage list, only while no result is showing) */
#recent { display: grid; gap: 8px; }
#out:not(:empty) ~ #recent { display: none; }
.link-btn { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--text); }
.row .when { font-size: 11.5px; color: var(--faint); }
.row .go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0; min-height: 0; border-bottom-width: 3px; }
.row .go svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) { #glow .orb { animation: none; } }
