:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --ink: #182230;
  --muted: #667085;
  --line: #e5eaf1;
  --brand: #2d6df6;
  --brand-deep: #1649bd;
  --accent: #14b8a6;
  --danger: #d92d20;
  --success: #12b76a;
  --warning: #f79009;
  --sidebar: #111827;
  --radius: 16px;
  --shadow: 0 12px 36px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 16px; overflow-y: auto; color: #d0d5dd; background: var(--sidebar); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 26px; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: .4px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; padding: 2px; text-align: center; text-overflow: ellipsis; white-space: nowrap; border-radius: 10px; background: linear-gradient(135deg, #4f8cff, #22c6b8); box-shadow: 0 8px 18px rgba(45,109,246,.35); font-size: 12px; line-height: 1; }
.sidebar-label { margin: 12px 12px 9px; color: #98a2b3; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; }
.category-nav { display: grid; gap: 4px; }
.category-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; transition: .2s ease; }
.category-nav a::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: #667085; transition: .2s ease; }
.category-nav a:hover, .category-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.category-nav a:hover::before, .category-nav a.active::before { background: #55e6d5; box-shadow: 0 0 0 4px rgba(85,230,213,.13); }
.sidebar-footer { position: absolute; right: 16px; bottom: 20px; left: 16px; padding: 14px 12px; color: #98a2b3; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.main { min-width: 0; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; gap: 24px; min-height: 78px; padding: 0 42px; background: rgba(245,247,251,.87); border-bottom: 1px solid rgba(229,234,241,.86); backdrop-filter: blur(14px); }
.page-intro { min-width: 170px; }
.page-intro h1 { margin: 0; font-size: 18px; }
.page-intro p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.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; }
.search { position: relative; z-index: 1; flex: 1; max-width: 620px; }
.search input { width: 100%; height: 46px; padding: 0 106px 0 17px; color: var(--ink); outline: 0; background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%); border: 1px solid #d5deeb; border-radius: 14px; box-shadow: 0 3px 10px rgba(16,24,40,.035), inset 0 1px 0 rgba(255,255,255,.85); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.search input::placeholder { color: #98a2b3; }
.search:focus-within input { background: #fff; border-color: #7ba4ff; box-shadow: 0 0 0 4px rgba(45,109,246,.13), 0 6px 16px rgba(45,109,246,.08); }
.search-submit { position: absolute; z-index: 2; top: 4px; right: 4px; display: inline-flex; min-width: 88px; height: 38px; align-items: center; justify-content: center; gap: 6px; padding: 0 13px; color: #fff; background: linear-gradient(135deg, #2d6df6, #245fd9); border: 1px solid rgba(15,76,184,.26); border-radius: 10px; box-shadow: 0 4px 10px rgba(45,109,246,.24); font-size: 13px; font-weight: 700; letter-spacing: .1px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.search-submit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-submit:hover { background: linear-gradient(135deg, #245fd9, #1f55c5); box-shadow: 0 6px 15px rgba(45,109,246,.3); transform: translateY(-1px); }
.search-submit:focus-visible { outline: 3px solid rgba(45,109,246,.27); outline-offset: 2px; }
.search-submit:active { box-shadow: 0 2px 6px rgba(45,109,246,.23); transform: translateY(0) scale(.98); }
.search-submit:disabled { cursor: wait; opacity: .88; }
.search-submit.is-loading svg { animation: search-spin .75s linear infinite; }
.search.has-error input { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217,45,32,.12); }
.search-error { position: absolute; top: calc(100% + 5px); left: 13px; z-index: 2; color: #b42318; font-size: 11px; font-weight: 700; pointer-events: none; }
.header-actions { display: flex; gap: 8px; margin-left: auto; }
.button, .button-secondary, .button-danger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 0; border-radius: 9px; font-weight: 700; transition: .2s ease; }
.button { color: #fff; background: var(--brand); box-shadow: 0 4px 10px rgba(45,109,246,.2); }
.button:hover { background: var(--brand-deep); transform: translateY(-1px); }
.button-secondary { color: #344054; background: #fff; border: 1px solid var(--line); }
.button-secondary:hover { background: #f9fafb; }
.button-danger { color: #fff; background: var(--danger); }
.content { max-width: 1500px; padding: 30px 42px 60px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.hero h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.18; letter-spacing: -.6px; }
.hero p { max-width: 650px; margin: 9px 0 0; color: var(--muted); font-size: 15px; }
.sort-control { position: relative; flex: 0 0 auto; }
.sort-tabs { display: flex; padding: 4px; background: #e9edf5; border-radius: 10px; white-space: nowrap; }
.sort-tabs a { padding: 7px 11px; color: #667085; border-radius: 7px; font-weight: 700; font-size: 13px; }
.sort-tabs a.active { color: var(--brand-deep); background: #fff; box-shadow: 0 2px 5px rgba(16,24,40,.08); }
.sort-tabs.is-switching { opacity: .82; pointer-events: none; }
.sort-tabs a.is-pending { display: inline-flex; align-items: center; gap: 5px; color: #245fd9; background: #fff; box-shadow: 0 2px 5px rgba(16,24,40,.08); }
.sort-tabs a.is-pending::before { width: 11px; height: 11px; content: ''; border: 2px solid #b7ceff; border-top-color: #2d6df6; border-radius: 50%; animation: sort-spin .68s linear infinite; }
.sort-switch-status { position: absolute; top: calc(100% + 7px); right: 2px; color: #667085; font-size: 11px; font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(-3px); transition: opacity .16s ease, transform .16s ease; white-space: nowrap; }
.sort-control.is-switching .sort-switch-status { opacity: 1; transform: translateY(0); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 12px; max-width: 515px; margin: 0 0 28px; }
.stat { padding: 16px 17px; background: linear-gradient(135deg, #fff, #f8fbff); border: 1px solid var(--line); border-radius: 13px; }
.stat-number { display: block; color: var(--ink); font-size: 22px; font-weight: 800; }
.stat-label { color: var(--muted); font-size: 12px; }
.category-section { margin-top: 35px; scroll-margin-top: 100px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.section-title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; }
.section-title::before { width: 4px; height: 20px; content: ''; border-radius: 8px; background: linear-gradient(var(--brand), var(--accent)); }
.section-count { color: var(--muted); font-size: 12px; font-weight: 500; }
.website-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 13px; }
.site-card { position: relative; display: flex; min-width: 0; min-height: 116px; padding: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.025); transition: .22s ease; }
.site-card:hover { z-index: 1; border-color: #b9cdfd; box-shadow: var(--shadow); transform: translateY(-3px); }
.site-link { display: flex; width: 100%; gap: 12px; }
.favicon, .fallback-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; }
.favicon { padding: 7px; object-fit: contain; background: #f2f5f9; }
.fallback-icon { display: grid; place-items: center; color: var(--brand-deep); background: #eaf1ff; font-size: 16px; font-weight: 800; }
.site-body { min-width: 0; }
.site-title-row { display: flex; align-items: center; gap: 6px; }
.site-title { max-width: 150px; overflow: hidden; color: #101828; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 800; }
.site-desc { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.55; }
.site-url { display: block; margin-top: 5px; overflow: hidden; color: #98a2b3; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.site-meta { position: absolute; right: 13px; bottom: 11px; color: #98a2b3; font-size: 11px; }
.featured { width: 16px; height: 16px; display: inline-grid; place-items: center; color: #f79009; font-size: 13px; }
.empty { padding: 46px 22px; color: var(--muted); text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--radius); }
.notice { margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.notice.success { color: #05603a; background: #ecfdf3; border: 1px solid #abefc6; }
.notice.error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }
.toast-stack { position: fixed; z-index: 240; top: 78px; right: 24px; display: grid; width: min(420px, calc(100vw - 32px)); gap: 10px; pointer-events: none; }
.toast { display: grid; grid-template-columns: 30px minmax(0, 1fr) 28px; align-items: start; gap: 10px; padding: 13px 12px; pointer-events: auto; border-radius: 12px; box-shadow: 0 16px 34px rgba(16,24,40,.17); animation: toast-in .28s cubic-bezier(.23,1,.32,1) both; }
.toast.is-closing { animation: toast-out .2s ease-in both; }
.toast-success { color: #05603a; background: #f1fcf5; border: 1px solid #a6ebc3; }
.toast-error { color: #b42318; background: #fff5f4; border: 1px solid #f9c8c3; }
.toast-icon { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; border-radius: 50%; font-size: 15px; font-weight: 900; }
.toast-success .toast-icon { background: #12b76a; }
.toast-error .toast-icon { background: #d92d20; }
.toast-copy { min-width: 0; padding-top: 1px; }
.toast-copy strong { display: block; color: inherit; font-size: 13px; }
.toast-copy p { margin: 3px 0 0; color: inherit; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.toast-close { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; color: currentColor; border: 0; border-radius: 7px; background: transparent; font-size: 20px; line-height: 1; }
.toast-close:hover, .toast-close:focus-visible { background: rgba(16,24,40,.08); outline: none; }
.operation-overlay { position: fixed; z-index: 300; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(16,24,40,.44); backdrop-filter: blur(3px); }
.operation-overlay.is-visible { display: flex; }
.operation-card { width: min(100%, 360px); padding: 22px; text-align: center; background: #fff; border: 1px solid rgba(255,255,255,.84); border-radius: 16px; box-shadow: 0 22px 60px rgba(16,24,40,.22); }
.operation-spinner { width: 38px; height: 38px; margin: 0 auto 15px; border: 4px solid #dbe7ff; border-top-color: #2d6df6; border-radius: 50%; animation: operation-spin .75s linear infinite; }
.operation-card strong { display: block; color: #1d2939; font-size: 16px; }
.operation-card p { min-height: 38px; margin: 7px 0 14px; color: #667085; font-size: 13px; line-height: 1.55; }
.operation-progress { height: 5px; overflow: hidden; background: #eaf0fb; border-radius: 999px; }
.operation-progress i { display: block; width: 42%; height: 100%; background: linear-gradient(90deg, #2d6df6, #67a4ff); border-radius: inherit; animation: operation-progress 1.15s ease-in-out infinite; }
.operation-card small { display: block; margin-top: 13px; color: #98a2b3; font-size: 11px; }
.is-submitting { cursor: wait !important; opacity: .75; }
@keyframes operation-spin { to { transform: rotate(360deg); } }
@keyframes operation-progress { 0% { transform: translateX(-120%); } 100% { transform: translateX(330%); } }
@keyframes search-spin { to { transform: rotate(360deg); } }
@keyframes sort-spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) translateX(12px); } to { opacity: 1; transform: translateY(0) translateX(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px) translateX(12px); } }
.health { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #98a2b3; }
.health.up { background: var(--success); }
.health.down { background: var(--danger); }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 15%, #dce8ff 0, transparent 26%), radial-gradient(circle at 85% 80%, #d7fff8 0, transparent 24%), #f5f7fb; }
.auth-card { width: min(100%, 410px); padding: 32px; background: #fff; border: 1px solid #e5eaf1; border-radius: 18px; box-shadow: 0 24px 60px rgba(16,24,40,.14); }
.auth-card h1 { margin: 16px 0 6px; font-size: 25px; }
.auth-card p { margin: 0 0 24px; color: var(--muted); }
.captcha-row { display: flex; align-items: center; gap: 8px; }
.captcha-question { flex: 0 0 auto; min-width: 88px; padding: 8px 9px; color: #1d2939; background: #eff4ff; border: 1px dashed #84adff; border-radius: 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 800; letter-spacing: .5px; text-align: center; }
.captcha-row input { min-width: 0; flex: 1; }
.captcha-refresh { flex: 0 0 auto; color: #175cd3; font-size: 12px; font-weight: 700; white-space: nowrap; }
.redirect-body { position: relative; display: grid; min-height: 100vh; place-items: center; padding: 30px 20px; overflow: hidden; background: #edf3ff; }
.redirect-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.redirect-aurora i { position: absolute; display: block; width: 46vw; aspect-ratio: 1; border-radius: 50%; filter: blur(8px); opacity: .72; }
.redirect-aurora i:nth-child(1) { top: -20vw; left: -13vw; background: #b9d4ff; }
.redirect-aurora i:nth-child(2) { right: -15vw; bottom: -23vw; background: #b8efe7; }
.redirect-aurora i:nth-child(3) { top: 25%; left: 54%; width: 20vw; background: #d8e5ff; opacity: .6; }
.redirect-card { position: relative; z-index: 1; width: min(100%, 570px); padding: 22px 42px 28px; text-align: center; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.86); border-radius: 24px; box-shadow: 0 28px 76px rgba(30, 71, 134, .17), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.redirect-brand { display: flex; align-items: center; gap: 9px; color: #344054; font-size: 13px; font-weight: 800; text-align: left; }
.redirect-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.redirect-brand-state { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #34876c; font-size: 11px; font-weight: 700; }
.redirect-brand-state i { width: 6px; height: 6px; border-radius: 50%; background: #45c59a; box-shadow: 0 0 0 4px rgba(69,197,154,.12); }
.redirect-site { padding: 28px 0 22px; }
.redirect-site-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 17px; place-items: center; overflow: hidden; color: #2457c2; background: linear-gradient(145deg, #e5efff, #f4f8ff); border: 1px solid #d7e5ff; border-radius: 18px; box-shadow: 0 11px 24px rgba(67,121,222,.15); font-size: 25px; font-weight: 800; }
.redirect-site-icon img { width: 100%; height: 100%; padding: 12px; object-fit: contain; }
.redirect-kicker { margin: 0 0 7px; color: #477ee8; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.redirect-card h1 { max-width: 100%; margin: 0; overflow: hidden; color: #182230; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(23px, 5vw, 30px); letter-spacing: -.4px; }
.redirect-target { max-width: 100%; margin: 10px auto 0; overflow: hidden; color: #8090a4; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.redirect-template-panel { padding: 17px 18px; text-align: left; background: linear-gradient(135deg, #f6f9ff, #fbfdff); border: 1px solid #e1eaf8; border-radius: 14px; }
.redirect-template-label { display: block; margin-bottom: 7px; color: #5f7fae; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.redirect-template { color: #475467; font-size: 14px; line-height: 1.8; }
.redirect-progress-meta { display: flex; justify-content: space-between; margin: 19px 2px 8px; color: #7d8da4; font-size: 11px; }
.redirect-progress { height: 5px; margin: 0 0 23px; overflow: hidden; background: #e5edf9; border-radius: 10px; }
.redirect-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #4d85ee, #60c8b8); border-radius: inherit; animation: redirect-progress 2.6s linear forwards; }
.redirect-actions { display: grid; gap: 13px; justify-items: center; }
.redirect-continue { min-width: 210px; min-height: 43px; }
.redirect-continue span { font-size: 18px; line-height: 1; transition: transform .2s ease; }
.redirect-continue:hover span { transform: translateX(3px); }
.redirect-back { color: #667085; font-size: 13px; text-decoration: none; }
.redirect-back:hover { color: #2d6df6; }
.redirect-footer { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; padding-top: 17px; color: #8a99ac; border-top: 1px solid #e8edf5; font-size: 11px; }
.redirect-footer i { display: grid; width: 15px; height: 15px; place-items: center; color: #fff; background: #51b794; border-radius: 50%; font-size: 10px; font-style: normal; }
@keyframes redirect-progress { to { width: 100%; } }
.redirect-body { display: flex !important; width: 100%; min-height: 100vh; min-height: 100dvh; align-items: center !important; justify-content: center !important; padding: 28px 20px; background: #f3f6fb; }
.redirect-aurora { display: none; }
.redirect-card { width: min(100%, 540px); flex: 0 1 540px; margin: 0 auto !important; padding: 24px 40px 27px; background: #fff; border: 1px solid #e3e9f2; border-radius: 20px; box-shadow: 0 22px 56px rgba(16, 48, 94, .12); backdrop-filter: none; }
.redirect-site { padding: 25px 0 19px; }
.redirect-template-panel { background: #f8fafc; border-color: #e7edf5; }
.redirect-footer { margin-top: 19px; padding-top: 15px; }
.form-field { display: grid; gap: 7px; margin-bottom: 15px; }
.form-field label { color: #344054; font-weight: 700; font-size: 13px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; min-height: 40px; padding: 9px 11px; color: var(--ink); outline: none; background: #fff; border: 1px solid #d0d5dd; border-radius: 8px; }
.form-field textarea { min-height: 85px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: #85a7ff; box-shadow: 0 0 0 3px rgba(45,109,246,.1); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr); gap: 18px; align-items: start; }
.settings-card { padding: 18px; background: #f8fafc; border: 1px solid #e5eaf1; border-radius: 12px; }
.settings-card h3 { margin: 0 0 6px; color: #1d2939; font-size: 15px; }
.settings-card > p { margin: 0 0 17px; color: #667085; font-size: 13px; line-height: 1.65; }
.settings-card .form-field { margin-bottom: 0; }
.settings-subsection { margin: 5px 0 2px; padding-top: 18px; border-top: 1px solid #e3eaf4; }
.settings-subsection h3 { margin: 0; color: #1d2939; font-size: 15px; }
.settings-subsection p { margin: 5px 0 0; color: #667085; font-size: 12px; line-height: 1.65; }
.security-card { background: #fcfcfd; }
.input-with-action { display: flex; width: min(100%, 560px); min-width: 0; flex-wrap: nowrap; gap: 9px; }
.input-with-action input { width: auto; min-width: 0; max-width: 420px; flex: 1 1 0; }
.input-with-action .button-secondary { flex: 0 0 auto; min-height: 40px; padding: 0 14px; white-space: nowrap; }
.settings-row { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(250px, 1.2fr); gap: 14px; align-items: end; }
.settings-row .form-field { margin-bottom: 0; }
.checkbox-options { display: flex; min-height: 40px; align-items: center; gap: 14px; flex-wrap: nowrap; padding: 0 11px; overflow: hidden; background: #fff; border: 1px solid #d0d5dd; border-radius: 8px; white-space: nowrap; }
.checkbox-options label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #344054; font-weight: 400; white-space: nowrap; }
.form-field .checkbox-options input[type="checkbox"] { box-sizing: border-box; width: 16px; min-width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; border: 0; border-radius: 3px; box-shadow: none; accent-color: #2d6df6; }
.inline-check { display: inline-flex; align-items: center; width: fit-content; gap: 6px; margin-top: 2px; color: #475467; font-size: 12px; font-weight: 500 !important; }
.form-field .inline-check input[type="checkbox"] { box-sizing: border-box; width: 16px; min-width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; border: 0; border-radius: 3px; box-shadow: none; accent-color: #2d6df6; }
.domain-options { display: flex; align-items: center; gap: 14px; min-height: 26px; white-space: nowrap; }
.domain-options .inline-check { margin-top: 0; }
.form-hint { color: var(--muted); font-size: 12px; }
.admin-layout { min-height: 100vh; background: #f7f8fc; }
.admin-nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 36px; color: #fff; background: #101828; }
.admin-nav .brand { padding: 0; font-size: 16px; }
.admin-nav-links { display: flex; align-items: center; gap: 8px; }
.admin-nav-links a { padding: 6px 8px; border-radius: 6px; color: #d0d5dd; }
.admin-nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.admin-nav-links a.active { color: #fff; background: rgba(255,255,255,.16); }
.admin-content { display: flex; max-width: 1440px; flex-direction: column; margin: 0 auto; padding: 31px 36px 60px; }
.admin-heading { display: flex; order: 1; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-heading h1 { margin: 0; font-size: 25px; }
.admin-heading p { margin: 5px 0 0; color: var(--muted); }
.admin-heading-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.inline-export-form { margin: 0; }
.batch-import-intro { margin: 0 0 17px; color: #667085; line-height: 1.7; }
.batch-import-intro code { padding: 2px 5px; color: #175cd3; background: #eef4ff; border-radius: 5px; font-size: 12px; }
.admin-stats { display: grid; order: 2; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 21px; }
.admin-stat { padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.admin-stat strong { display: block; font-size: 22px; }
.admin-stat span { color: var(--muted); font-size: 12px; }
.panel { margin-bottom: 19px; padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.02); }
.admin-content #categories { order: 3; }
.admin-content #websites { order: 4; }
.admin-content #redirect-settings { order: 5; }
.admin-content #site-settings { order: 6; }
.panel h2 { margin: 0 0 5px; font-size: 17px; }
.panel > p { margin: 0 0 18px; color: var(--muted); }
.grid-form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; align-items: end; }
.grid-form .span-12 { grid-column: span 12; }
.grid-form .span-8 { grid-column: span 8; }
.grid-form .span-6 { grid-column: span 6; }
.grid-form .span-4 { grid-column: span 4; }
.grid-form .span-3 { grid-column: span 3; }
.grid-form .span-2 { grid-column: span 2; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { color: #667085; background: #f9fafb; font-size: 12px; font-weight: 700; text-align: left; }
th, td { padding: 12px 10px; border-bottom: 1px solid #eaecf0; vertical-align: middle; }
td { color: #344054; }
.table-site { display: flex; align-items: center; gap: 9px; min-width: 170px; }
.table-site .favicon, .table-site .fallback-icon { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; font-size: 12px; }
.url-text { display: block; max-width: 230px; overflow: hidden; color: #667085; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.actions { display: flex; gap: 5px; }
.button.small, .button-secondary.small, .button-danger.small { min-height: 30px; padding: 0 8px; font-size: 12px; }
.list-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.list-panel-heading h2 { margin-bottom: 5px; }
.list-panel-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.page-size-form { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.page-size-form label { display: inline-flex; align-items: center; gap: 7px; color: #475467; font-size: 12px; font-weight: 700; white-space: nowrap; }
.page-size-form select, .bulk-actions select { min-height: 32px; padding: 0 8px; color: #344054; background: #fff; border: 1px solid #d0d5dd; border-radius: 7px; font-size: 12px; }
.page-size-form .website-keyword-search { min-width: 238px; }
.page-size-form .website-keyword-search input { width: 166px; min-height: 32px; padding: 0 9px; color: #344054; background: #fff; border: 1px solid #d0d5dd; border-radius: 7px; font-size: 12px; }
.page-size-form .website-keyword-search input:focus { outline: 0; border-color: #2d6df6; box-shadow: 0 0 0 3px rgba(45,109,246,.12); }
.bulk-actions [data-bulk-category-select] { min-width: 124px; }
.bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 13px; padding: 10px 11px; background: #f8fafc; border: 1px solid #e5eaf1; border-radius: 10px; }
.selection-tools, .bulk-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.selection-tools span { color: #667085; font-size: 12px; }
.bulk-network-note { margin: -3px 0 13px; color: #667085; font-size: 12px; line-height: 1.55; }
.table-wrap input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: #2d6df6; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; color: #667085; font-size: 12px; }
.pagination .disabled { pointer-events: none; opacity: .45; }
.pagination .current-page { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 3px 8px rgba(45,109,246,.2); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; color: #475467; background: #f2f4f7; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag.up { color: #05603a; background: #ecfdf3; }.tag.down { color: #b42318; background: #fef3f2; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 26px 18px; background: rgba(16,24,40,.52); }
.modal-backdrop.open { display: flex; }
.modal { width: min(100%, 720px); margin: 0 auto; padding: 20px; background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(16,24,40,.25); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.modal-header h2 { margin: 0; font-size: 19px; }
.modal .grid-form { gap: 10px 12px; }
.modal .form-field { gap: 5px; margin-bottom: 5px; }
.modal .form-field textarea { min-height: 70px; }
.modal .form-hint, .modal .batch-import-intro { line-height: 1.5; }
.modal .batch-import-intro { margin-bottom: 12px; }
.modal-form-error { margin: 0 0 12px; padding: 10px 12px; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.modal-form-success { margin: 0 0 12px; padding: 10px 12px; color: #067647; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.is-ready-to-save { box-shadow: 0 0 0 4px rgba(18, 183, 106, .18); animation: save-ready-pulse 1.4s ease-in-out 2; }
@keyframes save-ready-pulse { 50% { transform: translateY(-1px); box-shadow: 0 0 0 7px rgba(18, 183, 106, .08); } }
.icon-button { display: grid; width: 30px; height: 30px; place-items: center; color: #667085; border: 0; border-radius: 6px; background: #f2f4f7; font-size: 20px; }
.preview { display: flex; gap: 12px; padding: 14px; margin-bottom: 15px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; }
.preview .favicon, .preview .fallback-icon { width: 44px; height: 44px; flex-basis: 44px; }
.preview-title { margin: 0; font-weight: 800; }.preview-desc { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.hidden { display: none !important; }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; padding: 13px 18px; } .brand { padding: 0 0 10px; } .sidebar-label, .sidebar-footer { display: none; } .category-nav { display: flex; overflow: auto; } .category-nav a { flex: 0 0 auto; padding: 7px 10px; } .topbar { min-height: auto; padding: 14px 20px; } .content { padding: 25px 20px 50px; } .page-intro { display: none; } .admin-content { padding: 25px 20px 50px; } .admin-nav { padding: 0 20px; } .admin-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .topbar { flex-wrap: wrap; gap: 10px; } .search { order: 3; flex-basis: 100%; max-width: none; } .search input { padding-right: 99px; } .search-submit { min-width: 82px; padding: 0 11px; } .header-actions { margin-left: 0; } .hero { display: block; } .hero .sort-control { display: inline-block; margin-top: 17px; } .stats { grid-template-columns: repeat(3, 1fr); } .stat { padding: 12px; } .website-grid { grid-template-columns: 1fr; } .admin-stats { grid-template-columns: 1fr 1fr; } .admin-heading { display: block; }.admin-heading-actions { flex-wrap: wrap; margin-top: 12px; } .list-panel-heading, .bulk-toolbar { align-items: stretch; flex-direction: column; } .page-size-form label { justify-content: space-between; } .page-size-form .website-keyword-search { min-width: 0; width: 100%; } .page-size-form .website-keyword-search input { flex: 1; width: auto; } .bulk-actions { justify-content: space-between; } .admin-nav-links { gap: 3px; overflow-x: auto; } .toast-stack { top: 14px; right: 16px; } .operation-card { padding: 20px 18px; } .modal-backdrop { padding: 10px; } .modal { padding: 17px; border-radius: 12px; } .grid-form .span-12, .grid-form .span-8, .grid-form .span-6, .grid-form .span-4, .grid-form .span-3, .grid-form .span-2 { grid-column: span 12; } .settings-row { grid-template-columns: 1fr; gap: 12px; } .input-with-action { width: 100%; gap: 7px; } .input-with-action .button-secondary { padding: 0 10px; font-size: 12px; } .checkbox-options { gap: 11px; } .domain-options { gap: 11px; } .redirect-body { padding: 16px; } .redirect-card { width: 100%; padding: 20px 18px 22px; border-radius: 18px; } .redirect-site { padding: 22px 0 18px; } .redirect-site-icon { width: 54px; height: 54px; border-radius: 15px; } .redirect-template-panel { padding: 15px; } .redirect-continue { width: 100%; } }
