/* SJ88 SubCut Studio v2.3 — Bold workspace extensions */
:root { --bold-glass: rgba(255,255,255,.88); }

/* Live sync */
.sync-strip {
  max-width: 1450px; min-height: 42px; margin: -24px auto 26px; padding: 0 12px 0 15px;
  display: flex; align-items: center; gap: 8px; color: #50556a; background: var(--bold-glass);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-xs); backdrop-filter: blur(12px);
}
.sync-strip strong { font-size: 10px; }
.sync-strip small { color: #979bad; font-size: 9px; }
.sync-strip button { position: relative; width: 34px; height: 34px; margin-left: auto; display: grid; place-items: center; color: #7770d8; background: var(--violet-soft); border-radius: 9px; }
.sync-strip button svg { width: 16px; }
.sync-strip button b { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; color: #fff; background: var(--coral); border: 2px solid #fff; border-radius: 99px; font: 700 8px/1 var(--font-display); }
.sync-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(25,169,116,.12); }
.sync-strip.offline .sync-pulse { background: var(--amber); box-shadow: 0 0 0 4px rgba(233,154,35,.12); }
.sync-card { width: calc(100% - 10px); margin: 0 5px 10px; padding: 11px; display: flex; align-items: center; gap: 10px; color: #d9dcef; background: rgba(111,97,247,.1); border: 1px solid rgba(142,132,255,.17); border-radius: 13px; text-align: left; }
.sync-card:hover { background: rgba(111,97,247,.16); }
.sync-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #a9a1ff; background: rgba(255,255,255,.07); border-radius: 9px; }
.sync-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.sync-card strong { overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.sync-card small { color: #7f859f; font-size: 8px; }

/* Unified work center */
.job-group + .job-group { border-top: 7px solid var(--canvas); }
.job-group > header { min-height: 58px; padding: 13px 20px; display: flex; align-items: center; background: #fcfcfe; border-bottom: 1px solid var(--line); }
.job-group > header h3 { margin: 0; font-size: 12px; }
.job-group > header h3 b { min-width: 20px; height: 20px; margin-left: 7px; padding: 0 6px; display: inline-grid; place-items: center; color: #6054d8; background: var(--violet-soft); border-radius: 99px; font: 700 8px/1 var(--font-display); }
.job-group > header p { margin: 2px 0 0; color: #979bad; font-size: 8px; }
.hub-job-row { min-height: 118px; padding: 17px 19px; display: grid; grid-template-columns: 24px 30px 43px minmax(260px,1fr) auto; gap: 11px; align-items: center; border-bottom: 1px solid #eef0f5; transition: background .15s ease; }
.hub-job-row:last-child { border-bottom: 0; }
.hub-job-row:hover { background: #fcfcff; }
.hub-job-row.uploading { box-shadow: inset 3px 0 var(--cyan); }
.hub-job-row.queued, .hub-job-row.processing { box-shadow: inset 3px 0 var(--violet); }
.hub-job-row.done { box-shadow: inset 3px 0 var(--green); }
.hub-job-row.failed { box-shadow: inset 3px 0 var(--danger); }
.select-box { width: 21px; height: 21px; display: grid; place-items: center; cursor: pointer; }
.select-box input { position: absolute; opacity: 0; pointer-events: none; }
.select-box i { width: 17px; height: 17px; display: block; background: #fff; border: 1.5px solid #cfd3df; border-radius: 5px; }
.select-box input:checked + i { background: var(--violet); border-color: var(--violet); box-shadow: inset 0 0 0 3px #fff; }
.quick-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #afb2c1; background: transparent; border-radius: 8px; }
.quick-icon:hover, .quick-icon.active { color: #f2a227; background: var(--amber-soft); }
.quick-icon svg { width: 15px; }
.hub-job-main { min-width: 0; cursor: pointer; }
.hub-job-title { display: flex; align-items: center; gap: 9px; }
.hub-job-title strong { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.hub-job-main > small { display: block; margin-top: 2px; color: #969aac; font-size: 8px; }
.hub-progress { height: 5px; margin-top: 9px; overflow: hidden; background: #e9ebf2; border-radius: 99px; }
.hub-progress span { display: block; height: 100%; background: linear-gradient(90deg,var(--violet),var(--cyan)); border-radius: inherit; transition: width .25s ease; }
.hub-job-row.done .hub-progress span { background: var(--green); }
.hub-job-row.failed .hub-progress span { background: var(--danger); }
.hub-job-main > p { margin: 5px 0 0; display: flex; justify-content: space-between; gap: 10px; color: #8b8fa0; font-size: 8px; }
.hub-job-main > p b { color: #555a6d; font: 700 9px/1.4 var(--font-display); }
.hub-job-actions { display: flex; gap: 5px; }
.hub-job-actions button, .library-actions button { min-height: 34px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; color: #575c70; background: #f4f5f8; border-radius: 9px; font-size: 8px; font-weight: 600; }
.hub-job-actions button:hover, .library-actions button:hover { color: #5548cd; background: var(--violet-soft); }
.hub-job-actions svg, .library-actions svg { width: 14px; }
.step-timeline { margin: 13px 0 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); }
.step-timeline span { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #a0a4b4; }
.step-timeline span::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: #e5e7ee; z-index: 0; }
.step-timeline span:first-child::before { display: none; }
.step-timeline i { position: relative; z-index: 1; width: 16px; height: 16px; display: grid; place-items: center; background: #e5e7ee; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #e5e7ee; }
.step-timeline i svg { width: 9px; stroke-width: 2.5; }
.step-timeline b { max-width: 100%; overflow: hidden; font-size: 7px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.step-timeline .done { color: #16875e; }
.step-timeline .done i, .step-timeline .done::before { color: #fff; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.step-timeline .active { color: #5548cd; font-weight: 700; }
.step-timeline .active i { background: var(--violet); box-shadow: 0 0 0 1px var(--violet),0 0 0 5px rgba(111,97,247,.1); }
.step-timeline .error { color: var(--danger); }
.step-timeline .error i { background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.step-timeline.compact { margin-top: 8px; }
.step-timeline.compact b { display: none; }
.step-timeline.compact i { width: 12px; height: 12px; border-width: 2px; }
.step-timeline.compact span::before { top: 5px; }

/* Library */
.library-summary { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.library-summary button { min-height: 70px; padding: 13px 15px; display: flex; flex-direction: column; align-items: flex-start; color: #7d8194; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); }
.library-summary button:hover, .library-summary button.active { color: #564bc7; border-color: #cfcaff; background: linear-gradient(145deg,#fff,#f7f5ff); }
.library-summary strong { color: var(--ink); font: 700 20px/1.15 var(--font-display); }
.library-summary span { margin-top: 3px; font-size: 9px; }
.library-tools { margin-bottom: 14px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.library-tools-main { display: flex; gap: 9px; }
.library-tools-main .search-box { flex: 1; max-width: none; }
.library-filters { margin-top: 10px; display: grid; grid-template-columns: repeat(6,minmax(130px,1fr)); gap: 7px; }
.library-filters .compact-select { width: 100%; height: 37px; font-size: 9px; }
.bulk-bar { margin-top: 10px; min-height: 42px; padding: 6px 8px 6px 12px; display: flex; align-items: center; gap: 5px; color: #5044c8; background: var(--violet-soft); border: 1px solid #dedaff; border-radius: 10px; }
.bulk-bar strong { margin-right: auto; font-size: 10px; }
.bulk-bar button { min-height: 29px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; color: #5044c8; background: #fff; border-radius: 7px; font-size: 8px; }
.bulk-bar button.danger { color: var(--danger); }
.bulk-bar svg { width: 13px; }
.library-row { min-height: 82px; padding: 12px 16px; display: grid; grid-template-columns: 24px 31px 42px minmax(220px,1fr) 112px 120px auto; gap: 10px; align-items: center; border-bottom: 1px solid #eef0f5; }
.library-row:last-child { border-bottom: 0; }
.library-row:hover { background: #fcfcfe; }
.library-main { min-width: 0; }
.library-main strong { display: block; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.library-main small { color: #969aac; font-size: 8px; }
.library-tags { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.library-tags span { padding: 2px 6px; color: #5d52c9; background: var(--violet-soft); border-radius: 99px; font-size: 7px; }
.library-cell { display: flex; flex-direction: column; color: #9498aa; font-size: 8px; }
.library-cell strong { color: #4e5366; font-size: 9px; }
.library-actions { display: flex; justify-content: flex-end; gap: 4px; }
.library-actions button { width: 32px; padding: 0; justify-content: center; }

/* Download center */
.download-layout { display: grid; gap: 15px; }
.storage-overview { min-height: 94px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.storage-overview > div { display: flex; align-items: center; gap: 14px; }
.storage-ring { --p:0; width: 58px; height: 58px; display: grid; place-items: center; background: conic-gradient(var(--violet) calc(var(--p)*1%),#e7e8ef 0); border-radius: 50%; }
.storage-ring::before { content: ""; grid-area: 1/1; width: 44px; height: 44px; background: #fff; border-radius: 50%; }
.storage-ring b { grid-area: 1/1; z-index: 1; font: 700 10px/1 var(--font-display); }
.storage-overview p { margin: 0; display: flex; flex-direction: column; }
.storage-overview p strong { font-size: 12px; }
.storage-overview p small { color: #9296a8; font-size: 9px; }
.download-list { display: grid; gap: 11px; }
.download-group { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.download-group > header { min-height: 66px; padding: 12px 15px; display: flex; align-items: center; gap: 9px; background: #fcfcfe; border-bottom: 1px solid var(--line); }
.download-group > header > div { min-width: 0; margin-right: auto; display: flex; flex-direction: column; }
.download-group > header strong { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.download-group > header small { color: #9599aa; font-size: 8px; }
.download-group > header > button:not(.button) { padding: 6px 8px; color: #6559d0; background: var(--violet-soft); border-radius: 7px; font-size: 8px; }
.button.small { min-height: 34px; padding: 0 11px; font-size: 9px; }
.expiry { padding: 5px 8px; color: #6a6f82; background: #eff1f5; border-radius: 99px; font-size: 8px; }
.expiry.urgent { color: #b8424d; background: var(--danger-soft); }
.download-files article { min-height: 57px; padding: 9px 15px; display: grid; grid-template-columns: 35px minmax(0,1fr) auto auto; gap: 9px; align-items: center; border-bottom: 1px solid #eff1f5; }
.download-files article:last-child { border-bottom: 0; }
.download-files article > span { width: 35px; height: 35px; display: grid; place-items: center; color: #6558d1; background: var(--violet-soft); border-radius: 9px; }
.download-files article > div { min-width: 0; display: flex; flex-direction: column; }
.download-files strong { overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.download-files small { color: #9599aa; font-size: 8px; }
.download-files button { min-height: 30px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; color: #575c70; background: #f2f3f7; border-radius: 7px; font-size: 8px; }
.download-files button:hover { color: #5548cd; background: var(--violet-soft); }
.download-files svg { width: 13px; }

/* Notifications */
.notification-shell { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 15px; align-items: start; }
.notification-filters { padding: 8px; display: grid; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.notification-filters button { min-height: 40px; padding: 0 11px; color: #74788c; background: transparent; border-radius: 9px; text-align: left; font-size: 10px; }
.notification-filters button:hover, .notification-filters button.active { color: #5548cd; background: var(--violet-soft); font-weight: 600; }
.notification-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.notification-item { min-height: 78px; padding: 13px 15px; display: grid; grid-template-columns: 39px minmax(0,1fr) auto 31px; gap: 10px; align-items: center; border-bottom: 1px solid #eef0f5; }
.notification-item:last-child { border-bottom: 0; }
.notification-item.unread { background: linear-gradient(90deg,#fbfaff,#fff); box-shadow: inset 3px 0 var(--violet); }
.notification-item.error { box-shadow: inset 3px 0 var(--danger); }
.notification-icon { width: 39px; height: 39px; display: grid; place-items: center; color: #6054d4; background: var(--violet-soft); border-radius: 11px; }
.notification-item.error .notification-icon { color: var(--danger); background: var(--danger-soft); }
.notification-item > div { min-width: 0; }
.notification-item strong { display: block; font-size: 11px; }
.notification-item p { margin: 2px 0; color: #73788d; font-size: 9px; }
.notification-item small { color: #a0a4b5; font-size: 8px; }
.notification-item > button { min-height: 31px; padding: 0 9px; color: #5e52cf; background: var(--violet-soft); border-radius: 8px; font-size: 8px; }
.notification-item > button.mark-read { width: 31px; padding: 0; display: grid; place-items: center; }
.notification-item > button svg { width: 13px; }

/* Storage, devices, channels */
.storage-meter > span { height: 8px; display: block; overflow: hidden; background: #e9ebf1; border-radius: 99px; }
.storage-meter > span i { display: block; height: 100%; background: linear-gradient(90deg,var(--violet),var(--cyan)); border-radius: inherit; }
.storage-meter > div { margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; }
.storage-meter strong { font-size: 10px; }
.storage-meter small { color: #969aac; font-size: 8px; }
.storage-buckets { margin-top: 14px; display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.storage-buckets span { min-width: 0; padding: 8px; display: grid; grid-template-columns: 8px 1fr auto; gap: 6px; align-items: center; background: #fafbfe; border-radius: 8px; }
.storage-buckets i { width: 8px; height: 8px; background: var(--violet); border-radius: 3px; }
.storage-buckets i.output { background: var(--cyan); } .storage-buckets i.upload { background: var(--coral); } .storage-buckets i.cache { background: var(--amber); } .storage-buckets i.other { background: #a4a8b8; }
.storage-buckets b, .storage-buckets small { overflow: hidden; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.storage-buckets small { color: #969aac; }
.guest-safety-copy { padding: 12px; display: flex; flex-direction: column; background: var(--amber-soft); border: 1px solid #f5dfb9; border-radius: 11px; }
.guest-safety-copy strong { font-size: 10px; } .guest-safety-copy small { margin-top: 3px; color: #8a7551; font-size: 8px; }
.channel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.channel-grid label { min-height: 44px; padding: 0 10px; display: flex; align-items: center; gap: 7px; background: #fafbfe; border: 1px solid var(--line); border-radius: 9px; font-size: 9px; cursor: pointer; }
.channel-grid input { accent-color: var(--violet); }
.notification-channel-card .form-grid { margin-top: 12px; }
.device-list { display: grid; gap: 7px; }
.device-list article { min-height: 56px; padding: 8px 9px; display: grid; grid-template-columns: 35px minmax(0,1fr) 31px 31px; gap: 7px; align-items: center; background: #fafbfe; border: 1px solid var(--line); border-radius: 10px; }
.device-list article > span { width: 35px; height: 35px; display: grid; place-items: center; color: #5e52cf; background: var(--violet-soft); border-radius: 9px; }
.device-list article > div { min-width: 0; display: flex; flex-direction: column; }
.device-list strong { overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.device-list small { color: #969aac; font-size: 8px; }
.device-list button { width: 31px; height: 31px; display: grid; place-items: center; color: #707588; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.device-list button.danger { color: var(--danger); }
.device-list svg { width: 13px; }
.drawer-command-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.drawer-command-grid button { min-height: 43px; padding: 8px 10px; display: flex; align-items: center; gap: 7px; color: #4f5467; background: #f6f7fa; border: 1px solid var(--line); border-radius: 9px; font-size: 9px; text-align: left; }
.drawer-command-grid button:hover { color: #5548cd; border-color: #d7d2ff; background: var(--violet-soft); }
.drawer-command-grid button.danger { color: var(--danger); background: var(--danger-soft); }

/* Persistent upload dock */
.upload-dock { position: fixed; right: 18px; bottom: 18px; z-index: 82; width: min(430px,calc(100vw - 36px)); overflow: hidden; background: #fff; border: 1px solid #dfe2ec; border-radius: 16px; box-shadow: 0 20px 55px rgba(20,24,46,.18); transition: .2s ease; }
.upload-dock-head { width: 100%; min-height: 53px; padding: 0 13px; display: flex; align-items: center; gap: 8px; color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); }
.upload-dock-head > span:first-child { display: flex; align-items: center; gap: 7px; }
.upload-dock-head svg { width: 17px; color: var(--violet); }
.upload-dock-head strong { font-size: 10px; }
.upload-dock-head b { min-width: 20px; height: 20px; display: grid; place-items: center; color: #fff; background: var(--coral); border-radius: 99px; font: 700 8px/1 var(--font-display); }
.upload-dock-head > svg:last-child { margin-left: 2px; transition: transform .2s ease; }
.upload-network { margin-left: auto; padding: 4px 7px; color: #187857; background: var(--green-soft); border-radius: 99px; font-size: 7px; font-weight: 700; }
.upload-network.offline { color: #aa7330; background: var(--amber-soft); }
.upload-dock.collapsed .upload-dock-list { display: none; }
.upload-dock.collapsed .upload-dock-head { border-bottom: 0; }
.upload-dock.collapsed .upload-dock-head > svg:last-child { transform: rotate(180deg); }
.upload-dock-list { max-height: 420px; overflow-y: auto; }
.upload-empty { padding: 24px; color: #999dad; font-size: 9px; text-align: center; }
.upload-task { padding: 13px; border-bottom: 1px solid #eef0f5; }
.upload-task:last-child { border-bottom: 0; }
.upload-task-head { display: flex; align-items: flex-start; gap: 9px; }
.upload-task-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #5e52cf; background: var(--violet-soft); border-radius: 9px; }
.upload-task-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.upload-task-copy strong { overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.upload-task-copy small { color: #969aac; font-size: 7px; }
.upload-task-actions { display: flex; gap: 3px; }
.upload-task-actions button { width: 29px; height: 29px; display: grid; place-items: center; color: #686d80; background: #f3f4f7; border-radius: 7px; }
.upload-task-actions button.danger { color: var(--danger); }
.upload-task-actions svg { width: 13px; }
.upload-task .progress-track { margin: 9px 0 5px; }
.upload-task-foot { display: flex; justify-content: space-between; gap: 8px; color: #8f93a5; font-size: 7px; }
.upload-task-foot b { color: #575c6f; font-size: 8px; }
.upload-task.error { background: #fffafa; } .upload-task.waiting { background: #fffcf6; }

/* Preview and edit modals */
.preview-modal, .bold-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.preview-modal.open, .bold-modal.open { display: flex; }
.preview-backdrop, .bold-modal-backdrop { position: absolute; inset: 0; background: rgba(14,17,35,.58); backdrop-filter: blur(5px); }
.preview-panel, .bold-modal-panel { position: relative; z-index: 1; width: min(820px,100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: 0 30px 90px rgba(13,16,34,.28); }
.bold-modal-panel { width: min(510px,100%); padding: 20px; }
.preview-panel > header, .bold-modal-panel > header { min-height: 74px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.bold-modal-panel > header { margin: -20px -20px 18px; }
.preview-panel header small, .bold-modal-panel header small { color: var(--violet); font: 700 8px/1 var(--font-display); letter-spacing: .12em; }
.preview-panel h2, .bold-modal-panel h2 { margin: 2px 0 0; font-size: 16px; }
.preview-panel header p { margin: 1px 0 0; color: #969aac; font-size: 8px; }
.preview-tabs { padding: 10px 18px; display: flex; gap: 4px; }
.preview-tabs button { min-height: 33px; padding: 0 12px; color: #777b8e; background: #f2f3f7; border-radius: 8px; font-size: 9px; }
.preview-tabs button.active { color: #fff; background: var(--violet); }
.video-stage { position: relative; margin: 0 18px; aspect-ratio: 16/9; overflow: hidden; background: #0e1120; border-radius: 13px; }
.video-stage video { width: 100%; height: 100%; object-fit: contain; }
#preview-caption-demo { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); padding: 5px 10px; color: #fff; background: rgba(0,0,0,.72); border-radius: 5px; font-size: 10px; white-space: nowrap; }
.preview-meta { padding: 10px 18px 7px; display: flex; justify-content: space-between; gap: 12px; font-size: 9px; }
.preview-meta label { color: #686d80; }
#preview-waveform { width: calc(100% - 36px); height: 72px; margin: 0 18px; background: #f7f7fb; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.preview-panel > footer, .bold-modal-panel > footer, #recover-browser-form footer { padding: 14px 18px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
.bold-modal-panel > footer, #recover-browser-form footer { margin: 18px -20px -20px; }
.bold-modal-panel .field + .field { margin-top: 12px; }
.toggle-inline { margin-top: 13px; display: flex; gap: 14px; color: #5f6476; font-size: 9px; }
.toggle-inline input { accent-color: var(--violet); }
.recovery-generated { padding: 16px; display: flex; flex-direction: column; align-items: center; background: var(--violet-soft); border: 1px dashed #beb7ff; border-radius: 12px; text-align: center; }
.recovery-generated span, .recovery-generated small { color: #7770b1; font-size: 8px; }
.recovery-generated strong { margin: 8px 0; color: #4035a3; font: 800 18px/1.2 var(--font-display); letter-spacing: .07em; }
.recovery-generated .button { margin-top: 12px; }
#recover-browser-form > p { margin: 10px 0 0; color: #7b7f91; font-size: 9px; }

@media (max-width: 1180px) {
  .library-filters { grid-template-columns: repeat(3,1fr); }
  .library-row { grid-template-columns: 24px 31px 42px minmax(180px,1fr) 100px auto; }
  .library-row .library-cell:nth-of-type(2) { display: none; }
}
@media (max-width: 900px) {
  .sync-strip { margin: 3px auto 19px; }
  .hub-job-row { grid-template-columns: 22px 28px 41px minmax(0,1fr); }
  .hub-job-actions { grid-column: 4; }
  .notification-shell { grid-template-columns: 1fr; }
  .notification-filters { display: flex; overflow-x: auto; }
  .notification-filters button { flex: 0 0 auto; min-height: 35px; }
  .settings-page-grid .storage-card, .settings-page-grid .guest-safety-card, .settings-page-grid .notification-channel-card, .settings-page-grid .devices-card { grid-column: auto; }
}
@media (max-width: 680px) {
  .main-content { padding-bottom: 90px; }
  .sync-strip { min-height: 38px; padding-left: 11px; }
  .sync-strip small { display: none; }
  .sync-card { margin-top: 8px; }
  .library-summary { grid-template-columns: repeat(2,1fr); }
  .library-tools-main { flex-direction: column; }
  .library-tools-main .button { width: 100%; }
  .library-filters { grid-template-columns: repeat(2,1fr); }
  .bulk-bar { flex-wrap: wrap; }
  .bulk-bar strong { width: 100%; }
  .hub-job-row { min-height: 112px; padding: 13px 11px; grid-template-columns: 20px 35px minmax(0,1fr); gap: 8px; }
  .hub-job-row > .quick-icon { display: none; }
  .hub-job-row > .job-mode-icon { grid-column: 2; }
  .hub-job-main { grid-column: 3; }
  .hub-job-actions { grid-column: 2 / -1; padding-left: 0; }
  .hub-job-actions button { flex: 1; justify-content: center; }
  .hub-job-title .status-chip { display: inline-flex; min-width: auto; }
  .step-timeline.compact { display: none; }
  .library-row { padding: 12px 10px; grid-template-columns: 20px 32px minmax(0,1fr) auto; }
  .library-row > .job-mode-icon, .library-cell { display: none; }
  .library-actions { grid-column: 4; }
  .library-actions button:not(:last-child) { display: none; }
  .download-group > header { align-items: flex-start; flex-wrap: wrap; }
  .download-group > header > div { width: calc(100% - 90px); }
  .download-group > header .button { flex: 1; }
  .download-files article { grid-template-columns: 34px minmax(0,1fr) 31px; }
  .download-files article button { width: 31px; padding: 0; justify-content: center; font-size: 0; }
  .notification-item { grid-template-columns: 36px minmax(0,1fr) 31px; padding: 12px 10px; }
  .notification-item > button:not(.mark-read) { grid-column: 2; width: fit-content; }
  .notification-item > .mark-read { grid-column: 3; grid-row: 1; }
  .channel-grid { grid-template-columns: 1fr; }
  .drawer-command-grid { grid-template-columns: 1fr; }
  .upload-dock { right: 8px; bottom: 8px; width: calc(100vw - 16px); border-radius: 14px; }
  .upload-dock:not(.collapsed) { max-height: min(66vh,520px); }
  .upload-dock-list { max-height: calc(66vh - 53px); }
  .preview-modal, .bold-modal { padding: 0; align-items: flex-end; }
  .preview-panel, .bold-modal-panel { max-height: 94vh; border-radius: 20px 20px 0 0; }
  .video-stage { margin: 0 10px; }
  #preview-waveform { width: calc(100% - 20px); margin: 0 10px; }
  .preview-meta { padding-inline: 10px; }
  .preview-panel > footer { padding-inline: 10px; }
  .recovery-generated strong { font-size: 14px; }
}

/* Rendered markup alignment */
.library-list-head { min-height: 38px; padding: 0 16px; display: grid; grid-template-columns: 24px minmax(260px,1fr) 110px 120px 100px auto; gap: 10px; align-items: center; color: #9a9eae; background: #fafbfe; border-bottom: 1px solid var(--line); font-size: 8px; }
.library-row { grid-template-columns: 24px minmax(260px,1fr) 110px 120px 100px auto; }
.library-primary { min-width: 0; display: flex; flex-direction: column; }
.library-primary > div { min-width: 0; display: flex; align-items: center; gap: 3px; }
.library-primary > div > strong { min-width: 0; margin-left: 4px; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.library-primary > small { margin-left: 66px; color: #969aac; font-size: 8px; }
.tag-line { min-height: 17px; margin: 4px 0 0 66px; display: flex; gap: 4px; overflow: hidden; }
.tag-line i { padding: 2px 6px; color: #5d52c9; background: var(--violet-soft); border-radius: 99px; font-size: 7px; font-style: normal; white-space: nowrap; }
.quick-icon.star.active { color: #f2a227; }
.upload-file-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #5e52cf; background: var(--violet-soft); border-radius: 9px; }
.upload-task-head > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.upload-task-head > div strong { overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.upload-task-head > div small { color: #969aac; font-size: 7px; }
.upload-task-progress { height: 6px; margin: 9px 0 5px; overflow: hidden; background: #e7e9f0; border-radius: 99px; }
.upload-task-progress span { display: block; height: 100%; background: linear-gradient(90deg,var(--violet),var(--cyan)); border-radius: inherit; transition: width .2s ease; }
.upload-warning { margin: 7px 0 0; color: #a65e23; font-size: 7px; }
@media (max-width:1180px) {
  .library-list-head, .library-row { grid-template-columns: 24px minmax(230px,1fr) 105px 100px auto; }
  .library-list-head span:nth-child(5), .library-row > .library-cell:nth-of-type(2) { display:none; }
}
@media (max-width:680px) {
  .library-list-head { display:none; }
  .library-row { grid-template-columns:20px minmax(0,1fr) auto; }
  .library-row > .status-chip, .library-row > .library-cell { display:none; }
  .library-actions { grid-column:3; }
  .library-primary > small, .tag-line { margin-left:66px; }
}
