.asf-tool { color: var(--ink); }
.asf-console { background: var(--forest); color: #f1f4ea; border-radius: 22px; padding: 14px 18px 20px; overflow: hidden; }
.asf-console :focus-visible { outline-color: var(--lime); }
.asf-tabs { display: flex; gap: 4px; border-bottom: 1px solid #425549; padding-bottom: 12px; }
.asf-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #d2ded3; padding: 7px 15px; font-weight: 650; }
.asf-tabs button:hover { background: #2d4236; }
.asf-tabs button[aria-pressed=true] { background: #304338; color: var(--lime); border-color: #475d4c; }
.asf-tool svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.asf-panel { min-height: 215px; }
.asf-record { display: grid; justify-items: center; align-content: center; position: relative; isolation: isolate; padding: 18px 10px 0; }
.asf-record::before { content: ""; position: absolute; inset: 10px 0 0; z-index: -2; opacity: .24; background-image: linear-gradient(#62796a55 1px,transparent 1px),linear-gradient(90deg,#62796a55 1px,transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse,#000,transparent 78%); }
.asf-wave { position: absolute; left: 8%; right: 8%; top: 42%; z-index: -1; height: 76px; transform: translateY(-50%); display: flex; justify-content: space-between; align-items: center; gap: 3px; pointer-events: none; mask-image: linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent); }
.asf-wave i { flex: 0 1 4px; display: block; height: var(--bar); border-radius: 9px; background: #8da96b; opacity: .35; }
.asf-wave i:nth-child(3n + 1) { opacity: .53; }
.asf-record.is-recording i { background: var(--lime); animation: asf-wave .85s ease-in-out infinite alternate; animation-delay: var(--delay); }
@keyframes asf-wave { to { transform: scaleY(.35); } }
.asf-record-controls { display: grid; justify-items: center; min-width: 146px; gap: 5px; font-weight: 650; }
.asf-mic { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 7px; border: 4px solid var(--forest); border-radius: 50%; background: var(--lime); color: #17231b; box-shadow: 0 0 0 1px #9eba61,0 0 0 9px #263e2e; }
.asf-mic:hover, .asf-button:hover { background: #e6ff99; }
.asf-mic svg { width: 31px; height: 31px; }
.asf-record.is-recording .asf-mic svg { display: none; }
.asf-record.is-recording .asf-mic::after { content: ""; width: 20px; height: 20px; border-radius: 4px; background: #203123; }
.asf-clock { color: #d2ded3; font: .85rem ui-monospace, monospace; }
.asf-hint { color: #ccd8cd; margin: 9px 0 0; font-size: .9rem; }
.asf-record .asf-hint { text-align: center; margin-top: 13px; }
.asf-form { max-width: 590px; margin: 0 auto; padding: 24px 0 8px; }
.asf-form > label:first-child { display: block; margin-bottom: 8px; font-weight: 700; }
.asf-form input { color: #edf2e9; border: 1px solid #728575; border-radius: 8px; background: #22382b; padding: 9px; max-width: 100%; }
.asf-form input[type=url] { width: 100%; }
.asf-form input::placeholder { color: #b5c6b5; }
.asf-form .asf-button { margin-top: 12px; }
.asf-offset { display: block; margin-top: 12px; }
.asf-offset input { width: 5rem; }
.asf-sample { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; margin: 14px 0 0; }
.asf-sample audio { width: min(100%,300px); height: 40px; }
.asf-button { border: 0; border-radius: 8px; padding: 9px 16px; color: #18211c; background: var(--lime); font-weight: 750; }
.asf-tool button:disabled { opacity: .56; cursor: wait; }
.asf-status { color: #e3ede0; margin: 0; text-align: center; }
.asf-status:not(:empty) { margin-top: 12px; }
.asf-preview-note { margin: 10px 2px 0; color: var(--muted); font-size: .9rem; }
.asf-results { padding-top: 25px; }
.asf-results h2 { margin-bottom: 8px; }
.asf-result-note { color: var(--muted); }
.asf-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.asf-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fbfcf5; }
.asf-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.asf-cover { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; background: #e4ebd4; border-radius: 8px; overflow: hidden; }
.asf-cover img { width: 100%; height: 100%; object-fit: cover; }
.asf-card h3 { margin: 0; overflow-wrap: anywhere; }
.asf-card p { margin: 4px 0 0; color: var(--muted); }
.asf-card audio { width: 100%; height: 38px; margin: 8px 0; }
.asf-link { border: 0; background: transparent; color: inherit; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.asf-follow-up { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
@media(max-width: 700px) { .asf-cards{grid-template-columns:1fr} .asf-console{padding:11px 12px 15px} .asf-panel{min-height:190px} .asf-tabs button{padding:6px 11px} }
@media(prefers-reduced-motion:reduce) { .asf-record.is-recording i{animation:none} }

@media (max-width: 768px) {
  .asf-wave { opacity: .3; }
  .asf-record .asf-hint { margin-top: 21px; }
}