@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root { color-scheme: dark; font-family: "DM Sans", Arial, sans-serif; background: #081a2b; color: #eff7f6; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 88% 8%, #124354 0, transparent 26rem), radial-gradient(circle at 4% 78%, #0d3447 0, transparent 32rem), #081a2b; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(224, 246, 240, .15); }
.brand { display: inline-flex; gap: 11px; align-items: center; color: #f1f8f5; font-size: 1.19rem; font-weight: 700; text-decoration: none; letter-spacing: -.045em; }
.brand > span:last-child span { color: #a7edcd; }
.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skewY(-18deg); }
.brand-mark i { border-radius: 5px; background: #a7edcd; display: block; }
.brand-mark i:nth-child(2) { background: #5bc0b7; margin-top: 5px; }.brand-mark i:nth-child(3) { background: #e7db70; margin-top: 10px; }
.connection { font-family: "DM Mono", monospace; font-size: .72rem; letter-spacing: .02em; color: #a9c1c3; display: flex; align-items: center; gap: 8px; }
.connection span { display:block; width: 7px; height: 7px; border-radius: 50%; background: #ce9a5e; box-shadow: 0 0 0 4px rgba(206,154,94,.12); }
.connection.connected { color: #a7edcd; }
.connection.connected span { background: #5bc0b7; box-shadow: 0 0 0 4px rgba(91,192,183,.2); }
.workspace { padding: 78px 0 62px; }
.intro { max-width: 690px; }.eyebrow { margin: 0 0 13px; color: #a7edcd; font: 500 .72rem/1 "DM Mono", monospace; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 20px; font-size: clamp(2.6rem, 6vw, 5.45rem); line-height: .99; letter-spacing: -.07em; font-weight: 600; } h1 em { color: #a7edcd; font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -.07em; }
.lede { max-width: 530px; color: #b3c9cd; font-size: 1.05rem; line-height: 1.62; }
/* Navigation Tabs: Main & Username */
.nav-tabs { display: flex; align-items: center; gap: 8px; margin-top: 42px; margin-bottom: -1px; position: relative; z-index: 5; }
.tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; background: rgba(4, 20, 30, 0.65); border: 1px solid rgba(200, 234, 225, 0.16); border-bottom: 0; border-radius: 12px 12px 0 0; color: #8da9ad; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.18s ease; user-select: none; }
.tab-btn:hover { background: rgba(7, 30, 44, 0.85); color: #eff7f6; border-color: rgba(167, 237, 205, 0.3); }
.tab-btn.active { background: rgba(255, 255, 255, 0.08); color: #a7edcd; border-color: rgba(200, 234, 225, 0.24); position: relative; }
.tab-btn.active::after { content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 3px; background: #a7edcd; border-radius: 3px 3px 0 0; }
.tab-badge { font-family: "DM Mono", monospace; font-size: 0.7rem; padding: 2px 7px; border-radius: 99px; background: rgba(167, 237, 205, 0.18); color: #a7edcd; font-weight: 700; border: 1px solid rgba(167, 237, 205, 0.3); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.22s ease; }
.tab-panel .intake-card { margin-top: 0; border-top-left-radius: 0; }

.intake-card { margin-top: 45px; padding: 26px; border: 1px solid rgba(200,234,225,.19); border-radius: 18px; background: linear-gradient(125deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); box-shadow: 0 20px 48px rgba(0,0,0,.12); }
.intake-card label { display: block; margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
/* Platform Switcher Bar & Buttons */
.platform-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.platform-bar label { margin-bottom: 0 !important; }
.platform-toggle { display: inline-flex; align-items: center; background: rgba(3, 16, 26, 0.75); border: 1px solid rgba(200, 234, 225, 0.18); border-radius: 99px; padding: 3px; gap: 3px; }
.platform-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; border: 1px solid transparent; background: transparent; color: #8da9ad; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.16s ease; user-select: none; line-height: 1.2; }
.platform-btn:hover { color: #eff7f6; background: rgba(255, 255, 255, 0.05); }
.platform-btn.active[data-platform="instagram"] { background: linear-gradient(135deg, rgba(231, 219, 112, 0.2), rgba(167, 237, 205, 0.22)); color: #a7edcd; border-color: rgba(167, 237, 205, 0.4); box-shadow: 0 2px 8px rgba(167, 237, 205, 0.15); }
.platform-btn.active[data-platform="tiktok"] { background: linear-gradient(135deg, rgba(37, 244, 238, 0.2), rgba(254, 44, 85, 0.22)); color: #25f4ee; border-color: rgba(37, 244, 238, 0.45); box-shadow: 0 2px 8px rgba(37, 244, 238, 0.18); }
.platform-btn.active[data-platform="threads"] { background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12)); color: #ffffff; border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2); }
.platform-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; flex-shrink: 0; }
.platform-btn-icon svg { display: block; width: 100%; height: 100%; }
.platform-dot { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; line-height: 1; }
.platform-dot svg { display: block; width: 22px; height: 22px; }
.brand-svg-ig { color: #f0bd6a; }
.platform-btn.active[data-platform="instagram"] .platform-btn-icon svg { color: #a7edcd; }
.brand-svg-tt, .platform-btn[data-platform="tiktok"] .platform-btn-icon svg { color: #25f4ee; filter: drop-shadow(1px 1px 0 #fe2c55); }
.brand-svg-th, .platform-btn[data-platform="threads"] .platform-btn-icon svg { color: #ffffff; }
.username-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.username-card-header label { margin-bottom: 0; }
.history-clear-btn { background: transparent; border: 0; color: #f2b491; font-size: 0.78rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 2px 6px; border-radius: 4px; transition: color 0.15s, background 0.15s; }
.history-clear-btn:hover { color: #fff; background: rgba(242, 180, 145, 0.2); }
.username-field { position: relative; }
.dropdown-toggle-btn { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(167, 237, 205, 0.2); color: #a7edcd; width: 34px; height: 34px; border-radius: 7px; font-size: 0.85rem; display: grid; place-items: center; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; flex-shrink: 0; }
.dropdown-toggle-btn:hover { background: rgba(167, 237, 205, 0.18); border-color: #a7edcd; }
.dropdown-toggle-btn.is-open { transform: rotate(180deg); background: rgba(167, 237, 205, 0.25); }

/* Select2 Searchable Dropdown */
.username-input-wrapper { position: relative; width: 100%; }
.username-dropdown { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; background: #081d2c; border: 1.5px solid rgba(167, 237, 205, 0.4); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85); overflow: hidden; animation: fadeIn 0.18s ease; max-height: 280px; display: flex; flex-direction: column; }
.username-dropdown[hidden] { display: none; }
.dropdown-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #04121c; border-bottom: 1px solid rgba(224, 246, 240, 0.1); font-size: 0.72rem; color: #8ba5a8; font-family: "DM Mono", monospace; }
.dropdown-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; max-height: 230px; }
.dropdown-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 8px; color: #d6e8e5; font-size: 0.9rem; cursor: pointer; transition: background 0.12s, color 0.12s; }
.dropdown-item:hover, .dropdown-item.is-selected { background: rgba(167, 237, 205, 0.14); color: #fff; }
.dropdown-item-content { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.dropdown-item-icon { color: #a7edcd; font-size: 0.95rem; font-weight: 700; }
.dropdown-item-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-item-badge { font-family: "DM Mono", monospace; font-size: 0.68rem; color: #7fa4a8; margin-left: 6px; }
.dropdown-item-delete { background: transparent; border: 0; color: #809fa3; font-size: 1rem; line-height: 1; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
.dropdown-item-delete:hover { background: rgba(242, 180, 145, 0.25); color: #f5c4a7; }
.dropdown-empty { padding: 16px; text-align: center; color: #7fa4a8; font-size: 0.82rem; }

/* Quick Chips List */
.username-chips-container { margin-top: 14px; }
.chips-label { font-size: 0.76rem; color: #7da0a5; font-family: "DM Mono", monospace; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.05em; }
.username-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 28px; align-items: center; }
.chips-empty { font-size: 0.78rem; color: #6a8b90; font-style: italic; }
.username-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(167, 237, 205, 0.22); border-radius: 99px; color: #d6e8e5; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.15s ease; }
.username-chip:hover { background: rgba(167, 237, 205, 0.16); border-color: #a7edcd; color: #fff; transform: translateY(-1px); }
.username-chip-delete { background: transparent; border: 0; color: #78999c; font-size: 0.85rem; line-height: 1; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; margin-left: 2px; transition: color 0.12s, background 0.12s; }
.username-chip-delete:hover { color: #fff; background: rgba(242, 180, 145, 0.5); }

.url-field { display:flex; align-items:center; gap: 12px; min-height: 59px; padding: 7px 8px 7px 16px; background:#061520; border:1px solid #31505b; border-radius:11px; transition: border-color .2s, box-shadow .2s; }
.url-field:focus-within { border-color:#a7edcd; box-shadow:0 0 0 3px rgba(167,237,205,.12); }
.platform-dot { color:#f0bd6a; font-size:1.55rem; line-height:1; }.url-field input { min-width:0; width:100%; border:0; outline:0; color:#eff7f6; background:transparent; font-size:1rem; }.url-field input::placeholder { color:#6f8b95; }.paste-button { border:0; color:#b9ddd2; background:rgba(167,237,205,.1); padding:9px 14px; border-radius:7px; font-size:.84rem; white-space:nowrap; transition: background .15s, color .15s, border-color .15s; }.paste-button:hover { background:rgba(167,237,205,.2); color:#eff7f6; }.paste-button.is-clear { background:rgba(242,180,145,.15); color:#f5c4a7; border:1px solid rgba(242,180,145,.3); }.paste-button.is-clear:hover { background:rgba(242,180,145,.28); color:#fff; border-color:rgba(242,180,145,.5); }
.form-foot { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:17px; }.form-foot p { margin:0; color:#82a0a6; font-size:.82rem; }.primary-button, .download-button { border:0; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; gap:20px; background:#a7edcd; color:#0a2830; font-weight:700; padding:13px 16px 13px 19px; transition:transform .15s, background .15s; }.primary-button:hover, .download-button:hover:not(:disabled) { background:#c8f5dd; transform:translateY(-1px); }.primary-button b { font-size:1.2rem; }.primary-button:disabled, .download-button:disabled { cursor:not-allowed; opacity:.43; }
/* Loading State Animation */
.loading-state { margin-top:60px; min-height:260px; display:flex; align-items:center; justify-content:center; flex-direction:column; color:#a7c2c2; text-align:center; border-top:1px solid rgba(224,246,240,.12); animation:fadeIn .3s ease; }
.loading-state[hidden] { display:none; }
.loader-visual { width:72px; height:72px; position:relative; display:grid; place-items:center; margin-bottom:20px; }
.loader-ring { position:absolute; inset:0; border-radius:50%; border:3px solid transparent; border-top-color:#a7edcd; border-right-color:#5bc0b7; animation:spin .9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite; filter:drop-shadow(0 0 8px rgba(167,237,205,.4)); }
.loader-core { position:absolute; inset:12px; border-radius:50%; background:radial-gradient(circle, rgba(167,237,205,.3) 0%, rgba(91,192,183,.05) 70%, transparent 100%); animation:pulseCore 1.6s ease-in-out infinite; }
.loader-icon { font-size:1.6rem; color:#a7edcd; line-height:1; animation:pulseCore 1.6s ease-in-out infinite; }
.loading-state h2 { margin:0 0 8px; font-size:1.25rem; color:#e1efed; letter-spacing:-.02em; }
.loading-state p { margin:0 0 20px; font-size:.88rem; color:#95b4b7; max-width:420px; }
.loading-bar { width:240px; height:4px; border-radius:99px; background:rgba(200,234,225,.1); overflow:hidden; position:relative; }
.loading-fill { height:100%; width:40%; border-radius:99px; background:linear-gradient(90deg, #5bc0b7, #a7edcd, #e7db70); position:absolute; animation:progressShimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseCore { 0%, 100% { transform: scale(0.92); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 12px rgba(167,237,205,.6)); } }
@keyframes progressShimmer { 0% { left: -40%; width: 30%; } 50% { width: 55%; } 100% { left: 110%; width: 30%; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes zoomIn { from { opacity:0; transform:scale(0.94); } to { opacity:1; transform:scale(1); } }

/* Media Card Interactive Preview */
.media-card { cursor: pointer; }
.preview-overlay { position:absolute; inset:0; z-index:1; background:rgba(3,19,30,.45); backdrop-filter:blur(2px); display:grid; place-items:center; opacity:0; transition:opacity .2s ease; pointer-events:none; }
.preview-overlay span { background:rgba(4,20,30,.85); border:1px solid rgba(167,237,205,.35); color:#a7edcd; padding:7px 13px; border-radius:20px; font-size:.78rem; font-weight:600; letter-spacing:.02em; box-shadow:0 4px 16px rgba(0,0,0,.4); display:inline-flex; align-items:center; gap:6px; }
.media-card:hover .preview-overlay { opacity:1; }

/* Preview Modal / Lightbox */
.preview-modal { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:20px; }
.preview-modal[hidden] { display:none; }
.modal-backdrop { position:absolute; inset:0; background:rgba(3,15,24,.88); backdrop-filter:blur(14px); animation:fadeIn .2s ease; }
.modal-dialog { position:relative; z-index:2; width:min(880px, 94vw); max-height:92vh; background:#071a29; border:1px solid rgba(167,237,205,.25); border-radius:18px; box-shadow:0 30px 80px rgba(0,0,0,.75); display:flex; flex-direction:column; overflow:hidden; animation:zoomIn .22s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:16px 22px; border-bottom:1px solid rgba(224,246,240,.12); background:#061622; gap:12px; }
.modal-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0; }
.modal-badge { font-family:"DM Mono",monospace; font-size:.72rem; padding:4px 9px; border-radius:6px; background:rgba(167,237,205,.15); color:#a7edcd; font-weight:600; border:1px solid rgba(167,237,205,.25); }
.modal-counter { font-family:"DM Mono",monospace; font-size:.74rem; padding:3px 8px; border-radius:6px; background:rgba(255,255,255,.07); color:#9ab4b6; border:1px solid rgba(255,255,255,.12); }
.modal-header h3 { margin:0; font-size:1.05rem; font-weight:600; color:#eff7f6; letter-spacing:-.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.modal-close { background:transparent; border:0; color:#b1ced0; font-size:1.3rem; line-height:1; width:34px; height:34px; border-radius:8px; display:grid; place-items:center; cursor:pointer; transition:background .15s, color .15s; flex-shrink:0; }
.modal-close:hover { background:rgba(255,255,255,.1); color:#fff; }
.modal-body-wrapper { position:relative; flex:1; display:flex; align-items:center; justify-content:center; background:#030c13; overflow:hidden; touch-action:pan-y pinch-zoom; }
.modal-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:10; width:44px; height:44px; border-radius:50%; border:1px solid rgba(167,237,205,.35); background:rgba(6,26,38,.78); backdrop-filter:blur(8px); color:#a7edcd; font-size:1.8rem; line-height:1; display:grid; place-items:center; cursor:pointer; transition:background .15s, transform .15s, color .15s, border-color .15s; user-select:none; }
.modal-nav:hover { background:#a7edcd; color:#06202a; border-color:#a7edcd; transform:translateY(-50%) scale(1.08); }
.modal-nav:active { transform:translateY(-50%) scale(0.95); }
.modal-nav-prev { left:14px; }
.modal-nav-next { right:14px; }
.modal-nav[hidden] { display:none; }
.modal-body { width:100%; height:100%; flex:1; display:flex; align-items:center; justify-content:center; padding:16px; overflow:hidden; min-height:300px; max-height:68vh; user-select:none; }
.modal-body img { max-width:100%; max-height:66vh; object-fit:contain; border-radius:10px; box-shadow:0 8px 32px rgba(0,0,0,.5); }
.modal-body video { max-width:100%; max-height:66vh; border-radius:10px; outline:none; box-shadow:0 8px 32px rgba(0,0,0,.5); background:#000; }
.modal-footer { display:flex; flex-direction:column; align-items:stretch; padding:14px 20px 16px; border-top:1px solid rgba(224,246,240,.12); background:#061622; gap:12px; }
.modal-footer-top { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.modal-check-pill { display:inline-flex; align-items:center; gap:10px; padding:8px 16px; border-radius:99px; background:rgba(255,255,255,.08); border:1.5px solid rgba(167,237,205,.35); color:#e1f2ef; font-size:.9rem; font-weight:700; cursor:pointer; user-select:none; transition:all .16s ease; -webkit-tap-highlight-color:transparent; }
.modal-check-pill input { position:absolute; opacity:0; pointer-events:none; }
.modal-check-indicator { display:grid; place-items:center; width:24px; height:24px; border-radius:6px; border:1.5px solid rgba(255,255,255,.75); background:rgba(4,20,30,.65); color:transparent; font-size:.92rem; font-weight:800; line-height:1; transition:all .16s ease; }
.modal-check-pill:hover { background:rgba(167,237,205,.18); border-color:#a7edcd; }
.modal-check-pill:has(input:checked) { background:rgba(167,237,205,.22); border-color:#a7edcd; color:#a7edcd; }
.modal-check-pill:has(input:checked) .modal-check-indicator { background:#a7edcd; border-color:#a7edcd; color:#06202a; }
.modal-filename { font-family:"DM Mono",monospace; font-size:.8rem; color:#84a2a4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:48%; text-align:left; margin-right:auto; }
.modal-footer-actions { display:flex; align-items:center; gap:10px; width:100%; }
.modal-footer-actions .modal-download-btn { flex:1; height:44px; }
.modal-download-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:10px 16px; border-radius:8px; font-weight:700; font-size:.85rem; text-decoration:none; border:0; cursor:pointer; line-height:1; transition:transform .15s, background .15s, opacity .15s; box-sizing:border-box; }
.modal-download-single { background:#a7edcd; color:#0a2830; }
.modal-download-single:hover { background:#c8f5dd; transform:translateY(-1px); }
.modal-download-selected { background:linear-gradient(135deg, #e7db70, #7cd6bb); color:#082130; }
.modal-download-selected:hover:not(:disabled) { background:linear-gradient(135deg, #f4e98f, #94e3cb); transform:translateY(-1px); }
.modal-download-selected:disabled { opacity:.38; cursor:not-allowed; filter:grayscale(.5); }
/* Media Groups & Sub-Categories */
.media-groups { margin-top: 24px; display: flex; flex-direction: column; gap: 34px; }
.media-group { display: flex; flex-direction: column; gap: 14px; }
.group-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(5, 22, 34, 0.65); border: 1px solid rgba(167, 237, 205, 0.16); border-radius: 12px; backdrop-filter: blur(8px); }
.group-title { display: flex; align-items: center; gap: 11px; }
.group-title h3 { margin: 0; font-size: 1.02rem; font-weight: 700; color: #eff7f6; letter-spacing: -0.02em; }
.group-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.92rem; font-weight: 700; flex-shrink: 0; }
.story-icon { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; box-shadow: 0 0 10px rgba(220, 39, 67, 0.45); }
.feed-icon { background: linear-gradient(135deg, #5bc0b7, #a7edcd); color: #082130; }
.profile-icon { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: #fff; }
.source-avatar { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.source-avatar:hover { transform: scale(1.1); box-shadow: 0 0 14px rgba(167, 237, 205, 0.6); }
.group-count { font-family: "DM Mono", monospace; font-size: 0.74rem; color: #a9c1c3; background: rgba(255, 255, 255, 0.07); padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.1); }
.media-group .media-grid { margin-top: 0; }
.results { margin-top:52px; }.top-selection-bar { margin-top:16px; padding:10px 14px; background:rgba(4,20,30,.5); border:1px solid rgba(200,234,225,.14); border-radius:10px; display:flex; align-items:center; justify-content:space-between; gap:12px; }.top-selection-bar[hidden] { display:none !important; }.top-selection-hint { margin:0; font-family:"DM Mono",monospace; font-size:.82rem; color:#92afb0; text-align:left; }.top-all-select { margin-left:auto; }.result-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:22px; }.result-heading h2 { margin:0; letter-spacing:-.045em; font-size:1.8rem; }.text-button { background:transparent; border:0; padding:8px 0; color:#b1ced0; text-decoration:underline; text-underline-offset:3px; font-size:.85rem; }.source-summary { display:flex; align-items:center; gap:12px; padding:15px 17px; border:1px solid rgba(200,234,225,.14); background:rgba(3,19,30,.48); border-radius:10px; color:#d5e4e2; font-size:.92rem; }.source-avatar { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#e7db70,#7cd6bb); color:#082130; font-weight:700; }.source-meta { display:flex; flex-direction:column; gap:2px; }.source-meta small { color:#83a3a5; font-family:"DM Mono",monospace; font-size:.68rem; }.notice { margin-top:15px; border-left:3px solid #e7db70; padding:11px 13px; background:rgba(231,219,112,.09); color:#e8e3b2; border-radius:0 7px 7px 0; font-size:.83rem; line-height:1.5; }.media-grid { margin-top:18px; display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }.media-card { overflow:hidden; border:1px solid rgba(200,234,225,.16); background:#092131; border-radius:13px; position:relative; transition:border .16s, transform .16s; }.media-card:hover { transform:translateY(-2px); border-color:#75bcae; }.media-card:has(input:checked) { border-color:#a7edcd; box-shadow:0 0 0 1px #a7edcd; }.media-check { position:absolute; z-index:10; top:10px; right:10px; width:38px; height:38px; cursor:pointer; display:grid; place-items:center; }.media-check input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }.media-check span:not(.sr-only) { display:grid; place-items:center; width:34px; height:34px; color:transparent; border:1.5px solid rgba(255,255,255,.8); border-radius:9px; background:rgba(4,20,30,.65); backdrop-filter:blur(4px); font-size:1.1rem; font-weight:800; box-shadow:0 4px 12px rgba(0,0,0,.45); transition:transform .15s, background .15s, border-color .15s; }.media-check:hover span:not(.sr-only) { transform:scale(1.06); border-color:#a7edcd; }.media-check input:checked + span { color:#06202a; border-color:#a7edcd; background:#a7edcd; }.media-preview { height:190px; background:linear-gradient(145deg,#1b5260,#0b2a43); display:grid; place-items:center; overflow:hidden; }.media-preview img,.media-preview video { width:100%; height:100%; object-fit:cover; }.media-preview .placeholder-icon { font:500 2.2rem/1 "Playfair Display",serif; color:#d8f0dd; opacity:.9; }.video-badge { position:absolute; top:14px; left:14px; background:rgba(3,19,30,.78); padding:5px 7px; border-radius:5px; font:500 .64rem/1 "DM Mono",monospace; color:#d9f5e4; }.media-info { padding:10px 12px 12px; display:flex; justify-content:space-between; gap:8px; align-items:center; }.media-info-text { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }.media-info strong { font-size:.84rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#eff7f6; }.media-info span { color:#84a2a4; font: .64rem/1 "DM Mono",monospace; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.card-direct-download-btn { display:inline-flex; align-items:center; gap:5px; padding:6px 11px; border-radius:7px; border:1px solid rgba(167,237,205,.35); background:rgba(167,237,205,.12); color:#a7edcd; font-size:.76rem; font-weight:700; cursor:pointer; white-space:nowrap; transition:all .16s ease; flex-shrink:0; user-select:none; }.card-direct-download-btn:hover { background:#a7edcd; color:#06202a; border-color:#a7edcd; transform:translateY(-1px); box-shadow:0 3px 10px rgba(167,237,205,.3); }.card-direct-download-btn:active { transform:translateY(0) scale(0.96); }.card-download-icon { font-size:.9rem; font-weight:800; line-height:1; }.download-bar { margin-top:24px; padding:18px 0 8px; border-top:1px solid rgba(200,234,225,.16); display:flex; align-items:center; justify-content:space-between; gap:16px; }.download-bar[hidden] { display:none !important; }.download-meta p { margin:0; font-size:.86rem; color:#92afb0; font-family:"DM Mono",monospace; letter-spacing:.01em; }.download-actions { display:flex; flex-direction:column; align-items:flex-end; gap:10px; margin-left:auto; }.download-row-primary { display:flex; align-items:center; gap:10px; }.all-select, .download-button { height:42px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; border-radius:9px; font-size:.88rem; font-weight:600; line-height:1; }.all-select { gap:8px; color:#d5e5e2; cursor:pointer; user-select:none; padding:0 14px; background:rgba(255,255,255,.05); border:1px solid rgba(167,237,205,.22); transition:background .15s, border-color .15s; }.all-select:hover { background:rgba(167,237,205,.14); border-color:#a7edcd; }.all-select input { accent-color:#a7edcd; width:17px; height:17px; margin:0; cursor:pointer; }.download-button { border:0; padding:0 18px; background:#a7edcd; color:#0a2830; font-weight:700; cursor:pointer; gap:8px; transition:transform .15s, background .15s, opacity .15s; }.download-button:hover:not(:disabled) { background:#c8f5dd; transform:translateY(-1px); }.download-button:disabled { cursor:not-allowed; opacity:.43; }.download-all-direct { width:100%; height:48px; margin-top:10px; background:linear-gradient(135deg, #e7db70, #a7edcd); color:#06202a; font-size:.96rem; font-weight:800; letter-spacing:.01em; box-shadow:0 4px 16px rgba(167,237,205,.28); }.download-all-direct:hover:not(:disabled) { background:linear-gradient(135deg, #f4e98f, #c7f6e0); transform:translateY(-1px); box-shadow:0 6px 20px rgba(167,237,205,.4); }
.how-it-works { border-top:1px solid rgba(224,246,240,.15); display:grid; grid-template-columns:repeat(3, 1fr); padding:25px 0 28px; }.how-it-works div { display:flex; gap:11px; align-items:center; }.how-it-works span { color:#a7edcd; font: .66rem/1 "DM Mono",monospace; }.how-it-works p { margin:0; font-size:.84rem; color:#acc2c5; }footer { border-top:1px solid rgba(224,246,240,.15); padding:24px 0 33px; color:#78969b; font-size:.73rem; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width: 680px) { .app-shell{width:min(100% - 28px, 1180px)} .topbar{height:76px}.connection{font-size:.62rem}.workspace{padding:52px 0 34px}.nav-tabs{margin-top:28px}.tab-btn{padding:9px 15px;font-size:.82rem}.tab-panel .intake-card{margin-top:0}.intake-card{padding:17px;margin-top:32px}.platform-bar{margin-bottom:10px}.platform-btn{padding:4px 9px;font-size:.74rem}.url-field{gap:8px;padding-left:12px}.form-foot{align-items:stretch;flex-direction:column}.primary-button{width:100%}.loading-state{margin-top:37px;min-height:210px}.media-grid{grid-template-columns:1fr 1fr;gap:11px}.media-preview{height:154px}.media-info{padding:9px 10px}.card-direct-download-btn{padding:5px 8px;font-size:.72rem;gap:3px}.top-selection-bar{margin-top:12px;padding:9px 12px}.top-selection-bar[hidden]{display:none !important}.download-bar{flex-direction:column;align-items:stretch;gap:12px}.download-bar[hidden]{display:none !important}.download-meta p{text-align:center;font-size:.82rem}.download-actions{width:100%;align-items:stretch;gap:10px;margin-left:0}.download-row-primary{width:100%;display:flex;align-items:center;gap:10px}.download-row-primary .all-select{flex:1;height:44px;justify-content:center}.download-row-primary .download-button{flex:1.2;height:44px;justify-content:center}.download-all-direct{width:100%;height:50px;margin-top:10px;font-size:.98rem}.modal-header{padding:14px 16px}.modal-meta{gap:6px}.modal-header h3{font-size:.95rem}.modal-footer{padding:12px 14px 14px;gap:10px}.modal-footer-top{flex-direction:row;justify-content:space-between;align-items:center}.modal-check-pill{padding:8px 14px;font-size:.86rem;gap:8px}.modal-check-indicator{width:22px;height:22px;font-size:.88rem}.modal-filename{font-size:.74rem;max-width:42%;text-align:left;margin-right:auto}.modal-footer-actions{display:flex;gap:8px;width:100%}.modal-footer-actions .modal-download-btn{flex:1;height:44px;font-size:.82rem;padding:0 6px;text-align:center}.modal-nav{width:38px;height:38px;font-size:1.5rem;background:rgba(6,26,38,.85)}.modal-nav-prev{left:8px}.modal-nav-next{right:8px}.how-it-works{gap:8px}.how-it-works div{gap:7px}.how-it-works p{font-size:.73rem} }
/* Floating Navigation Buttons (Up & Down) */
.floating-nav {
  position: fixed;
  bottom: 24px;
  right: 22px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(167, 237, 205, 0.4);
  background: rgba(6, 26, 38, 0.88);
  backdrop-filter: blur(12px);
  color: #a7edcd;
  font-size: 1.3rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s, box-shadow 0.2s;
  animation: fadeIn 0.25s ease;
}
.float-btn[hidden] {
  display: none;
}
.float-btn:hover {
  transform: translateY(-3px) scale(1.06);
  background: #a7edcd;
  color: #082130;
  box-shadow: 0 12px 32px rgba(167, 237, 205, 0.45);
}
.float-btn:active {
  transform: translateY(0) scale(0.95);
}
@media (max-width: 680px) {
  .floating-nav {
    bottom: 20px;
    right: 18px;
    gap: 8px;
  }
  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}
