/* =========================================================
   Responsive · clock never collapses
   ========================================================= */

@media (max-width: 1180px) {
  .stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
  .stat-card { padding: 12px; gap: 9px; }
  .stat-ico { width: 33px; height: 33px; border-radius: 9px; }
  .stat-copy strong { font-size: 18px; }
  .project-tags { display: none; }
  .project-date { display: none; }
  .project-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
}

@media (max-width: 1080px) {
  .ready { display: none; }
  .workspace-grid { grid-template-columns: minmax(0, 1.3fr) minmax(318px, .9fr); }
  .wav-layout { grid-template-columns: minmax(0, 1.3fr) minmax(292px, .8fr); }
  .main-inner { padding: 24px 24px 38px; }
}

@media (max-width: 980px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .create-card { max-width: none; }
  .create-body .form-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 22px; align-items: start; }
  .create-body .form-stack > .create-divider { display: none; }
  .create-body .form-stack > .create-actions { grid-column: 1 / -1; }
  .create-body .form-stack > .field-block:first-child { grid-column: 1 / -1; }
  .wav-layout { grid-template-columns: 1fr; }
  .wav-side { position: static; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr); align-items: start; }
  .lower-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-copy strong { font-size: 20px; }
  .page-head h1 { font-size: 25px; }
}

@media (max-width: 860px) {
  :root { --sidebar-w: 76px; --topbar-h: 56px; }
  .brand { width: var(--sidebar-w); padding: 0; justify-content: center; }
  .brand-type { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .crumb { padding-left: 16px; }
  .sidebar { padding: 14px 10px 12px; }
  .side-label, .side-text, .side-count, .side-local, .side-version { display: none; }
  .side-nav { gap: 5px; }
  .side-item { justify-content: center; padding: 0; height: 44px; border-radius: 9px; }
  .side-icon { width: 22px; height: 22px; }
  .side-icon .icon { width: 20px; height: 20px; }
  .side-spacer { flex: 1; }
  .side-foot-hint { display: grid; place-items: center; width: 100%; padding: 7px 0 1px; color: var(--text-3); }
  .side-foot-hint .icon { width: 15px; height: 15px; }
  .main-inner { padding: 22px 22px 36px; }
  .page-head { margin-bottom: 18px; }
  .project-actions { opacity: 1; }
  .project-tags, .project-date { display: none; }
  .project-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .clock { min-width: 118px; }
}

@media (max-width: 720px) {
  .main-inner { padding: 19px 18px 34px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 13px; }
  .page-head h1 { font-size: 23px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; min-width: 0; }
  .page-actions .btn .btn-label { overflow: hidden; text-overflow: ellipsis; }
  .source-tools { width: 100%; }
  .source-card .section-head { flex-wrap: wrap; }
  .hide-sm { display: none !important; }
  .create-body .form-stack { display: flex; }
  .wav-side { grid-template-columns: 1fr; }
  .stats-row { gap: 8px; margin-bottom: 13px; }
  .stat-card { padding: 11px; }
  .stat-ico { width: 31px; height: 31px; }
  .stat-ico .icon { width: 16px; height: 16px; }
  .stat-copy span { font-size: 9.5px; }
  .stat-copy strong { font-size: 17px; }
  .project-row { padding: 10px 13px; gap: 10px; }
  .project-mark { width: 38px; height: 38px; }
  .project-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .section-head { padding: 14px 14px 10px; }
  .section-body { padding: 0 14px 14px; }
  .recent-foot { padding: 9px 14px; }
  .create-head { padding: 14px 15px 12px; }
  .create-body { padding: 14px 15px 15px; }
  .source-card .dropzone.is-wide { min-height: 118px; }
  .wav-main .dropzone.is-wav { margin: 0 14px 12px; }
  .wav-queue .queue-file { padding: 10px 14px; }
  .wav-queue .queue-file-main p { flex-wrap: nowrap; overflow: hidden; }
  .wav-queue .queue-file-main p span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wav-main .section-head { padding: 14px 14px 10px; }
  .table-toolbar { padding: 0 14px 10px; }
  .table-foot { padding: 8px 14px; }
  .results-card .table-scroll { max-height: 380px; }
  .task-panel { left: 10px; right: 10px; width: auto; max-width: none; }
  .modal-backdrop { padding: 14px; }
  .modal.is-wide, .modal.is-xwide { width: 100%; }
}

@media (max-width: 600px) {
  :root { --sidebar-w: 64px; }
  .crumb { display: none; }
  .topbar { overflow: visible; }
  .brand { width: var(--sidebar-w); }
  .brand-mark { width: 29px; height: 29px; border-radius: 8px; }
  .brand-mark svg { width: 17px; height: 17px; }
  .sidebar { padding: 12px 7px 10px; }
  .side-item { height: 42px; }
  .side-icon .icon { width: 19px; height: 19px; }
  .top-actions { padding-right: 6px; gap: 0; }
  .clock { min-width: 104px; padding: 0 10px 0 2px; margin-right: 1px; }
  .clock strong { font-size: 17px; }
  .clock span { font-size: 8.5px; margin-top: 3px; }
  .clock::after { right: 11px; bottom: 5px; width: 18px; height: 1.5px; }
  .icon-btn { width: 33px; height: 33px; }
  .main-inner { padding: 17px 14px 30px; }
  .page-head h1 { font-size: 21px; }
  .page-head p { font-size: 11.5px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .stat-card { padding: 9px 10px; gap: 8px; border-radius: 10px; }
  .stat-ico { width: 28px; height: 28px; border-radius: 8px; }
  .stat-ico .icon { width: 15px; height: 15px; }
  .stat-copy span { font-size: 9px; }
  .stat-copy strong { font-size: 16px; }
  .stat-copy strong em { font-size: 9px; }
  .project-row { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 10px 12px; min-height: 64px; }
  .project-mark { width: 36px; height: 36px; border-radius: 9px; }
  .project-name strong { font-size: 12px; }
  .project-meta { font-size: 9.5px; }
  .project-actions .icon-btn:not(.proj-open) { display: none; }
  .project-actions .icon-btn { width: 28px; height: 28px; }
  .create-head h2 { font-size: 13.5px; }
  .check-grid.cols-2 { grid-template-columns: 1fr; }
  .dropzone { min-height: 112px; padding: 13px; }
  .dropzone.is-wide { min-height: 120px; }
  .dropzone p { font-size: 9.5px; }
  .page-actions .btn { height: 33px; padding: 0 10px; font-size: 10.5px; }
  .page-actions .btn .icon { width: 14px; height: 14px; }
  .recent-panel .section-head, .results-card .section-head { flex-wrap: wrap; align-items: center; }
  .recent-panel .section-actions, .results-card .section-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .recent-panel .section-actions .search, .results-card .section-actions .search { flex: 1 1 100%; max-width: none; }
  .format-grid { gap: 6px; }
  .convert-card { padding: 14px 15px 15px; }
  .wav-queue .queue-file { padding: 9px 12px; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; }
  .wav-queue .queue-file-ico { width: 30px; height: 30px; border-radius: 7px; }
  .wav-queue .queue-file-side .mini-progress { display: none; }
  .wav-queue .queue-file-side .badge { display: none; }
  .wav-queue .queue-file-side .dl-btn span { display: none; }
  .wav-queue .queue-file-side .dl-btn { padding: 0 7px; }
  .wav-fields { gap: 6px; }
  .detail-summary { gap: 6px; }
  .detail-stat { padding: 8px 9px; }
  .detail-stat strong { font-size: 12px; }
  .settings-row { gap: 10px; }
  .theme-choice button { padding: 0 7px; font-size: 10px; }
  .week-chart { gap: 6px; height: 102px; }
  .week-col em { display: none; }
  table.data { min-width: 560px; }
  table.data td { height: 38px; padding: 0 10px; }
  table.data th { padding: 0 10px; }
  .results-card .table-scroll { overflow: auto; -webkit-overflow-scrolling: touch; }
  .toast-root { bottom: 10px; }
  .boot-word { font-size: 30px; }
  .boot-mark .brand-mark { width: 58px; height: 58px; border-radius: 17px; }
  .boot-name { font-size: 11px; }
  .boot-tag { font-size: 9.5px; }
  .boot-foot { left: 16px; right: 16px; font-size: 7.5px; }
}

@media (max-width: 430px) {
  .clock { min-width: 96px; padding-right: 7px; }
  .clock strong { font-size: 16px; }
  .clock span { font-size: 7.8px; letter-spacing: 0; }
  .clock::after { right: 8px; width: 15px; }
  .top-actions .icon-btn[data-theme-toggle] { display: none; }
  .page-actions { gap: 6px; }
  .page-actions .btn { padding: 0 8px; font-size: 10px; }
  .side-icon .icon { width: 18px; height: 18px; }
  .main-inner { padding: 15px 12px 28px; }
  .project-row { gap: 8px; padding: 9px 10px; }
  .project-name strong { max-width: 150px; }
  .stat-copy strong { font-size: 15.5px; }
  .section-title h2 { font-size: 13px; }
  .section-title p { font-size: 9.5px; }
  .check-grid .check-text strong { font-size: 10.5px; }
  .modal-head { padding: 14px 14px 12px; }
  .modal-body { padding: 14px; }
  .modal-foot { padding: 10px 14px; flex-wrap: wrap; }
  .modal-foot .btn { flex: 1; }
  .modal-foot .foot-note { display: none; }
  .settings-row { flex-wrap: wrap; }
  .theme-choice { margin-left: 0; }
  .detail-summary { grid-template-columns: 1fr 1fr 1fr; }
  .detail-stat span { font-size: 8px; }
  .detail-stat strong { font-size: 11px; }
}

@media (max-width: 640px) {
  .check-grid, .check-grid.cols-2 { grid-template-columns: 1fr; }
  .check-grid .check:last-child { grid-column: auto; }
  .classify-rows { grid-template-columns: 1fr; }
}

@media (max-height: 620px) {
  .side-local { display: none; }
  .boot-foot { display: none; }
  .boot-progress { margin-top: 18px; }
  .boot-skip { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .app { opacity: 1 !important; animation: none !important; }
  .view, .modal, .task-panel, .toast, .boot-mark, .boot-word span, .boot-name, .boot-tag, .boot-skip {
    animation-duration: .01s !important;
    animation-delay: 0s !important;
  }
  .boot-progress i { animation-duration: .01s !important; }
  .week-col i { transition: none; }
}
