:root {
    --ink: #183432; --muted: #687873; --brand: #087e78; --brand-dark: #075a56;
    --brand-soft: #e9f5f3; --accent: #f59a1b; --surface: #fff; --background: #f4f7f6;
    --soft: #f0f5f3; --line: #dfe8e5; --danger: #b63e45; --radius: 14px;
    --shadow: 0 5px 20px rgba(20,54,46,.035);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { max-width: 100%; min-width: 320px; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--background); font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 50; padding: 12px 18px; background: #fff; border: 2px solid var(--brand); border-radius: 8px; color: var(--brand-dark); }
.skip-link:focus { top: 12px; }

/* Modern app shell */
.app-page { padding-left: 248px; }
.topbar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 248px; border-right: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 8px 0 30px rgba(23,55,47,.035); }
.topbar::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg,var(--brand),#26aaa1 62%,var(--accent)); }
.topbar-inner { min-height: 100%; display: flex; flex-direction: column; }
.brand { min-height: 94px; display: flex; align-items: center; gap: 10px; padding: 20px 22px 16px; border-bottom: 1px solid #edf2f0; color: var(--ink); text-decoration: none; }
.brand-logo { width: 94px; height: 40px; flex: 0 0 94px; overflow: hidden; background: #fff; }
.brand-logo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.brand-name { min-width: 0; display: grid; line-height: 1.08; }
.brand-name strong { font-size: 14px; letter-spacing: -.01em; }
.brand-name small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .02em; }
.nav-list { display: grid; gap: 6px; padding: 18px 14px; }
.nav-list::before { content: "Workspace"; padding: 4px 10px 12px; color: #7c8c87; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-item { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #566660; cursor: pointer; font-size: 13px; font-weight: 700; text-align: left; transition: background .16s,color .16s,transform .16s; }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:first-of-type svg { fill: currentColor; stroke: none; }
.nav-item:hover { color: var(--brand); background: #f2f8f6; transform: translateX(2px); }
.nav-item.is-active { color: var(--brand-dark); background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.account-area { margin-top: auto; display: grid; gap: 12px; padding: 17px 20px 20px; border-top: 1px solid #edf2f0; }
.service-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #d09a38; box-shadow: 0 0 0 4px rgba(208,154,56,.12); }
.service-status.is-online .status-dot { background: #25a66e; box-shadow: 0 0 0 4px rgba(37,166,110,.12); }
.service-status.is-offline .status-dot { background: #d5545a; box-shadow: 0 0 0 4px rgba(213,84,90,.12); }
.user-chip { overflow: hidden; color: #344641; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.user-chip::before { content: ""; width: 8px; height: 8px; margin-right: 10px; display: inline-block; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.logout-form { margin: 0; }
.logout-form button { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.workspace-access { display: grid; gap: 3px; }
.workspace-role { color: var(--brand); font-size: 11px; font-weight: 750; }
.workspace-usage { color: var(--muted); font-size: 10px; }
.workspace-password { border: 0; padding: 0; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-size: 11px; }
.workspace-access-note { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.nav-admin-link { text-decoration: none; margin-top: 10px; }
#accountPasswordForm .field + .field { margin-top: 14px; }

/* Layout */
.overview-heading { padding: 14px 0 8px; }
.overview-heading h1 { font-size: clamp(28px,3.1vw,38px); }
#welcomeView .workspace-card { min-height: 150px; }
#welcomeView .workspace-grid { max-width: 1000px; }
.content { width: min(1360px,calc(100vw - 248px - 64px)); min-width: 0; margin: 0 auto; padding: 40px 0 64px; }
.view { display: none; }
.view.is-active { display: block; }
.page-heading { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-actions, .result-actions, .panel-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(30px,4vw,40px); line-height: 1.08; letter-spacing: -.045em; }
h2 { margin-bottom: 4px; font-size: 18px; letter-spacing: -.02em; }
h3 { margin-bottom: 5px; font-size: 15px; }
.lede { margin-bottom: 0; color: var(--muted); font-size: 14px; }

/* Inputs and actions */
.search-panel, .video-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.search-panel { display: grid; grid-template-columns: minmax(260px,1fr) 100px auto auto; align-items: end; gap: 12px; padding: 16px; }
.video-panel { padding: 17px; }
.field { min-width: 0; display: grid; gap: 7px; }
.field > span, .check-field, .panel-footer p { color: #405953; font-size: 12px; font-weight: 650; }
.field-small { width: 100px; }
input, select, textarea { width: 100%; border: 1px solid #cedbd7; border-radius: 9px; background: #fff; color: var(--ink); outline: none; font-size: 14px; transition: border-color .15s,box-shadow .15s,background .15s; }
input, select { height: 44px; padding: 0 13px; }
textarea { min-height: 122px; padding: 13px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a1ada9; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(8,126,120,.1); }
.check-field { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 4px; white-space: nowrap; }
.check-field input { width: 16px; height: 16px; accent-color: var(--brand); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 650; white-space: nowrap; transition: transform .15s,background .15s,border-color .15s,box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 3px 6px rgba(8,126,120,.1); }
.button-primary:hover { box-shadow: 0 9px 20px rgba(8,126,120,.24); }
.button-secondary { border-color: #ccd9d5; background: #fff; color: #31433e; }
.button-secondary:hover { border-color: #aabfb9; background: #f8fbfa; }
.button-light { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.1); color: #fff; }
.sample-link { min-height: 38px; display: inline-flex; align-items: center; padding: 0 6px; color: var(--brand); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.sample-link::before { content: "↓"; margin-right: 6px; color: var(--accent); font-size: 14px; }
.sample-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.upload-note { margin: 10px 2px 0; color: var(--muted); font-size: 11px; }

/* Overview */
.section-label { margin: 0 0 10px; color: #9adbd5; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.welcome-hero { position: relative; min-height: 310px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: 20px; background: #073e3a; color: #fff; box-shadow: var(--shadow); }
.welcome-hero::before { content: ""; position: absolute; inset: 0; opacity: .26; background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to left,#000,transparent 68%); }
.welcome-hero::after { content: ""; position: absolute; right: -80px; top: -155px; width: 350px; height: 350px; border: 1px solid rgba(129,216,202,.14); border-radius: 50%; box-shadow: 0 0 0 70px rgba(129,216,202,.035),0 0 0 140px rgba(129,216,202,.025); }
.welcome-copy { position: relative; z-index: 1; align-self: center; padding: clamp(28px,3vw,44px); }
.welcome-copy h1 { max-width: 620px; margin-bottom: 16px; font-size: clamp(32px,3.2vw,47px); letter-spacing: -.035em; line-height: 1.15; }
.welcome-copy > p:not(.section-label) { margin-bottom: 24px; color: #d2e9e6; font-size: 15px; }
.welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.welcome-actions .button-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.welcome-summary { position: relative; z-index: 1; margin: 30px 30px 30px 0; padding: 27px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.035); }
.summary-label { margin-bottom: 20px; color: #a3ded8; font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.welcome-summary ol { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.welcome-summary li { display: grid; grid-template-columns: 36px 1fr; align-items: center; color: #eef9f7; font-size: 12px; }
.welcome-summary li strong, .welcome-summary li small { display: block; }
.welcome-summary li strong { font-size: 13px; font-weight: 600; }
.welcome-summary li small { color: #a7c7c1; font-size: 11px; margin-top: 2px; }
.welcome-summary li span { color: #f8b552; font-size: 10px; font-weight: 850; }
.workspace-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.workspace-card { min-width: 0; min-height: 125px; display: grid; grid-template-columns: 44px 1fr 32px; align-items: center; gap: 15px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); cursor: pointer; text-align: left; box-shadow: var(--shadow); transition: transform .16s,border-color .16s,box-shadow .16s; }
.platform-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-size: 22px; }
.youtube-mark { color: #e3423b; background: #fff0ed; }
.instagram-mark { color: #a7447c; background: #fbecf4; font-size: 34px; }
.workspace-card:hover { transform: translateY(-2px); border-color: #b8cbc5; box-shadow: var(--shadow); }
.card-number { color: var(--accent); font-size: 11px; font-weight: 850; }
.card-content strong, .card-content small { display: block; }
.card-content strong { margin-bottom: 5px; font-size: 18px; }
.card-content small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.7; }
.card-arrow { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 850; }

/* Results */
.results-head { margin: 28px 0 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.results-head p { margin: 0; color: var(--muted); font-size: 12px; }
.results-head p:empty, .empty-state p:empty { display: none; }
.table-filter { width: 210px; }
.table-filter input { height: 40px; }
.data-frame, .full-width { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(20,54,46,.035); }
.empty-state { min-height: 142px; display: grid; place-items: center; align-content: center; padding: 26px 20px; text-align: center; color: var(--muted); }
.empty-state::before { content: ""; width: 30px; height: 3px; margin-bottom: 13px; border-radius: 3px; background: linear-gradient(90deg,var(--brand),var(--accent)); }
.empty-state p { margin: 0; max-width: 430px; font-size: 12px; }
.empty-state h3 { color: var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 16px; background: #f8faf9; color: #73847e; font-size: 10px; text-align: left; letter-spacing: .04em; text-transform: uppercase; font-weight: 650; white-space: nowrap; }
td { padding: 16px; border-top: 1px solid #edf2f0; font-size: 13px; vertical-align: middle; }
tbody tr:hover { background: #fbfdfc; }
.creator-cell { min-width: 210px; display: flex; align-items: center; gap: 10px; }
.creator-cell img, .creator-fallback { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.creator-fallback { display: grid; place-items: center; color: var(--brand); font-weight: 850; }
.creator-name { display: block; color: var(--ink); font-weight: 750; }
.creator-meta { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.creator-name a { color: inherit; text-decoration: none; }
.creator-name a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.contact-cell { max-width: 210px; color: var(--muted); word-break: break-word; }
.open-link { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand); text-decoration: none; font-weight: 850; }

/* Video cards */
.panel-footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-footer p { margin: 0; font-weight: 600; }
.video-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.full-width { grid-column: 1/-1; }
.video-card { min-height: 154px; display: grid; grid-template-columns: 170px minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.video-card:hover { border-color: #b5ceca; }
.video-thumb-link { position: relative; display: block; min-height: 154px; overflow: hidden; background: var(--soft); }
.video-thumb { width: 100%; height: 100%; min-height: 154px; display: block; object-fit: cover; }
.play-badge { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(8,31,28,.82); color: #fff; font-size: 11px; transform: translate(-50%,-50%); }
.video-card-body { min-width: 0; padding: 18px; }
.video-title { margin: 0 0 6px; font-size: 15px; font-weight: 650; line-height: 1.45; }
.video-title a { color: var(--ink); text-decoration: none; }
.video-title a:hover { color: var(--brand); }
.video-channel { margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.metrics { display: flex; gap: 20px; flex-wrap: wrap; }
.metric strong { display: block; font-size: 18px; letter-spacing: -.02em; font-weight: 650; }
.metric span { display: block; color: var(--muted); font-size: 10px; }
.video-watch { display: inline-block; margin-top: 13px; color: var(--brand); font-size: 11px; font-weight: 650; text-decoration: none; }
.video-watch:hover { text-decoration: underline; }
.lookup-switch { display: flex; gap: 14px; margin: -5px 0 20px; border-bottom: 1px solid var(--line); }
.lookup-switch button { min-height: 36px; padding: 0 0 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.lookup-switch button.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.video-result-limit { margin-top: 16px; }
.tool-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); }
.tool-note > span { color: var(--brand); font-weight: 600; line-height: 1.3; }
.tool-note p { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.form-feedback { margin: 16px 0 0; padding: 12px; color: var(--brand-dark); background: var(--brand-soft); border: 1px solid #d6e8e2; border-radius: 8px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.form-feedback.is-error { color: #923840; background: #fff4f4; border-color: #efd3d5; }
.platform-results .video-result-actions { width: auto; }
.results-freshness { padding: 11px 20px; margin: 0; background: #f9fbfa; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; }
.video-external-links { min-width: 0; grid-column: 1/-1; padding: 14px 18px 17px; border-top: 1px solid var(--line); background: #fcfdfc; }
.external-links-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 11px; font-weight: 650; color: #536a63; }
.external-links-label > span { min-width: 20px; padding: 1px 5px; background: var(--brand-soft); border-radius: 5px; color: var(--brand); text-align: center; font-size: 10px; }
.external-link-list { display: flex; flex-wrap: wrap; gap: 7px; }
.external-link { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 6px 9px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--brand-dark); text-decoration: none; font-size: 11px; }
.external-link > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.external-link:hover { background: var(--brand-soft); border-color: #accfc5; }
.external-link > span:last-child { flex-shrink: 0; }
.more-links { margin-top: 10px; font-size: 11px; color: var(--brand); }
.more-links > summary { cursor: pointer; width: fit-content; }
.more-links .external-link-list { margin-top: 10px; }
.no-external-links { margin: 0; color: var(--muted); font-size: 11px; }
.platform-results[aria-busy="true"], [aria-busy="true"] .data-frame, [aria-busy="true"] .video-grid { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* Instagram workspace */
.page-kicker { margin: 0 0 6px; color: var(--brand); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.page-actions a.button { text-decoration: none; }
.connection-chip { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 750; }
.connection-chip i { width: 7px; height: 7px; border-radius: 50%; background: #d09a38; box-shadow: 0 0 0 4px rgba(208,154,56,.11); }
.connection-chip.is-connected i { background: #25a66e; box-shadow: 0 0 0 4px rgba(37,166,110,.11); }
.connection-chip.is-invalid i { background: #d5545a; box-shadow: 0 0 0 4px rgba(213,84,90,.11); }
.platform-workspace { display: grid; grid-template-columns: minmax(260px,300px) minmax(0,1fr); gap: 22px; align-items: start; }
.platform-tools, .platform-results { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.platform-tools { padding: 22px; }
.platform-results { overflow: hidden; }
.platform-results > div > .results-head, .instagram-results-heading { padding: 20px; margin: 0; border-bottom: 1px solid var(--line); align-items: center; flex-wrap: wrap; gap: 14px; }
.platform-results .results-head h2 { font-size: 16px; }
.platform-results .result-actions { flex-wrap: wrap; width: 100%; }
.platform-results .table-filter { flex: 1; width: auto; }
.platform-results .data-frame, .platform-results .full-width { border: 0; border-radius: 0; box-shadow: none; }
.platform-results .empty-state { min-height: 280px; }
.platform-results .video-grid { grid-template-columns: 1fr; padding: 12px; }
.platform-results .video-grid:has(.empty-state) { padding: 0; }
.platform-tools .search-panel, .platform-tools .video-panel { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.platform-tools .search-panel { grid-template-columns: 1fr; gap: 14px; }
.platform-tools .search-panel .field-small { width: 100%; }
.platform-tools .platform-submit { width: 100%; margin-top: 16px; }
.input-hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.field-hint { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.6; }
.platform-results th, .platform-results td { display: table-cell; }
.instagram-tools, .instagram-result-shell { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.instagram-tools { padding: 18px; }
.instagram-result-shell { min-height: 0; overflow: hidden; }
.platform-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 24px; padding: 4px; border-radius: 10px; background: var(--soft); }
.platform-tabs button { min-height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 650; }
.platform-tabs button.is-active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(20,54,46,.08); }
#instagramSearchForm { display: grid; gap: 13px; }
.instagram-search-button { width: 100%; margin-top: 2px; }
.instagram-bulk { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.instagram-bulk > div:first-child { margin-bottom: 12px; }
.instagram-bulk strong { font-size: 12px; }
.instagram-bulk p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.instagram-bulk-actions { display: flex; align-items: center; gap: 9px; margin-top: 11px; flex-wrap: wrap; }
.inline-status { margin-top: 11px !important; padding: 9px 10px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-dark) !important; line-height: 1.45; }
.inline-status.is-error { background: #fff1f2; color: var(--danger) !important; }
.instagram-empty { min-height: 250px; }
.instagram-profile-result, .instagram-video-result { padding: 22px; }
.instagram-profile-head, .instagram-video-head { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 14px; }
.instagram-profile-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.instagram-video-head img { width: 100px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.instagram-video-head { grid-template-columns: 100px 1fr; }
.instagram-profile-head h2, .instagram-video-head h2 { margin: 0 0 2px; font-size: 21px; }
.instagram-profile-head a, .instagram-video-head a { color: var(--brand); font-size: 12px; font-weight: 650; text-decoration: none; }
.badge-row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.badge-row span { padding: 3px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.instagram-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 19px 0; }
.instagram-metrics span { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfc; }
.instagram-metrics strong, .instagram-metrics small { display: block; }
.instagram-metrics strong { font-size: 23px; font-weight: 650; letter-spacing: -.03em; }
.instagram-metrics small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.instagram-bio { margin: 0 0 20px; padding: 16px; border-radius: 10px; background: #f7faf9; color: #4f605a; font-size: 13px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.detail-item { min-width: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.detail-item:nth-child(odd) { border-right: 1px solid var(--line); }
.detail-item:last-child, .detail-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.detail-item small, .detail-item strong { display: block; }
.detail-item small { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.detail-item strong { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.detail-item a { color: var(--brand); text-decoration: none; }
.instagram-history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.history-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(20,54,46,.035); }
.history-card > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.history-card h2 { font-size: 14px; }
.history-card p { color: var(--muted); font-size: 10px; }
.history-list { display: grid; gap: 7px; margin-top: 12px; }
.history-item { display: grid; gap: 2px; padding: 9px 10px; border-radius: 9px; background: #f7faf9; }
.history-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.history-item span { color: var(--muted); font-size: 9px; }

/* Dialog and feedback */
dialog { width: min(430px,calc(100% - 30px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 80px rgba(15,38,31,.25); }
dialog::backdrop { background: rgba(10,30,25,.55); backdrop-filter: blur(3px); }
.dialog-card { position: relative; padding: 28px; }
.dialog-card h2 { margin-bottom: 5px; font-size: 23px; }
.dialog-copy { margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; font-size: 18px; }
.full-button { width: 100%; margin-top: 15px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; max-width: 380px; padding: 12px 15px; border-radius: 10px; background: #18302b; color: #fff; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { background: var(--danger); }
.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; }

/* Login */
.login-page { min-height: 100vh; background: #eef4f2; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr); }
.login-intro { position: relative; overflow: hidden; padding: clamp(34px,6vw,74px); display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg,#073c39,#087e78); color: #fff; }
.login-intro::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom right,#000,transparent 72%); }
.login-intro::after { content: ""; position: absolute; right: -170px; bottom: -210px; width: 480px; height: 480px; border: 70px solid rgba(245,154,27,.2); border-radius: 50%; }
.login-brand { position: relative; z-index: 1; width: max-content; color: #fff; text-decoration: none; }
.login-brand .brand-name strong { font-size: 19px; }
.login-brand .brand-name small { color: #a9dcd7; font-size: 9px; }
.login-message { position: relative; z-index: 1; max-width: 690px; padding: 70px 0; }
.login-message .section-label { color: #9edbd5; }
.login-message h1 { max-width: 650px; margin-bottom: 16px; font-size: clamp(52px,6vw,76px); line-height: .98; }
.login-message > p:last-child { max-width: 540px; color: #d3e9e6; font-size: 16px; }
.login-footer { position: relative; z-index: 1; margin: 0; color: #abd6d1; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(420px,100%); padding: clamp(30px,5vw,42px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 24px 72px rgba(22,55,45,.11); }
.login-card-logo { width: 162px; height: 76px; display: block; margin: -11px 0 18px; object-fit: cover; object-position: center; }
.login-card h2 { margin-bottom: 6px; font-size: 29px; }
.login-copy { margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.login-card .field + .field { margin-top: 14px; }
.login-button { width: 100%; margin-top: 20px; }
.login-error { margin-bottom: 18px; padding: 10px 12px; border: 1px solid #edc4c4; border-radius: 9px; background: #fff4f4; color: #8d3030; font-size: 11px; }

@media (max-width: 980px) {
    .app-page { padding-left: 0; }
    .topbar { position: sticky; inset: auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
    .topbar-inner { min-height: 70px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 8px 18px; }
    .brand { min-height: auto; padding: 0; border: 0; }
    .brand-logo { width: 78px; height: 34px; flex-basis: 78px; }
    .nav-list { grid-row: 2; grid-column: 1/-1; display: flex; padding: 7px 0 1px; }
    .nav-list::before { display: none; }
    .nav-item { min-height: 38px; flex: 1; justify-content: center; }
    .nav-item:hover { transform: none; }
    .account-area { margin: 0; display: flex; align-items: center; padding: 0; border: 0; }
    .user-chip { display: none; }
    .workspace-access { display: none; }
    .workspace-password { font-size: 10px; }
    .content { width: min(100% - 36px,1120px); padding-top: 28px; }
    .search-panel { grid-template-columns: 1fr 100px; }
    .search-panel .button { grid-column: 1/-1; }
    .video-grid { grid-template-columns: 1fr; }
    .workspace-grid { grid-template-columns: 1fr 1fr; }
    .platform-workspace { grid-template-columns: 1fr; }
    .platform-tools { display: block; }
    .platform-tools .search-panel { grid-template-columns: minmax(0,1fr) 95px auto; align-items: end; }
    .platform-tools .search-panel .field-grow { grid-column: auto; }
    .platform-tools .search-panel .button { grid-column: auto; }
    .platform-tools .search-panel .field-small { width: 95px; }
    .welcome-hero { grid-template-columns: 1.1fr .9fr; }
}
@media (max-width: 680px) {
    .topbar-inner { grid-template-columns: minmax(0,1fr); }
    .account-area { position: absolute; top: 17px; right: 18px; }
    .service-status span:last-child, .brand-name { display: none; }
    .nav-list { min-width: 0; gap: 4px; }
    .nav-item { min-width: 0; flex: 1 1 auto; gap: 6px; padding: 0 6px; font-size: 11px; }
    .nav-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-admin-link { margin-top: 0; }
    .nav-item svg { width: 16px; height: 16px; }
    .content { width: min(100% - 26px,1120px); padding: 24px 0 44px; }
    .page-heading { align-items: stretch; flex-direction: column; gap: 16px; }
    .page-actions { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; }
    .page-actions .sample-link { grid-column: 1/-1; justify-content: flex-start; }
    h1 { font-size: 31px; }
    .search-panel { grid-template-columns: 1fr 90px; padding: 14px; }
    .field-grow { grid-column: 1/-1; }
    .check-field { justify-content: flex-start; }
    .results-head { align-items: stretch; flex-direction: column; }
    .result-actions, .panel-actions { align-items: stretch; flex-direction: column; }
    .result-actions .button, .panel-actions .button { width: 100%; }
    .table-filter { width: 100%; }
    .platform-results th, .platform-results td { display: table-cell; }
    .table-wrap { scrollbar-width: thin; }
    .welcome-hero { min-height: 0; grid-template-columns: 1fr; }
    .welcome-copy { padding: 34px 24px; }
    .welcome-copy h1 { font-size: 38px; }
    .welcome-summary { margin: 0 14px 14px; padding: 22px; }
    .workspace-grid { grid-template-columns: 1fr; }
    .instagram-history-grid { grid-template-columns: 1fr; }
    .instagram-profile-result, .instagram-video-result { padding: 17px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-item:nth-child(odd) { border-right: 0; }
    .detail-item:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
    .platform-tools .search-panel { grid-template-columns: minmax(0,1fr) 90px; }
    .platform-tools .search-panel .field-grow, .platform-tools .search-panel .button { grid-column: 1/-1; }
    .platform-tools .search-panel .field-small { width: auto; }
    .video-card { grid-template-columns: 1fr; }
    .video-thumb-link { height: 180px; min-height: 0; }
    .video-thumb { min-height: 0; height: 180px; object-fit: cover; }
    .video-card-body { padding: 17px; }
    .platform-results .video-result-actions { flex-direction: row; width: 100%; }
    .video-result-actions .button { flex: 1; width: auto; font-size: 11px; padding-inline: 10px; }
    .platform-tools { padding: 18px; }
    .panel-footer { align-items: stretch; flex-direction: column; }
    .sample-link { min-height: 30px; }
    .toast { right: 13px; left: 13px; bottom: 13px; }
    .login-shell { grid-template-columns: 1fr; }
    .login-intro { min-height: 380px; padding: 28px 22px; }
    .login-message { padding: 48px 0 32px; }
    .login-message h1 { font-size: 42px; }
    .login-panel { padding: 28px 18px; }
}
.instagram-matches { padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fbfdfc; }
.instagram-matches h3 { margin: 0; font-size: 13px; }
.instagram-matches p { margin: 4px 0 12px; color: var(--muted); font-size: 11px; }
.instagram-match-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 8px; }
.instagram-match { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; cursor: pointer; }
.instagram-match:hover, .instagram-match:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.instagram-match strong, .instagram-match span { display: block; overflow-wrap: anywhere; }
.instagram-match strong { color: var(--ink); font-size: 12px; }
.instagram-match span { margin-top: 3px; color: var(--muted); font-size: 10px; }
/* Small file actions stay secondary to the single lookup flow. */
.csv-import { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.csv-import .button { min-height: 32px; padding: 0 11px; font-size: 11px; }
.csv-import .sample-link { min-height: 32px; padding: 0; font-size: 10px; font-weight: 650; }
.csv-import-limit { min-width: 0; color: #8a9993; font-size: 10px; }
.csv-import-shell .form-feedback { margin-top: 11px; font-size: 11px; }
.instagram-import-results { padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fbfdfc; }
.instagram-import-results h3 { margin: 0 0 10px; color: #5f736a; font-size: 11px; font-weight: 650; }
.instagram-import-list { position: relative; display: flex; flex-wrap: wrap; gap: 6px; max-height: 160px; overflow-y: auto; }
.instagram-import-row { max-width: 100%; min-height: 31px; padding: 5px 9px; overflow: hidden; border: 1px solid #d8e4de; border-radius: 6px; background: #fff; color: #4f6c60; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.instagram-import-row[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.instagram-creator-links { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.creator-links-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.creator-links-heading h3 { margin: 0; font-size: 14px; font-weight: 650; }
.creator-links-heading a { color: var(--brand); font-size: 11px; text-decoration: none; }
.creator-links-heading a:hover { text-decoration: underline; }
.creator-bio-copy { margin: 0 0 12px; color: #5d7066; font-size: 12px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.creator-bio-message { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.creator-bio-message.is-error { color: #90631f; }

/* YouTube video workspace: one compact search surface, results below. */
.youtube-workspace.is-video-workspace { grid-template-columns: minmax(0,1fr); gap: 20px; }
.is-video-workspace > .platform-tools { position: relative; padding: 18px; }
.is-video-workspace > .platform-tools > .platform-tabs { position: static; width: 200px; margin-bottom: 18px; }
.video-tools-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 46px; padding-right: 222px; margin-bottom: 14px; }
.video-tools-heading > div { min-width: 0; }
.video-tools-heading h2 { margin-bottom: 4px; font-size: 19px; }
.video-tools-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.description-included { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 10px; border: 1px solid #f4e2bf; border-radius: 7px; background: #fff8eb; color: #8d631f; font-size: 10px; font-weight: 650; }
.description-included svg, .video-mode-choices svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.description-included svg { width: 14px; height: 14px; flex-basis: 14px; }
.video-mode-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0 0 14px; border: 0; }
.video-mode-choices button { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; color: #60756e; text-align: left; transition: background .15s,border-color .15s; }
.video-mode-choices button:hover { border-color: #afcbc4; background: #f5faf8; }
.video-mode-choices button.is-active { border-color: var(--brand); background: #edf7f5; color: var(--brand-dark); }
.video-mode-choices button > span { min-width: 0; }
.video-mode-choices strong, .video-mode-choices small { display: block; }
.video-mode-choices strong { color: var(--ink); font-size: 12px; font-weight: 700; }
.video-mode-choices small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.4; }
.video-mode-choices button::after { content: ""; width: 15px; height: 15px; flex: 0 0 15px; margin-left: auto; border: 1px solid #c9d8d2; border-radius: 50%; background: #fff; }
.video-mode-choices button.is-active::after { border: 5px solid var(--brand); }
.is-video-workspace #videoForm { display: grid; grid-template-columns: minmax(0,1fr) 154px; align-items: start; gap: 14px; }
.is-video-workspace #videoLinkFields, .is-video-workspace #videoSearchFields { min-width: 0; }
.is-video-workspace #videoSearchFields { display: grid; grid-template-columns: minmax(0,1fr) 92px; align-items: end; gap: 12px; }
.is-video-workspace #videoInputs { min-height: 66px; height: 66px; padding: 10px 12px; line-height: 1.5; }
.is-video-workspace .video-result-limit { margin-top: 0; }
.is-video-workspace #videoSubmit { min-height: 44px; width: 100%; margin: 25px 0 0; }
.video-links-note { display: none; margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.is-video-workspace .video-results-heading { padding: 20px; align-items: center; gap: 16px; }
.is-video-workspace .video-result-actions { flex-direction: row; flex-wrap: wrap; width: auto; }
.is-video-workspace .video-result-actions .button { width: auto; min-height: 36px; font-size: 11px; }
.video-results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); background: #fbfdfc; }
.video-result-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.video-result-filters button { display: inline-flex; align-items: center; gap: 7px; min-height: 35px; padding: 6px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.video-result-filters button[aria-pressed="true"] { border-color: #cadfd8; background: #fff; color: var(--brand-dark); font-weight: 650; box-shadow: 0 1px 3px rgba(20,54,46,.025); }
.video-result-filters button:hover:not(:disabled) { color: var(--brand-dark); background: var(--brand-soft); }
.video-result-filters button:disabled { cursor: default; opacity: .5; }
.video-result-filters button > span { min-width: 18px; padding: 0 4px; border-radius: 4px; background: #e9f0ed; color: #59746b; font-size: 10px; text-align: center; }
.video-result-filters button[aria-pressed="true"] > span { background: var(--brand-soft); color: var(--brand); }
.video-filter-note { color: #8a9993; font-size: 10px; }
.is-video-workspace .results-freshness { padding: 10px 20px; border: 0; background: #fff; font-size: 10px; }
.is-video-workspace .platform-results .video-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,330px),1fr)); align-items: stretch; gap: 16px; padding: 18px; background: #f9fbfa; }
.is-video-workspace .platform-results .video-grid:has(.empty-state) { padding: 0; background: #fff; }
.is-video-workspace .video-card { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-radius: 12px; border-color: #dce7e2; box-shadow: 0 3px 12px rgba(28,61,52,.025); transition: border-color .15s,box-shadow .15s; }
.is-video-workspace .video-card:hover { border-color: #a8cbc0; box-shadow: 0 5px 20px rgba(28,61,52,.07); }
.is-video-workspace .video-thumb-link { width: 100%; min-height: 0; height: auto; max-height: 210px; aspect-ratio: 16/9; background: #edf3f0; }
.is-video-workspace .video-thumb { width: 100%; min-height: 0; height: 100%; aspect-ratio: 16/9; max-height: 210px; object-fit: cover; }
.is-video-workspace .play-badge { width: 40px; height: 40px; border-width: 1px; background: rgba(17,39,34,.73); }
.video-source-badge { position: absolute; top: 11px; left: 11px; padding: 4px 8px; border-radius: 5px; background: rgba(255,255,255,.94); color: #334d44; font-size: 9px; font-weight: 700; }
.is-video-workspace .video-card-body { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.is-video-workspace .video-title { display: -webkit-box; min-height: 44px; margin-bottom: 7px; overflow: hidden; font-size: 15px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.is-video-workspace .video-channel { margin-bottom: 16px; font-size: 11px; }
.is-video-workspace .metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: auto; padding: 12px 0; border-top: 1px solid #edf2ef; border-bottom: 1px solid #edf2ef; }
.is-video-workspace .metric { min-width: 0; padding: 0 13px; border-left: 1px solid #e9efec; }
.is-video-workspace .metric:first-child { padding-left: 0; border-left: 0; }
.is-video-workspace .metric strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.is-video-workspace .metric span { margin-top: 1px; font-size: 10px; }
.is-video-workspace .video-watch { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; margin-top: 12px; padding: 5px 10px; border: 1px solid #d6e4de; border-radius: 6px; background: #fff; color: var(--brand-dark); font-size: 11px; font-weight: 650; }
.is-video-workspace .video-watch:hover { border-color: #abcfc1; background: var(--brand-soft); text-decoration: none; }
.is-video-workspace .video-external-links { min-height: 83px; padding: 12px 17px 15px; background: #fbfdfc; }
.is-video-workspace .external-links-label { margin-bottom: 8px; font-size: 10px; }
.is-video-workspace .external-link { padding: 5px 8px; border-color: #d6e5de; border-radius: 6px; font-size: 10px; }
.is-video-workspace .external-link-list { gap: 6px; }
.is-video-workspace .no-external-links { color: #8b9a93; font-size: 10px; }
.is-video-workspace .empty-state { min-height: 235px; }
.is-video-workspace .empty-state::before { display: none; }
.is-video-workspace .empty-state h3 { margin-bottom: 7px; font-size: 17px; font-weight: 650; }
.is-video-workspace .empty-state p { line-height: 1.7; }
.is-video-workspace .empty-state .button { margin-top: 15px; }
.video-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 15px; border: 1px solid #d8e9e2; border-radius: 13px; background: #f1f8f5; color: var(--brand); }
.video-empty-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
@media (max-width: 720px) {
    .is-video-workspace > .platform-tools { padding: 17px; }
    .is-video-workspace > .platform-tools > .platform-tabs { position: static; width: 200px; margin-bottom: 14px; }
    .video-tools-heading { display: none; }
    .video-links-note { display: block; }
    .video-tools-heading h2 { font-size: 18px; }
    .video-mode-choices { gap: 8px; }
    .video-mode-choices button { gap: 8px; padding: 11px; }
    .video-mode-choices button::after { display: none; }
    .video-mode-choices small { font-size: 9px; }
    .is-video-workspace #videoForm { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .is-video-workspace #videoSubmit { margin-top: 0; }
    .is-video-workspace .video-results-heading { align-items: stretch; gap: 12px; padding: 16px; }
    .is-video-workspace .video-result-actions { width: 100%; }
    .is-video-workspace .video-result-actions .button { flex: 1; }
    .video-results-toolbar { padding: 11px 13px; }
    .video-filter-note { display: none; }
    .video-result-filters { gap: 4px; }
    .video-result-filters button { gap: 5px; padding-inline: 8px; font-size: 10px; }
    .is-video-workspace .platform-results .video-grid { grid-template-columns: minmax(0,1fr); padding: 12px; gap: 13px; }
    .is-video-workspace .results-freshness { padding-inline: 16px; }
    .is-video-workspace .video-thumb-link, .is-video-workspace .video-thumb { max-height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
