* { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; box-sizing:border-box; }
@keyframes gradientShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes glow { 0%,100%{box-shadow:0 0 5px rgba(102,126,234,.5)} 50%{box-shadow:0 0 20px rgba(102,126,234,.8)} }
@keyframes shine { 0%{left:-100%} 100%{left:100%} }
@keyframes fadeIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes spin { to{transform:rotate(360deg)} }
.animated-header { background:linear-gradient(135deg,#667eea 0%,#764ba2 50%,#f093fb 100%); background-size:200% 200%; animation:gradientShift 3s ease infinite; position:relative; overflow:hidden; }
.animated-header::before { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent); animation:shine 3s infinite; }
.float-icon { animation:float 3s ease-in-out infinite; }
.glow-effect { animation:glow 2s ease-in-out infinite; }
.fade-in { animation:fadeIn .5s ease-out; }
.login-card { backdrop-filter:blur(10px); background:rgba(255,255,255,.95); }
.card-hover { transition:all .3s ease; }
.card-hover:hover { transform:translateY(-5px); box-shadow:0 20px 40px rgba(0,0,0,.1); }
.toast { position:fixed; bottom:20px; right:20px; z-index:1000; animation:slideIn .3s ease-out; color:#fff; border-radius:8px; padding:10px 16px; font-size:14px; font-weight:600; box-shadow:0 4px 12px rgba(0,0,0,.15); }
.tab-active { background:linear-gradient(135deg,#667eea 0%,#764ba2 100%); color:#fff; box-shadow:0 4px 14px rgba(102,126,234,.4); }
.tab-inactive { background:transparent; color:#4b5563; cursor:pointer; }
.tab-inactive:hover { background:#fff; color:#1f2937; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.destination-preview { font-family:'Courier New',monospace; font-size:12px; background:#f8f9fa; padding:4px 8px; border-radius:6px; display:inline-block; }
.loading-spinner { display:inline-block; width:20px; height:20px; border:3px solid rgba(255,255,255,.3); border-radius:50%; border-top-color:#fff; animation:spin 1s linear infinite; }

/* Authenticated dashboard — intentionally flat, dense and task-first. */
.dashboard-body { background:#f8fafc; color:#111827; margin:0; }
.dashboard-shell { width:min(100%,1600px); margin:0 auto; padding:0 20px 28px; }
.dashboard-topbar { min-height:64px; display:flex; align-items:center; gap:20px; background:#fff; border-bottom:1px solid #e5e7eb; margin:0 -20px 16px; padding:8px 20px; position:relative; z-index:40; }
.dashboard-brand { display:flex; align-items:center; gap:12px; min-width:max-content; }
.brand-icons { display:flex; align-items:center; gap:9px; font-size:24px; line-height:1; }
.brand-icons .fa-link,.brand-icons .fa-rocket { color:#3730d9; }
.brand-icons .fa-bolt { color:#f7c514; }
.dashboard-brand-name { font-size:20px; font-weight:700; letter-spacing:-.02em; color:#111827; }
.dashboard-metrics { margin-left:auto; display:flex; align-items:center; gap:12px; }
.metric { display:flex; align-items:center; gap:9px; padding:3px 12px; border-left:1px solid #e5e7eb; min-height:42px; }
.metric:first-child { border-left:0; }
.metric-icon { width:32px; height:32px; border-radius:8px; display:grid; place-items:center; color:#342ed7; background:#f5f4ff; flex:0 0 auto; }
.metric-label { color:#64748b; font-size:11px; line-height:1.1; display:block; }
.metric-value { color:#111827; font-size:16px; line-height:1.15; font-weight:700; font-variant-numeric:tabular-nums; display:block; }
.today-pill { display:inline-flex; align-items:center; gap:4px; margin-left:7px; padding:3px 7px; border-radius:999px; background:#eef2ff; color:#3730d9; font-size:10px; font-weight:700; white-space:nowrap; }
.community-metric { gap:10px; }
.community-icon { font-size:14px; }
.community-trend { margin-left:3px; color:#3730d9; font-size:8px; }
.community-copy { display:flex; min-width:0; flex-direction:column; align-items:flex-start; }
.community-scope { display:inline-flex; align-items:center; margin-top:2px; padding:2px 6px; border-radius:999px; background:#eef2ff; color:#3730d9; font-size:8px; line-height:1.2; font-weight:700; white-space:nowrap; }
.account-wrap { position:relative; margin-left:6px; }
.account-button { width:52px; height:42px; border:1px solid #dbe2ea; border-radius:9px; display:flex; align-items:center; justify-content:center; gap:8px; color:#342ed7; background:#fff; cursor:pointer; }
.account-button:hover { background:#f8fafc; }
.account-menu { position:absolute; right:0; top:calc(100% + 8px); width:176px; padding:6px; background:#fff; border:1px solid #dbe2ea; border-radius:10px; box-shadow:0 14px 35px rgba(15,23,42,.14); z-index:50; }
.account-menu a { display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:7px; color:#334155; font-size:13px; font-weight:600; text-decoration:none; }
.account-menu a:hover { background:#f1f5f9; }
.account-menu .logout-link { color:#dc2626; }

/* Protection updates: selected compact shield notification treatment. */
@keyframes shieldRing {
    0%,52%,100% { transform:rotate(0); }
    60% { transform:rotate(13deg); }
    68% { transform:rotate(-11deg); }
    76% { transform:rotate(8deg); }
    84% { transform:rotate(-5deg); }
    92% { transform:rotate(2deg); }
}
@keyframes shieldDotPulse {
    0%,100% { transform:scale(1); opacity:1; }
    50% { transform:scale(1.28); opacity:.72; }
}
.shield-wrap { position:relative; flex:0 0 auto; }
.shield-button { position:relative; width:52px; height:42px; border:1px solid #dbe2ea; border-radius:9px;
    display:grid; place-items:center; color:#342ed7; background:#fff; transition:background .15s,border-color .15s,box-shadow .15s; cursor:pointer; }
.shield-button:hover,.shield-button[aria-expanded="true"] { background:#f7f7ff; border-color:#c9c7f7; box-shadow:0 4px 12px rgba(52,46,215,.12); }
.shield-icon { font-size:19px; transform-origin:50% 18%; animation:shieldRing 1.8s ease-in-out 2; }
.shield-dot { position:absolute; right:7px; top:6px; width:8px; height:8px; border:2px solid #fff; border-radius:999px;
    background:#ef4444; animation:shieldDotPulse 1.6s ease-in-out infinite; }
.shield-button.is-seen .shield-icon { animation:none; }
.shield-button.is-seen .shield-dot { display:none; }
.shield-panel { position:absolute; right:0; top:calc(100% + 9px); width:320px; max-width:calc(100vw - 24px);
    overflow:hidden; border:1px solid #dbe2ea; border-radius:12px; background:#fff; box-shadow:0 18px 45px rgba(15,23,42,.18);
    color:#111827; text-align:left; z-index:70; }
.shield-panel-head { padding:15px 16px 13px; border-bottom:1px solid #edf0f4; }
.shield-panel-title { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.shield-panel-title-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:8px; color:#342ed7; background:#f3f2ff; }
.shield-panel-title strong { display:block; font-size:14px; line-height:1.2; }
.shield-panel-title small { display:block; margin-top:2px; color:#64748b; font-size:10px; font-weight:600; }
.shield-summary { color:#1f2937; font-size:13px; line-height:1.45; margin:0; }
.shield-summary strong { font-weight:750; }
.shield-summary-note { margin-top:7px; color:#64748b; font-size:11px; line-height:1.45; margin-bottom:0; }
.shield-days { max-height:246px; overflow:auto; overscroll-behavior:contain; }
.shield-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:34px; padding:8px 16px;
    border-top:1px solid #f0f2f5; color:#64748b; font-size:11.5px; margin:0; }
.shield-row:first-child { border-top:0; }
.shield-row-count { color:#334155; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.shield-row-count.is-zero { color:#94a3b8; }
.shield-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px;
    border-top:1px solid #e5e7eb; background:#f8fafc; color:#64748b; font-size:11px; }
.shield-footer strong { color:#342ed7; font-size:12px; font-variant-numeric:tabular-nums; }
@media (prefers-reduced-motion:reduce) {
    .shield-icon,.shield-dot { animation:none; }
}

.dashboard-grid { display:grid; grid-template-columns:minmax(0,62fr) minmax(350px,38fr); gap:16px; align-items:start; }
.workspace-panel,.links-panel { background:#fff; border:1px solid #dfe5ec; border-radius:10px; box-shadow:0 1px 2px rgba(15,23,42,.03); min-width:0; }
.workspace-panel { padding:14px 16px 16px; }
.links-panel { padding:16px; }
.dashboard-tabs { display:grid; grid-template-columns:1fr 1fr; border:1px solid #dfe5ec; border-radius:7px; overflow:hidden; margin-bottom:16px; }
.dashboard-tab { min-height:38px; padding:8px 14px; background:#f8fafc; color:#27324a; font-size:14px; font-weight:600; transition:background .15s,color .15s; border:none; cursor:pointer; }
.dashboard-tab + .dashboard-tab { border-left:1px solid #dfe5ec; }
.dashboard-tab.tab-active { color:#fff !important; background:#3832db !important; background-image:none !important; box-shadow:none !important; border-radius:0 !important; }
.dashboard-tab.tab-inactive { color:#27324a !important; background:#f8fafc !important; background-image:none !important; box-shadow:none !important; border-radius:0 !important; }
.dashboard-tab.tab-inactive:hover { background:#f1f5f9 !important; background-image:none !important; box-shadow:none !important; }
.creator-form { display:grid; gap:14px; }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field label,.field-label { display:block; margin-bottom:6px; color:#1f2937; font-size:13px; font-weight:700; }
.field-label .muted { color:#64748b; font-weight:500; }
.dashboard-input { width:100%; border:1px solid #cfd8e3; border-radius:7px; background:#fff; color:#1e293b; padding:10px 12px; font-size:14px; line-height:1.45; transition:border-color .15s,box-shadow .15s; }
.dashboard-input:focus { outline:0; border-color:#5148e5; box-shadow:0 0 0 2px rgba(81,72,229,.12); }
textarea.dashboard-input { resize:vertical; }
.bulk-urls { min-height:122px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.image-tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,.75fr); gap:10px; align-items:end; }
.upload-button { min-height:42px; border:1px dashed #8d88ed; border-radius:7px; color:#3730d9; background:#fafaff; display:flex; align-items:center; justify-content:center; gap:8px; padding:9px 12px; font-size:13px; font-weight:700; cursor:pointer; }
.upload-button:hover { background:#f4f3ff; }
.image-help { color:#64748b; font-size:11px; line-height:1.45; margin-top:5px; margin-bottom:0; }
#singleImagePreview { width:min(100%,580px); }
.single-preview { position:relative; width:100%; aspect-ratio:1200/630; border:1px solid #dfe5ec; border-radius:8px; overflow:hidden; background:#f8fafc; }
.single-preview img { width:100%; height:100%; object-fit:contain; background:#eef2f7; }
.preview-size { position:absolute; left:10px; top:10px; z-index:2; padding:4px 7px; border-radius:5px; background:rgba(255,255,255,.9); color:#334155; font-size:11px; font-weight:700; }
.preview-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }
.preview-label { color:#64748b; font-size:11px; line-height:1.35; margin:0; }
.preview-actions { display:flex; gap:7px; flex:0 0 auto; }
.quiet-button { border:1px solid #cfd8e3; border-radius:6px; padding:7px 10px; background:#fff; color:#3730d9; font-size:12px; font-weight:600; cursor:pointer; }
.quiet-button.danger { color:#dc2626; border-color:#fecaca; }
.primary-action { width:100%; min-height:43px; border:none; border-radius:7px; background:#3933d8; color:#fff; font-size:15px; font-weight:700; box-shadow:0 3px 10px rgba(57,51,216,.18); cursor:pointer; }
.primary-action:hover { background:#302ac7; }
.primary-action:disabled { opacity:.65; cursor:wait; }
.traffic-trust-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px 8px; margin-top:8px; margin-bottom:0; color:#64748b; font-size:12px; line-height:1.35; text-align:center; }
.traffic-trust-row .trust-icon { color:#10b981; font-size:13px; }
.traffic-trust-row .trust-separator { color:#94a3b8; }
.keep-row { display:flex; align-items:center; gap:9px; padding:10px 12px; margin-top:12px; border:1px solid #e2e8f0; border-radius:7px; color:#334155; font-size:12px; font-weight:500; cursor:pointer; }
.keep-row input { width:17px; height:17px; accent-color:#3933d8; }
.quick-reuse { margin-top:14px; padding-top:14px; border-top:1px solid #e2e8f0; }
.quick-reuse[hidden] { display:none; }
.quick-reuse-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:9px; }
.quick-reuse-title { color:#111827; font-size:15px; line-height:1.2; font-weight:750; margin:0; }
.quick-reuse-subtitle { margin-top:2px; color:#64748b; font-size:10px; line-height:1.35; margin-bottom:0; }
.quick-reuse-device { display:flex; align-items:center; gap:6px; color:#64748b; font-size:10px; white-space:nowrap; }
.quick-reuse-clear { color:#3730d9; font-size:10px; font-weight:650; background:none; border:none; cursor:pointer; }
.quick-reuse-clear:hover { text-decoration:underline; }
.quick-reuse-list { display:grid; gap:7px; }
.quick-reuse-item { display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:9px; align-items:center; min-width:0; padding:9px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; }
.quick-reuse-item.is-top { border-color:#aaa6fa; background:#fafaff; }
.quick-reuse-rank { width:34px; height:34px; display:grid; place-items:center; border-radius:8px; background:#eef2f7; color:#475569; font-size:13px; font-weight:750; font-variant-numeric:tabular-nums; }
.quick-reuse-item.is-top .quick-reuse-rank { background:#3933d8; color:#fff; }
.quick-reuse-copy { min-width:0; }
.quick-reuse-url { overflow:hidden; color:#3730d9; font-size:12px; line-height:1.25; font-weight:700; white-space:nowrap; text-overflow:ellipsis; }
.quick-reuse-name { overflow:hidden; margin-top:2px; color:#334155; font-size:11px; line-height:1.25; white-space:nowrap; text-overflow:ellipsis; }
.quick-reuse-meta { margin-top:3px; color:#64748b; font-size:10px; line-height:1.25; }
.quick-reuse-use { min-width:86px; border:1px solid #aaa6fa; border-radius:7px; padding:7px 9px; background:#fff; color:#3730d9; font-size:11px; font-weight:700; white-space:nowrap; cursor:pointer; }
.quick-reuse-use:hover { background:#f4f3ff; }
.quick-reuse-use:focus-visible,.quick-reuse-clear:focus-visible { outline:2px solid #5148e5; outline-offset:2px; }
.quick-reuse-chip { display:inline-flex; align-items:center; gap:6px; background:#f1f5f9; border:1px solid #e2e8f0; border-radius:999px; padding:5px 12px; font-size:12px; cursor:pointer; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#334155; }
.quick-reuse-chip:hover { background:#e2e8f0; }

#resultTray { margin-top:12px; border:1px solid #dfe5ec; border-radius:8px; background:#fff; padding:12px; }
.result-items-list { display:grid; }
.result-item-row { display:grid; grid-template-columns:44px minmax(0,1fr) 30px 30px; gap:9px; align-items:center; min-width:0; padding:7px 0; border-top:1px solid #eef2f6; }
.result-item-thumb { width:44px; height:34px; border-radius:6px; overflow:hidden; display:grid; place-items:center; background:#f1f5f9; color:#cbd5e1; font-size:13px; }
.result-item-thumb img { width:100%; height:100%; object-fit:cover; }
.result-item-main { min-width:0; display:grid; gap:2px; }
.result-item-short { color:#7c3aed; font-size:12px; line-height:1.25; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.result-item-destination { color:#94a3b8; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:10px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.result-item-action { width:30px; height:30px; display:grid; place-items:center; border-radius:6px; cursor:pointer; }
.result-item-action:hover { background:#f1f5f9; }
.result-item { display:flex; justify-content:space-between; align-items:center; padding:8px 0; font-size:13px; }
.result-item a { color:#3730d9; font-weight:600; text-decoration:none; }

.bulk-images { display:flex; flex-wrap:wrap; gap:10px; align-items:stretch; }
#bulkImagePool { display:flex; flex-wrap:wrap; gap:10px; }
#bulkImagePool > div { width:132px !important; height:86px !important; border-radius:7px !important; overflow:hidden; }
#bulkImagePool img { width:100%; height:100%; object-fit:cover; }
.add-images-tile { width:132px; height:86px; border:1px dashed #8d88ed; border-radius:7px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; color:#3730d9; background:#fafaff; cursor:pointer; font-size:12px; font-weight:600; }
.add-images-tile i { width:28px; height:28px; border-radius:999px; background:#3933d8; color:#fff; display:grid; place-items:center; }

.links-heading-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.links-heading { color:#111827; font-size:17px; line-height:1.2; font-weight:700; margin:0; }
.link-count { color:#64748b; font-size:11px; font-weight:500; margin-left:5px; }
.link-search { display:grid; grid-template-columns:minmax(0,1fr) 118px; gap:9px; margin-bottom:12px; }
.search-field { position:relative; }
.search-field .dashboard-input { padding-right:38px; }
.search-submit { position:absolute; right:3px; top:3px; width:34px; height:34px; display:grid; place-items:center; color:#334155; border-radius:6px; background:none; border:none; cursor:pointer; }
.search-submit:hover { background:#f1f5f9; }
.links-list { border:1px solid #e1e7ee; border-radius:8px; overflow:visible; display:flex; flex-direction:column; }
.links-list > [id^="link-card-"] + [id^="link-card-"] { border-top:1px solid #e8edf2; }
.link-row { display:grid; grid-template-columns:10px 58px minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:10px; background:#fff; position:relative; }
.link-status { width:9px; height:9px; border-radius:999px; background:#079669; }
.link-thumb { width:58px; height:44px; border-radius:6px; overflow:hidden; background:#f1f5f9; display:grid; place-items:center; color:#cbd5e1; }
.link-thumb img { width:100%; height:100%; object-fit:cover; }
.link-main { min-width:0; }
.link-title { color:#1f2937; font-size:13px; line-height:1.25; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0; }
.link-short-line { display:flex; align-items:center; gap:6px; min-width:0; margin-top:2px; }
.link-short { color:#3730d9; font-size:12px; line-height:1.25; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-decoration:none; }
.link-copy { color:#3730d9; font-size:12px; flex:0 0 auto; background:none; border:none; cursor:pointer; }
.link-meta,.link-description { color:#64748b; font-size:10px; line-height:1.35; margin-top:2px; overflow-wrap:anywhere; }
.link-description { color:#94a3b8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:0; }
.link-clicks { min-width:72px; display:inline-flex; align-items:center; justify-content:flex-end; gap:4px; color:#475569; font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.link-clicks i { font-size:10px; }
.link-clicks-value { color:#334155; font-weight:700; }
.link-clicks-unit { color:#64748b; font-size:10px; font-weight:600; letter-spacing:.01em; }
.link-actions { position:relative; }
.kebab-toggle { width:28px; height:28px; display:grid; place-items:center; color:#334155; border-radius:6px; background:none; border:none; cursor:pointer; }
.kebab-toggle:hover { background:#f1f5f9; }
.kebab-menu { position:absolute; right:0; top:100%; background:#fff; border:1px solid #dbe2ea; border-radius:8px; box-shadow:0 8px 20px rgba(0,0,0,.12); width:130px; z-index:20; overflow:hidden; }
.kebab-menu a, .kebab-menu button { display:flex; align-items:center; gap:8px; width:100%; padding:8px 12px; font-size:13px; text-decoration:none; color:#1e293b; background:none; border:none; cursor:pointer; text-align:left; }
.kebab-menu a:hover, .kebab-menu button:hover { background:#f8fafc; }
.danger-item { color:#dc2626 !important; }

.empty-state { color:#64748b; text-align:center; padding:40px 0; font-size:14px; margin:0; }
.pagination-wrap { margin-top:14px; padding-top:12px; border-top:1px solid #eef2f6; }
.pagination { display:flex; gap:6px; margin-top:14px; flex-wrap:wrap; justify-content:center; }
.pagination a { padding:6px 12px; border:1px solid #dfe5ec; border-radius:6px; text-decoration:none; color:#1e293b; font-size:13px; font-weight:600; }
.pagination a.page-active { background:#3832db; color:#fff; border-color:#3832db; }

.mobile-stats { display:none; }
.hidden { display:none !important; }

/* Auth pages */
.auth-body { display:flex; align-items:center; justify-content:center; min-height:100vh; background:#f8fafc; margin:0; }
.auth-card { background:#fff; padding:32px; border-radius:12px; border:1px solid #dfe5ec; width:100%; max-width:420px; box-shadow:0 4px 14px rgba(15,23,42,.04); }
.auth-card h1 { font-size:20px; margin-top:0; color:#111827; }
.auth-card form { display:flex; flex-direction:column; gap:12px; }
.auth-card label { font-size:13px; font-weight:700; color:#1f2937; }
.auth-error { background:#fef2f2; color:#dc2626; padding:8px 12px; border-radius:8px; font-size:13px; border:1px solid #fecaca; }
.auth-switch { font-size:13px; color:#64748b; text-align:center; margin-top:14px; }
.auth-switch a { color:#3730d9; text-decoration:none; font-weight:600; }

/* Password show/hide toggle */
.pw-wrap { position:relative; display:flex; align-items:center; }
.pw-wrap .dashboard-input { width:100%; padding-right:40px; }
.pw-toggle { position:absolute; right:10px; background:none; border:none; cursor:pointer; color:#94a3b8; font-size:15px; padding:4px; line-height:1; transition:color .2s; }
.pw-toggle:hover { color:#3730d9; }

/* Stats page */
.stats-page { max-width:700px; margin:30px auto; background:#fff; padding:24px; border-radius:12px; border:1px solid #dfe5ec; }
.back-link { color:#3730d9; text-decoration:none; font-size:13px; font-weight:600; }
.stats-dest, .stats-short { font-size:13px; color:#64748b; word-break:break-all; }
.stats-totals { display:flex; gap:14px; margin:20px 0; }
.stat-box { flex:1; border:1px solid #dfe5ec; border-radius:10px; padding:14px; text-align:center; }
.muted-box { background:#f8fafc; }
.stat-label { display:block; font-size:12px; color:#64748b; }
.stat-value { font-size:22px; font-weight:700; color:#111827; }
.stats-table { width:100%; border-collapse:collapse; font-size:13px; }
.stats-table th, .stats-table td { text-align:left; padding:8px 12px; border-bottom:1px solid #edf0f4; }

@media (max-width:1023px) {
    .dashboard-shell { padding:0 14px 22px; }
    .dashboard-topbar { margin:0 -14px 12px; padding:8px 14px; min-height:58px; }
    .dashboard-metrics { display:none; }
    .dashboard-brand-name { font-size:18px; }
    .brand-icons { font-size:22px; }
    .shield-wrap { margin-left:auto; }
    .account-wrap { margin-left:0; }
    .dashboard-grid { grid-template-columns:1fr; gap:12px; }
    .workspace-panel,.links-panel { border-radius:8px; }
    .workspace-panel { padding:12px; }
    .links-panel { padding:12px; }
    .links-panel { order:2; }
    .field-grid,.image-tools { grid-template-columns:1fr; }
    .dashboard-tabs { margin-bottom:13px; }
    .dashboard-tab { min-height:40px; }
    .bulk-urls { min-height:144px; }
    #bulkImagePool > div,.add-images-tile { width:calc(25% - 8px) !important; min-width:72px; height:auto !important; aspect-ratio:1.42/1; }
    .mobile-stats { display:grid; grid-template-columns:23% 44% 33%; gap:0; margin:0 0 12px; overflow:hidden; border:1px solid #dfe5ec; border-radius:8px; background:#fff; box-shadow:0 1px 2px rgba(15,23,42,.03); }
    .mobile-stat { min-width:0; min-height:56px; display:grid; grid-template-columns:22px minmax(0,1fr); grid-template-rows:auto auto; column-gap:5px; row-gap:2px; align-items:center; padding:7px 8px; }
    .mobile-stat + .mobile-stat { border-left:1px solid #e5e7eb; }
    .mobile-stat-icon { grid-column:1; grid-row:1; width:22px; height:22px; display:grid; place-items:center; border-radius:6px; background:#f5f4ff; color:#3730d9; font-size:12px; }
    .mobile-stat-label { grid-column:2; grid-row:1; min-width:0; overflow:hidden; color:#64748b; font-size:9px; line-height:1.15; white-space:nowrap; text-overflow:ellipsis; margin:0; }
    .mobile-stat-value-row { grid-column:1 / -1; grid-row:2; min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:3px; }
    .mobile-stat-value { color:#111827; font-size:14px; line-height:1.1; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; margin:0; }
    .mobile-stat .today-pill { display:inline-flex; width:auto; margin:0; padding:2px 4px; gap:2px; font-size:8px; line-height:1.1; }
    .mobile-stat .community-trend { margin-left:2px; font-size:7px; }
    .community-mobile-stat .mobile-stat-value-row { align-items:flex-start; flex-direction:column; gap:2px; }
    .community-mobile-stat .community-scope { margin-top:0; padding:2px 4px; font-size:7px; }
}

@media (max-width:520px) {
    .dashboard-shell { padding-left:10px; padding-right:10px; }
    .dashboard-topbar { margin-left:-10px; margin-right:-10px; padding-left:10px; padding-right:10px; gap:8px; }
    .dashboard-brand { gap:8px; }
    .brand-icons { gap:6px; font-size:20px; }
    .dashboard-brand-name { font-size:16px; }
    .shield-button { width:42px; height:40px; }
    .account-button { width:46px; height:40px; }
    .shield-panel { position:fixed; left:10px; right:10px; top:66px; width:auto; max-width:none;
        max-height:calc(100vh - 76px); max-height:calc(100dvh - 76px); overflow:auto; }
    .shield-days { max-height:246px; }
    .creator-form { gap:12px; }
    .field label,.field-label { font-size:12px; }
    .dashboard-input { font-size:14px; padding:10px; }
    .links-heading { font-size:15px; }
    .link-search { grid-template-columns:minmax(0,1fr) 100px; }
    .links-list > [id^="link-card-"] + [id^="link-card-"] { border-top:6px solid #f1f5f9; }
    .link-row { grid-template-columns:8px 48px minmax(0,1fr) auto auto; grid-template-rows:auto auto auto; column-gap:6px; row-gap:3px; padding:9px 8px 0; }
    .link-main { display:contents; }
    .link-status { grid-column:1; grid-row:1 / span 2; justify-self:center; }
    .link-thumb { grid-column:2; grid-row:1 / span 2; width:48px; height:42px; }
    .link-title { grid-column:3; grid-row:1; align-self:end; font-size:12px; }
    .link-meta { grid-column:3 / -1; grid-row:2; align-self:start; margin-top:0; font-size:10.5px; }
    .link-short-line { grid-column:1 / -1; grid-row:3; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0; min-width:0; min-height:52px; align-items:center; margin:6px -8px 0; padding:4px 8px; border-top:1px solid #e8edf2; background:#fafaff; }
    .link-short { min-width:0; padding-right:10px; font-size:11px; overflow:visible; text-overflow:clip; white-space:normal; overflow-wrap:anywhere; }
    .link-copy { min-width:62px; height:44px; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 2px 0 11px; border:0; border-left:1px solid #dfe3ec; border-radius:0; background:transparent; color:#3730d9; font-size:13px; font-weight:700; cursor:pointer; }
    .link-copy::after { content:'Copy'; }
    .link-copy:hover,.link-copy:active { background:#f3f2ff; }
    .link-copy:focus-visible { outline:2px solid #5148e5; outline-offset:2px; }
    .link-clicks { grid-column:4; grid-row:1; align-self:end; min-width:54px; gap:3px; font-size:11px; }
    .link-clicks-unit { font-size:9px; }
    .link-actions { grid-column:5; grid-row:1; align-self:end; }
    .link-description { display:none; }
    .single-preview { border-radius:7px; }
    .preview-footer { align-items:flex-start; flex-direction:column; }
    .mobile-stat { min-height:54px; grid-template-columns:18px minmax(0,1fr); column-gap:3px; padding:6px 4px; }
    .mobile-stat-icon { width:18px; height:18px; font-size:10px; }
    .mobile-stat-label { font-size:8.5px; }
    .mobile-stat-value { font-size:13px; }
    .community-mobile-stat .community-scope { max-width:100%; overflow:hidden; font-size:7.5px; text-overflow:ellipsis; }
    .result-item-row { grid-template-columns:40px minmax(0,1fr) 28px 28px; gap:7px; padding:7px 0; }
    .result-item-thumb { width:40px; height:32px; border-radius:5px; }
    .result-item-action { width:28px; height:28px; }
    .quick-reuse-head { gap:8px; }
    .quick-reuse-subtitle { display:none; }
    .quick-reuse-item { grid-template-columns:32px minmax(0,1fr) auto; gap:8px; padding:8px; }
    .quick-reuse-rank { width:32px; height:32px; }
    .quick-reuse-use { min-width:82px; padding:7px 8px; }
    .quick-reuse-item:nth-child(n+3) { display:none; }
}
