@font-face {
  font-family: "Public Sans Variable";
  src: url("/static/vendor/public-sans-latin.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --primary: #2f7df6;
  --primary-hover: #246de0;
  --primary-foreground: #ffffff;
  --secondary: #eeeeee;
  --secondary-foreground: #004f8b;
  --muted: #f5f5f5;
  --muted-foreground: #606060;
  --border: #e8e8e8;
  --border-strong: #d8d8d8;
  --sidebar: #fdfdfd;
  --sidebar-accent: #e9f5fe;
  --sidebar-accent-foreground: #0276ea;
  --success: #20b46b;
  --success-soft: #e7f8ef;
  --info: #0084cc;
  --info-soft: #e6f4fb;
  --chart-4: #d068d8;
  --chart-4-soft: #faedfb;
  --warning: #d99014;
  --warning-soft: #fff5df;
  --destructive: #e5484d;
  --destructive-soft: #fff0f0;
  --neutral: #a1a1a1;
  --neutral-soft: #f1f1f1;
  --radius: 12px;
  --header-height: 48px;
  --ring: 0 0 0 1px rgba(10, 10, 10, .10);
  --ring-strong: 0 0 0 1px rgba(10, 10, 10, .16);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0b0b0c;
  --foreground: #fafafa;
  --card: #151516;
  --card-foreground: #fafafa;
  --popover: #19191a;
  --primary: #4caff3;
  --primary-hover: #70bff5;
  --primary-foreground: #07131b;
  --secondary: #242426;
  --secondary-foreground: #d9efff;
  --muted: #202022;
  --muted-foreground: #a4a4a7;
  --border: #2a2a2d;
  --border-strong: #3a3a3e;
  --sidebar: #101011;
  --sidebar-accent: #112b3e;
  --sidebar-accent-foreground: #70bff5;
  --success-soft: #112c20;
  --info-soft: #102938;
  --chart-4-soft: #321a34;
  --warning-soft: #352812;
  --destructive-soft: #36191b;
  --neutral-soft: #29292b;
  --ring: 0 0 0 1px rgba(255, 255, 255, .11);
  --ring-strong: 0 0 0 1px rgba(255, 255, 255, .19);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, "STHeitiSC-Light", "Segoe UI", Tahoma, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
.hidden, [hidden] { display: none !important; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow: auto;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #8da774 34%, var(--border));
  border-radius: 10px;
  background: #eef4e9;
  color: #ffffff;
  box-shadow: 0 5px 13px rgba(77,96,62,.12);
}
.brand-logo-image { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-mark .brand-logo { width: 25px; height: 25px; overflow: visible; }
.brand-logo-line { fill: none; stroke: #8de2ce; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-logo-node { fill: #8de2ce; stroke: #14253d; stroke-width: 1.2; }
.brand-logo-node-accent { fill: #f6c85f; }
.brand strong { display: block; font-size: 16px; line-height: 20px; font-weight: 700; }
.brand small { display: block; color: var(--muted-foreground); font-size: 10px; line-height: 16px; }
.nav { display: grid; gap: 3px; }
.nav-label { margin: 16px 10px 5px; color: var(--muted-foreground); font-size: 11px; font-weight: 650; }
.nav-item {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-foreground);
  text-align: left;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { background: var(--muted); color: var(--foreground); }
.nav-item.active { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); font-weight: 650; }
.nav-item em { min-width: 22px; margin-left: auto; padding: 2px 6px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); font-size: 10px; font-style: normal; text-align: center; }
.nav-item.active em { background: var(--card); color: var(--sidebar-accent-foreground); box-shadow: var(--ring); }
.sidebar-foot { display: grid; gap: 7px; margin-top: auto; }
.sidebar-theme-toggle { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted-foreground); text-align: left; transition: background .15s, color .15s; }
.sidebar-theme-toggle:hover { background: var(--muted); color: var(--foreground); }
.sidebar-theme-toggle svg { width: 17px; height: 17px; }
.sidebar-theme-toggle span { font-size: 12px; }
.service-state { display: flex; align-items: center; gap: 10px; margin: 18px 3px 10px; padding: 12px; border-radius: 12px; background: var(--muted); }
.service-state > span { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.service-state b, .service-state small { display: block; }
.service-state b { font-size: 11px; font-weight: 600; }
.service-state small { margin-top: 2px; color: var(--muted-foreground); font-size: 10px; }
.user-row { display: flex; align-items: center; gap: 9px; padding: 11px 7px 2px; border-top: 1px solid var(--border); min-width: 0; }
.user-row > div { min-width: 0; }
.user-row b, .user-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-row b { max-width: 130px; font-size: 11px; }
.user-row small { margin-top: 2px; color: var(--muted-foreground); font-size: 10px; }
.user-avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: var(--info-soft); color: var(--info); font-size: 12px; font-weight: 700; }
.user-avatar img { width: 30px; height: 30px; place-self: center; object-fit: contain; transform: translateY(-1px); }

.main { min-width: 0; background: var(--background); }
.impersonation-banner { position: sticky; z-index: 35; top: 0; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px clamp(20px, 1.8vw, 36px); border-bottom: 1px solid color-mix(in srgb, var(--warning) 42%, var(--border)); background: color-mix(in srgb, var(--warning-soft) 92%, var(--card)); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.impersonation-banner > span { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--foreground); font-size: 12px; }
.impersonation-banner > span svg { flex: none; color: var(--warning); }
.impersonation-banner > span b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.impersonation-banner button { min-height: 32px; flex: none; }
.heading-actions, .toolbar-actions, .toolbar-tail { display: flex; align-items: center; gap: 8px; }

.page { width: 100%; max-width: 2200px; margin: 0 auto; padding: 24px clamp(20px, 1.8vw, 36px) 40px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-heading h1 { margin: 0; font-size: 25px; line-height: 32px; font-weight: 650; }
.page-heading p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 14px; }

/* Public account discovery */
.plaza-page { max-width: 2200px; }
.plaza-heading { align-items: center; }
.plaza-search { width: min(420px, 42vw); min-height: 40px; }
.plaza-workspace { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; }
.plaza-categories { position: sticky; top: 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.plaza-category-head { min-height: 72px; display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.plaza-category-head > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--info-soft); color: var(--info); }
.plaza-category-head svg { width: 17px; height: 17px; }
.plaza-category-head b, .plaza-category-head small { display: block; }
.plaza-category-head b { font-size: 13px; }
.plaza-category-head small { margin-top: 3px; color: var(--muted-foreground); font-size: 10px; }
.plaza-category-list { display: grid; gap: 2px; max-height: calc(100vh - 150px); padding: 7px; overflow-y: auto; }
.plaza-category { position: relative; min-height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted-foreground); text-align: left; transition: background .18s, color .18s, transform .18s; }
.plaza-category:hover { background: var(--muted); color: var(--foreground); }
.plaza-category.active { background: var(--info-soft); color: var(--info); font-weight: 650; }
.plaza-category.active::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--info); content: ''; }
.plaza-content { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.plaza-content-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.plaza-content-head h2 { margin: 0; font-size: 16px; }
.plaza-content-head p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 11px; }
.plaza-source-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-foreground); font-size: 11px; white-space: nowrap; }
.plaza-source-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.plaza-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.plaza-card { min-width: 0; min-height: 190px; display: flex; flex-direction: column; padding: 18px; background: var(--card); transition: border-color .18s, box-shadow .18s, transform .18s; }
.plaza-card:hover { border-color: color-mix(in srgb, var(--info) 28%, var(--border)); box-shadow: 0 8px 22px rgba(15, 23, 42, .07); transform: translateY(-1px); }
.plaza-account-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; }
.plaza-avatar { position: relative; width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--info-soft); color: var(--info); font-size: 16px; font-weight: 700; }
.plaza-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--card); }
.plaza-identity { min-width: 0; }
.plaza-account-head h3 { margin: 0; overflow: hidden; font-size: 15px; font-weight: 650; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.plaza-meta { min-width: 0; display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.plaza-meta > span { min-width: 0; overflow: hidden; color: var(--muted-foreground); font-size: 11px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.plaza-meta em { flex: none; padding: 1px 6px; border: 1px solid color-mix(in srgb, var(--info) 18%, var(--border)); border-radius: 4px; background: var(--info-soft); color: var(--info); font-size: 10px; font-style: normal; line-height: 17px; }
.plaza-add { min-width: 72px; min-height: 32px; padding: 0 11px; font-size: 12px; }
.plaza-add svg { width: 13px; height: 13px; }
.plaza-add.is-added { color: var(--success); background: var(--success-soft); box-shadow: none; opacity: 1; }
.plaza-signature { min-height: 42px; display: -webkit-box; margin: 15px 0 14px; overflow: hidden; color: var(--muted-foreground); font-size: 12px; line-height: 21px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.plaza-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.plaza-tags { min-width: 0; display: flex; gap: 5px; overflow: hidden; }
.plaza-tags span { padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; background: color-mix(in srgb, var(--muted) 68%, var(--card)); color: var(--muted-foreground); font-size: 10px; line-height: 17px; white-space: nowrap; }
.plaza-load-state { min-height: 42px; display: flex; flex: none; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid var(--border); background: var(--card); color: var(--muted-foreground); font-size: 12px; }
.plaza-load-state svg { width: 15px; height: 15px; animation: spin .8s linear infinite; }

.primary, .secondary, .danger-text, .danger-button, .icon-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 550;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s, transform .22s cubic-bezier(.2, .8, .2, 1);
}
.primary:active, .secondary:active, .danger-text:active, .danger-button:active, .icon-button:active { transform: scale(.97); }
.primary { padding: 0 13px; border: 1px solid var(--primary); background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 2px rgba(47, 125, 246, .14); }
.primary:hover { border-color: var(--primary-hover); background: var(--primary-hover); box-shadow: 0 3px 8px rgba(47, 125, 246, .2); transform: translateY(-1px); }
.secondary { padding: 0 12px; border: 1px solid color-mix(in srgb, var(--border-strong) 72%, transparent); background: color-mix(in srgb, var(--muted) 28%, var(--card)); color: var(--foreground); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.secondary:hover { border-color: var(--border-strong); background: var(--muted); box-shadow: var(--ring-strong); transform: translateY(-1px); }
.danger-text { padding: 0 11px; border: 0; background: transparent; color: var(--destructive); }
.danger-text:hover { background: var(--destructive-soft); }
.danger-button { padding: 0 13px; border: 1px solid var(--destructive); background: var(--destructive); color: #ffffff; }
.danger-button:hover { border-color: color-mix(in srgb, var(--destructive) 82%, #000000); background: color-mix(in srgb, var(--destructive) 82%, #000000); }
.icon-button { position: relative; width: 34px; min-height: 34px; padding: 0; border: 1px solid color-mix(in srgb, var(--border-strong) 72%, transparent); background: color-mix(in srgb, var(--muted) 28%, var(--card)); color: var(--muted-foreground); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.icon-button:hover { background: var(--muted); color: var(--foreground); box-shadow: var(--ring-strong); }
.icon-button.subtle { width: 30px; min-height: 30px; margin-left: auto; border: 0; background: transparent; box-shadow: none; }
.floating-tooltip { position: fixed; top: 0; left: 0; z-index: 200; max-width: 240px; padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--background) 14%, transparent); border-radius: 7px; background: var(--foreground); color: var(--background); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); font-size: 11px; line-height: 16px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(4px) scale(.97); transition: opacity .14s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.floating-tooltip.show { opacity: 1; transform: none; }

.profile-overview, .group-panel, .data-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--ring);
}
.profile-overview { margin-bottom: 20px; }
.overview-main { min-height: 100px; display: flex; align-items: center; gap: 16px; padding: 20px; }
.overview-avatar { width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center; border-radius: 16px; background: #111; color: #4caff3; box-shadow: 0 0 0 4px var(--background); }
.overview-avatar svg { width: 29px; height: 29px; }
.overview-copy { min-width: 0; flex: 1; }
.overview-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.overview-title h1 { margin: 0; overflow: hidden; font-size: 25px; line-height: 32px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.overview-copy p { margin: 7px 0 0; color: var(--muted-foreground); font-size: 14px; }
.status-pill, .id-pill { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-pill { background: var(--neutral-soft); color: var(--muted-foreground); }
.id-pill { background: var(--info-soft); color: var(--info); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--border); }
.metric { min-width: 0; min-height: 104px; padding: 15px 20px; border-right: 1px solid var(--border); background: transparent; }
.metric:last-child { border-right: 0; }
.metric-top { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: 12px; font-weight: 650; }
.metric-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 9px; }
.metric-icon svg { width: 15px; height: 15px; }
.metric-icon.green { background: var(--success-soft); color: var(--success); }
.metric-icon.blue { background: var(--info-soft); color: var(--info); }
.metric-icon.amber { background: var(--warning-soft); color: var(--warning); }
.metric-icon.gray { background: var(--chart-4-soft); color: var(--chart-4); }
.metric strong { display: block; margin: 8px 0 3px; overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 24px; line-height: 27px; text-overflow: ellipsis; white-space: nowrap; }
.metric small { color: color-mix(in srgb, var(--muted-foreground) 78%, transparent); font-size: 12px; }

.account-page-heading { align-items: center; margin-bottom: 14px; }
.account-panel-actions { display: flex; align-items: center; gap: 9px; }
.account-metric-strip { margin-bottom: 14px; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--card); box-shadow: var(--ring); }
.account-metric-strip .metric { min-height: 82px; padding: 12px 16px; border-top: 0; }
.account-metric-strip .metric strong { margin: 5px 0 0; font-size: 21px; line-height: 24px; }
.account-metric-strip .metric small { display: none; }
.account-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.group-panel { position: relative; overflow: visible; }
.group-head, .panel-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.group-head b, .panel-head h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.group-head-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.group-head-title b, .group-head-title small { display: block; }
.group-head-title b { font-size: 14px; line-height: 19px; }
.group-head-title small { margin-top: 1px; color: var(--muted-foreground); font-size: 11px; }
.section-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; }
.section-icon svg { width: 17px; height: 17px; }
.section-icon.blue { background: var(--info-soft); color: var(--info); }
.group-head .icon-button { width: 34px; min-height: 34px; }
.panel-head p { margin: 2px 0 0; color: var(--muted-foreground); font-size: 12px; }
.group-list { display: flex; align-items: center; gap: 8px; padding: 11px 14px; overflow-x: auto; }
.group-caption { display: block; padding: 13px 10px 5px; color: var(--muted-foreground); font-size: 11px; font-weight: 650; }
.group-row { display: flex; flex: 0 0 auto; align-items: center; border: 1px solid var(--border); border-radius: 9px; }
.group-row.active { background: var(--sidebar-accent); }
.group-row .group-item { min-width: 0; flex: 1; }
.group-row .group-item.active { background: transparent; }
.group-row-actions { display: flex; flex: none; gap: 1px; padding-right: 5px; opacity: .72; transition: opacity .15s; }
.group-row:hover .group-row-actions, .group-row:focus-within .group-row-actions { opacity: 1; }
.group-action { position: relative; width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted-foreground); }
.group-action:hover { background: var(--card); color: var(--foreground); box-shadow: var(--ring); }
.group-action.delete-group:hover, .group-action.delete-channel-group:hover { background: var(--destructive-soft); color: var(--destructive); }
.group-action svg { width: 14px; height: 14px; }
.group-item { width: auto; min-width: 130px; min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--background); color: var(--muted-foreground); text-align: left; white-space: nowrap; }
.group-row .group-item { min-width: 118px; border: 0; background: transparent; }
.group-item:hover { background: var(--muted); color: var(--foreground); }
.group-item.active { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); font-weight: 650; }
.group-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-item em { min-width: 20px; margin-left: auto; color: var(--muted-foreground); font-size: 11px; font-style: normal; text-align: right; }
.group-item svg { width: 16px; height: 16px; flex: none; }
.create-group-button { min-height: 34px; white-space: nowrap; }
.create-group-button svg { width: 15px; height: 15px; }
.group-empty-copy { padding: 0 8px; color: var(--muted-foreground); font-size: 12px; white-space: nowrap; }
.data-panel { min-width: 0; }
.segmented, .tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--muted); }
.segmented button { width: 33px; height: 31px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted-foreground); }
.segmented button.active { background: var(--card); color: var(--foreground); box-shadow: var(--ring); }
.segmented svg { width: 16px; height: 16px; }
.toolbar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--border); }
.toolbar-note { color: var(--muted-foreground); font-size: 12px; }
.search-field { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--border); border-radius: 11px; background: var(--background); color: var(--muted-foreground); box-shadow: var(--ring); }
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.search-field svg { width: 16px; height: 16px; flex: none; }
.search-field input { width: 190px; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--foreground); }
.search-field input:-webkit-autofill,
.search-field input:-webkit-autofill:hover,
.search-field input:-webkit-autofill:focus { -webkit-text-fill-color: var(--foreground); caret-color: var(--foreground); box-shadow: 0 0 0 1000px var(--background) inset; transition: background-color 9999s ease-out 0s; }
.search-field.wide { flex: 1; }
.search-field.wide input { width: 100%; }
select, textarea, .field-label input { border: 1px solid var(--border); border-radius: 11px; background: var(--background); color: var(--foreground); outline: 0; box-shadow: var(--ring); }
select { min-height: 38px; padding: 0 34px 0 12px; font-size: 13px; }
select:focus, textarea:focus, .field-label input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }

.table-wrap { overflow: auto; }
table { width: 100%; min-width: 890px; border-collapse: collapse; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th { height: 43px; background: var(--muted); color: var(--muted-foreground); font-size: 12px; font-weight: 650; text-align: center; }
td { height: 68px; font-size: 13px; }
tbody tr { background: var(--card); }
tbody tr:hover { background: color-mix(in srgb, var(--muted) 70%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
.check { width: 42px; text-align: center; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }
.account-cell { display: flex; align-items: center; gap: 10px; }
.account-open { width: 100%; min-height: 48px; padding: 4px; border: 0; border-radius: 9px; background: transparent; color: var(--foreground); text-align: left; transition: background .18s, color .18s, transform .22s cubic-bezier(.2, .8, .2, 1); }
.account-open:hover { background: var(--muted); color: var(--primary); transform: translateX(2px); }
.account-open > div { min-width: 0; flex: 1; }
.account-open > svg { width: 14px; height: 14px; flex: none; color: var(--muted-foreground); opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s; }
.account-open:hover > svg, .account-open:focus-visible > svg { opacity: 1; transform: none; }
.account-cell img { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--muted); object-fit: cover; }
.account-cell b, .account-cell small { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.account-cell small { margin-top: 3px; color: var(--muted-foreground); font-size: 12px; }
.account-description { display: -webkit-box; min-width: 180px; max-width: 430px; margin: 0; overflow: hidden; color: var(--muted-foreground); font-size: 11px; line-height: 17px; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.account-certification { min-width: 0; max-width: 190px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 7px; background: var(--success-soft); color: var(--success); font-size: 10px; font-weight: 650; }
.account-certification.missing { background: var(--neutral-soft); color: var(--muted-foreground); font-weight: 550; }
.account-certification svg { width: 13px; height: 13px; flex: none; }
.account-certification span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-certification.compact { max-width: 240px; padding: 4px 7px; font-size: 9px; }
#accountTable .account-certification { max-width: 100%; }
#accountTable { background: var(--card); }
#accountTable table { min-width: 1320px; table-layout: fixed; }
#accountTable thead { position: sticky; top: 0; z-index: 2; }
#accountTable th, #accountTable td { padding-right: 12px; padding-left: 12px; }
#accountTable th { height: 48px; border-bottom-color: var(--border-strong); background: color-mix(in srgb, var(--muted) 74%, var(--card)); color: color-mix(in srgb, var(--muted-foreground) 90%, var(--foreground)); font-size: 11px; }
#accountTable th + th { border-left: 1px solid color-mix(in srgb, var(--border) 65%, transparent); }
#accountTable td { height: 84px; transition: background .16s; }
#accountTable tbody tr:hover td { background: color-mix(in srgb, var(--info-soft) 28%, var(--card)); }
#accountTable th:nth-child(1) { width: 42px; }
#accountTable th:nth-child(2) { width: 210px; }
#accountTable th:nth-child(3) { width: auto; }
#accountTable th:nth-child(4) { width: 180px; }
#accountTable th:nth-child(5) { width: 155px; }
#accountTable th:nth-child(6) { width: 150px; }
#accountTable th:nth-child(7) { width: 78px; }
#accountTable th:nth-child(8) { width: 92px; }
#accountTable th:nth-child(9) { width: 126px; }
#accountTable td:nth-child(n+4), #accountTable td.check, #accountTable td.actions-col { text-align: center; }
#accountTable td:nth-child(4) .account-certification, #accountTable td:nth-child(5) .group-tags, #accountTable td:nth-child(8) .status { margin-right: auto; margin-left: auto; }
#accountTable td:nth-child(5) .group-tags { justify-content: center; }
#accountTable .account-open { min-height: 56px; }
#accountTable .account-cell img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--border); }
#accountTable .account-cell b { font-size: 13px; line-height: 19px; }
#accountTable .account-cell small { font-size: 11px; line-height: 16px; }
#accountTable .account-description { max-width: none; color: color-mix(in srgb, var(--muted-foreground) 92%, var(--foreground)); font-size: 12px; line-height: 18px; }
#accountTable .account-certification { max-width: 156px; min-height: 28px; justify-content: center; padding: 5px 9px; background: color-mix(in srgb, var(--success) 9%, var(--muted)); color: color-mix(in srgb, var(--success) 68%, var(--foreground)); font-size: 10px; }
#accountTable .group-tag { min-height: 27px; padding: 0 9px; background: color-mix(in srgb, var(--info) 9%, var(--muted)); color: color-mix(in srgb, var(--info) 66%, var(--foreground)); font-size: 10px; }
#accountTable .status { min-height: 28px; justify-content: center; padding: 0 9px; border-radius: 7px; background: var(--neutral-soft); font-size: 11px; white-space: nowrap; }
#accountTable .status::before { width: 6px; height: 6px; }
#accountTable .status.ready { background: color-mix(in srgb, var(--success) 9%, var(--muted)); color: color-mix(in srgb, var(--success) 68%, var(--foreground)); }
.account-sync-time { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; }
.account-sync-time b { color: var(--foreground); font-size: 11px; line-height: 16px; font-weight: 650; }
.account-sync-time small { color: var(--muted-foreground); font-size: 10px; line-height: 14px; }
.account-sync-time.is-empty b { color: var(--muted-foreground); font-weight: 550; }
.account-sync-time.is-empty small { color: color-mix(in srgb, var(--muted-foreground) 65%, transparent); }
.account-article-count { display: inline-flex; align-items: baseline; justify-content: center; gap: 3px; font-variant-numeric: tabular-nums; }
.account-article-count b { color: var(--foreground); font-size: 15px; line-height: 20px; font-weight: 700; }
.account-article-count small { color: var(--muted-foreground); font-size: 10px; }
#accountTable .row-actions { justify-content: center; gap: 5px; }
#accountTable .row-actions .icon-button { width: 34px; min-height: 34px; border-color: color-mix(in srgb, var(--border-strong) 82%, transparent); background: color-mix(in srgb, var(--muted) 45%, var(--card)); box-shadow: none; }
#accountTable .row-actions .icon-button:hover { background: var(--muted); box-shadow: var(--ring); }
.group-tags { max-width: 250px; display: flex; align-items: center; gap: 5px; overflow: hidden; }
.group-tag { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; background: var(--info-soft); color: var(--info); font-size: 11px; white-space: nowrap; }
.group-tag.more { background: var(--neutral-soft); color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; color: var(--muted-foreground); font-size: 12px; }
.status::before { width: 7px; height: 7px; border-radius: 50%; background: var(--neutral); content: ""; }
.status.ready { color: var(--success); }
.status.ready::before { background: var(--success); }
.actions-col { width: 132px; text-align: right; }
th.actions-col { text-align: center; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.row-actions .icon-button { width: 32px; min-height: 32px; border-radius: 9px; }
.metric-one.is-loading svg { animation: spin .8s linear infinite; }
.article-loading-row td { height: 170px; color: var(--muted-foreground); text-align: center; }
.article-loading-row td > * { vertical-align: middle; }
.article-loading-row svg { width: 18px; margin-right: 8px; color: var(--primary); animation: spin .8s linear infinite; }
.row-actions .icon-button svg { width: 15px; height: 15px; }
.row-actions a { text-decoration: none; }
.article-link { display: block; max-width: 350px; overflow: hidden; color: var(--foreground); font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.article-link:hover { color: var(--primary); }
.article-url { display: block; max-width: 350px; margin-top: 4px; overflow: hidden; color: var(--muted-foreground); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.account-cards { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; padding: 16px; }
.account-card { min-width: 0; padding: 15px; border-radius: 12px; background: var(--background); box-shadow: var(--ring); cursor: pointer; transition: border-color .18s, box-shadow .22s, transform .26s cubic-bezier(.2, .8, .2, 1); }
.account-card:hover { box-shadow: var(--ring-strong), 0 10px 24px rgba(10, 10, 10, .06); transform: translateY(-3px); }
.account-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent); outline-offset: 2px; }
.account-card-head { display: flex; align-items: center; gap: 10px; }
.account-card-head .card-check { flex: none; }
.account-card-head img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.account-card-head > div { min-width: 0; }
.account-card-head b, .account-card-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card-head small { margin-top: 3px; color: var(--muted-foreground); font-size: 10px; }
.account-card-description { min-height: 38px; display: -webkit-box; margin: 12px 0 8px; overflow: hidden; color: var(--muted-foreground); font-size: 11px; line-height: 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.account-card-meta { min-height: 25px; display: flex; align-items: center; }
.account-card .group-tags { min-height: 24px; margin: 10px 0 12px; }
.account-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.empty { min-height: 250px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 36px; color: var(--muted-foreground); text-align: center; }
.empty-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 13px; background: var(--info-soft); color: var(--info); }
.empty b { color: var(--foreground); }
.empty p { margin: 6px 0 14px; font-size: 13px; }
.pager { min-height: 50px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 8px 16px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 12px; }
.pager button { width: 31px; height: 31px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--card); color: var(--foreground); }
.pager button:hover:not(:disabled) { background: var(--muted); }

.filter-band { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px; border-radius: var(--radius); background: var(--card); box-shadow: var(--ring); }
.filter-band .wide { max-width: 520px; }
.article-library { overflow: visible; background: transparent; box-shadow: none; }
.article-list-toolbar { min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--ring); }
.select-current { display: inline-flex; align-items: center; gap: 8px; color: var(--foreground); font-size: 12px; cursor: pointer; }
.article-result-count { color: var(--muted-foreground); font-size: 12px; }
.toolbar-spacer { flex: 1; }
.article-feed { display: grid; gap: 12px; margin-top: 12px; }
.article-day-group { overflow: hidden; border-radius: var(--radius); background: var(--card); box-shadow: var(--ring); }
.article-day-heading { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.article-day-heading b { font-size: 13px; font-weight: 650; }
.article-day-heading span { color: var(--muted-foreground); font-size: 11px; }
.article-day-list { padding: 0 16px; }
.article-feed-item { min-height: 124px; display: grid; grid-template-columns: 20px minmax(0, 1fr) 120px 34px; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.article-feed-item:last-child { border-bottom: 0; }
.article-select { align-self: start; padding-top: 4px; cursor: pointer; }
.article-feed-copy { min-width: 0; }
.article-meta { display: flex; align-items: center; gap: 9px; color: var(--muted-foreground); font-size: 11px; }
.article-meta b { max-width: 180px; overflow: hidden; color: var(--foreground); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.article-meta .status { min-height: 18px; margin-left: 2px; font-size: 10px; }
.article-meta .status::before { width: 5px; height: 5px; }
.article-feed-title { display: -webkit-box; margin-top: 7px; overflow: hidden; color: var(--foreground); font-size: 15px; font-weight: 650; line-height: 21px; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-feed-title:hover { color: var(--primary); }
.article-feed-copy p { max-width: 720px; margin: 5px 0 7px; overflow: hidden; color: var(--muted-foreground); font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.article-metrics { display: flex; align-items: center; gap: 14px; color: var(--muted-foreground); font-size: 11px; }
.article-metrics span { display: inline-flex; align-items: center; gap: 4px; }
.article-metrics svg { width: 13px; height: 13px; }
.article-cover { position: relative; width: 120px; height: 78px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--muted); color: var(--muted-foreground); text-decoration: none; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover > svg { display: none; width: 22px; height: 22px; }
.article-cover.is-empty > svg { display: block; }
.article-actions { display: grid; gap: 5px; }
.article-actions .icon-button { width: 32px; min-height: 32px; border-radius: 8px; }
.article-actions .icon-button svg { width: 15px; height: 15px; }
.article-actions a { text-decoration: none; }
.article-library > .pager { margin-top: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: color-mix(in srgb, var(--muted) 34%, var(--card)); box-shadow: none; }

/* Article management */
.article-page-heading { margin-bottom: 16px; }
.article-library { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px rgba(10, 10, 10, .03); }
.article-management-toolbar { display: grid; background: var(--card); }
.article-toolbar-primary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; }
.article-view-switch { flex: none; }
.article-view-switch button { width: auto; min-width: 104px; display: inline-flex; gap: 7px; padding: 0 11px; }
.article-view-switch button span { font-size: 12px; }
.article-search-actions { min-width: 0; display: flex; align-items: center; gap: 8px; }
.article-main-search { width: clamp(300px, 31vw, 520px); min-height: 40px; }
.article-main-search input { width: 100%; }
.article-filter-fields { min-width: 0; display: grid; grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) minmax(320px, 1.7fr) minmax(150px, .75fr) minmax(200px, 1.05fr); align-items: end; gap: 12px; padding: 13px 16px 15px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 48%, var(--card)); }
.article-filter-control { min-width: 0; display: grid; gap: 6px; color: var(--muted-foreground); font-size: 10px; font-weight: 650; }
.article-filter-control > span { padding-left: 2px; color: color-mix(in srgb, var(--muted-foreground) 88%, var(--foreground)); }
.article-filter-control select { width: 100%; max-width: none; min-width: 0; min-height: 38px; background-color: var(--card); box-shadow: none; }
.article-date-control .date-range-filter { width: 100%; min-width: 0; flex-basis: auto; box-shadow: none; }
.article-list-toolbar { min-height: 54px; justify-content: space-between; flex-wrap: wrap; padding: 9px 16px; border-radius: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--card); box-shadow: none; }
.article-selection-tools, .article-list-summary { display: flex; align-items: center; gap: 10px; }
.article-list-summary { min-width: 0; flex: 1; justify-content: flex-end; }
.article-batch-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.article-batch-actions button { min-height: 34px; padding: 0 9px; font-size: 11px; white-space: nowrap; }
.article-batch-actions button svg { width: 14px; height: 14px; }
.article-result-count { padding-left: 10px; border-left: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.article-list-summary .danger-text { min-height: 32px; }
.select-all-results { min-height: 31px; padding: 0 9px; border: 0; border-radius: 7px; background: var(--info-soft); color: var(--info); font-size: 11px; }
.select-all-results svg { width: 14px; height: 14px; }
.selection-count { min-height: 27px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 11px; font-weight: 650; }
.article-table-view { border-radius: 0; background: var(--card); box-shadow: none; }
.article-table { width: 100%; min-width: 1705px; table-layout: fixed; }
.article-table thead { position: sticky; top: 0; z-index: 2; }
.article-table th, .article-table td { padding: 10px 11px; }
.article-table th { position: relative; height: 48px; border-bottom-color: var(--border-strong); background: color-mix(in srgb, var(--muted) 74%, var(--card)); color: color-mix(in srgb, var(--muted-foreground) 90%, var(--foreground)); font-size: 11px; }
.article-table th + th { border-left: 1px solid color-mix(in srgb, var(--border) 65%, transparent); }
.article-table td { height: 88px; text-align: center; transition: background .16s; }
.article-table tbody tr:hover td { background: color-mix(in srgb, var(--info-soft) 28%, var(--card)); }
.article-table .actions-col { text-align: center; }
.resizable-table { table-layout: fixed; }
.resizable-table th { position: relative; }
.table-column-resizer { position: absolute; z-index: 5; top: 0; right: -5px; width: 10px; height: 100%; display: block; cursor: col-resize; touch-action: none; }
.table-column-resizer::after { position: absolute; top: 8px; bottom: 8px; left: 4px; width: 2px; border-radius: 2px; background: var(--primary); content: ''; opacity: 0; transition: opacity .14s; }
.resizable-table th:hover .table-column-resizer::after, .table-column-resizer:focus-visible::after, .table-column-resizer.is-dragging::after { opacity: .72; }
.table-column-resizer:focus-visible { outline: 0; }
body.is-resizing-table-column, body.is-resizing-table-column * { cursor: col-resize !important; user-select: none !important; }
.article-table .row-actions { justify-content: center; gap: 5px; }
.article-table .row-actions .icon-button { width: 34px; min-height: 34px; border-color: color-mix(in srgb, var(--border-strong) 82%, transparent); background: color-mix(in srgb, var(--muted) 45%, var(--card)); box-shadow: none; }
.article-table .row-actions .icon-button:hover { background: var(--muted); box-shadow: var(--ring); }
.article-table .row-actions .extract-content.has-content { border-color: color-mix(in srgb, var(--success) 32%, var(--border)); color: var(--success); }
.article-content-cell { min-width: 0; display: grid; gap: 7px; color: var(--muted-foreground); text-align: left; }
.article-content-cell > span { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.article-content-cell > em { width: max-content; display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 10px; font-style: normal; font-weight: 650; }
.article-content-cell > em svg { width: 12px; height: 12px; }
.article-content-cell:not(.has-content) > span { color: color-mix(in srgb, var(--muted-foreground) 72%, transparent); }
.video-management-toolbar { border-bottom: 0; }
.video-filter-fields { grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) minmax(320px, 1.7fr) minmax(150px, .75fr) minmax(200px, 1.05fr); }
.video-table-wrap { border-radius: 0; background: var(--card); box-shadow: none; }
.video-table { min-width: 1240px; table-layout: fixed; }
.video-table thead { position: sticky; top: 0; z-index: 2; }
.video-table th, .video-table td { padding: 10px 11px; }
.video-table th { height: 48px; border-bottom-color: var(--border-strong); background: color-mix(in srgb, var(--muted) 74%, var(--card)); color: color-mix(in srgb, var(--muted-foreground) 90%, var(--foreground)); font-size: 11px; }
.video-table td { height: 82px; text-align: center; transition: background .16s; }
.video-table tbody tr:hover td { background: color-mix(in srgb, var(--info-soft) 28%, var(--card)); }
.video-table th:nth-child(1) { width: 42px; }
.video-table th:nth-child(2) { width: 50px; }
.video-table th:nth-child(3) { width: 190px; }
.video-table th:nth-child(4) { width: auto; }
.video-table th:nth-child(5) { width: 146px; }
.video-table th:nth-child(n+6):nth-child(-n+9) { width: 64px; }
.video-table .actions-col { width: 140px; text-align: center; }
.video-table .row-actions { justify-content: center; gap: 5px; }
.video-table .row-actions .icon-button { width: 34px; min-height: 34px; border-color: color-mix(in srgb, var(--border-strong) 82%, transparent); background: color-mix(in srgb, var(--muted) 45%, var(--card)); box-shadow: none; }
.video-table .row-actions .icon-button:hover { background: var(--muted); box-shadow: var(--ring); }
.video-title-cell { width: 100%; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: var(--foreground); text-align: left; }
.video-title-cell > img, .video-title-cell > .title-placeholder { width: 88px; height: 58px; flex: 0 0 88px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: var(--muted); color: var(--muted-foreground); object-fit: cover; }
.video-title-cell > img { object-fit: cover; }
.video-title-cell > span { min-width: 0; }
.video-title-cell b, .video-title-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-title-cell b { font-size: 13px; line-height: 19px; }
.video-title-cell small { margin-top: 5px; color: var(--muted-foreground); font-size: 11px; }
.finder-selection-toolbar { min-height: 54px; border-top: 1px solid var(--border); }
.finder-channel-select { display: inline-flex; align-items: center; margin-right: 3px; cursor: pointer; }
.finder-channel-select input { width: 15px; height: 15px; }
.row-number { color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.row-number span { width: 25px; height: 25px; display: inline-grid; place-items: center; border-radius: 7px; background: var(--muted); font-size: 11px; font-weight: 650; }
.article-account-cell { width: 100%; min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; text-align: left; }
.article-account-cell > img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: var(--muted); object-fit: cover; box-shadow: 0 0 0 1px var(--border); }
.article-account-cell > span { min-width: 0; }
.article-account-cell b, .article-account-cell small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-account-cell b { font-size: 12px; line-height: 18px; font-weight: 650; }
.article-account-cell small { margin-top: 2px; color: var(--muted-foreground); font-size: 10px; line-height: 14px; }
.article-title-cell { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; white-space: normal; }
.article-title-cell > img, .title-placeholder { width: 80px; height: 58px; flex: 0 0 80px; border-radius: 7px; background: var(--muted); object-fit: cover; box-shadow: 0 0 0 1px var(--border); }
.title-placeholder { display: grid; place-items: center; color: var(--muted-foreground); }
.title-placeholder svg { width: 18px; height: 18px; }
.article-title-cell > div { min-width: 0; flex: 1; }
.article-title-cell a { display: block; overflow: hidden; color: var(--foreground); font-size: 13px; font-weight: 650; line-height: 19px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.article-title-cell a:hover { color: var(--primary); }
.article-title-cell small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted-foreground); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.article-history-meta { min-height: 16px; display: flex; align-items: center; gap: 5px; margin-top: 4px; overflow: hidden; white-space: nowrap; }
.article-history-meta em { display: inline-flex; flex: none; align-items: center; padding: 1px 5px; border-radius: 4px; background: var(--muted); color: var(--muted-foreground); font-size: 9px; line-height: 14px; font-style: normal; }
.article-publish-time { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; }
.article-publish-time b { color: var(--foreground); font-size: 11px; line-height: 16px; font-weight: 650; }
.article-publish-time small { color: var(--muted-foreground); font-size: 10px; line-height: 14px; }
.article-publish-time em { max-width: 116px; display: inline-flex; align-items: center; gap: 3px; overflow: hidden; color: var(--muted-foreground); font-size: 9px; line-height: 14px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.article-publish-time em svg { width: 10px; height: 10px; flex: none; }
.article-metric-value { display: inline-flex; min-width: 34px; min-height: 26px; align-items: center; justify-content: center; border-radius: 7px; color: var(--foreground); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.article-metric-value.is-zero { color: color-mix(in srgb, var(--muted-foreground) 74%, transparent); font-weight: 550; }
.article-library > .empty { border-radius: 0; }

.article-preview-workspace { height: calc(100vh - 280px); min-height: 600px; max-height: 960px; display: grid; grid-template-columns: clamp(210px, 14vw, 280px) clamp(330px, 23vw, 500px) minmax(520px, 1fr); overflow: hidden; background: var(--card); }
.article-scope-panel, .article-preview-list { min-height: 0; overflow-y: auto; border-right: 1px solid var(--border); }
.article-scope-panel { padding: 12px 9px; background: color-mix(in srgb, var(--muted) 45%, var(--card)); }
.scope-block + .scope-block { margin-top: 18px; }
.scope-block > b { display: block; padding: 0 9px 7px; color: var(--muted-foreground); font-size: 11px; font-weight: 650; }
.scope-item { width: 100%; min-height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; color: var(--muted-foreground); text-align: left; }
.scope-item:hover { background: var(--muted); color: var(--foreground); }
.scope-item.active { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); font-weight: 650; }
.scope-item img { width: 24px; height: 24px; flex: none; border-radius: 7px; object-fit: cover; }
.scope-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-item em { margin-left: auto; font-size: 10px; font-style: normal; }
.article-preview-list { padding: 7px 0; }
.preview-list-item { width: 100%; min-height: 96px; display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--foreground); text-align: left; }
.preview-list-item:hover { background: var(--muted); }
.preview-list-item.active { background: var(--sidebar-accent); }
.preview-list-item > img, .preview-cover-empty { width: 88px; height: 62px; display: grid; place-items: center; border-radius: 6px; background: var(--muted); color: var(--muted-foreground); object-fit: cover; }
.preview-list-item > span { min-width: 0; }
.preview-list-item b { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.preview-list-item small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted-foreground); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.preview-list-item em { display: block; margin-top: 7px; color: var(--muted-foreground); font-size: 10px; font-style: normal; }
.article-reader { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--background); }
.reader-head { min-height: 104px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--card); }
.reader-head > div { min-width: 0; }
.reader-head span, .reader-head small { color: var(--muted-foreground); font-size: 11px; }
.reader-head h2 { margin: 5px 0; overflow: hidden; font-size: 17px; line-height: 24px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.article-frame { width: 100%; min-height: 0; flex: 1; border: 0; background: #fff; }
.reader-empty, .reader-loading { height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--muted-foreground); }
.reader-empty svg, .reader-loading svg { width: 28px; height: 28px; color: var(--primary); }
.reader-empty b { color: var(--foreground); }
.reader-empty span, .reader-loading span { font-size: 12px; }
.reader-loading svg { animation: spin 1s linear infinite; }
.is-loading svg { animation: spin 1s linear infinite; }

.export-modal-card { width: 720px; }
.modal-subtitle { margin: 4px 0 0; color: var(--muted-foreground); font-size: 12px; }
.export-section + .export-section { margin-top: 20px; }
.export-section > b { display: block; margin-bottom: 9px; font-size: 12px; }
.export-section.disabled { display: none; }
.export-format-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.export-format { min-height: 66px; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--background); cursor: pointer; }
.export-format:hover { border-color: var(--border-strong); }
.export-format.active { border-color: var(--primary); background: var(--info-soft); }
.export-format > input { position: absolute; opacity: 0; pointer-events: none; }
.export-format > svg { width: 20px; height: 20px; flex: none; color: var(--primary); }
.export-format span, .export-format b, .export-format small { display: block; min-width: 0; }
.export-format b { font-size: 12px; }
.export-format small { margin-top: 2px; color: var(--muted-foreground); font-size: 10px; }
.export-content-choice { min-height: 68px; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--background); cursor: pointer; }
.export-content-choice:has(input:checked) { border-color: var(--primary); background: var(--info-soft); }
.export-content-choice input { width: 16px; height: 16px; }
.export-content-choice span, .export-content-choice b, .export-content-choice small { display: block; min-width: 0; }
.export-content-choice b { font-size: 12px; }
.export-content-choice small { margin-top: 3px; color: var(--muted-foreground); font-size: 10px; line-height: 16px; }
.export-cache-note { min-height: 34px; display: flex; align-items: center; gap: 7px; margin: 8px 0 0; padding: 7px 10px; border-radius: 7px; background: var(--success-soft); color: var(--success); font-size: 10px; line-height: 16px; }
.export-cache-note svg { width: 14px; height: 14px; flex: none; }
.radio-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-list label { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--primary); background: var(--info-soft); }
.radio-list span, .radio-list b, .radio-list small { display: block; }
.radio-list b { font-size: 12px; }
.radio-list small { margin-top: 2px; color: var(--muted-foreground); font-size: 10px; }

@keyframes spin { to { transform: rotate(360deg); } }
.date-range-filter { width: 286px; min-height: 38px; flex: 0 0 286px; display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--card); color: var(--muted-foreground); box-shadow: var(--ring); transition: border-color .18s, box-shadow .18s; }
.date-range-filter:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.date-picker-field { min-width: 0; height: 30px; position: relative; display: flex; align-items: center; gap: 7px; padding: 0 8px; border-radius: 6px; cursor: pointer; transition: background .18s, color .18s; }
.date-picker-field:hover { background: var(--muted); color: var(--foreground); }
.date-picker-field > svg { width: 14px; height: 14px; flex: none; pointer-events: none; }
.date-picker-field > span { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.date-picker-field.has-value { color: var(--foreground); }
.date-picker-field input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.date-range-divider { display: grid; place-items: center; color: var(--border-strong); pointer-events: none; }
.date-range-divider svg { width: 13px; height: 13px; }
.select-all-results { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--primary); font-size: 11px; font-weight: 650; }
.select-all-results:hover { background: var(--info-soft); }
.select-all-results.active { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); background: var(--info-soft); }
.select-all-results svg { width: 14px; height: 14px; }
.selection-count { padding: 4px 8px; border-radius: 999px; background: var(--info-soft); color: var(--info); font-size: 10px; font-weight: 650; white-space: nowrap; }

.analytics-heading { align-items: center; }
.analytics-filters { display: flex; align-items: center; gap: 8px; }
.analytics-filters select { min-width: 148px; min-height: 38px; background-color: var(--card); }
.analytics-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.analytics-kpi { min-width: 0; min-height: 138px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: 0 1px 2px rgba(10, 10, 10, .03); }
.analytics-kpi-top { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: 11px; font-weight: 650; }
.analytics-kpi-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; }
.analytics-kpi-icon svg { width: 15px; height: 15px; }
.analytics-kpi-icon.blue { background: var(--info-soft); color: var(--info); }
.analytics-kpi-icon.cyan { background: #e7f8fa; color: #078796; }
.analytics-kpi-icon.violet { background: var(--chart-4-soft); color: var(--chart-4); }
.analytics-kpi-icon.green { background: var(--success-soft); color: var(--success); }
.analytics-kpi-icon.amber { background: var(--warning-soft); color: var(--warning); }
.analytics-kpi-icon.gray { background: var(--neutral-soft); color: var(--muted-foreground); }
:root[data-theme="dark"] .analytics-kpi-icon.cyan { background: #102e31; color: #5ccbd7; }
.analytics-kpi > strong { display: block; margin-top: 16px; overflow: hidden; font-size: 27px; line-height: 32px; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.analytics-kpi > div:last-child { min-height: 18px; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.analytics-kpi small { overflow: hidden; color: var(--muted-foreground); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-kpi em { flex: none; padding: 2px 5px; border-radius: 5px; font-size: 9px; font-style: normal; font-weight: 700; }
.analytics-kpi em.up { background: var(--success-soft); color: var(--success); }
.analytics-kpi em.down { background: var(--destructive-soft); color: var(--destructive); }
.analytics-dashboard { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.analytics-panel { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: 0 1px 2px rgba(10, 10, 10, .03); }
.analytics-panel-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.analytics-panel-head h2 { margin: 0; font-size: 14px; line-height: 21px; font-weight: 670; }
.analytics-panel-head p { margin: 3px 0 0; color: var(--muted-foreground); font-size: 10px; }
.trend-panel { min-height: 382px; grid-column: span 8; }
.engagement-panel { min-height: 382px; grid-column: span 4; }
.account-ranking-panel { grid-column: 1 / -1; }
.top-content-panel { min-height: 420px; grid-column: span 6; }
.heatmap-panel, .quality-panel { min-height: 420px; grid-column: span 3; }
.chart-legend { display: flex; align-items: center; gap: 14px; color: var(--muted-foreground); font-size: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { display: block; }
.legend-bar { width: 8px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--primary) 32%, transparent); }
.legend-line { width: 14px; height: 2px; border-radius: 2px; background: var(--success); }
.analytics-trend-chart { min-height: 310px; display: grid; align-items: center; padding: 18px 12px 8px; }
.analytics-trend-chart svg { width: 100%; height: auto; min-height: 260px; overflow: visible; }
.trend-grid-line { stroke: var(--border); stroke-width: 1; }
.trend-area { fill: color-mix(in srgb, var(--success) 9%, transparent); }
.trend-bar { fill: color-mix(in srgb, var(--primary) 28%, transparent); }
.trend-line { fill: none; stroke: var(--success); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.trend-dot { fill: var(--card); stroke: var(--success); stroke-width: 2.5; }
.trend-axis-label { fill: var(--muted-foreground); font-size: 9px; text-anchor: middle; }
#engagementMix { min-height: 310px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px; padding: 22px 18px; }
.engagement-donut { width: 148px; height: 148px; flex: 0 0 148px; display: grid; place-items: center; border-radius: 50%; background: var(--donut); }
.engagement-donut::before { width: 102px; height: 102px; grid-area: 1 / 1; border-radius: 50%; background: var(--card); content: ""; }
.engagement-donut > span { z-index: 1; grid-area: 1 / 1; text-align: center; }
.engagement-donut strong, .engagement-donut small { display: block; }
.engagement-donut strong { font-size: 23px; line-height: 28px; font-weight: 670; }
.engagement-donut small { margin-top: 3px; color: var(--muted-foreground); font-size: 10px; }
.engagement-legend { min-width: 150px; display: grid; gap: 11px; }
.engagement-legend > div { display: grid; grid-template-columns: 8px minmax(38px, 1fr) auto 34px; align-items: center; gap: 7px; font-size: 10px; }
.engagement-legend i { width: 7px; height: 7px; border-radius: 2px; }
.engagement-legend b { text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; }
.engagement-legend em { color: var(--muted-foreground); font-size: 9px; font-style: normal; text-align: right; }
.analytics-badge { flex: none; padding: 5px 8px; border-radius: 6px; background: var(--muted); color: var(--muted-foreground); font-size: 9px; font-weight: 650; }
.analytics-table-wrap { max-width: 100%; overflow-x: auto; }
.analytics-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.analytics-table th { height: 38px; padding: 0 16px; background: color-mix(in srgb, var(--muted) 62%, var(--card)); color: var(--muted-foreground); font-size: 9px; font-weight: 650; text-align: center; white-space: nowrap; }
.analytics-table td { height: 58px; padding: 8px 16px; border-top: 1px solid var(--border); font-size: 11px; font-variant-numeric: tabular-nums; }
.analytics-table tbody tr:hover { background: color-mix(in srgb, var(--muted) 48%, transparent); }
.rank-number { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; background: var(--muted); color: var(--muted-foreground); font-size: 9px; font-weight: 700; }
.rank-number.top { background: var(--info-soft); color: var(--info); }
.ranking-account { max-width: 260px; display: flex; align-items: center; gap: 9px; }
.ranking-account img { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; object-fit: cover; }
.ranking-account b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-account small { margin-left: auto; color: var(--muted-foreground); font-size: 9px; white-space: nowrap; }
.coverage-value { color: var(--success); font-weight: 700; }
.top-content-list { padding: 4px 16px 10px; }
.top-content-row { min-height: 66px; display: grid; grid-template-columns: 22px 62px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--foreground); text-decoration: none; }
.top-content-row:last-child { border-bottom: 0; }
.top-content-row:hover .top-content-copy b { color: var(--primary); }
.top-content-row.analytics-video-open { width: 100%; border-top: 0; border-right: 0; border-left: 0; background: transparent; text-align: left; }
.content-rank { color: var(--muted-foreground); font-size: 10px; font-weight: 700; text-align: center; }
.top-content-row img, .content-cover-empty { width: 62px; height: 44px; display: grid; place-items: center; border-radius: 5px; background: var(--muted); color: var(--muted-foreground); object-fit: cover; }
.content-cover-empty svg { width: 15px; height: 15px; }
.top-content-copy { min-width: 0; position: relative; padding-bottom: 7px; }
.top-content-copy b, .top-content-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-content-copy b { font-size: 11px; font-weight: 650; }
.top-content-copy small { margin-top: 4px; color: var(--muted-foreground); font-size: 9px; }
.top-content-copy > i { position: absolute; bottom: 0; left: 0; max-width: 100%; height: 2px; border-radius: 2px; background: var(--primary); }
.publish-heatmap { display: grid; grid-template-columns: 37px repeat(4, minmax(34px, 1fr)); gap: 6px; padding: 18px 16px 20px; }
.publish-heatmap > b, .publish-heatmap > span { align-self: center; color: var(--muted-foreground); font-size: 8px; font-weight: 600; text-align: center; }
.publish-heatmap > i { min-height: 25px; display: grid; place-items: center; border-radius: 4px; background: color-mix(in srgb, var(--primary) var(--heat), var(--muted)); font-style: normal; }
.publish-heatmap > i em { color: var(--foreground); font-size: 8px; font-style: normal; font-weight: 650; }
.quality-metrics { display: grid; gap: 2px; padding: 10px 16px 14px; }
.quality-row { min-height: 51px; display: grid; grid-template-columns: 31px minmax(0, 1fr) 38px; align-items: center; gap: 9px; }
.quality-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; background: var(--muted); color: var(--muted-foreground); }
.quality-icon svg { width: 13px; height: 13px; }
.quality-row > span:nth-child(2) { min-width: 0; }
.quality-row b, .quality-row small { display: block; }
.quality-row b { font-size: 10px; }
.quality-row small { margin-top: 2px; color: var(--muted-foreground); font-size: 8px; }
.quality-row > strong { font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.quality-track { height: 3px; display: block; margin-top: 5px; overflow: hidden; border-radius: 2px; background: var(--muted); }
.quality-track em { height: 100%; display: block; border-radius: inherit; background: var(--success); }
.analytics-empty { min-height: 120px; display: grid; place-items: center; color: var(--muted-foreground); font-size: 11px; }
.schedule-panel { margin-bottom: 20px; }
.count-pill { padding: 5px 9px; border-radius: 999px; background: var(--muted); color: var(--muted-foreground); font-size: 11px; }
.schedule-row { min-height: 78px; display: grid; grid-template-columns: 38px minmax(220px, 1fr) minmax(150px, .55fr) 42px 112px; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-icon, .task-type-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.schedule-icon svg, .task-type-icon svg { width: 17px; height: 17px; }
.schedule-icon.blue, .task-type-icon.blue { background: var(--info-soft); color: var(--info); }
.schedule-icon.green, .task-type-icon.green { background: var(--success-soft); color: var(--success); }
.schedule-icon.violet, .task-type-icon.violet { background: var(--chart-4-soft); color: var(--chart-4); }
.schedule-icon.amber, .task-type-icon.amber { background: var(--warning-soft); color: var(--warning); }
.schedule-name b, .schedule-name small, .schedule-time b, .schedule-time small { display: block; }
.schedule-name b, .schedule-time b { font-size: 13px; font-weight: 600; }
.schedule-name small, .schedule-time small { margin-top: 4px; color: var(--muted-foreground); font-size: 11px; }
.schedule-empty { min-height: 210px; }
.switch { position: relative; width: 34px; height: 20px; display: block; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch > span { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); cursor: pointer; transition: background .16s; }
.switch > span::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,.25); content: ""; transition: transform .16s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(14px); }
.task-history-panel { overflow: visible; }
.task-log-head { align-items: center; }
.execution-toolbar { display: flex; align-items: center; gap: 7px; }
.execution-toolbar select { min-width: 126px; min-height: 36px; padding-right: 30px; border-radius: 8px; font-size: 12px; box-shadow: none; }
.execution-list { padding: 5px 22px 22px; }
.execution-log { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: stretch; padding-top: 20px; }
.execution-axis { position: relative; display: flex; justify-content: center; }
.execution-axis::before { position: absolute; top: 0; bottom: -18px; left: 50%; width: 1px; background: var(--border); content: ""; transform: translateX(-50%); }
.execution-log:first-child .execution-axis::before { top: 12px; }
.execution-log:last-child .execution-axis::before { bottom: calc(100% - 13px); }
.execution-dot { position: relative; z-index: 1; width: 29px; height: 29px; display: grid; place-items: center; margin-top: 7px; border: 5px solid var(--card); border-radius: 50%; background: var(--neutral-soft); color: var(--muted-foreground); box-shadow: 0 0 0 1px var(--border); }
.execution-dot svg { width: 13px; height: 13px; stroke-width: 2.4; }
.status-success .execution-dot { background: var(--success-soft); color: var(--success); box-shadow: 0 0 0 1px color-mix(in srgb, var(--success) 34%, var(--border)); }
.status-running .execution-dot { background: var(--info-soft); color: var(--info); box-shadow: 0 0 0 1px color-mix(in srgb, var(--info) 34%, var(--border)); }
.status-warning .execution-dot { background: var(--warning-soft); color: var(--warning); box-shadow: 0 0 0 1px color-mix(in srgb, var(--warning) 34%, var(--border)); }
.status-failed .execution-dot { background: var(--destructive-soft); color: var(--destructive); box-shadow: 0 0 0 1px color-mix(in srgb, var(--destructive) 34%, var(--border)); }
.status-running .execution-dot svg { animation: execution-spin 1.2s linear infinite; }
.execution-main { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--card); box-shadow: 0 3px 14px rgba(10, 10, 10, .035); transition: border-color .18s, box-shadow .18s, transform .22s cubic-bezier(.2, .8, .2, 1); }
.execution-log:hover .execution-main { border-color: var(--border-strong); box-shadow: 0 8px 26px rgba(10, 10, 10, .065); transform: translateY(-1px); }
.execution-log.is-group-task .execution-main { border-color: var(--border-strong); }
.execution-log.is-group-task .execution-main::before { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 3px; border-radius: 9px 0 0 9px; background: color-mix(in srgb, var(--primary) 62%, var(--border)); content: ""; pointer-events: none; }
.execution-log.is-group-task .execution-title h3::after { display: inline-flex; margin-left: 8px; padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, var(--info) 10%, var(--muted)); color: color-mix(in srgb, var(--info) 68%, var(--foreground)); font-size: 10px; line-height: 17px; vertical-align: 1px; content: "分组"; }
.execution-head { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; }
.execution-title { min-width: 0; display: flex; align-items: center; gap: 13px; }
.execution-title > div { min-width: 0; }
.execution-title h3, .execution-title p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.execution-title h3 { font-size: 16px; line-height: 23px; font-weight: 700; }
.execution-title p { margin-top: 3px; color: color-mix(in srgb, var(--muted-foreground) 90%, var(--foreground)); font-size: 12px; line-height: 18px; }
.execution-badges { display: flex; align-items: center; gap: 6px; }
.execution-chip, .execution-status { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; color: color-mix(in srgb, var(--muted-foreground) 88%, var(--foreground)); font-size: 11px; font-weight: 650; white-space: nowrap; }
.execution-chip svg, .execution-status svg { width: 14px; height: 14px; }
.execution-status { border-color: transparent; background: var(--neutral-soft); }
.status-success .execution-status { background: color-mix(in srgb, var(--success) 10%, var(--muted)); color: color-mix(in srgb, var(--success) 68%, var(--foreground)); }
.status-running .execution-status { background: color-mix(in srgb, var(--info) 10%, var(--muted)); color: color-mix(in srgb, var(--info) 68%, var(--foreground)); }
.status-warning .execution-status { background: color-mix(in srgb, var(--warning) 11%, var(--muted)); color: color-mix(in srgb, var(--warning) 70%, var(--foreground)); }
.status-failed .execution-status { background: color-mix(in srgb, var(--destructive) 10%, var(--muted)); color: color-mix(in srgb, var(--destructive) 70%, var(--foreground)); }
.status-running .execution-status svg { animation: execution-spin 1.2s linear infinite; }
.execution-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 38%, var(--card)); }
.execution-fact { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--border); }
.execution-fact:last-child { border-right: 0; }
.execution-fact span, .execution-fact strong { display: flex; align-items: center; }
.execution-fact span { gap: 6px; color: color-mix(in srgb, var(--muted-foreground) 90%, var(--foreground)); font-size: 11px; line-height: 16px; }
.execution-fact span svg { width: 13px; height: 13px; }
.execution-fact strong { min-height: 20px; margin-top: 5px; overflow: hidden; font-size: 13px; line-height: 18px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.execution-progress { padding: 11px 15px 5px; }
.execution-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted-foreground); font-size: 9px; }
.execution-progress > div strong { color: var(--foreground); font-size: 10px; font-variant-numeric: tabular-nums; }
.execution-progress > span { height: 4px; display: block; margin-top: 7px; overflow: hidden; border-radius: 2px; background: var(--muted); }
.execution-progress > span i { height: 100%; display: block; border-radius: inherit; background: var(--primary); transition: width .35s ease; }
.status-pending .execution-progress > span i { min-width: 18px; background: var(--neutral); animation: execution-wait 1.6s ease-in-out infinite; }
.execution-error { display: flex; align-items: flex-start; gap: 9px; margin: 11px 15px 0; padding: 9px 11px; border: 1px solid color-mix(in srgb, var(--warning) 22%, var(--border)); border-radius: 8px; background: var(--warning-soft); color: var(--warning); }
.status-failed .execution-error { border-color: color-mix(in srgb, var(--destructive) 22%, var(--border)); background: var(--destructive-soft); color: var(--destructive); }
.execution-error > svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.execution-error b, .execution-error span { display: block; }
.execution-error b { font-size: 10px; line-height: 14px; }
.execution-error span { margin-top: 2px; color: color-mix(in srgb, currentColor 72%, var(--foreground)); font-size: 9px; line-height: 14px; }
.execution-footer { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px 13px; }
.execution-results { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.execution-result { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 7px; background: var(--muted); color: color-mix(in srgb, var(--muted-foreground) 90%, var(--foreground)); white-space: nowrap; }
.execution-result svg { width: 14px; height: 14px; }
.execution-result small { font-size: 11px; }
.execution-result b { color: var(--foreground); font-size: 12px; font-weight: 700; }
.execution-result.positive { background: color-mix(in srgb, var(--success) 9%, var(--muted)); color: color-mix(in srgb, var(--success) 64%, var(--foreground)); }
.execution-result.positive b { color: color-mix(in srgb, var(--success) 64%, var(--foreground)); }
.execution-result.info { background: color-mix(in srgb, var(--info) 9%, var(--muted)); color: color-mix(in srgb, var(--info) 62%, var(--foreground)); }
.execution-result.info b { color: color-mix(in srgb, var(--info) 62%, var(--foreground)); }
.execution-footer-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.execution-footer-actions button { min-height: 36px; flex: none; padding: 0 12px; font-size: 11px; }
.execution-footer-actions button svg { width: 14px; height: 14px; }
.group-detail-toggle { color: var(--info); }
.group-task-details { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 30%, var(--card)); animation: group-detail-in .24s cubic-bezier(.2, .8, .2, 1) both; }
.group-task-detail-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.group-task-detail-head > div { display: flex; align-items: center; gap: 8px; }
.group-task-detail-head svg { width: 16px; height: 16px; color: color-mix(in srgb, var(--info) 68%, var(--foreground)); }
.group-task-detail-head span span, .group-task-detail-head b, .group-task-detail-head small { display: block; }
.group-task-detail-head b { font-size: 13px; }
.group-task-detail-head small, .group-task-detail-head > span { margin-top: 2px; color: color-mix(in srgb, var(--muted-foreground) 90%, var(--foreground)); font-size: 11px; }
.group-task-account-list { padding: 0 16px 10px; }
.group-task-account-row { min-height: 65px; display: grid; grid-template-columns: 26px minmax(200px, 1fr) minmax(280px, .8fr) 72px; align-items: center; gap: 11px; border-bottom: 1px solid var(--border); }
.group-task-account-row:last-child { border-bottom: 0; }
.group-account-dot { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--neutral-soft); color: var(--muted-foreground); }
.group-account-dot svg { width: 11px; height: 11px; stroke-width: 2.4; }
.group-task-account-row.status-success .group-account-dot { background: var(--success-soft); color: var(--success); }
.group-task-account-row.status-running .group-account-dot { background: var(--info-soft); color: var(--info); }
.group-task-account-row.status-warning .group-account-dot { background: var(--warning-soft); color: var(--warning); }
.group-task-account-row.status-failed .group-account-dot { background: var(--destructive-soft); color: var(--destructive); }
.group-task-account-row.status-running .group-account-dot svg { animation: execution-spin 1.2s linear infinite; }
.group-account-name { min-width: 0; }
.group-account-name b, .group-account-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-account-name b { font-size: 13px; font-weight: 700; }
.group-account-name small { margin-top: 4px; color: color-mix(in srgb, var(--muted-foreground) 90%, var(--foreground)); font-size: 10px; font-variant-numeric: tabular-nums; }
.group-account-result { display: flex; align-items: center; gap: 18px; color: color-mix(in srgb, var(--muted-foreground) 90%, var(--foreground)); font-size: 11px; }
.group-account-result b { margin-left: 3px; color: var(--foreground); font-size: 12px; }
.group-account-scope { color: color-mix(in srgb, var(--muted-foreground) 90%, var(--foreground)); font-size: 11px; }
.group-account-status { justify-self: end; padding: 5px 8px; border-radius: 6px; background: var(--neutral-soft); color: var(--muted-foreground); font-size: 10px; font-weight: 650; white-space: nowrap; }
.group-task-account-row.status-success .group-account-status { background: var(--success-soft); color: var(--success); }
.group-task-account-row.status-running .group-account-status { background: var(--info-soft); color: var(--info); }
.group-task-account-row.status-warning .group-account-status { background: var(--warning-soft); color: var(--warning); }
.group-task-account-row.status-failed .group-account-status { background: var(--destructive-soft); color: var(--destructive); }
.group-account-error { grid-column: 2 / -1; margin: -6px 0 8px; color: var(--destructive); font-size: 10px; }
.execution-empty { min-height: 260px; }

@keyframes execution-spin { to { transform: rotate(360deg); } }
@keyframes execution-wait { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes group-detail-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .48); animation: modal-backdrop-in .2s ease both; }
.modal-card { width: min(560px, calc(100vw - 36px)); max-height: calc(100vh - 36px); overflow: auto; padding: 22px; border-radius: 16px; background: var(--popover); color: var(--foreground); box-shadow: 0 24px 80px rgba(0, 0, 0, .28), var(--ring-strong); animation: modal-card-in .34s cubic-bezier(.18, .9, .24, 1.08) both; transform-origin: center; }
.modal.closing { animation: modal-backdrop-out .15s ease both; pointer-events: none; }
.modal.closing .modal-card { animation: modal-card-out .15s ease both; }
.modal-wide, .export-modal-card { width: min(720px, calc(100vw - 36px)); }
.modal-small { width: min(460px, calc(100vw - 36px)); }
.schedule-modal-card { width: min(620px, calc(100vw - 36px)); }
.account-detail-modal { width: min(760px, calc(100vw - 36px)); padding: 0; overflow: hidden; }
.account-detail-modal .modal-head { margin: 0; padding: 21px 22px 18px; border-bottom: 1px solid var(--border); }
.account-detail-modal .modal-head h2 { font-size: 22px; line-height: 30px; }
.account-detail-hero { min-height: 124px; display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.account-detail-hero > img { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 15px; background: var(--muted); object-fit: cover; box-shadow: 0 0 0 4px var(--background); }
.account-detail-hero > div { min-width: 0; }
.account-detail-name { display: flex; align-items: center; gap: 9px; }
.account-detail-name > b { overflow: hidden; font-size: 20px; line-height: 28px; text-overflow: ellipsis; white-space: nowrap; }
.account-detail-hero p { margin: 5px 0 9px; color: var(--muted-foreground); font-size: 13px; line-height: 20px; }
.account-detail-profile { max-width: 620px; display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.account-detail-profile > span { min-width: 0; overflow: hidden; color: var(--muted-foreground); font-size: 13px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.account-detail-profile .account-certification { flex: none; }
.account-detail-profile .account-certification.compact { min-height: 27px; padding: 4px 8px; font-size: 12px; }
.account-detail-hero .group-tag { min-height: 27px; padding: 0 9px; font-size: 12px; }
.account-detail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 45%, var(--card)); }
.account-detail-stats > div { min-width: 0; padding: 17px 18px; border-right: 1px solid var(--border); }
.account-detail-stats > div:last-child { border-right: 0; }
.account-detail-stats span, .account-detail-stats strong { display: block; }
.account-detail-stats span { color: var(--muted-foreground); font-size: 12px; line-height: 18px; }
.account-detail-stats strong { margin-top: 6px; overflow: hidden; font-size: 22px; line-height: 28px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-detail-stats strong.is-date { font-size: 13px; line-height: 28px; font-weight: 600; }
.account-latest { padding: 19px 22px 10px; }
.account-latest-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.account-latest-head b, .account-latest-head span { display: block; }
.account-latest-head b { font-size: 15px; line-height: 22px; }
.account-latest-head span { margin-top: 3px; color: var(--muted-foreground); font-size: 12px; line-height: 18px; }
.account-latest-head em { padding: 5px 8px; border-radius: 6px; background: var(--muted); color: var(--muted-foreground); font-size: 12px; font-style: normal; }
.account-latest-list { max-height: 330px; overflow-y: auto; }
.account-latest-list > a { min-height: 76px; display: grid; grid-template-columns: 72px minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--border); border-radius: 7px; color: var(--foreground); text-decoration: none; transition: background .18s, transform .22s cubic-bezier(.2, .8,.2, 1); }
.account-latest-list > a:hover { background: var(--muted); transform: translateX(3px); }
.account-latest-list > a > span:nth-child(2) { min-width: 0; }
.account-latest-list > a b, .account-latest-list > a small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-latest-list > a b { font-size: 14px; line-height: 21px; }
.account-latest-list > a small { margin-top: 5px; color: var(--muted-foreground); font-size: 12px; line-height: 18px; }
.account-latest-list > a > svg { width: 14px; height: 14px; color: var(--muted-foreground); }
.account-latest-cover { width: 72px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: var(--muted); color: var(--muted-foreground); }
.account-latest-cover img { width: 100%; height: 100%; object-fit: cover; }
.account-latest-cover svg { width: 16px; height: 16px; }
.account-latest-empty { min-height: 118px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: var(--muted-foreground); font-size: 13px; }
.account-detail-actions { margin: 0; padding: 14px 20px 18px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { margin: 3px 0 0; font-size: 20px; line-height: 27px; font-weight: 600; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 650; }
.eyebrow.destructive { color: var(--destructive); }
.tabs { margin-bottom: 16px; }
.tabs button { flex: 1; min-height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted-foreground); }
.tabs button.active { background: var(--card); color: var(--foreground); font-weight: 600; box-shadow: var(--ring); }
.search-row { display: flex; align-items: center; gap: 8px; }
.bind-groups { margin: 15px 0 8px; padding: 12px; border: 1px solid var(--border); border-radius: 13px; }
.bind-groups legend { padding: 0 5px; color: var(--muted-foreground); font-size: 10px; font-weight: 600; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.check-option { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--border); border-radius: 11px; color: var(--muted-foreground); cursor: pointer; }
.check-option:has(input:checked) { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); background: var(--info-soft); color: var(--info); }
.check-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results { max-height: 365px; overflow: auto; }
.search-result { min-height: 84px; display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--border); }
.search-result:last-child { border-bottom: 0; }
.search-avatar { width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--muted); object-fit: cover; }
.search-info { min-width: 0; flex: 1; }
.search-title { display: flex; align-items: center; gap: 7px; }
.search-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-type { padding: 3px 7px; border-radius: 999px; background: var(--info-soft); color: var(--info); font-size: 9px; }
.search-meta, .search-desc { margin-top: 3px; overflow: hidden; color: var(--muted-foreground); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
#searchResults .search-result { min-height: 96px; gap: 16px; padding: 16px 5px; }
#searchResults .search-avatar { width: 56px; height: 56px; border-radius: 15px; }
#searchResults .search-title { gap: 9px; }
#searchResults .search-title b { font-size: 16px; line-height: 23px; font-weight: 700; }
#searchResults .search-type { padding: 4px 8px; font-size: 11px; }
#searchResults .search-meta, #searchResults .search-desc { margin-top: 5px; font-size: 13px; line-height: 20px; }
#searchResults .primary { min-height: 36px; padding: 0 14px; font-size: 13px; }
#channelSearchResults .search-result { min-height: 96px; gap: 16px; padding: 16px 5px; }
#channelSearchResults .search-avatar { width: 56px; height: 56px; border-radius: 15px; }
#channelSearchResults .search-title { gap: 9px; }
#channelSearchResults .search-title b { font-size: 16px; line-height: 23px; font-weight: 700; }
#channelSearchResults .search-type { padding: 4px 8px; font-size: 11px; }
#channelSearchResults .search-meta, #channelSearchResults .search-desc { margin-top: 5px; font-size: 13px; line-height: 20px; }
#channelSearchResults .primary { min-height: 36px; padding: 0 14px; font-size: 13px; }
.bound-label { color: var(--success); font-size: 11px; font-weight: 650; }
textarea { width: 100%; min-height: 180px; padding: 12px; resize: vertical; }
.wide-button { width: 100%; margin-top: 9px; }
.group-selection { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.group-selection .check-option { min-height: 46px; }
.group-selection .check-option em { margin-left: auto; color: var(--muted-foreground); font-size: 9px; font-style: normal; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--border); }
.confirm-message { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; background: var(--destructive-soft); color: var(--destructive); }
.confirm-message p { margin: 1px 0 0; color: var(--muted-foreground); font-size: 11px; line-height: 18px; }
.confirm-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 10px; background: var(--card); box-shadow: var(--ring); }
.confirm-icon svg { width: 16px; height: 16px; }
.field-label { display: block; color: var(--muted-foreground); font-size: 12px; font-weight: 600; }
.field-label input, .field-label select { width: 100%; min-height: 40px; display: block; margin-top: 7px; padding: 0 12px; }
.range-options { display: grid; gap: 8px; margin: 14px 0; }
.range-option { min-height: 50px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.range-option:has(input:checked) { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); background: var(--info-soft); }
.range-option span { color: var(--muted-foreground); font-size: 11px; }
.range-date-field { margin-top: 12px; }
.schedule-modal-card { width: 620px; }
.form-section { margin-bottom: 18px; }
.form-section-label { display: block; margin-bottom: 8px; color: var(--muted-foreground); font-size: 12px; font-weight: 600; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-card { position: relative; min-height: 68px; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: color-mix(in srgb, var(--primary) 60%, var(--border)); background: var(--info-soft); }
.choice-card > input { position: absolute; opacity: 0; }
.choice-card > span:last-child { min-width: 0; }
.choice-card b, .choice-card small { display: block; }
.choice-card b { font-size: 13px; }
.choice-card small { margin-top: 3px; color: var(--muted-foreground); font-size: 11px; }
.choice-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; }
.choice-icon.blue { background: var(--card); color: var(--info); box-shadow: var(--ring); }
.choice-icon.green { background: var(--success-soft); color: var(--success); }
.choice-icon.violet { background: var(--chart-4-soft); color: var(--chart-4); }
.choice-icon.amber { background: var(--warning-soft); color: var(--warning); }
.choice-icon svg { width: 17px; height: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.form-grid.single { grid-template-columns: 1fr; }
.toggle-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.toggle-row > span b, .toggle-row > span small { display: block; }
.toggle-row > span b { font-size: 13px; }
.toggle-row > span small { margin-top: 3px; color: var(--muted-foreground); font-size: 11px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: min(380px, calc(100vw - 32px)); padding: 11px 15px; border-radius: 12px; background: var(--foreground); color: var(--background); box-shadow: 0 14px 40px rgba(0, 0, 0, .22); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .17s, transform .17s; }
.toast.error { background: var(--destructive); color: #fff; }
.toast.show { opacity: 1; transform: none; animation: toast-in .34s cubic-bezier(.18, .9, .24, 1.08); }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(410px, .84fr) minmax(500px, 1.16fr); background: var(--background); color: var(--foreground); }
.login-intro { position: relative; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: clamp(38px, 5vw, 72px); background: #111215; color: #ffffff; isolation: isolate; }
.login-intro::before { position: absolute; top: 0; bottom: 0; left: 0; width: 8px; background: #f4494d; content: ''; }
.login-intro::after { position: absolute; z-index: -1; right: -76px; bottom: 10%; width: 210px; height: 210px; border: 1px solid rgba(255,103,107,.32); background: #17191d; box-shadow: -32px 32px 0 rgba(76,175,243,.12), -64px 64px 0 rgba(141,167,116,.1); content: ''; transform: rotate(14deg); }
.login-intro .brand { justify-content: flex-start; padding: 0; color: #ffffff; }
.login-intro .brand-mark { width: 43px; height: 43px; flex-basis: 43px; border-radius: 10px; background: #ffffff; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.login-intro .brand-logo-image { width: 39px; height: 39px; object-fit: contain; }
.login-intro .brand strong { color: #ffffff; font-size: 22px; }
.login-intro .brand small { display: block; margin-top: 3px; color: #aeb1b7; }
.login-copy { display: block; max-width: 590px; margin: auto 0; padding: 40px 8% 80px 0; }
.login-copy h1 { max-width: 560px; margin: 0; font-size: clamp(37px, 3.45vw, 56px); font-weight: 770; line-height: 1.2; }
.login-copy h1 span { display: block; color: #ffffff; }
.login-copy h1 .login-copy-red { color: #ff676b; }
.login-copy h1 .login-copy-blue { color: #64b8f2; }
.login-copy h1 .login-copy-green { color: #a8c68d; }
.login-copy p { max-width: 500px; margin: 26px 0 0; font-size: 15px; line-height: 1.9; }
.login-copy p span { display: block; color: #d2d5da; }
.login-copy p span:last-child { color: #ff9a7a; }
.login-footnote { display: block; margin-top: auto; color: #858990; font-size: 11px; letter-spacing: 0; }
.login-main { min-width: 0; min-height: 100vh; display: grid; place-items: center; padding: 70px clamp(32px, 8vw, 120px); background: color-mix(in srgb, var(--muted) 42%, var(--background)); }
.login-card { width: min(440px, 100%); padding: 34px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); box-shadow: 0 22px 64px rgba(20, 20, 23, .11), var(--ring); }
.login-card h2 { margin: 0; font-size: 25px; line-height: 32px; font-weight: 650; }
.login-card > p, .login-card form > p { margin: 6px 0 28px; color: var(--muted-foreground); font-size: 13px; }
.login-card .field-label { margin: 15px 0; color: var(--foreground); }
.login-card .field-label input { min-height: 34px; border-radius: 999px; background: var(--background); }
.auth-captcha-row, .auth-code-row { display: flex; align-items: stretch; gap: 8px; margin-top: 7px; }
.auth-captcha-row input, .auth-code-row input { margin-top: 0 !important; min-width: 0; flex: 1; }
.auth-captcha-image { width: 128px; min-width: 128px; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 999px; background: var(--background); cursor: pointer; }
.auth-captcha-image img { display: block; width: 100%; height: 100%; min-height: 34px; object-fit: cover; transition: opacity .15s; }
.auth-captcha-image img.loading { opacity: .4; }
.auth-send-code { min-width: 105px; padding: 0 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--muted); color: var(--foreground); font-size: 11px; cursor: pointer; white-space: nowrap; }
.auth-send-code:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.auth-send-code:disabled { cursor: wait; opacity: .58; }
.login-btn { width: 100%; min-height: 34px; margin-top: 8px; border-radius: 999px; }
.auth-link { display: block; margin: 11px auto 0; padding: 0; border: 0; background: transparent; color: var(--primary); font-size: 11px; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-email-hint { display: flex; align-items: flex-start; gap: 5px; margin: 7px 4px 0; color: var(--muted-foreground); font-size: 11px; font-weight: 400; line-height: 17px; }
.auth-email-hint svg { width: 13px; height: 13px; flex: 0 0 13px; margin-top: 2px; }
.login-error { min-height: 20px; color: var(--destructive); font-size: 10px; }
.login-tip { display: block; margin-top: 18px; color: var(--muted-foreground); font-size: 9px; text-align: center; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 28px; padding: 4px; border-radius: 10px; background: var(--muted); }
.auth-tabs button { min-height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--muted-foreground); transition: background .18s, color .18s, box-shadow .18s; }
.auth-tabs button.active { background: var(--card); color: var(--foreground); box-shadow: var(--ring); font-weight: 650; }
.invite-registration { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; margin: -10px 0 17px; padding: 11px; border: 1px solid color-mix(in srgb, var(--success) 34%, var(--border)); border-radius: 9px; background: var(--success-soft); color: var(--success); }
.invite-registration > svg { width: 18px; height: 18px; justify-self: center; }
.invite-registration b, .invite-registration span { display: block; }
.invite-registration b { font-size: 12px; }
.invite-registration span { margin-top: 2px; color: color-mix(in srgb, var(--success) 74%, var(--foreground)); font-size: 10px; }
.invite-code-field { position: relative; }
.invite-code-field > span { position: absolute; top: 0; right: 2px; color: var(--muted-foreground); font-size: 10px; }
.invite-code-field input:read-only { color: var(--success); background: var(--success-soft); }
.registration-balance-note { display: flex; align-items: center; gap: 8px; margin: 3px 0 8px; padding: 9px 11px; border-radius: 8px; background: var(--info-soft); color: var(--info); font-size: 10px; }
.registration-balance-note svg { width: 14px; height: 14px; flex: none; }

@media (max-width: 880px) {
  .login-page { grid-template-columns: minmax(0, 1fr); }
  .login-intro { min-height: 310px; padding: 28px 30px; }
  .login-intro::before { width: 6px; }
  .login-intro::after { right: -90px; bottom: 28px; width: 180px; height: 180px; }
  .login-copy { margin: 46px 0 0; padding: 0 130px 0 0; }
  .login-copy h1 { font-size: 31px; }
  .login-copy p { margin-top: 12px; font-size: 12px; line-height: 1.7; }
  .login-footnote { display: none; }
  .login-main { min-height: auto; padding: 42px 22px 60px; }
}

@media (max-width: 560px) {
  .login-intro { min-height: 220px; padding: 22px 24px; }
  .login-intro .brand small { display: none; }
  .login-copy { margin-top: 33px; padding-right: 105px; }
  .login-copy h1 { font-size: 24px; line-height: 1.3; }
  .login-copy p { display: none; }
  .login-intro::after { right: -82px; bottom: -28px; width: 140px; height: 140px; }
  .login-main { padding: 30px 14px 45px; }
  .login-card { padding: 25px 20px; border-radius: 12px; }
  .auth-captcha-image { width: 112px; min-width: 112px; }
  .auth-send-code { min-width: 96px; padding: 0 8px; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes modal-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes modal-card-in { from { opacity: 0; transform: translateY(14px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes modal-card-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.page:not(.hidden) { animation: page-in .3s cubic-bezier(.2, .8, .2, 1) both; }

@media (hover: hover) {
  .primary:hover, .secondary:hover, .danger-button:hover, .icon-button:hover { transform: translateY(-1px); }
  .primary:active, .secondary:active, .danger-text:active, .danger-button:active, .icon-button:active { transform: translateY(0) scale(.96); }
  .group-action:hover { transform: translateY(-1px) scale(1.04); }
  .export-format, .choice-card, .check-option, .range-option { transition: border-color .18s, background .18s, box-shadow .18s, transform .22s cubic-bezier(.2, .8, .2, 1); }
  .export-format:hover, .choice-card:hover, .check-option:hover, .range-option:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(10, 10, 10, .06); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1600px) and (min-width: 1181px) {
  .article-filter-fields, .video-filter-fields { grid-template-columns: minmax(130px, .8fr) minmax(150px, 1fr) minmax(286px, 1.7fr) minmax(125px, .75fr) minmax(180px, 1.05fr); }
}

@media (max-width: 1180px) {
  .account-cards { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-panel, .account-ranking-panel, .top-content-panel { grid-column: 1 / -1; }
  .engagement-panel, .heatmap-panel, .quality-panel { grid-column: span 1; }
  .quality-panel { grid-column: 1 / -1; }
  .article-filter-fields, .video-filter-fields { grid-template-columns: 1fr 1fr; }
  .article-date-control { grid-column: 1 / -1; }
  .article-sort-control { grid-column: span 1; }
  .article-preview-workspace { grid-template-columns: 180px 300px minmax(380px, 1fr); }
}

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { padding: 10px 8px; }
  .brand { justify-content: center; padding: 4px 0 16px; }
  .brand > div, .nav-label, .nav-item span, .nav-item em, .sidebar-foot .user-row { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .sidebar-theme-toggle { justify-content: center; padding: 0; }
  .sidebar-theme-toggle span { display: none; }
  .account-workspace { grid-template-columns: 1fr; }
  .group-panel { position: static; width: 100%; min-width: 0; }
  .group-list { width: 100%; max-width: 100%; display: flex; gap: 4px; overflow: auto; }
  .group-caption { display: none; }
  .group-item { min-width: 125px; }
  .group-row { min-width: 190px; }
  .group-row .group-item { min-width: 0; }
  .group-row-actions { opacity: 1; }
  .schedule-row { grid-template-columns: 38px minmax(180px, 1fr) minmax(140px, .7fr) 42px 112px; }
  .article-preview-workspace { height: auto; min-height: 680px; grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: auto minmax(560px, 1fr); }
  .article-scope-panel { grid-column: 1 / -1; display: flex; gap: 20px; padding: 9px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--border); }
  .scope-block { min-width: max-content; display: flex; align-items: center; gap: 4px; }
  .scope-block + .scope-block { margin-top: 0; }
  .scope-block > b { padding: 0 7px; white-space: nowrap; }
  .scope-item { width: auto; min-width: 96px; }
}

@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; z-index: 40; width: 100%; height: 56px; display: block; padding: 7px 10px; border-right: 0; border-bottom: 1px solid var(--border); }
  .impersonation-banner { top: 56px; padding: 7px 12px; }
  .sidebar .brand, .sidebar-foot, .nav-label { display: none; }
  .nav { display: flex; gap: 4px; overflow: auto; }
  .nav-item { min-width: 44px; width: auto; flex: 1; min-height: 41px; }
  .page { padding: 16px 12px 38px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 16px; }
  .heading-actions { flex-wrap: wrap; }
  .heading-actions > button { flex: 1; }
  .account-panel-actions { flex-wrap: wrap; justify-content: flex-end; }
  .article-toolbar-primary { align-items: stretch; flex-direction: column; padding: 10px; }
  .article-view-switch { width: 100%; }
  .article-view-switch button { flex: 1; }
  .article-search-actions, .article-main-search { width: 100%; }
  .article-main-search { min-width: 0; }
  .article-filter-fields, .video-filter-fields { grid-template-columns: 1fr; padding: 11px; }
  .article-date-control, .article-sort-control { grid-column: 1; }
  .date-range-filter { width: 100%; }
  .date-picker-field input { min-width: 0; }
  .analytics-heading { align-items: stretch; }
  .analytics-filters { width: 100%; }
  .analytics-filters select { min-width: 0; flex: 1; }
  .analytics-kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .analytics-kpi { min-height: 126px; padding: 13px; }
  .analytics-kpi > strong { margin-top: 13px; font-size: 23px; }
  .analytics-dashboard { grid-template-columns: 1fr; gap: 10px; }
  .trend-panel, .engagement-panel, .account-ranking-panel, .top-content-panel, .heatmap-panel, .quality-panel { grid-column: 1; min-height: 0; }
  .analytics-panel-head { min-height: 64px; padding: 12px; }
  .analytics-trend-chart { min-height: 260px; padding-left: 4px; padding-right: 4px; overflow-x: auto; }
  .analytics-trend-chart svg { min-width: 620px; }
  .chart-legend { gap: 8px; }
  #engagementMix { min-height: 270px; }
  .top-content-list, .quality-metrics { padding-left: 12px; padding-right: 12px; }
  .publish-heatmap { padding-left: 12px; padding-right: 12px; }
  .article-preview-workspace { height: auto; min-height: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 330px auto; }
  .article-scope-panel { grid-column: 1; }
  .article-preview-list { border-right: 0; border-bottom: 1px solid var(--border); }
  .article-reader:has(.reader-empty) { display: none; }
  .article-reader:not(:has(.reader-empty)) { min-height: 520px; }
  .reader-head { min-height: 94px; }
  .export-format-grid { grid-template-columns: 1fr 1fr; }
  .radio-list { grid-template-columns: 1fr; }
  .profile-overview { margin-bottom: 16px; }
  .overview-main { align-items: flex-start; flex-wrap: wrap; padding: 15px; }
  .overview-avatar { width: 50px; height: 50px; flex-basis: 50px; border-radius: 14px; }
  .overview-title { flex-wrap: wrap; }
  .overview-title h1 { width: 100%; font-size: 20px; line-height: 26px; }
  .overview-main .heading-actions { width: 100%; }
  .overview-main .heading-actions > button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 96px; padding: 13px 14px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .metric strong { font-size: 21px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions, .toolbar-tail { width: 100%; flex-wrap: wrap; }
  .toolbar-tail .search-field { flex: 1; }
  .filter-band { align-items: stretch; flex-direction: column; }
  .filter-band .wide { max-width: none; }
  .article-list-toolbar { align-items: stretch; flex-direction: column; gap: 6px; padding: 9px 11px; }
  .article-selection-tools, .article-list-summary { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .article-batch-actions { width: 100%; order: 3; display: grid; grid-template-columns: 1fr 1fr; }
  .article-batch-actions button { width: 100%; }
  .article-result-count { padding-left: 0; border-left: 0; }
  .article-feed { gap: 10px; }
  .article-day-list { padding: 0 12px; }
  .article-feed-item { grid-template-columns: 18px minmax(0, 1fr) 86px; gap: 9px; padding: 12px 0; }
  .article-feed-copy p { display: none; }
  .article-meta { gap: 6px; }
  .article-meta .status { display: none; }
  .article-feed-title { margin-top: 6px; font-size: 14px; line-height: 20px; }
  .article-metrics { gap: 10px; margin-top: 8px; }
  .article-cover { width: 86px; height: 68px; }
  .article-actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; }
  .account-cards { grid-template-columns: 1fr; padding: 10px; }
  .schedule-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px 12px; padding: 14px; }
  .schedule-icon { grid-row: 1 / span 2; }
  .schedule-time { grid-column: 2; }
  .schedule-row > .switch { grid-column: 3; grid-row: 1; }
  .schedule-row > .row-actions { grid-column: 3; grid-row: 2; }
  .task-log-head { align-items: stretch; flex-direction: column; }
  .execution-toolbar { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .execution-toolbar .count-pill { grid-column: 1 / -1; justify-self: start; }
  .execution-toolbar select { width: 100%; min-width: 0; }
  .execution-list { padding: 1px 10px 12px; }
  .execution-log { grid-template-columns: 28px minmax(0, 1fr); padding-top: 12px; }
  .execution-axis { grid-column: 1; grid-row: 1; }
  .execution-axis::before { bottom: -12px; }
  .execution-main { grid-column: 2; }
  .execution-head { min-height: 74px; align-items: flex-start; padding: 13px; }
  .execution-title { gap: 8px; }
  .execution-title .task-type-icon { width: 36px; height: 36px; flex: 0 0 36px; }
  .execution-badges .execution-chip { display: none; }
  .execution-facts { grid-template-columns: 1fr 1fr; }
  .execution-fact:nth-child(2) { border-right: 0; }
  .execution-fact:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .execution-footer { align-items: stretch; flex-direction: column; }
  .execution-footer-actions { width: 100%; justify-content: flex-end; }
  .group-task-detail-head > span { display: none; }
  .group-task-account-list { padding: 0 11px 7px; }
  .group-task-account-row { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 7px; padding: 8px 0; }
  .group-account-result, .group-account-scope { grid-column: 2 / -1; grid-row: 2; }
  .group-account-result { gap: 10px; }
  .group-account-status { grid-column: 3; grid-row: 1; }
  .group-account-error { grid-column: 2 / -1; grid-row: 3; margin: 0; }
  .search-row { align-items: stretch; flex-direction: column; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .choice-cards, .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal-card, .modal-wide, .modal-small, .export-modal-card, .schedule-modal-card, .account-detail-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .modal-card { padding: 18px; }
  .account-detail-modal { padding: 0; }
  .account-detail-modal .modal-head { padding: 16px; }
  .account-detail-hero { padding: 15px 16px; }
  .account-detail-stats { grid-template-columns: 1fr 1fr; }
  .account-detail-stats > div:nth-child(2) { border-right: 0; }
  .account-detail-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .account-latest { padding: 14px 12px 6px; }
  .account-detail-actions { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 16px 16px; }
  .account-detail-actions .primary { grid-column: 1 / -1; grid-row: 1; }
  .setting-row { grid-template-columns: 38px minmax(0, 1fr); }
  .setting-row > :last-child { grid-column: 2; justify-self: start; }
}

/* Domestic information search */
.domestic-search-page { max-width: 1800px; }
.domestic-page-heading { align-items: center; }
.domestic-price { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--muted-foreground); font-size: 11px; white-space: nowrap; box-shadow: var(--ring); }
.domestic-price svg { width: 14px; height: 14px; color: var(--warning); }
.domestic-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 14px; align-items: start; }
.domestic-filters { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; }
.domestic-filters .panel-head, .domestic-results-head { position: sticky; top: 0; z-index: 2; background: var(--card); }
.domestic-filter-body { display: grid; gap: 16px; padding: 15px; }
.domestic-filter-section { display: grid; gap: 9px; padding-top: 14px; border-top: 1px solid var(--border); }
.domestic-filter-section > b, .domestic-filter-title b { font-size: 11px; font-weight: 650; }
.domestic-filter-title { display: flex; align-items: center; justify-content: space-between; }
.domestic-filter-title button { padding: 0; border: 0; background: transparent; color: var(--info); font-size: 10px; }
.domestic-source-list { display: grid; gap: 6px; }
.domestic-source-group { overflow: hidden; border: 1px solid var(--border); border-radius: 7px; }
.domestic-source-group > label { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 9px; background: color-mix(in srgb, var(--muted) 66%, var(--card)); font-size: 11px; }
.domestic-source-group > div { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; }
.domestic-source-group > div label, .domestic-check-grid label { position: relative; min-height: 27px; display: inline-flex; align-items: center; }
.domestic-source-group > div input, .domestic-check-grid input { position: absolute; opacity: 0; }
.domestic-source-group > div span, .domestic-check-grid span { min-height: 27px; display: inline-flex; align-items: center; padding: 0 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--muted-foreground); font-size: 10px; cursor: pointer; }
.domestic-source-group > div input:checked + span, .domestic-check-grid input:checked + span { border-color: color-mix(in srgb, var(--info) 30%, var(--border)); background: var(--info-soft); color: var(--info); }
.domestic-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.domestic-check-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.domestic-check-grid label, .domestic-check-grid span { width: 100%; justify-content: center; }
.domestic-date-grid, .domestic-region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.domestic-date-grid input { width: 100%; min-width: 0; min-height: 36px; padding: 0 7px; border: 1px solid var(--border); border-radius: 7px; background: var(--background); color: var(--foreground); font-size: 10px; }
.domestic-region-grid { grid-template-columns: 1fr; }
.domestic-region-grid select { width: 100%; min-width: 0; min-height: 34px; border-radius: 7px; font-size: 11px; }
.domestic-advanced { border-top: 1px solid var(--border); }
.domestic-advanced summary { min-height: 40px; display: flex; align-items: center; justify-content: space-between; color: var(--muted-foreground); font-size: 11px; cursor: pointer; list-style: none; }
.domestic-advanced summary::-webkit-details-marker { display: none; }
.domestic-advanced summary svg { width: 14px; height: 14px; transition: transform .18s; }
.domestic-advanced[open] summary svg { transform: rotate(180deg); }
.domestic-advanced-fields { display: grid; gap: 10px; padding: 4px 0 6px; }
.domestic-toggle { min-height: 52px; padding: 8px 0; border: 0; background: transparent; box-shadow: none; }
.domestic-submit { width: 100%; min-height: 40px; }
.domestic-submit small { margin-left: auto; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.28); font-size: 9px; }
.domestic-submit:disabled svg, .domestic-result-state .loading svg, .domestic-detail-loading svg { animation: spin .8s linear infinite; }
.domestic-results-panel { min-height: 680px; }
.domestic-page-size { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-foreground); font-size: 10px; }
.domestic-page-size select { min-height: 32px; border-radius: 7px; font-size: 11px; }
.domestic-statistics { min-height: 48px; display: flex; align-items: center; gap: 7px; padding: 8px 15px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.domestic-statistics span { min-height: 27px; display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted-foreground); font-size: 10px; }
.domestic-statistics b { color: var(--foreground); font-weight: 600; }
.domestic-result-state { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; color: var(--muted-foreground); text-align: center; }
.domestic-result-state b { margin-top: 11px; color: var(--foreground); font-size: 14px; }
.domestic-result-state p { max-width: 520px; margin: 5px 0 0; font-size: 11px; line-height: 18px; }
.domestic-result-state .empty-icon.error { background: var(--destructive-soft); color: var(--destructive); }
.domestic-results { display: grid; }
.domestic-result { min-width: 0; padding: 17px 18px; border-bottom: 1px solid var(--border); outline: 0; transition: background .16s; }
.domestic-result:hover, .domestic-result:focus-visible { background: color-mix(in srgb, var(--muted) 42%, var(--card)); }
.domestic-result header, .domestic-result footer, .domestic-result footer > div { display: flex; align-items: center; gap: 9px; }
.domestic-result header { align-items: flex-start; justify-content: space-between; }
.domestic-result-title { min-width: 0; display: flex; align-items: center; gap: 7px; }
.domestic-result-title h3 { margin: 0; overflow: hidden; font-size: 14px; line-height: 21px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.domestic-result-title > span { flex: none; padding: 2px 6px; border-radius: 5px; background: var(--info-soft); color: var(--info); font-size: 9px; }
.domestic-sentiment { flex: none; padding: 3px 7px; border-radius: 5px; background: var(--neutral-soft); color: var(--muted-foreground); font-size: 9px; }
.domestic-sentiment.positive { background: var(--success-soft); color: var(--success); }
.domestic-sentiment.negative { background: var(--destructive-soft); color: var(--destructive); }
.domestic-result > p { margin: 9px 0 13px; overflow: hidden; color: var(--muted-foreground); font-size: 11px; line-height: 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.domestic-result footer { justify-content: space-between; }
.domestic-result footer > div { min-width: 0; flex-wrap: wrap; }
.domestic-result footer span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-foreground); font-size: 9px; }
.domestic-result footer svg { width: 11px; height: 11px; }
.domestic-detail-button { min-height: 28px; padding: 0 9px; font-size: 10px; }
.domestic-detail-button small { color: var(--muted-foreground); font-size: 8px; }
.domestic-pager { position: sticky; bottom: 0; background: var(--card); }
.domestic-pager > span { margin-right: auto; }
.domestic-pager > b { color: var(--foreground); font-size: 10px; }
.domestic-inline-error { color: var(--destructive); font-size: 11px; line-height: 18px; }
.domestic-detail-modal { width: min(900px, calc(100vw - 36px)); }
.domestic-detail-content { min-height: 240px; }
.domestic-detail-loading { min-height: 240px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted-foreground); font-size: 11px; }
.domestic-detail-loading svg { width: 16px; height: 16px; }
.domestic-detail-meta, .domestic-detail-metrics { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.domestic-detail-meta > span, .domestic-detail-metrics > span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-foreground); font-size: 10px; }
.domestic-detail-meta svg, .domestic-detail-metrics svg { width: 12px; height: 12px; }
.domestic-detail-author { display: grid; gap: 3px; margin-top: 15px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; background: color-mix(in srgb, var(--muted) 50%, var(--card)); }
.domestic-detail-author b { font-size: 12px; }
.domestic-detail-author span { color: var(--muted-foreground); font-size: 10px; }
.domestic-detail-metrics { margin-top: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.domestic-detail-text { margin-top: 16px; color: var(--foreground); font-size: 13px; line-height: 24px; white-space: normal; }
.domestic-detail-content blockquote { margin: 17px 0 0; padding: 12px 14px; border-left: 3px solid var(--info); background: var(--info-soft); }
.domestic-detail-content blockquote p { margin: 5px 0 0; font-size: 11px; line-height: 19px; }
.domestic-detail-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.domestic-detail-media img { width: 100%; aspect-ratio: 4 / 3; display: block; border-radius: 7px; background: var(--muted); object-fit: cover; }
.domestic-detail-properties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; }
.domestic-detail-properties > div { min-width: 0; padding: 10px; border-right: 1px solid var(--border); }
.domestic-detail-properties > div:last-child { border: 0; }
.domestic-detail-properties dt { color: var(--muted-foreground); font-size: 9px; }
.domestic-detail-properties dd { margin: 5px 0 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 980px) {
  .domestic-layout { grid-template-columns: 1fr; }
  .domestic-filters { position: static; max-height: none; }
  .domestic-source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .domestic-page-heading { align-items: flex-start; }
  .domestic-source-list { grid-template-columns: 1fr; }
  .domestic-result { padding: 14px; }
  .domestic-result header, .domestic-result footer { align-items: flex-start; flex-direction: column; }
  .domestic-result footer > div:last-child { width: 100%; }
  .domestic-detail-button { margin-left: auto; }
  .domestic-detail-media, .domestic-detail-properties { grid-template-columns: 1fr; }
  .domestic-detail-properties > div { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* Full-network search layout */
.domestic-page-heading { margin-bottom: 14px; }
.domestic-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.domestic-filters { position: static; max-height: none; overflow: visible; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 2px 10px rgba(15, 23, 42, .04); }
.domestic-search-primary { min-height: 76px; display: flex; align-items: center; gap: 9px; padding: 15px 16px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 32%, var(--card)); }
.domestic-query-field { min-width: 0; min-height: 44px; display: flex; flex: 1; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--card); color: var(--muted-foreground); box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
.domestic-query-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.domestic-query-field svg { width: 18px; height: 18px; color: var(--primary); }
.domestic-query-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--foreground); font-size: 14px; }
.domestic-search-primary .domestic-submit { width: auto; min-width: 126px; min-height: 44px; flex: none; font-size: 13px; }
.domestic-search-primary > .icon-button { width: 44px; min-height: 44px; flex: none; }
.domestic-filter-body { display: grid; gap: 0; padding: 0 16px; }
.domestic-filter-row { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.domestic-filter-row.source-row { align-items: flex-start; }
.domestic-filter-label { width: 54px; flex: 0 0 54px; padding-top: 1px; color: var(--muted-foreground); font-size: 11px; font-weight: 650; }
.source-row .domestic-filter-label { padding-top: 8px; }
.domestic-source-list { min-width: 0; display: flex; flex: 1; flex-wrap: wrap; gap: 6px; }
.domestic-source-chip { position: relative; flex: none; }
.domestic-source-chip > input:first-child { position: absolute; opacity: 0; pointer-events: none; }
.domestic-source-chip > span { min-height: 31px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--muted-foreground); font-size: 10px; cursor: pointer; transition: border-color .16s, background .16s, color .16s; }
.domestic-source-chip > span svg { width: 12px; height: 12px; }
.domestic-source-chip > input:first-child:checked + span { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); background: var(--info-soft); color: var(--info); font-weight: 650; }
.domestic-select-all { min-height: 31px; flex: none; padding: 0 8px; border: 0; background: transparent; color: var(--info); font-size: 10px; }
.domestic-date-grid { width: 290px; display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); align-items: center; gap: 6px; }
.domestic-date-grid > svg { width: 13px; height: 13px; color: var(--muted-foreground); }
.domestic-date-grid input { min-height: 34px; }
.domestic-region-grid { width: min(470px, 38vw); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.domestic-region-grid select { min-height: 34px; }
.domestic-more-toggle { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--muted-foreground); font-size: 10px; }
.domestic-more-toggle:hover, .domestic-more-toggle.active { border-color: var(--border-strong); background: var(--muted); color: var(--foreground); }
.domestic-more-toggle svg { width: 13px; height: 13px; }
.domestic-more-toggle svg:last-child { transition: transform .18s; }
.domestic-more-toggle.active svg:last-child { transform: rotate(180deg); }
.domestic-advanced-fields { display: grid; grid-template-columns: 1.35fr .9fr .9fr repeat(4, minmax(120px, .75fr)) minmax(160px, .9fr); gap: 12px; padding: 14px 0 16px; }
.domestic-advanced-fields > div, .domestic-advanced-fields > label { min-width: 0; display: grid; align-content: start; gap: 7px; color: var(--muted-foreground); font-size: 10px; }
.domestic-advanced-fields > label input { width: 100%; min-height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--background); color: var(--foreground); outline: 0; }
.domestic-advanced-fields .domestic-filter-label { width: auto; padding: 0; }
.domestic-advanced-fields .domestic-check-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.domestic-advanced-fields .domestic-check-grid label { width: auto; }
.domestic-advanced-fields .domestic-check-grid span { width: auto; min-height: 25px; padding: 0 6px; }
.domestic-advanced-fields .domestic-toggle { min-height: 58px; align-self: end; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--muted); }
.domestic-results-panel { min-height: 620px; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 2px 10px rgba(15, 23, 42, .04); }
.domestic-results-head { position: static; min-height: 68px; }
.domestic-statistics { min-height: 52px; gap: 5px; padding: 9px 15px; background: color-mix(in srgb, var(--muted) 42%, var(--card)); }
.domestic-statistics button { min-height: 31px; display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--muted-foreground); font-size: 10px; transition: border-color .16s, background .16s, color .16s; }
.domestic-statistics button:hover, .domestic-statistics button.active { border-color: color-mix(in srgb, var(--primary) 32%, var(--border)); background: var(--info-soft); color: var(--info); }
.domestic-statistics button svg { width: 12px; height: 12px; }
.domestic-statistics button b { color: inherit; font-weight: 650; }
.domestic-statistics button span { min-height: 0; padding: 0; border: 0; background: transparent; color: inherit; }
.domestic-results { gap: 10px; padding: 12px; background: color-mix(in srgb, var(--muted) 45%, var(--card)); }
.domestic-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: 0 1px 3px rgba(15, 23, 42, .035); transition: border-color .16s, box-shadow .16s, transform .16s; }
.domestic-result:hover, .domestic-result:focus-visible { border-color: color-mix(in srgb, var(--primary) 26%, var(--border)); background: var(--card); box-shadow: 0 7px 20px rgba(15, 23, 42, .07); transform: translateY(-1px); }
.domestic-result-main { min-width: 0; }
.domestic-author-row { min-width: 0; display: flex; align-items: center; gap: 9px; }
.domestic-avatar { position: relative; width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--info-soft); color: var(--info); font-size: 12px; }
.domestic-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--card); }
.domestic-author-row > div { min-width: 0; flex: 1; }
.domestic-author-row b, .domestic-author-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domestic-author-row b { font-size: 11px; }
.domestic-author-row span { margin-top: 2px; color: var(--muted-foreground); font-size: 9px; }
.domestic-result-title { margin-top: 12px; }
.domestic-result-title h3 { font-size: 15px; line-height: 22px; }
.domestic-result > p, .domestic-result-main > p { min-height: 40px; margin: 8px 0 12px; font-size: 11px; line-height: 20px; }
.domestic-result footer { min-height: 30px; }
.domestic-detail-button svg { width: 11px; height: 11px; }
.domestic-thumbnail { width: 150px; height: 112px; align-self: center; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--muted); }
.domestic-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s; }
.domestic-result:hover .domestic-thumbnail img { transform: scale(1.025); }
.domestic-detail-author.hero { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.domestic-detail-author.hero .domestic-avatar { width: 42px; height: 42px; flex-basis: 42px; }
.domestic-detail-author.hero > div { min-width: 0; }
.domestic-detail-author.hero b, .domestic-detail-author.hero span { display: block; }
.domestic-detail-meta { margin-top: 13px; }

@media (max-width: 1280px) {
  .domestic-advanced-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .domestic-advanced-fields .domestic-toggle { align-self: stretch; }
}

@media (max-width: 920px) {
  .domestic-filter-row { align-items: flex-start; flex-wrap: wrap; }
  .domestic-filter-label { width: 48px; flex-basis: 48px; padding-top: 8px; }
  .domestic-date-grid { width: calc(100% - 58px); }
  .domestic-region-grid { width: calc(100% - 58px); margin-left: 58px; }
  .domestic-more-toggle { margin-left: 58px; }
  .domestic-advanced-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .domestic-search-primary { align-items: stretch; flex-wrap: wrap; padding: 11px; }
  .domestic-query-field { flex-basis: 100%; }
  .domestic-search-primary .domestic-submit { min-width: 0; flex: 1; }
  .domestic-filter-body { padding: 0 11px; }
  .domestic-source-list { flex-basis: calc(100% - 58px); }
  .domestic-date-grid, .domestic-region-grid { width: 100%; margin-left: 0; }
  .domestic-region-grid { grid-template-columns: 1fr; }
  .domestic-more-toggle { margin-left: 0; }
  .domestic-advanced-fields { grid-template-columns: 1fr; }
  .domestic-result { grid-template-columns: 1fr; gap: 12px; }
  .domestic-thumbnail { width: 100%; height: auto; aspect-ratio: 16 / 8; grid-row: 1; }
  .domestic-result-main { grid-row: 2; }
}

/* Full-network search refinement */
.domestic-search-page { max-width: 1760px; }
.domestic-page-heading h1 { font-size: 28px; line-height: 36px; }
.domestic-page-heading p { margin-top: 6px; font-size: 14px; line-height: 22px; }
.domestic-filters { border-color: color-mix(in srgb, var(--primary) 10%, var(--border)); box-shadow: 0 5px 22px rgba(15, 23, 42, .06); }
.domestic-search-primary { position: relative; min-height: 110px; align-items: flex-start; gap: 12px; padding: 18px 20px 16px; background: color-mix(in srgb, var(--info-soft) 28%, var(--card)); }
.domestic-query-wrap { position: relative; min-width: 0; flex: 1; }
.domestic-query-field { min-height: 50px; padding: 0 16px; border-radius: 8px; }
.domestic-query-field svg { width: 20px; height: 20px; }
.domestic-query-field input { font-size: 15px; line-height: 22px; }
.domestic-query-field input::placeholder { color: color-mix(in srgb, var(--muted-foreground) 78%, transparent); }
.domestic-query-assist { min-height: 30px; display: flex; align-items: center; gap: 14px; padding: 7px 3px 0; color: var(--muted-foreground); font-size: 12px; }
.domestic-query-assist > span, .domestic-query-assist > button { display: inline-flex; align-items: center; gap: 6px; }
.domestic-query-assist > span svg { width: 14px; height: 14px; color: var(--info); }
.domestic-query-assist > button { padding: 0; border: 0; background: transparent; color: var(--info); font-size: 12px; }
.domestic-query-assist > button:hover { text-decoration: underline; }
.domestic-query-assist > button svg { width: 14px; height: 14px; }
.domestic-syntax-popover { position: absolute; top: 84px; left: 0; z-index: 20; width: min(590px, calc(100vw - 80px)); padding: 16px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--popover); box-shadow: 0 18px 45px rgba(15, 23, 42, .18); }
.domestic-syntax-popover > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.domestic-syntax-popover > div:first-child b { font-size: 15px; }
.domestic-syntax-popover > div:first-child button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted-foreground); }
.domestic-syntax-popover > div:first-child button:hover { background: var(--muted); color: var(--foreground); }
.domestic-syntax-popover > div:first-child svg { width: 15px; height: 15px; }
.domestic-syntax-popover > p { margin: 5px 0 12px; color: var(--muted-foreground); font-size: 12px; line-height: 19px; }
.domestic-syntax-popover dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--border); }
.domestic-syntax-popover dl > div { min-width: 0; padding: 10px 12px; background: var(--card); }
.domestic-syntax-popover dt { color: var(--foreground); font-size: 12px; font-weight: 650; }
.domestic-syntax-popover dd { margin: 6px 0 0; color: var(--muted-foreground); font-size: 12px; }
.domestic-syntax-popover code { padding: 2px 5px; border-radius: 4px; background: var(--muted); color: var(--info); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.domestic-syntax-popover > small { display: block; margin-top: 11px; color: var(--muted-foreground); font-size: 12px; }
.domestic-search-primary .domestic-submit { min-width: 132px; min-height: 50px; font-size: 14px; }
.domestic-search-primary > .icon-button { width: 50px; min-height: 50px; }
.domestic-filter-body { padding: 0 20px 18px; }
.domestic-source-section { padding: 17px 0 16px; border-bottom: 1px solid var(--border); }
.domestic-section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.domestic-section-heading > span { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border-radius: 7px; background: var(--info-soft); color: var(--info); }
.domestic-section-heading > span svg { width: 17px; height: 17px; }
.domestic-section-heading > div { min-width: 0; }
.domestic-section-heading b, .domestic-section-heading small { display: block; }
.domestic-section-heading b { font-size: 14px; line-height: 19px; }
.domestic-section-heading small { margin-top: 2px; color: var(--muted-foreground); font-size: 12px; line-height: 17px; }
.domestic-section-heading .domestic-select-all { min-height: 32px; margin-left: auto; padding: 0 11px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); font-size: 12px; }
.domestic-source-list { gap: 8px; }
.domestic-source-chip > span { min-height: 38px; gap: 7px; padding: 0 12px; border-radius: 7px; font-size: 12px; }
.domestic-source-chip > span svg { width: 15px; height: 15px; }
.domestic-scope-grid { display: grid; grid-template-columns: 1.1fr 1.3fr .85fr .85fr; gap: 12px; padding: 16px 0; }
.domestic-scope-card { min-width: 0; min-height: 118px; display: flex; flex-direction: column; gap: 13px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--muted) 30%, var(--card)); }
.domestic-scope-title { display: flex; align-items: center; gap: 9px; }
.domestic-scope-title > svg { width: 18px; height: 18px; flex: none; color: var(--info); }
.domestic-scope-title b, .domestic-scope-title small { display: block; }
.domestic-scope-title b { font-size: 13px; line-height: 18px; }
.domestic-scope-title small { margin-top: 2px; color: var(--muted-foreground); font-size: 11px; line-height: 16px; }
.domestic-date-grid, .domestic-region-grid { width: 100%; margin-top: auto; }
.domestic-date-grid input, .domestic-region-grid select { min-height: 39px; border-radius: 7px; font-size: 12px; }
.domestic-check-grid { gap: 6px; margin-top: auto; }
.domestic-check-grid label { min-height: 34px; }
.domestic-check-grid span, .domestic-advanced-fields .domestic-check-grid span { min-height: 34px; padding: 0 10px; border-radius: 7px; font-size: 12px; }
.domestic-more-row { min-height: 48px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 12px; }
.domestic-more-toggle { min-height: 36px; margin: 0; padding: 0 12px; font-size: 12px; }
.domestic-more-toggle svg { width: 15px; height: 15px; }
.domestic-advanced-fields { grid-template-columns: 1.6fr repeat(4, minmax(150px, 1fr)) minmax(180px, .9fr); gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--muted) 42%, var(--card)); }
.domestic-advanced-fields > div, .domestic-advanced-fields > label { gap: 8px; color: var(--foreground); font-size: 12px; font-weight: 600; }
.domestic-advanced-fields > label input { min-height: 40px; padding: 0 11px; font-size: 12px; font-weight: 400; }
.domestic-match-field .domestic-filter-label { color: var(--foreground); font-size: 12px; }
.domestic-advanced-fields .domestic-toggle { min-height: 62px; }
.domestic-results-head h2 { font-size: 19px; }
.domestic-results-head p { margin-top: 4px; font-size: 13px; }
.domestic-page-size { font-size: 12px; }
.domestic-page-size select { min-height: 38px; font-size: 12px; }
.domestic-statistics { min-height: 62px; gap: 8px; padding: 11px 16px; }
.domestic-statistics button { min-height: 38px; gap: 7px; padding: 0 12px; border-radius: 7px; font-size: 12px; }
.domestic-statistics button svg { width: 15px; height: 15px; }
.domestic-statistics button span { font-size: 11px; }
.domestic-results { gap: 12px; padding: 14px; }
.domestic-result { gap: 20px; padding: 19px; }
.domestic-avatar { width: 40px; height: 40px; flex-basis: 40px; font-size: 14px; }
.domestic-author-row b { font-size: 13px; line-height: 18px; }
.domestic-author-row span { margin-top: 3px; font-size: 11px; line-height: 16px; }
.domestic-sentiment { padding: 4px 8px; font-size: 11px; }
.domestic-result-title { margin-top: 14px; }
.domestic-result-title h3 { font-size: 17px; line-height: 25px; }
.domestic-result-title > span { padding: 3px 7px; font-size: 11px; }
.domestic-result-main > p { min-height: 44px; margin: 9px 0 14px; font-size: 13px; line-height: 22px; }
.domestic-result footer span { font-size: 11px; }
.domestic-result footer svg { width: 13px; height: 13px; }
.domestic-detail-button { min-height: 34px; padding: 0 11px; font-size: 12px; }
.domestic-thumbnail { width: 176px; height: 128px; }
.domestic-pager { min-height: 58px; font-size: 12px; }
.domestic-pager > b { font-size: 12px; }

@media (max-width: 1300px) {
  .domestic-scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domestic-advanced-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .domestic-page-heading h1 { font-size: 24px; line-height: 31px; }
  .domestic-search-primary { min-height: 0; padding: 14px; }
  .domestic-query-wrap { flex-basis: 100%; }
  .domestic-query-assist { align-items: flex-start; flex-direction: column; gap: 4px; }
  .domestic-syntax-popover { top: 104px; width: calc(100vw - 48px); }
  .domestic-syntax-popover dl { grid-template-columns: 1fr; }
  .domestic-filter-body { padding: 0 14px 14px; }
  .domestic-scope-grid { grid-template-columns: 1fr; }
  .domestic-scope-card { min-height: 110px; }
  .domestic-more-row { align-items: flex-start; flex-direction: column; justify-content: center; padding: 10px 0; }
  .domestic-advanced-fields { grid-template-columns: 1fr; }
  .domestic-result { padding: 15px; }
}

/* Account, billing and developer workspace */
.personal-page { max-width: 1720px; }
.wallet-summary { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.wallet-summary article { min-height: 124px; display: flex; align-items: flex-start; gap: 14px; padding: 22px; border-right: 1px solid var(--border); }
.wallet-summary article:last-child { border-right: 0; }
.wallet-summary article > div { min-width: 0; flex: 1; }
.summary-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 8px; }
.summary-icon svg { width: 16px; height: 16px; }
.summary-icon.green { color: var(--success); background: var(--success-soft); }
.summary-icon.blue { color: var(--info); background: var(--info-soft); }
.summary-icon.rose { color: #e3658b; background: color-mix(in srgb, #e3658b 14%, transparent); }
.wallet-summary small, .wallet-summary strong, .wallet-summary p { display: block; }
.wallet-summary small { color: var(--muted-foreground); font-size: 13px; }
.wallet-summary strong { margin-top: 11px; font-size: 27px; line-height: 32px; }
.wallet-summary p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 12px; }
.usage-panel { min-height: 320px; }
.usage-billing-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--card); }
.usage-billing-guide span { min-width: 0; display: flex; align-items: flex-start; gap: 7px; color: var(--muted-foreground); font-size: 11px; line-height: 18px; }
.usage-billing-guide svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; color: var(--info); }
.usage-billing-guide b { flex: none; color: var(--foreground); font-size: 11px; }
.usage-filter-bar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 28%, var(--card)); }
.usage-filter-copy { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.usage-filter-copy span { color: var(--muted-foreground); font-size: 11px; font-weight: 650; }
.usage-filter-copy small { overflow: hidden; color: var(--foreground); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.usage-filter-actions { display: flex; align-items: center; gap: 7px; }
.wallet-date-range { width: 286px; min-height: 36px; box-shadow: none; }
.usage-filter-actions .icon-button { width: 34px; min-height: 34px; }
.usage-filter-actions .icon-button svg { width: 15px; height: 15px; }
.usage-service-summary { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 8px 16px; overflow-x: auto; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 38%, var(--card)); }
.usage-service-summary > span { min-height: 34px; display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--muted-foreground); font-size: 11px; white-space: nowrap; }
.usage-service-summary svg { width: 13px; height: 13px; color: var(--info); }
.usage-service-summary b { color: var(--foreground); font-size: 11px; }
.usage-service-summary small { padding-left: 7px; border-left: 1px solid var(--border); color: var(--muted-foreground); font-size: 10px; font-variant-numeric: tabular-nums; }
.usage-service-summary-empty { border: 0 !important; background: transparent !important; }
.usage-table-wrap, .admin-table-wrap { overflow-x: auto; }
.usage-table-wrap .management-table { min-width: 820px; table-layout: fixed; }
.usage-table-wrap .management-table th:nth-child(1), .usage-table-wrap .management-table td:nth-child(1) { width: 15%; }
.usage-table-wrap .management-table th:nth-child(2), .usage-table-wrap .management-table td:nth-child(2) { width: 16%; }
.usage-table-wrap .management-table th:nth-child(3), .usage-table-wrap .management-table td:nth-child(3) { width: 41%; }
.usage-table-wrap .management-table th:nth-child(4), .usage-table-wrap .management-table td:nth-child(4) { width: 28%; }
.usage-table-wrap .management-table td:nth-child(3), .usage-table-wrap .management-table td:nth-child(4) { overflow: hidden; }
.usage-table-wrap .management-table td { height: auto; min-height: 82px; vertical-align: top; }
.usage-service-cell, .usage-billing-cell { width: 100%; min-width: 0; min-height: 68px; display: grid; grid-template-rows: 18px minmax(34px, auto) 15px; align-content: start; justify-items: center; text-align: center; overflow: hidden; }
.usage-service-cell strong { display: block; color: var(--foreground); font-size: 12px; line-height: 18px; }
.usage-service-cell small, .usage-billing-cell small { display: block; margin: 0; align-self: end; color: var(--muted-foreground); font-size: 10px; line-height: 15px; }
.usage-service-cell p { margin: 0; align-self: center; color: var(--foreground); font-size: 11px; line-height: 17px; }
.usage-service-cell strong, .usage-service-cell p, .usage-service-cell small, .usage-billing-cell span, .usage-billing-cell small { width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usage-service-cell p span { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: var(--info-soft); color: var(--info); font-size: 9px; font-weight: 650; }
.usage-legacy-tag { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px; background: var(--warning-soft); color: var(--warning); font-size: 9px; font-style: normal; font-weight: 650; vertical-align: 1px; }
.usage-billing-cell span { display: block; color: var(--foreground); font-size: 11px; font-weight: 600; line-height: 18px; }
.usage-billing-cell .balance-cost { display: block; align-self: center; margin: 0; font-size: 13px; }
.management-table { width: 100%; border-collapse: collapse; }
.management-table th { height: 48px; padding: 0 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--muted); color: var(--muted-foreground); font-size: 11px; font-weight: 650; text-align: center; }
.management-table td { height: 62px; padding: 10px 16px; border-bottom: 1px solid var(--border); text-align: center; }
.table-time b, .table-time small { display: block; }
.table-time b { font-size: 12px; }
.table-time small { margin-top: 3px; color: var(--muted-foreground); font-size: 11px; }
.source-badge, .role-badge, .status-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 25px; padding: 0 9px; border-radius: 7px; font-size: 11px; font-weight: 650; }
.source-badge svg { width: 13px; height: 13px; }
.source-badge.system { color: var(--info); background: var(--info-soft); }
.source-badge.api { color: #d25a82; background: color-mix(in srgb, #d25a82 14%, transparent); }
.balance-cost { color: var(--destructive); }
.empty.compact { min-height: 230px; }
.empty.compact .empty-icon { width: 42px; height: 42px; }

.order-history-modal { width: min(860px, calc(100vw - 32px)); }
.order-list { max-height: min(600px, 65vh); display: grid; gap: 10px; margin-top: 16px; overflow-y: auto; }
.order-item { padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--muted); }
.order-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.order-main b, .order-main small { display: block; }
.order-main b { font-size: 12px; }
.order-main small { margin-top: 5px; color: var(--muted-foreground); font-size: 11px; }
.order-status { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 12px; font-weight: 650; }
.order-status i, .status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.order-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 17px; }
.order-values small, .order-values b { display: block; }
.order-values small { color: var(--muted-foreground); font-size: 11px; }
.order-values b { margin-top: 6px; font-size: 14px; }

.invite-hero { min-height: 225px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: stretch; margin-bottom: 18px; padding: 24px; border: 1px solid color-mix(in srgb, var(--success) 40%, var(--border)); border-radius: 10px; background: color-mix(in srgb, var(--success-soft) 68%, var(--card)); }
.invite-copy { display: flex; flex-direction: column; justify-content: center; }
.invite-tag { width: max-content; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid color-mix(in srgb, var(--success) 42%, transparent); border-radius: 999px; color: var(--success); font-size: 11px; font-weight: 650; }
.invite-tag svg { width: 14px; height: 14px; }
.invite-copy h2 { margin: 16px 0 4px; font-size: 22px; }
.invite-rate { display: flex; align-items: baseline; gap: 10px; }
.invite-rate strong { color: #00b982; font-size: 52px; line-height: 60px; }
.invite-rate span { color: var(--muted-foreground); font-size: 12px; }
.invite-points { display: flex; gap: 8px; margin-top: 11px; }
.invite-points span { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--success) 28%, var(--border)); border-radius: 6px; color: color-mix(in srgb, var(--success) 75%, var(--foreground)); font-size: 11px; }
.settlement-card { display: flex; flex-direction: column; justify-content: center; padding: 22px; border-radius: 9px; background: #07997e; color: #fff; }
.settlement-card small { font-weight: 650; }
.settlement-card strong { margin-top: 3px; font-size: 40px; line-height: 50px; }
.settlement-card em { font-size: 22px; font-style: normal; }
.settlement-card p { margin: 11px 0 0; padding: 10px; border-radius: 7px; background: rgba(255,255,255,.14); font-size: 12px; line-height: 19px; }
.invite-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-bottom: 18px; }
.invite-income, .invite-rules { min-height: 310px; }
.invite-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 18px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.invite-stats article { padding: 15px; border-right: 1px solid var(--border); }
.invite-stats article:last-child { border-right: 0; }
.invite-stats small, .invite-stats strong { display: block; }
.invite-stats small { color: var(--muted-foreground); font-size: 11px; }
.invite-stats strong { margin-top: 8px; font-size: 18px; }
.invite-link-row { display: grid; grid-template-columns: 18px auto minmax(0, 1fr) 36px; align-items: center; gap: 9px; margin: 16px 18px; }
.invite-link-row > svg { width: 15px; height: 15px; color: var(--muted-foreground); }
.invite-link-row > span { font-size: 12px; }
.invite-link-row code, .api-key-value code { min-width: 0; padding: 10px 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--muted); color: var(--foreground); text-overflow: ellipsis; white-space: nowrap; }
.invite-reward-history { min-height: 250px; margin-bottom: 18px; overflow: hidden; }
.invite-reward-table-wrap { overflow-x: auto; }
.invite-reward-table { min-width: 720px; }
.invite-reward-table th, .invite-reward-table td { text-align: center; }
.reward-invitee b, .reward-invitee small { display: block; }
.reward-invitee b { font-size: 12px; }
.reward-invitee small { max-width: 190px; margin: 4px auto 0; overflow: hidden; color: var(--muted-foreground); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.reward-recharge-amount { color: var(--foreground); font-size: 13px; font-variant-numeric: tabular-nums; }
.reward-amount { color: var(--success); font-size: 13px; font-variant-numeric: tabular-nums; }
.reward-status { min-height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 7px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.reward-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.reward-status.frozen { background: var(--warning-soft); color: var(--warning); }
.reward-status.available { background: var(--success-soft); color: var(--success); }
.reward-status.settled { background: var(--info-soft); color: var(--info); }
.rule-list { display: grid; gap: 17px; padding: 2px 18px 18px; }
.rule-list article { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 10px; }
.rule-list > article > svg { width: 28px; height: 28px; padding: 7px; border-radius: 7px; background: var(--muted); color: var(--success); }
.rule-list b { font-size: 12px; }
.rule-list p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 11px; line-height: 18px; }
.invited-users { min-height: 230px; }
.invited-user-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--border); }
.invited-user-list article { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 15px 18px; background: var(--card); }
.invited-user-list article > span { display: grid; place-items: center; background: var(--info-soft); color: var(--info); font-weight: 700; }
.invited-user-list article > span { width: 38px; height: 38px; border-radius: 10px; }
.invited-user-list b, .invited-user-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invited-user-list small { margin-top: 3px; color: var(--muted-foreground); font-size: 10px; }
.invited-user-list svg { width: 16px; color: var(--success); }

.wallet-content-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.invited-user-list article > span img, .admin-user-cell > span img { width: 88%; height: 88%; object-fit: contain; }
.status-badge.success { color: var(--success); background: var(--success-soft); }
.status-badge.disabled { color: var(--destructive); background: var(--destructive-soft); }
.credential-mark { width: 36px; height: 36px; display: grid; flex: none; place-items: center; border-radius: 8px; background: var(--info-soft); color: var(--info); }
.credential-mark svg { width: 17px; height: 17px; }
.api-key-value { display: grid; grid-template-columns: minmax(0, 1fr) 36px 36px; gap: 7px; margin-top: 10px; }
.api-key-value .icon-button { width: 36px; min-height: 36px; }
.credential-warning { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; margin-bottom: 14px; color: var(--muted-foreground); font-size: 11px; line-height: 18px; }
.credential-warning svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--warning); }
.api-key-summary .credential-warning { margin: 5px 0 0; }
.link-button { text-decoration: none; }

.api-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.api-version { display: inline-flex; padding: 4px 8px; border-radius: 6px; background: var(--info-soft); color: var(--info); font-size: 11px; font-weight: 700; }
.api-intro h2 { margin: 11px 0 5px; font-size: 21px; }
.api-intro p { margin: 0; color: var(--muted-foreground); }
.api-intro > code { padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--muted); white-space: nowrap; }
.endpoint-list { display: grid; gap: 14px; }
.endpoint-card { padding: 20px; border: 1px solid var(--border); border-radius: 9px; background: var(--card); }
.endpoint-head { display: grid; grid-template-columns: 48px minmax(300px, auto) 1fr; align-items: center; gap: 10px; }
.method { display: inline-grid; place-items: center; width: 48px; min-height: 25px; border-radius: 6px; font-size: 10px; font-weight: 800; }
.method.get { color: var(--success); background: var(--success-soft); }
.method.post { color: var(--warning); background: var(--warning-soft); }
.endpoint-head > code { color: var(--info); font-size: 13px; }
.endpoint-head > b { text-align: right; }
.endpoint-card > p { margin: 12px 0; color: var(--muted-foreground); }
.endpoint-params { display: flex; gap: 8px; margin-bottom: 12px; }
.endpoint-params span { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; }
.endpoint-params em { color: var(--muted-foreground); font-size: 11px; font-style: normal; }
.endpoint-card pre { margin: 0; padding: 13px; overflow: auto; border-radius: 7px; background: #111214; color: #e9eef2; font-size: 11px; line-height: 18px; }

.api-console { margin-bottom: 16px; overflow: hidden; border: 1px solid #27303c; border-radius: 10px; background: #0b1018; color: #dfe7f1; box-shadow: 0 18px 50px rgba(0, 0, 0, .16); }
.api-console-tabs { min-height: 58px; display: flex; align-items: stretch; padding: 0 18px; border-bottom: 1px solid #222b36; background: #0e141d; }
.api-console-tabs button { position: relative; min-width: 132px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 17px; border: 0; background: transparent; color: #788495; }
.api-console-tabs button::after { position: absolute; right: 16px; bottom: -1px; left: 16px; height: 2px; background: #12d5a0; content: ''; opacity: 0; transform: scaleX(.55); transition: opacity .18s, transform .22s cubic-bezier(.2,.8,.2,1); }
.api-console-tabs button:hover { color: #c9d4df; }
.api-console-tabs button.active { color: #23dca9; }
.api-console-tabs button.active::after { opacity: 1; transform: scaleX(1); }
.api-console-tabs button span { font-size: 13px; font-weight: 700; }
.api-console-tabs button small { color: #667384; font-size: 10px; }
.api-console-health { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #7d8998; font-family: Consolas, monospace; font-size: 10px; }
.api-console-health i { width: 7px; height: 7px; border-radius: 50%; background: #18d9a1; box-shadow: 0 0 0 4px rgba(24,217,161,.08); }
.api-console-health b { font-weight: 650; }
.api-console-health b.running { color: #e3b341; }
.api-console-health b.success { color: #26d9a5; }
.api-console-health b.error { color: #ff6f78; }
.api-console-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.api-code-card { min-width: 0; border-right: 1px solid #222b36; }
.api-route-bar { min-height: 58px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid #1e2732; }
.api-route-bar > code { overflow: hidden; color: #b8c5d3; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.code-copy { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid #2b3542; border-radius: 7px; background: #111925; color: #98a5b5; font-size: 10px; }
.code-copy:hover { border-color: #405064; color: #e6edf5; }
.code-copy svg { width: 13px; height: 13px; }
.code-block-head, .api-response-head { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #5e6b7c; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.code-block-head b { padding: 4px 7px; border-radius: 5px; background: #111b27; color: #71829a; font-size: 9px; letter-spacing: 0; }
.python-code, .api-response-code { margin: 0; overflow: auto; background: transparent; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; line-height: 20px; tab-size: 4; }
.python-code { height: 330px; padding: 0 20px 20px; }
.api-response-head { border-top: 1px solid #222b36; }
.api-response-head b { color: #718096; letter-spacing: 0; }
.api-response-head b.running { color: #e3b341; }
.api-response-head b.success { color: #26d9a5; }
.api-response-head b.error { color: #ff6f78; }
.api-response-code { height: 245px; padding: 2px 20px 20px; border-bottom: 1px solid #222b36; color: #c9d4df; }
.syn-keyword { color: #ff7ab2; }
.syn-string { color: #ffd866; }
.syn-number { color: #a78bfa; }
.syn-literal { color: #63c5ff; }
.syn-comment { color: #607087; }
.syn-key { color: #67d8ff; }
.api-console-footer { min-height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 20px; color: #566476; font-family: Consolas, monospace; font-size: 9px; }
.api-console-footer > i { width: 4px; height: 4px; border-radius: 50%; background: #344050; }
.api-console-footer > b { margin-left: auto; font-size: 9px; font-weight: 600; }
.api-test-panel { min-width: 0; padding: 20px; background: #0e141d; }
.api-test-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.api-test-heading > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: rgba(18,213,160,.11); color: #21d6a5; }
.api-test-heading svg { width: 17px; height: 17px; }
.api-test-heading h3, .api-test-heading p { margin: 0; }
.api-test-heading h3 { font-size: 14px; }
.api-test-heading p { margin-top: 3px; color: #6d7a8b; font-size: 10px; }
.api-test-notice { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; margin-bottom: 18px; padding: 10px; border: 1px solid #3a3424; border-radius: 7px; background: rgba(227,179,65,.07); color: #b8a774; font-size: 10px; line-height: 16px; }
.api-test-notice svg { width: 14px; height: 14px; color: #e3b341; }
.api-test-panel .field-label { position: relative; margin-bottom: 14px; color: #9aa7b6; font-size: 10px; }
.api-test-panel input, .api-test-panel select, .api-test-panel textarea { width: 100%; margin-top: 7px; border-color: #2a3543; background: #0a1018; color: #dfe7f1; box-shadow: none; }
.api-test-panel textarea { min-height: 96px; resize: vertical; line-height: 18px; }
.api-test-panel input:focus, .api-test-panel select:focus, .api-test-panel textarea:focus { border-color: #168b72; outline: 0; box-shadow: 0 0 0 3px rgba(18,213,160,.08); }
.required-mark, .optional-mark { position: absolute; top: 0; right: 0; font-size: 9px; }
.required-mark { color: #ff7b84; }
.optional-mark { color: #647286; }
.api-key-preview { margin: 18px 0; padding: 11px; border: 1px solid #25303c; border-radius: 7px; background: #0a1018; }
.api-key-preview span, .api-key-preview code { display: block; }
.api-key-preview span { margin-bottom: 6px; color: #5f6d7e; font-size: 9px; text-transform: uppercase; }
.api-key-preview code { overflow: hidden; color: #8291a3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.api-send-button { width: 100%; min-height: 42px; border-color: #10b88b; background: #10b88b; color: #041b14; }
.api-send-button:hover { border-color: #25d8a9; background: #25d8a9; }
.endpoint-reference { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--card); }
.endpoint-reference article { min-height: 126px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 13px; padding: 19px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.endpoint-reference article:nth-child(3n) { border-right: 0; }
.endpoint-reference article:nth-last-child(-n + 3) { border-bottom: 0; }
.reference-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--info-soft); color: var(--info); }
.reference-icon svg { width: 18px; height: 18px; }
.endpoint-reference b, .endpoint-reference code, .endpoint-reference p { display: block; }
.endpoint-reference b { font-size: 14px; }
.endpoint-reference code { margin-top: 6px; color: var(--info); font-size: 11px; }
.endpoint-reference p { margin: 5px 0 0; color: var(--muted-foreground); font-size: 11px; line-height: 1.55; }

.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-stats article { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid var(--border); border-radius: 9px; background: var(--card); }
.admin-stats article > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--info); background: var(--info-soft); }
.admin-stats article > span svg { width: 17px; }
.admin-stats small, .admin-stats strong { display: block; }
.admin-stats small { color: var(--muted-foreground); font-size: 11px; }
.admin-stats strong { margin-top: 4px; font-size: 20px; }
.admin-search { width: min(280px, 40vw); }
.admin-table { min-width: 1050px; }
.admin-user-cell { display: grid; grid-template-columns: 36px minmax(150px, 1fr); align-items: center; gap: 10px; text-align: left; }
.admin-user-cell > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--info-soft); color: var(--info); font-weight: 700; }
.admin-user-cell b, .admin-user-cell small { display: block; }
.admin-user-cell small { margin-top: 3px; color: var(--muted-foreground); font-size: 10px; }
.admin-row-actions { display: flex; align-items: center; gap: 6px; min-width: max-content; }
.admin-audit-panel { margin-top: 18px; }
.admin-audit-filters { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(150px, .9fr) minmax(125px, .7fr) 145px 145px minmax(190px, 1.2fr) 38px; align-items: end; gap: 9px; padding: 13px 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 42%, var(--card)); }
.admin-audit-filters > label { min-width: 0; display: grid; gap: 5px; color: var(--muted-foreground); font-size: 10px; font-weight: 650; }
.admin-audit-filters select, .admin-audit-filters input { width: 100%; min-width: 0; min-height: 36px; }
.admin-audit-filters .admin-audit-date-picker { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--border); background: var(--card); color: var(--foreground); }
.admin-audit-filters .admin-audit-date-picker:hover { border-color: var(--border-strong); }
.admin-audit-filters .admin-audit-date-picker > span { font-size: 11px; font-weight: 550; }
.admin-audit-filters .admin-audit-date-picker input { min-height: 0; }
.admin-audit-filters .search-field { width: 100%; min-height: 36px; background: var(--card); }
.admin-audit-filters .search-field input { min-height: 34px; }
.admin-audit-summary { display: flex; align-items: center; gap: 8px; padding: 10px 16px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.admin-audit-summary span { min-width: max-content; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; background: var(--muted); color: var(--muted-foreground); font-size: 10px; }
.admin-audit-summary span b { color: var(--foreground); font-size: 12px; }
.admin-audit-summary span.success { background: var(--success-soft); color: var(--success); }
.admin-audit-summary span.failed { background: var(--destructive-soft); color: var(--destructive); }
.admin-audit-table-wrap { overflow-x: auto; }
.admin-audit-table { min-width: 1020px; }
.admin-audit-table td { vertical-align: middle; }
.audit-operation { min-width: 150px; display: grid; grid-template-rows: auto auto; align-content: center; justify-items: center; }
.audit-detail { width: 100%; min-width: 280px; display: grid; grid-template-rows: auto auto; align-content: center; justify-items: start; text-align: left; }
.audit-operation b, .audit-operation small, .audit-detail b, .audit-detail small { display: block; }
.audit-operation b, .audit-operation small { width: 100%; line-height: 1.35; text-align: center; }
.audit-detail b, .audit-detail small { width: 100%; line-height: 1.35; text-align: left; }
.audit-operation small, .audit-detail small { max-width: 300px; margin-top: 3px; overflow: hidden; color: var(--muted-foreground); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.audit-duration { min-width: 86px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.audit-user { font-weight: 650; }
.audit-result { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; background: var(--neutral-soft); color: var(--muted-foreground); font-size: 10px; font-weight: 650; }
.audit-result::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ''; }
.audit-result.success { background: var(--success-soft); color: var(--success); }
.audit-result.failed { background: var(--destructive-soft); color: var(--destructive); }
.audit-result.running { background: var(--info-soft); color: var(--info); }
.admin-audit-pager { min-height: 52px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 9px 16px; border-top: 1px solid var(--border); }
.admin-audit-pager span { color: var(--muted-foreground); font-size: 11px; }
.admin-audit-pager button { min-height: 32px; padding: 0 10px; }
.role-badge.user { color: var(--info); background: var(--info-soft); }
.role-badge.admin { color: #a85bbb; background: var(--chart-4-soft); }
.balance-value { font-size: 15px; }
.admin-user-modal { width: min(640px, calc(100vw - 32px)); }
.admin-password-grid { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.admin-modal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 14px 0 18px; padding: 4px; border-radius: 8px; background: var(--muted); }
.admin-modal-tabs button { min-height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--muted-foreground); }
.admin-modal-tabs button.active { background: var(--card); color: var(--foreground); box-shadow: var(--ring); font-weight: 650; }
.recharge-note { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 12px; border-radius: 8px; background: var(--info-soft); color: var(--info); font-size: 12px; }
.recharge-note svg { width: 16px; flex: none; }

@media (max-width: 1000px) {
  .wallet-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-summary article:nth-child(2) { border-right: 0; }
  .wallet-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .invite-grid { grid-template-columns: 1fr; }
  .invite-hero { grid-template-columns: 1fr 260px; }
  .invited-user-list { grid-template-columns: 1fr 1fr; }
  .api-console-grid { grid-template-columns: 1fr; }
  .api-code-card { border-right: 0; border-bottom: 1px solid #222b36; }
  .admin-audit-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-audit-filters .audit-keyword { grid-column: span 2; }
}

@media (max-width: 700px) {
  .usage-billing-guide { grid-template-columns: 1fr; gap: 7px; padding: 11px 12px; }
  .usage-filter-bar { align-items: stretch; flex-direction: column; gap: 8px; padding: 10px 12px; }
  .usage-filter-actions, .wallet-date-range { width: 100%; }
  .usage-filter-actions .icon-button { flex: none; }
  .wallet-summary { grid-template-columns: 1fr; }
  .wallet-summary article, .wallet-summary article:nth-child(2) { min-height: 104px; border-right: 0; border-bottom: 1px solid var(--border); }
  .wallet-summary article:last-child { border-bottom: 0; }
  .invite-hero { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .invite-rate strong { font-size: 44px; }
  .invite-points { flex-wrap: wrap; }
  .settlement-card { min-height: 150px; }
  .invite-stats { grid-template-columns: 1fr 1fr; }
  .invite-stats article:nth-child(2) { border-right: 0; }
  .invite-stats article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .invite-link-row { grid-template-columns: 18px minmax(0, 1fr) 36px; }
  .invite-link-row > span { display: none; }
  .invited-user-list { grid-template-columns: 1fr; }
  .order-values { grid-template-columns: 1fr 1fr; }
  .api-intro { align-items: stretch; flex-direction: column; }
  .api-intro > code { overflow: hidden; text-overflow: ellipsis; }
  .endpoint-head { grid-template-columns: 48px minmax(0, 1fr); }
  .endpoint-head > b { grid-column: 1 / -1; text-align: left; }
  .endpoint-params { align-items: stretch; flex-direction: column; }
  .api-console-tabs { padding: 0 7px; overflow-x: auto; }
  .api-console-tabs button { min-width: 108px; padding: 0 9px; }
  .api-console-tabs button small, .api-console-health { display: none; }
  .api-route-bar { grid-template-columns: 45px minmax(0, 1fr) 32px; padding: 0 12px; }
  .code-copy { width: 32px; padding: 0; justify-content: center; font-size: 0; }
  .python-code { height: 360px; padding-right: 14px; padding-left: 14px; font-size: 11px; }
  .api-response-code { height: 230px; padding-right: 14px; padding-left: 14px; font-size: 11px; }
  .code-block-head, .api-response-head, .api-console-footer { padding-right: 14px; padding-left: 14px; }
  .api-console-footer span:nth-of-type(2), .api-console-footer i:nth-of-type(2) { display: none; }
  .api-test-panel { padding: 16px; }
  .endpoint-reference { grid-template-columns: 1fr; }
  .endpoint-reference article { border-right: 0; border-bottom: 1px solid var(--border); }
  .endpoint-reference article:nth-last-child(-n + 3) { border-bottom: 1px solid var(--border); }
  .endpoint-reference article:last-child { border-bottom: 0; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-search { width: 100%; }
  .admin-audit-filters { grid-template-columns: 1fr 1fr; }
  .admin-audit-filters .audit-keyword { grid-column: 1 / -1; }
  .admin-audit-filters > .icon-button { align-self: end; }
}

@media (max-width: 430px) {
  .check-grid { grid-template-columns: 1fr; }
  .account-metric-strip .metric { padding: 11px 12px; }
  .article-day-heading { padding: 0 12px; }
  .group-head { padding: 11px 12px; }
  .group-head-title small { display: none; }
  .create-group-button { padding: 0 10px; }
}

@media (max-width: 1180px) {
  .plaza-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .plaza-workspace { grid-template-columns: 1fr; }
  .plaza-categories { position: static; }
  .plaza-category-head { min-height: 62px; }
  .plaza-category-list { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .plaza-category { min-width: max-content; }
}

@media (max-width: 700px) {
  .plaza-heading { gap: 12px; }
  .plaza-search { width: 100%; }
  .plaza-workspace { gap: 10px; }
  .plaza-category-head { display: none; }
  .plaza-category-list { padding: 7px; }
  .plaza-content-head { min-height: 64px; padding: 11px 13px; }
  .plaza-source-state { display: none; }
  .plaza-grid { grid-template-columns: 1fr; }
  .plaza-card { min-height: 174px; padding: 15px; }
  .plaza-account-head { grid-template-columns: 44px minmax(0, 1fr); gap: 9px; }
  .plaza-avatar { width: 44px; height: 44px; }
}

/* Plaza dialog */
.plaza-modal-card {
  width: min(1180px, calc(100vw - 40px));
  height: min(760px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}
.plaza-modal-head { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.plaza-modal-head h2 { margin: 0; font-size: 20px; font-weight: 650; line-height: 27px; }
.plaza-modal-head p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 13px; }
.plaza-modal-tools { display: flex; align-items: center; gap: 10px; }
.plaza-modal-head > div:first-child { min-width: 0; }
.plaza-modal-tools .plaza-search { width: min(390px, 38vw); min-height: 38px; }
.plaza-modal-tools .close-modal { border: 0; box-shadow: none; }
.plaza-modal-card .plaza-workspace { min-height: 0; flex: 1; grid-template-columns: 176px minmax(0, 1fr); gap: 0; }
.plaza-modal-card .plaza-categories { position: static; height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: color-mix(in srgb, var(--muted) 44%, var(--card)); }
.plaza-modal-card .plaza-category-list { min-height: 0; height: auto; max-height: none; flex: 1; align-content: start; padding: 12px 9px; overflow-y: auto; }
.plaza-modal-card .plaza-category { min-height: 40px; padding: 0 12px; font-size: 12px; }
.plaza-modal-card .plaza-content { height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 0; border-radius: 0; }
.plaza-modal-card #plazaEmpty { min-height: 0; flex: 1; padding: 32px; background: color-mix(in srgb, var(--muted) 66%, var(--card)); }
.plaza-modal-card #plazaEmpty .empty-icon { width: 42px; height: 42px; margin-bottom: 12px; border-radius: 11px; }
.plaza-modal-card #plazaEmpty b { font-size: 15px; line-height: 22px; }
.plaza-modal-card #plazaEmpty p { margin: 5px 0 0; font-size: 12px; }
.plaza-modal-card .plaza-grid { min-height: 0; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 14px; padding: 16px; overflow-y: auto; background: color-mix(in srgb, var(--muted) 66%, var(--card)); }
.plaza-modal-card .plaza-card { min-height: 184px; padding: 16px; border: 1px solid color-mix(in srgb, var(--border) 88%, transparent); border-radius: 8px; box-shadow: 0 1px 3px rgba(15, 23, 42, .04); }
.plaza-modal-card .plaza-signature { min-height: 40px; margin: 13px 0; line-height: 20px; }
.plaza-modal-card .plaza-add {
  min-width: 64px;
  min-height: 28px;
  height: 28px;
  gap: 4px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.plaza-modal-card .plaza-add.primary { border-color: #2f7df6; background: #2f7df6; color: #ffffff; box-shadow: 0 1px 2px rgba(47, 125, 246, .14); }
.plaza-modal-card .plaza-add.primary:hover:not(:disabled) { border-color: #246de0; background: #246de0; box-shadow: 0 3px 7px rgba(47, 125, 246, .2); transform: translateY(-1px); }
.plaza-modal-card .plaza-add svg { width: 12px; height: 12px; stroke-width: 2.2; }
.plaza-modal-card .plaza-add.is-loading svg { animation: spin .8s linear infinite; }
.plaza-modal-card .plaza-add.is-added:disabled { border-color: color-mix(in srgb, var(--success) 22%, var(--border)); background: var(--success-soft); color: var(--success); box-shadow: none; opacity: 1; }
.plaza-card-loading { display: grid; align-content: start; gap: 12px; }
.plaza-card-loading span, .plaza-card-loading b, .plaza-card-loading p { display: block; margin: 0; border-radius: 6px; background: linear-gradient(90deg, var(--muted), var(--card), var(--muted)); background-size: 220% 100%; animation: plaza-shimmer 1.2s linear infinite; }
.plaza-card-loading span { width: 48px; height: 48px; }
.plaza-card-loading b { width: 62%; height: 14px; }
.plaza-card-loading p { width: 100%; height: 38px; }
@keyframes plaza-shimmer { to { background-position: -220% 0; } }

@media (max-width: 1000px) {
  .plaza-modal-card .plaza-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  #plazaModal { padding: 8px; }
  .plaza-modal-card { width: calc(100vw - 16px); height: calc(100vh - 16px); max-height: calc(100vh - 16px); }
  .plaza-modal-head { min-height: 116px; align-items: stretch; flex-direction: column; gap: 10px; padding: 13px; }
  .plaza-modal-head p { font-size: 11px; }
  .plaza-modal-tools { width: 100%; }
  .plaza-modal-tools .plaza-search { width: auto; min-width: 0; flex: 1; }
  .plaza-modal-card .plaza-workspace { display: grid; grid-template-columns: 1fr; grid-template-rows: 52px minmax(0, 1fr); }
  .plaza-modal-card .plaza-categories { height: 52px; border-right: 0; border-bottom: 1px solid var(--border); }
  .plaza-modal-card .plaza-category-list { height: 52px; display: flex; padding: 7px; overflow-x: auto; overflow-y: hidden; }
  .plaza-modal-card .plaza-category { min-width: max-content; min-height: 36px; }
  .plaza-modal-card .plaza-grid { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .plaza-modal-card .plaza-card { min-height: 158px; padding: 14px; }
}

/* Video Channels */
.finder-page { max-width: 1500px; }
.finder-channel-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.finder-channel-groups { min-width: 0; overflow: hidden; }
.finder-channel-panel { grid-column: 1; grid-row: 2; }
.finder-channel-groups { grid-column: 1; grid-row: 1; }
.finder-channel-groups #channelGroupPanel { min-width: 0; overflow: hidden; }
.finder-channel-panel { min-width: 0; }
.finder-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.finder-summary article { min-width: 0; min-height: 106px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px; padding: 16px; border-right: 1px solid var(--border); }
.finder-summary article:last-child { border-right: 0; }
.finder-summary-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--info-soft); color: var(--info); }
.finder-summary article:nth-child(2) .finder-summary-icon { background: var(--success-soft); color: var(--success); }
.finder-summary article:nth-child(3) .finder-summary-icon { background: var(--chart-4-soft); color: var(--chart-4); }
.finder-summary article:nth-child(4) .finder-summary-icon { background: var(--warning-soft); color: var(--warning); }
.finder-summary-icon svg { width: 17px; height: 17px; }
.finder-summary small, .finder-summary strong, .finder-summary em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-summary small { color: var(--muted-foreground); font-size: 11px; }
.finder-summary strong { margin-top: 5px; font-size: 22px; line-height: 27px; font-variant-numeric: tabular-nums; }
.finder-summary em { margin-top: 3px; color: var(--muted-foreground); font-size: 9px; font-style: normal; }
.finder-panel-head { min-height: 74px; }
.finder-toolbar, .finder-video-toolbar { display: flex; align-items: center; gap: 8px; }
.finder-toolbar .search-field { width: min(340px, 35vw); }
.finder-channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; background: color-mix(in srgb, var(--muted) 42%, var(--card)); }
.finder-channel-card { min-width: 0; min-height: 238px; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: 0 1px 3px rgba(15, 23, 42, .04); cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.finder-channel-card:hover { border-color: var(--border-strong); box-shadow: 0 6px 18px rgba(15, 23, 42, .07); transform: translateY(-1px); }
.finder-channel-head { display: grid; grid-template-columns: 20px 48px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.finder-channel-avatar { width: 48px; height: 48px; border-radius: 8px; background: var(--muted); object-fit: cover; }
.finder-channel-name { min-width: 0; }
.finder-channel-name b, .finder-channel-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-channel-name b { font-size: 14px; line-height: 20px; }
.finder-channel-name small { margin-top: 3px; color: var(--muted-foreground); font-size: 10px; }
.finder-live-badge, .finder-auth-badge { min-height: 23px; display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 6px; background: var(--muted); color: var(--muted-foreground); font-size: 9px; font-weight: 650; white-space: nowrap; }
.finder-live-badge.is-live { background: var(--destructive-soft); color: var(--destructive); }
.finder-auth-badge { max-width: 100%; background: var(--info-soft); color: var(--info); }
.finder-auth-badge svg, .finder-live-badge svg { width: 11px; height: 11px; }
.finder-channel-signature { min-height: 42px; margin: 14px 0 10px; overflow: hidden; color: color-mix(in srgb, var(--muted-foreground) 86%, var(--foreground)); font-size: 11px; line-height: 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.finder-channel-meta { min-height: 28px; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.finder-channel-meta > span { min-width: 0; display: inline-flex; align-items: center; gap: 4px; overflow: hidden; color: var(--muted-foreground); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.finder-channel-meta svg { width: 11px; height: 11px; flex: none; }
.finder-channel-actions { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.finder-channel-actions .secondary { flex: 1; justify-content: center; }
.finder-channel-card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.finder-channel-card-foot > .status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-channel-card-foot .finder-channel-actions { margin: 0 0 0 auto; flex: none; }
.finder-channel-groups-tags { min-height: 25px; margin-top: 8px; }
.finder-channel-table-wrap { border-radius: 0; background: var(--card); box-shadow: none; overflow-x: auto; }
.finder-channel-table { min-width: 1120px; table-layout: fixed; }
.finder-channel-table th, .finder-channel-table td { padding: 10px 12px; }
.finder-channel-table th { height: 48px; background: color-mix(in srgb, var(--muted) 74%, var(--card)); color: var(--muted-foreground); font-size: 11px; }
.finder-channel-table td { height: 76px; text-align: center; }
.finder-channel-table td:nth-child(3) .account-description { margin-right: auto; margin-left: auto; }
.finder-channel-table td:nth-child(4) .finder-auth-badge { max-width: none; margin-right: auto; margin-left: auto; }
.finder-channel-table td:nth-child(5) .group-tags { justify-content: center; margin-right: auto; margin-left: auto; }
.finder-channel-table th:nth-child(1) { width: 42px; }
.finder-channel-table th:nth-child(2) { width: 220px; }
.finder-channel-table th:nth-child(3) { width: 260px; }
.finder-channel-table th:nth-child(4) { width: 130px; }
.finder-channel-table th:nth-child(5) { width: 170px; }
.finder-channel-table th:nth-child(6) { width: 80px; }
.finder-channel-table th:nth-child(7) { width: 145px; }
.finder-channel-table th:nth-child(8) { width: 90px; }
.finder-channel-table .actions-col { width: 160px; }
.finder-channel-table .account-cell { width: 100%; }
.finder-channel-table .account-description { max-width: 240px; }
.channel-view-switch button { width: 33px; min-width: 33px; height: 31px; padding: 0; }
.finder-search-result > img { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; background: var(--muted); object-fit: cover; }
.finder-search-result > div { min-width: 0; flex: 1; }
.finder-search-result b, .finder-search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-search-result small { margin-top: 3px; color: var(--muted-foreground); font-size: 10px; }
.finder-search-result p { margin: 5px 0 0; overflow: hidden; color: var(--muted-foreground); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.finder-video-toolbar { min-height: 72px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.finder-video-toolbar .search-field { min-width: 240px; flex: 1; }
.finder-video-toolbar select { min-width: 150px; }
.finder-video-toolbar .count-pill { flex: none; }
.finder-video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 18px; background: color-mix(in srgb, var(--muted) 42%, var(--card)); }
.finder-video-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--card); box-shadow: 0 2px 8px rgba(15, 23, 42, .06); transition: border-color .18s, box-shadow .18s, transform .18s; }
.finder-video-card:hover { border-color: color-mix(in srgb, var(--primary) 34%, var(--border)); box-shadow: 0 7px 18px rgba(15, 23, 42, .10); transform: translateY(-1px); }
.video-library > .finder-video-grid { border-top: 1px solid var(--border); }
.finder-video-card-media { position: relative; }
.finder-video-cover { width: 100%; aspect-ratio: 16 / 9; position: relative; display: block; overflow: hidden; border: 0; border-radius: 0; background: #171a1f; color: #fff; cursor: pointer; }
.finder-video-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .24s; }
.finder-video-card:hover .finder-video-cover img { transform: scale(1.02); }
.finder-video-cover-empty { width: 100%; height: 100%; display: grid; place-items: center; color: #8b949e; }
.finder-video-cover-empty svg { width: 25px; height: 25px; }
.finder-video-duration { position: absolute; right: 9px; bottom: 9px; padding: 3px 6px; border-radius: 5px; background: rgba(0, 0, 0, .74); color: #fff; font-size: 10px; font-variant-numeric: tabular-nums; }
.finder-video-download { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(0,0,0,.64); color: #fff; opacity: 0; transition: opacity .18s; }
.finder-video-card:hover .finder-video-download, .finder-video-download:focus-visible { opacity: 1; }
.finder-video-download svg { width: 14px; height: 14px; }
.finder-video-body { min-height: 0; display: flex; flex-direction: column; padding: 14px; }
.finder-video-description { min-height: 42px; margin: 0; overflow: hidden; color: var(--foreground); font-size: 13px; line-height: 21px; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.finder-video-author { min-width: 0; display: flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--muted-foreground); }
.finder-video-author img { width: 28px; height: 28px; flex: none; border-radius: 7px; object-fit: cover; box-shadow: 0 0 0 1px var(--border); }
.finder-video-author span { min-width: 0; overflow: hidden; }
.finder-video-author b, .finder-video-author small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-video-author b { color: var(--foreground); font-size: 11px; line-height: 15px; font-weight: 650; }
.finder-video-author small { margin-top: 2px; color: var(--muted-foreground); font-size: 10px; line-height: 13px; }
.finder-video-author time { margin-left: auto; flex: none; color: var(--muted-foreground); font-size: 10px; font-variant-numeric: tabular-nums; }
.finder-video-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; padding: 11px 0 2px; border-top: 1px solid var(--border); }
.finder-video-metrics span { min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted-foreground); font-size: 10px; }
.finder-video-metrics svg { width: 13px; height: 13px; }
.finder-video-metrics b { color: var(--foreground); font-size: 10px; font-variant-numeric: tabular-nums; }
.finder-add-modal { width: min(760px, calc(100vw - 32px)); }
.finder-search-results { max-height: 520px; overflow-y: auto; }
.finder-detail-modal { width: min(860px, calc(100vw - 32px)); padding: 24px; }
.finder-detail-modal .modal-head h2 { font-size: 22px; line-height: 30px; }
.finder-video-detail-modal { width: min(920px, calc(100vw - 32px)); }
.finder-profile-hero { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 18px; padding: 19px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--muted) 38%, var(--card)); }
.finder-profile-hero > img { width: 82px; height: 82px; border-radius: 10px; object-fit: cover; }
.finder-profile-hero h3, .finder-profile-hero p { margin: 0; }
.finder-profile-hero h3 { font-size: 21px; line-height: 29px; }
.finder-profile-hero p { margin-top: 7px; color: var(--muted-foreground); font-size: 13px; line-height: 21px; }
.finder-profile-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.finder-detail-modal .finder-auth-badge, .finder-detail-modal .finder-live-badge { min-height: 28px; gap: 5px; padding: 0 9px; font-size: 12px; }
.finder-detail-modal .finder-auth-badge svg, .finder-detail-modal .finder-live-badge svg { width: 14px; height: 14px; }
.finder-detail-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 15px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.finder-detail-facts div { min-width: 0; min-height: 82px; padding: 15px; border-right: 1px solid var(--border); }
.finder-detail-facts div:last-child { border-right: 0; }
.finder-detail-facts span, .finder-detail-facts b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-detail-facts span { color: var(--muted-foreground); font-size: 12px; line-height: 18px; }
.finder-detail-facts b { margin-top: 8px; font-size: 17px; line-height: 24px; }
.finder-detail-section { margin-top: 19px; }
.finder-detail-section > h3 { margin: 0 0 10px; font-size: 15px; line-height: 22px; }
.finder-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.finder-detail-list > div { min-width: 0; min-height: 62px; padding: 12px 13px; border: 1px solid var(--border); border-radius: 7px; }
.finder-detail-list span, .finder-detail-list b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-detail-list span { color: var(--muted-foreground); font-size: 12px; line-height: 18px; }
.finder-detail-list b { margin-top: 5px; font-size: 14px; line-height: 21px; }
.modal-action-spacer { flex: 1; }
.finder-video-detail-hero { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 16px; }
.finder-video-detail-cover { width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; background: #171a1f; object-fit: cover; }
.finder-video-detail-copy h3 { margin: 0; font-size: 16px; line-height: 24px; }
.finder-video-detail-copy p { margin: 8px 0 0; color: var(--muted-foreground); font-size: 10px; line-height: 17px; }
.finder-metric-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.finder-metric-strip div { min-width: 0; padding: 12px; border-right: 1px solid var(--border); text-align: center; }
.finder-metric-strip div:last-child { border-right: 0; }
.finder-metric-strip span, .finder-metric-strip b { display: block; }
.finder-metric-strip span { color: var(--muted-foreground); font-size: 9px; }
.finder-metric-strip b { margin-top: 5px; font-size: 15px; font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) {
  .finder-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .finder-channel-layout { grid-template-columns: 1fr; }
  .finder-channel-panel, .finder-channel-groups { grid-column: 1; }
  .finder-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-summary article:nth-child(2) { border-right: 0; }
  .finder-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .finder-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-video-toolbar { align-items: stretch; flex-wrap: wrap; }
  .finder-video-toolbar .search-field { flex-basis: 100%; }
  .finder-video-toolbar select { flex: 1; }
}

@media (max-width: 700px) {
  .finder-panel-head { align-items: stretch; flex-direction: column; gap: 8px; }
  .finder-toolbar { width: 100%; }
  .finder-toolbar .search-field { width: auto; min-width: 0; flex: 1; }
  .finder-channel-grid, .finder-video-grid { grid-template-columns: 1fr; padding: 9px; }
  .finder-detail-facts { grid-template-columns: repeat(2, 1fr); }
  .finder-detail-facts div:nth-child(2) { border-right: 0; }
  .finder-detail-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .finder-detail-list { grid-template-columns: 1fr; }
  .finder-video-detail-hero { grid-template-columns: 1fr; }
  .finder-metric-strip { grid-template-columns: repeat(3, 1fr); }
  .finder-metric-strip div:nth-child(3) { border-right: 0; }
  .finder-metric-strip div:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .finder-video-download { opacity: 1; }
}
