:root {
    --speed-primary: #00AEEF;
    --speed-primary-hover: #0095cd;
    --speed-result: #4FD1FF;
    --speed-danger: #ff5252;
    --speed-warning: #ffd700;
}

body {
    font-family: 'M PLUS Rounded 1c', Arial, sans-serif;
}

.hero-title {
    font-size: clamp(2rem, 3.1vw, 2.55rem);
}

.hero-mobile-break {
    display: none;
}

.hero-inner {
    gap: 0;
}

.hero-content {
    width: 100%;
    flex-basis: 100%;
}

.tool-container {
    max-width: 1200px;
}

.tool-wrapper {
    position: relative;
    display: flex;
    min-height: 600px;
    overflow: hidden;
    flex-direction: column;
    color: #e0e0e0;
    background: #2b2b2b;
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background: #1f1f1f;
    border-bottom: 1px solid #444;
}

.tool-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.tool-title > i {
    color: var(--speed-primary);
}

.version-badge {
    padding: 2px 8px;
    color: #fff;
    background: var(--speed-danger);
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.drop-zone {
    display: flex;
    min-height: 400px;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 20px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    background: #2b2b2b;
    border: 2px dashed #444;
    border-radius: 12px;
    transition: 0.3s;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.dragover {
    outline: none;
    background: #333;
    border-color: var(--speed-primary);
    box-shadow: inset 0 0 20px rgba(0, 174, 239, 0.1);
}

.drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.drop-zone.hidden {
    display: none;
}

.drop-icon {
    margin-bottom: 20px;
    color: #666;
    font-size: 3.5rem;
    transition: 0.3s;
}

.drop-zone:hover .drop-icon,
.drop-zone:focus-visible .drop-icon,
.drop-zone.dragover .drop-icon {
    color: var(--speed-primary);
    transform: scale(1.1);
}

.drop-title {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

.drop-sub {
    color: #aaa;
    font-size: 0.95rem;
}

.drop-limit {
    margin-top: 6px;
    color: #777;
    font-size: 0.8rem;
}

.drop-private {
    margin-top: 22px;
    color: var(--speed-result);
    font-size: 0.82rem;
}

.workspace {
    position: relative;
    display: none;
    flex: 1;
    flex-direction: column;
    padding: 20px;
    animation: fade-in 0.3s ease;
}

.workspace.visible {
    display: flex;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -20px -20px 20px;
    padding: 8px 15px;
    color: #fff;
    background: #2196f3;
    font-size: 0.85rem;
}

.file-info-bar > div:first-child {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.file-name,
.file-meta {
    font-family: 'Roboto Mono', monospace;
}

.file-name {
    display: inline-block;
    max-width: 360px;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta {
    opacity: 0.8;
    font-size: 0.75rem;
}

.clear-file-btn {
    min-width: 70px;
    min-height: 36px;
    padding: 6px 10px;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.18);
    border: 0;
    border-radius: 6px;
}

.clear-file-btn:hover,
.clear-file-btn:focus-visible {
    background: rgba(0, 0, 0, 0.3);
}

.section-label-row,
.result-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-label-row h2,
.settings-card > h2,
.result-heading-row h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 0.95rem;
}

.section-label-row h2 i,
.settings-card > h2 i {
    margin-right: 6px;
    color: var(--speed-primary);
}

.inline-note {
    color: var(--speed-warning);
    font-size: 0.75rem;
}

.waveform-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #000;
    border: 1px solid #444;
    border-radius: 12px;
}

.waveform-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.seekable-waveform {
    cursor: crosshair;
}

.seekable-waveform:focus-visible {
    outline: 3px solid rgba(79, 209, 255, 0.65);
    outline-offset: -3px;
}

.waveform-playhead {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    pointer-events: none;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 8px rgba(79, 209, 255, 0.9);
    transform: translateX(-1px);
}

.source-audio-engine {
    display: none;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 7px 12px;
    background: #333;
    border: 1px solid #494949;
    border-radius: 24px;
}

.audio-player {
    width: 100%;
    height: 44px;
    margin-bottom: 20px;
    color-scheme: dark;
}

.preview-icon-btn {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    font: inherit;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 50%;
    transition: 0.2s;
}

.preview-icon-btn:hover,
.preview-icon-btn:focus-visible,
.preview-icon-btn[aria-pressed='true'] {
    background: var(--speed-primary);
}

.preview-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.preview-time {
    flex: 0 0 auto;
    color: #ddd;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.76rem;
    white-space: nowrap;
}

.preview-controls .preview-seek {
    min-width: 80px;
    flex: 1 1 auto;
}

.preview-controls .preview-volume {
    width: 90px;
    flex: 0 0 90px;
}

.time-display-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 20px;
    padding: 12px 20px;
    font-family: 'Roboto Mono', monospace;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 9px;
}

.time-label {
    color: #888;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.time-value {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.time-value.result,
.time-value.bpm-route {
    color: var(--speed-result);
}

.time-arrow,
.time-divider {
    color: #555;
}

.time-divider {
    width: 1px;
    height: 28px;
    background: #444;
}

.hidden {
    display: none !important;
}

.settings-card,
.control-group {
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
}

.settings-card {
    padding: 20px;
}

.mode-switch,
.output-control {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.mode-switch legend,
.output-control legend {
    margin-bottom: 10px;
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 700;
}

.mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-switch legend {
    width: 100%;
}

.mode-option input {
    position: absolute;
    opacity: 0;
}

.mode-option span {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    color: #eee;
    cursor: pointer;
    background: #333;
    border: 1px solid #555;
    border-radius: 22px;
    transition: 0.2s;
}

.mode-option input:checked + span {
    color: #fff;
    background: var(--speed-primary);
    border-color: var(--speed-primary);
}

.mode-option input:focus-visible + span {
    outline: 3px solid rgba(79, 209, 255, 0.35);
    outline-offset: 2px;
}

.mode-panel {
    padding-top: 18px;
    border-top: 1px solid #3b3b3b;
}

.control-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 8px;
    color: #eee;
    font-size: 1rem;
    font-weight: 700;
}

.control-heading output {
    color: var(--speed-result);
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1;
}

.preset-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.tool-btn,
.mini-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    color: #eee;
    font: inherit;
    cursor: pointer;
    background: #333;
    border: 1px solid #555;
    border-radius: 22px;
    transition: 0.2s;
}

.tool-btn:hover,
.mini-btn:hover,
.tool-btn:focus-visible,
.mini-btn:focus-visible {
    background: #444;
    border-color: #777;
}

.tool-btn.selected {
    color: #fff;
    background: var(--speed-primary);
    border-color: var(--speed-primary);
}

button:disabled,
.tool-btn:disabled,
.mini-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

.range-row {
    position: relative;
    padding-bottom: 28px;
    color: #888;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
}

.rate-scale {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 24px;
    pointer-events: none;
}

.rate-scale span {
    position: absolute;
    padding-top: 8px;
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
}

.rate-scale span:nth-child(1) { left: 0; }
.rate-scale span:nth-child(2) { left: 34.95%; }
.rate-scale span:nth-child(3) { left: 50%; }
.rate-scale span:nth-child(4) { left: 71.53%; }
.rate-scale span:nth-child(5) { left: 100%; }

.key-scale span:nth-child(1) { left: 0; }
.key-scale span:nth-child(2) { left: 25%; }
.key-scale span:nth-child(3) { left: 50%; }
.key-scale span:nth-child(4) { left: 75%; }
.key-scale span:nth-child(5) { left: 100%; }

.rate-scale span::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 6px;
    content: '';
    background: #777;
}

.rate-scale .center {
    color: var(--speed-result);
    font-weight: 700;
}

.rate-scale .center::before {
    width: 2px;
    height: 8px;
    background: var(--speed-result);
}

.rate-scale .edge-start {
    transform: none;
}

.rate-scale .edge-start::before {
    left: 0;
}

.rate-scale .edge-end {
    transform: translateX(-100%);
}

.rate-scale .edge-end::before {
    right: 0;
    left: auto;
}

input[type='range'],
input[type='checkbox'],
input[type='radio'] {
    accent-color: var(--speed-primary);
}

input[type='range'] {
    width: 100%;
    min-height: 44px;
}

.bpm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.bpm-field {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #1b1b1b;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
}

.bpm-field > label {
    color: #ddd;
    font-weight: 700;
}

.number-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.number-unit input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 6px;
}

.number-unit input:focus-visible {
    outline: 2px solid var(--speed-primary);
    border-color: var(--speed-primary);
}

.number-unit span {
    color: #aaa;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
}

.bpm-detect-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bpm-detect-row .detect-btn {
    min-width: 0;
    flex: 0 1 auto;
    padding-right: 11px;
    padding-left: 11px;
    font-size: 0.8rem;
}

.detected-bpm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    color: #aaa;
    border-top: 1px solid #333;
    font-size: 0.83rem;
}

.detected-bpm strong {
    color: var(--speed-result);
    font-family: 'Roboto Mono', monospace;
}

.mini-btn {
    min-height: 34px;
    padding: 4px 10px;
    border-radius: 17px;
    font-size: 0.75rem;
}

.setting-note,
.bpm-note {
    margin: 0;
    color: #888;
    font-size: 0.76rem;
    line-height: 1.6;
}

.bpm-note {
    margin-top: 13px;
    color: #aaa;
}

.bpm-note i {
    color: var(--speed-primary);
}

.option-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 16px;
    margin-top: 16px;
}

.control-group {
    padding: 18px;
}

.check-line,
.output-control label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ddd;
    cursor: pointer;
}

.check-line input,
.output-control input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
}

.check-line span,
.output-control label span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.check-line small,
.output-control small {
    color: #888;
    font-size: 0.75rem;
    line-height: 1.5;
}

.pitch-control.disabled {
    opacity: 0.45;
}

.pitch-control.disabled .check-line {
    cursor: not-allowed;
}

.output-control {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px 18px;
    padding: 18px;
}

.output-control legend {
    width: 100%;
    margin: 0 0 8px;
}

.output-control label {
    flex: 1 1 145px;
}

.preview-note {
    margin: 14px 0 0;
    color: #888;
    font-size: 0.78rem;
    text-align: center;
}

.preview-note i {
    color: var(--speed-primary);
}

.message-box {
    margin-top: 14px;
    padding: 11px 14px;
    color: #bbb;
    background: #222;
    border-left: 4px solid var(--speed-primary);
    border-radius: 6px;
    font-size: 0.82rem;
}

.tool-message {
    margin: 14px 20px 0;
}

.message-box.success {
    color: #c9f4ff;
    border-left-color: var(--speed-result);
}

.message-box.warning {
    color: #fff2aa;
    border-left-color: var(--speed-warning);
}

.message-box.error {
    color: #ffb7b7;
    border-left-color: var(--speed-danger);
}

.action-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.process-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 40px;
    color: #fff;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background: var(--speed-primary);
    border: 0;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
    transition: 0.2s;
}

.process-btn:hover,
.process-btn:focus-visible {
    color: #fff;
    background: var(--speed-primary-hover);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
    transform: translateY(-2px);
}

.process-btn:disabled {
    color: #bbb;
    background: #555;
    box-shadow: none;
}

.loading-overlay {
    position: absolute;
    z-index: 100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
}

.loading-overlay.visible {
    display: flex;
}

.loading-overlay p {
    margin: 0 0 12px;
    color: #fff;
}

.spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    border: 4px solid #444;
    border-top-color: var(--speed-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-track {
    width: min(360px, 80%);
    height: 8px;
    overflow: hidden;
    background: #333;
    border-radius: 4px;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: var(--speed-primary);
    border-radius: inherit;
    transition: width 0.25s ease;
}

.progress-value {
    margin-top: 7px;
    color: #aaa;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
}

.result-panel {
    margin-top: 24px;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 12px;
    scroll-margin-top: 20px;
}

.result-heading-row {
    align-items: flex-end;
    margin-bottom: 12px;
}

.result-heading-row h2 {
    margin: 6px 0 0;
    font-size: 1.2rem;
}

.success-label {
    color: var(--speed-result);
    font-size: 0.82rem;
    font-weight: 700;
}

.result-meta {
    color: #aaa;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    text-align: right;
}

.result-waveform {
    height: 180px;
}

.gain-notice {
    color: var(--speed-warning);
    font-size: 0.78rem;
}

.result-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 45px 0 70px;
}

.info-card {
    padding: 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.info-card h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--speed-primary);
    font-size: 1.1rem;
}

.info-card p,
.info-card li {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

.related-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-card li {
    display: flex;
    flex-direction: column;
}

.related-card a {
    color: #007fab;
    font-weight: 700;
}

.related-card span {
    color: #888;
    font-size: 0.76rem;
}

.seo-content h2 {
    margin: 50px 0 25px;
    padding-bottom: 10px;
    color: var(--text-main);
    border-bottom: 3px solid var(--speed-primary);
    font-size: 1.8rem;
}

.seo-content p {
    margin-bottom: 1.5em;
    color: #444;
    line-height: 1.8;
}

.seo-content code {
    padding: 2px 6px;
    font-family: 'Roboto Mono', monospace;
    background: #eef9fd;
    border-radius: 4px;
}

.howto-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.howto-list li {
    position: relative;
    padding: 56px 20px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    counter-increment: step;
}

.howto-list li::before {
    position: absolute;
    top: 16px;
    left: 20px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #fff;
    content: counter(step);
    background: var(--speed-primary);
    border-radius: 50%;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
}

.howto-list strong,
.howto-list span {
    display: block;
}

.howto-list strong {
    margin-bottom: 8px;
    color: #222;
}

.howto-list span {
    color: #666;
    font-size: 0.88rem;
    line-height: 1.7;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #eee;
    border-radius: 10px;
}

.seo-content table {
    width: 100%;
    border-collapse: collapse;
}

.seo-content th,
.seo-content td {
    padding: 13px 16px;
    color: #444;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.seo-content th {
    color: #222;
    background: #f4f9fc;
}

.seo-content td:first-child {
    width: 100px;
    color: #007fab;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

.faq-list summary {
    padding: 17px 20px;
    color: #222;
    cursor: pointer;
    font-weight: 700;
}

.faq-list details[open] summary {
    color: #007fab;
    background: #f4f9fc;
}

.faq-list p {
    margin: 0;
    padding: 18px 20px;
}

.license-note {
    margin-top: 35px;
    color: #777 !important;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .info-section {
        grid-template-columns: 1fr 1fr;
    }

    .related-card {
        grid-column: 1 / -1;
    }

    .howto-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .option-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .tool-title {
        font-size: 0.9rem;
    }

    .waveform-container {
        height: 180px;
    }

    .result-waveform {
        height: 140px;
    }

    .file-info-bar > div:first-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .file-name {
        max-width: calc(100vw - 170px);
    }
}

@media (max-width: 600px) {
    .hero-title-separator {
        display: none;
    }

    .hero-mobile-break {
        display: block;
    }

    .preview-controls {
        gap: 7px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .preview-controls .preview-volume {
        display: none;
    }

    .time-display-bar {
        gap: 12px 18px;
    }

    .time-display-bar .time-item:first-child,
    .time-display-bar .time-item:nth-child(3) {
        flex: 1 1 calc(50% - 40px);
        justify-content: center;
    }

    .time-divider {
        width: 100%;
        height: 1px;
        background: #333;
    }

    .bpm-grid,
    .info-section {
        grid-template-columns: 1fr;
    }

    .related-card {
        grid-column: auto;
    }

    .result-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .result-meta {
        text-align: left;
    }

    .seo-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .drop-zone {
        min-height: 300px;
        margin: 12px;
        padding: 40px 16px;
    }

    .workspace {
        padding: 14px;
    }

    .file-info-bar {
        margin: -14px -14px 16px;
    }

    .settings-card,
    .control-group,
    .result-panel {
        padding: 15px;
    }

    .mode-option,
    .mode-option span,
    .process-btn,
    .result-actions .tool-btn {
        width: 100%;
    }

    .preset-row .tool-btn {
        flex: 1 1 28%;
        padding-inline: 8px;
    }

    .howto-list {
        grid-template-columns: 1fr;
    }

    .time-arrow {
        display: none;
    }

    .time-display-bar .time-item:first-child,
    .time-display-bar .time-item:nth-child(3) {
        flex-basis: 100%;
    }
}

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