/* SEO Flow Dashboard — bám mẫu LikePion (màu / hiệu ứng / bố cục) */
:root {
  --sf-bg: #f4f5f9;
  --sf-surface: #ffffff;
  --sf-ink: #1a1d26;
  --sf-muted: #6b7280;
  --sf-line: #eceef3;
  --sf-purple: #7c5cfc;
  --sf-purple-2: #6a4af0;
  --sf-purple-soft: #f0ecff;
  --sf-blue: #3b82f6;
  --sf-blue-soft: #eaf2ff;
  --sf-cyan: #38bdf8;
  --sf-side: 260px;
  --sf-top: 58px;
  --sf-radius: 14px;
  --sf-radius-sm: 10px;
  --sf-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 18px rgba(16, 24, 40, 0.05);
  --sf-shadow-hover: 0 4px 8px rgba(16, 24, 40, 0.06), 0 14px 28px rgba(16, 24, 40, 0.08);
  --sf-font: "Inter", "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box }
html, body { margin: 0; padding: 0 }
body.sf-dash {
  font-family: var(--sf-font);
  font-size: 14px;
  line-height: 1.5;
  background: var(--sf-bg);
  color: var(--sf-ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none }
button, input, select { font: inherit }

.sf-shell {
  display: grid;
  grid-template-columns: var(--sf-side) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.22s ease;
}
.sf-shell.is-side-collapsed {
  --sf-side: 72px;
}

/* ——— Sidebar ——— */
.sf-side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #eef0f4;
  padding: 12px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 30;
  overflow-x: hidden;
  overflow-y: auto;
}
.sf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 18px;
  white-space: nowrap;
}
.sf-brand-logo {
  width: 168px;
  height: 38px;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  display: block;
}
.sf-brand-logo--dark { display: none }
html.sf-dark .sf-brand-logo--light { display: none !important }
html.sf-dark .sf-brand-logo--dark {
  display: block !important;
  width: 168px;
  height: 38px;
  max-width: 168px;
  object-fit: contain;
  mix-blend-mode: normal;
}
.sf-brand img:not(.sf-brand-logo) {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}
.sf-brand-text { display: none }
.sf-brand-badge {
  margin-left: 0;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 5px;
  padding: 2px 6px;
  line-height: 1.2;
  flex: 0 0 auto;
}
.sf-nav-label {
  margin: 18px 12px 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  line-height: 1.2;
}
.sf-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #595959;
  padding: 12px 12px;
  border-radius: 8px;
  font-family: Inter, "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.sf-nav-item svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.sf-nav-item:hover {
  background: #f8fafc;
  color: #334155;
}
.sf-nav-item.is-active {
  background: #e8f4ff;
  color: #1890ff;
  font-weight: 500;
  box-shadow: none;
}
.sf-nav-item.is-active svg {
  stroke: currentColor;
}
.sf-side-foot {
  margin-top: auto;
  padding: 16px 12px 4px;
  font-size: 13px;
  color: #94a3b8;
}
.sf-side-foot a:hover { color: #1890ff }

.sf-shell.is-side-collapsed .sf-brand-logo,
.sf-shell.is-side-collapsed .sf-brand-text,
.sf-shell.is-side-collapsed .sf-brand-badge,
.sf-shell.is-side-collapsed .sf-nav-label,
.sf-shell.is-side-collapsed .sf-nav-item span,
.sf-shell.is-side-collapsed .sf-side-foot {
  display: none;
}
.sf-shell.is-side-collapsed .sf-brand::after {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background: url("/images/seoflow-icon.png") center / contain no-repeat;
}
.sf-shell.is-side-collapsed .sf-nav-item {
  justify-content: center;
  padding: 10px;
}
.sf-shell.is-side-collapsed .sf-brand {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

/* ——— Top ——— */
.sf-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.sf-top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--sf-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sf-line);
}
.sf-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sf-collapse-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--sf-line);
  border-radius: 9px;
  background: #fff;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sf-collapse-btn:hover {
  background: var(--sf-blue-soft);
  color: var(--sf-blue);
  border-color: #c7dbff;
}
.sf-collapse-btn svg { width: 16px; height: 16px }
.sf-top-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #111827;
}
.sf-top-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
}
.sf-top-crumb .sf-crumb-sep { color: #cbd5e1 }
.sf-crumb-link {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  border-radius: 4px;
}
.sf-crumb-link:hover {
  color: #0ea5e9;
  text-decoration: underline;
}
.sf-crumb-link.is-current,
.sf-crumb-link:disabled {
  color: #334155;
  font-weight: 600;
  cursor: default;
  text-decoration: none;
  pointer-events: none;
}
.sf-crumb-tail {
  color: #334155;
  font-weight: 600;
}
.sf-shell.is-svc-header .sf-top-title { display: none }
.sf-shell.is-svc-header .sf-collapse-btn { display: none }
.sf-shell:not(.is-svc-header) .sf-top-crumb { display: none }
.sf-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sf-icon-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8eaf0;
}
.sf-icon-group .sf-icon-btn {
  width: 32px;
  height: 32px;
}
.sf-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  padding: 4px 12px 4px 4px;
  border-left: 0;
  border: 1px solid #e8eaf0;
  border-radius: 999px;
  background: #f3f4f6;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.sf-user-pill:hover {
  background: #ebecef;
  border-color: #dde1e8;
}
.sf-user-wrap {
  position: relative;
}
.sf-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 80;
}
.sf-user-menu-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}
.sf-user-menu-head strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.sf-user-menu-head span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  text-align: left;
}
.sf-user-menu-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #64748b;
}
.sf-user-menu-item:hover {
  background: #f8fafc;
  color: #0f172a;
}
.sf-user-menu-item.is-danger {
  color: #dc2626;
}
.sf-user-menu-item.is-danger svg { color: #dc2626 }
.sf-user-menu-item.is-danger:hover { background: #fef2f2 }
.sf-user-menu-sep {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 4px;
}
.sf-ico-sun[hidden],
.sf-ico-moon[hidden] { display: none }
html.sf-dark .sf-ico-moon { display: none }
html.sf-dark .sf-ico-sun { display: block }
html:not(.sf-dark) .sf-ico-sun { display: none }
html:not(.sf-dark) .sf-ico-moon { display: block }
.sf-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: none;
}
.sf-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid #a7f3d0;
}
.sf-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.sf-pill-date {
  background: #fff;
  color: #6b7280;
  border-color: var(--sf-line);
  font-weight: 500;
}
.sf-pill-date::before {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  border: 1.5px solid #9ca3af;
  background-image: linear-gradient(#9ca3af, #9ca3af);
  background-size: 7px 1.5px;
  background-position: center 3px;
  background-repeat: no-repeat;
}

/* Combined status pill (mẫu LikePion) */
.sf-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf6ff;
  border: 1px solid #cce7ff;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
}
.sf-status-pts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16a34a;
}
.sf-status-pts::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.sf-status-div {
  width: 1px;
  height: 14px;
  background: #b8d9f5;
}
.sf-status-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 500;
}
.sf-status-date::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1.5px solid #94a3b8;
  background-image: linear-gradient(#94a3b8, #94a3b8);
  background-size: 7px 1.5px;
  background-position: center 3px;
  background-repeat: no-repeat;
  box-sizing: border-box;
}
.sf-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6b7280;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sf-icon-btn:hover {
  background: #f3f4f6;
  color: #111827;
}
.sf-icon-btn svg { width: 17px; height: 17px }
.sf-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.sf-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sf-user-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  color: #111827;
}
.sf-user-meta span {
  display: block;
  font-size: 11.5px;
  color: var(--sf-muted);
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-content {
  padding: 20px 22px 32px;
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}
.sf-view[hidden] { display: none !important }

/* ——— Welcome / hero ——— */
.sf-welcome {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(520px 220px at 0% 100%, rgba(124, 92, 252, 0.16), transparent 58%),
    radial-gradient(420px 180px at 70% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(118deg, #f6f3ff 0%, #eef4ff 46%, #f8fafc 100%);
  border: 1px solid #e6e0ff;
  box-shadow: var(--sf-shadow);
  margin-bottom: 16px;
}
.sf-welcome::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: 28%;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.18), transparent 70%);
  pointer-events: none;
  animation: sf-glow 6s ease-in-out infinite alternate;
}
@keyframes sf-glow {
  from { transform: translate(0, 0) scale(1); opacity: 0.7 }
  to { transform: translate(18px, 12px) scale(1.12); opacity: 1 }
}
.sf-welcome-left {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sf-greet {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sf-spark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #7c5cfc;
  flex: 0 0 auto;
}
.sf-spark svg {
  width: 26px;
  height: 26px;
  display: block;
  shape-rendering: geometricPrecision;
  transform-origin: 50% 50%;
  animation: sf-spark-twinkle 1.7s ease-in-out infinite;
}
@keyframes sf-spark-twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg) }
  50% { opacity: 0.55; transform: scale(1.14) rotate(10deg) }
}
@media (prefers-reduced-motion: reduce) {
  .sf-spark svg { animation: none }
}
.sf-pts-label {
  margin: 0 0 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: #9ca3af;
}
.sf-pts-big {
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
.sf-pts-num {
  font-size: 42px;
  font-weight: 750;
  letter-spacing: -0.045em;
  color: #111827;
  font-variant-numeric: tabular-nums;
}
.sf-pts-unit {
  font-size: 17px;
  font-weight: 500;
  color: #4b5563;
}
.sf-pts-used {
  margin: 0 0 14px;
  font-size: 13px;
  color: #9ca3af;
}
.sf-welcome-hr {
  width: 100%;
  max-width: 440px;
  margin: 0 0 12px;
  border: 0;
  border-top: 1px solid rgba(209, 213, 219, 0.75);
}
.sf-tags { display: flex; flex-wrap: wrap; gap: 8px }
.sf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
}
.sf-tag svg { width: 14px; height: 14px; flex: 0 0 auto }
.sf-tag-muted {
  background: rgba(255, 255, 255, 0.78);
  color: #4b5563;
  border: 1px solid #e5e7eb;
  backdrop-filter: blur(4px);
}
.sf-tag-accent {
  background: var(--sf-purple-soft);
  color: var(--sf-purple);
  border: 1px solid #ddd4ff;
}

/* Quick actions — chỉ nút, không khung card */
.sf-quick {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s, filter 0.15s;
  white-space: nowrap;
}
.sf-btn svg { width: 15px; height: 15px; flex: 0 0 auto }
.sf-btn:hover { transform: translateY(-1px) }
.sf-btn:active { transform: translateY(0) }
.sf-btn-primary {
  background: linear-gradient(180deg, #8b6fff 0%, var(--sf-purple) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 92, 252, 0.38);
}
.sf-btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 18px rgba(124, 92, 252, 0.45);
}
.sf-btn-soft {
  background: linear-gradient(180deg, #f0f7ff 0%, #e3efff 100%);
  color: #2563eb;
  border-color: #cfe0ff;
}
.sf-btn-soft:hover {
  background: #dbeafe;
}
.sf-btn-ghost {
  background: #fff;
  color: #374151;
  border-color: #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sf-btn-ghost:hover {
  border-color: #d1d5db;
  background: #fafafa;
}
.sf-quick .sf-btn { width: 100% }

/* ——— Stats ——— */
.sf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.sf-stat {
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 15px 16px;
  box-shadow: var(--sf-shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.sf-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--sf-shadow-hover);
}
.sf-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sf-stat-top > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--sf-muted);
}
.sf-stat-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.sf-stat-ico svg { width: 17px; height: 17px }
.sf-stat-ico.is-green { background: #ecfdf5; color: #10b981 }
.sf-stat-ico.is-blue { background: #eff6ff; color: #3b82f6 }
.sf-stat-ico.is-check { background: #ecfdf5; color: #059669 }
.sf-stat-ico.is-purple { background: #f5f3ff; color: #7c3aed }
.sf-stat b {
  display: block;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.035em;
  color: #111827;
  line-height: 1.1;
}
.sf-stat > span {
  color: var(--sf-muted);
  font-size: 12.5px;
}

/* ——— Bottom grid ——— */
.sf-grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 12px;
}
.sf-card {
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 16px 18px;
  min-height: 240px;
  box-shadow: var(--sf-shadow);
  transition: box-shadow 0.18s, transform 0.18s;
}
.sf-card:hover {
  box-shadow: var(--sf-shadow-hover);
}
.sf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.sf-card h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
  color: #111827;
}
.sf-card-link {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--sf-blue);
}
.sf-card-link:hover { text-decoration: underline }
.sf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 180px;
  color: var(--sf-muted);
  font-size: 13.5px;
  padding: 8px 12px 4px;
}
.sf-empty p { margin: 0; max-width: 280px; line-height: 1.45 }
.sf-empty-ico-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f5f3ff, #ebe6ff);
  color: var(--sf-purple);
  box-shadow: inset 0 0 0 1px #ddd4ff, 0 8px 20px rgba(124, 92, 252, 0.12);
  margin-bottom: 4px;
}
.sf-empty-ico-wrap svg { width: 32px; height: 32px }
.sf-empty .sf-btn {
  min-width: 156px;
  margin-top: 6px;
}
.sf-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sf-stack .sf-card {
  min-height: 0;
  flex: 1;
}
.sf-muted-line {
  margin: 18px 0 0;
  color: var(--sf-muted);
  font-size: 13.5px;
}

/* ——— Tabs / toolbar / table ——— */
.sf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sf-line);
}
.sf-tab {
  border: 0;
  background: transparent;
  color: var(--sf-muted);
  font-weight: 500;
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: var(--sf-radius-sm);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.sf-tab.is-active {
  background: var(--sf-blue-soft);
  color: var(--sf-blue);
  font-weight: 600;
}
.sf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.sf-toolbar .sf-grow { margin-left: auto }
.sf-select,
.sf-input {
  min-height: 36px;
  border: 1px solid var(--sf-line);
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
  color: var(--sf-ink);
  font-size: 13.5px;
}
.sf-table-wrap {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  overflow: auto;
  box-shadow: var(--sf-shadow);
}
.sf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sf-table th,
.sf-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}
.sf-table th {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  background: #fafbfd;
}
.sf-table tr:last-child td { border-bottom: 0 }

/* Service page (LikePion sample) */
.sf-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.sf-crumb-sep { color: #cbd5e1; font-size: 14px }
.sf-crumb-cur { color: #334155; font-weight: 600 }
/* Service page — tabs riêng / toolbar trên nền / bảng riêng */
.sf-svc-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-svc-nav {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: visible;
}
.sf-svc-board {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.sf-svc-bar {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.sf-panel {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  box-shadow: var(--sf-shadow);
  overflow: hidden;
}
.sf-tabs-line {
  margin: 0;
  padding: 0 6px;
  border-bottom: 0;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.sf-svc-nav .sf-tabs-line { border-bottom: 0 }
.sf-tabs-line .sf-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 0;
  padding: 12px 13px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: 0;
}
.sf-tabs-line .sf-tab svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
}
.sf-tabs-line .sf-tab .sf-tab-caret {
  width: 12px;
  height: 12px;
  opacity: 0.55;
  margin-left: -2px;
}
.sf-tabs-line .sf-tab.is-active {
  color: #0ea5e9;
  background: transparent;
  font-weight: 600;
  border-bottom-color: #0ea5e9;
}
.sf-tabs-line .sf-tab.is-active:hover { background: #f0f9ff }
.sf-tab-dd {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
}
.sf-tab-menu {
  position: fixed;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 120;
}
.sf-tab-menu[hidden] { display: none !important }
.sf-tab-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  text-align: left;
}
.sf-tab-menu button svg {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex: 0 0 auto;
}
.sf-tab-menu button:hover {
  background: #f0f9ff;
  color: #0284c7;
}
.sf-tab-menu button:hover svg { color: #0ea5e9 }
.sf-toolbar-svc {
  margin: 0;
  padding: 2px 0;
  border-bottom: 0;
  gap: 8px;
}
.sf-toolbar.sf-toolbar-svc { margin-bottom: 0 }
.sf-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #dde1e8;
  border-radius: 8px;
  background: #fff;
  color: #94a3b8;
  min-width: 200px;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
}
.sf-search svg { width: 15px; height: 15px; flex: 0 0 auto }
.sf-search input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
  font-size: 13.5px;
  color: var(--sf-ink);
  min-height: 34px;
}
.sf-search input::placeholder { color: #94a3b8 }
.sf-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #dde1e8;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
}
.sf-tool-btn > svg:first-child { width: 15px; height: 15px; color: #64748b }
.sf-tool-btn:hover { background: #fafbfd; border-color: #c9d0da }
.sf-chev-pair {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  margin-left: 2px;
  opacity: 0.55;
}
.sf-chev-pair svg {
  width: 10px;
  height: 8px;
  display: block;
}
.sf-tool-ico {
  width: 36px;
  height: 36px;
  border: 1px solid #dde1e8;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
}
.sf-tool-ico svg { width: 16px; height: 16px }
.sf-tool-ico:hover { background: #fafbfd; color: #0ea5e9; border-color: #bae6fd }
.sf-btn-sky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.28);
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  border: 0;
}
.sf-btn-sky svg { width: 15px; height: 15px }
.sf-btn-sky:hover {
  background: #0284c7;
  filter: none;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.sf-table-svc {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 360px;
}
.sf-svc-board .sf-table-svc {
  min-height: 380px;
}
.sf-table-svc .sf-table {
  table-layout: fixed;
  width: 100%;
  font-size: 13px;
}
.sf-table-svc .sf-table th,
.sf-table-svc .sf-table td {
  padding: 12px 10px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-table-svc .sf-table th {
  background: #f3f5f8;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  border-bottom: 1px solid #e8ecf1;
}
.sf-table-svc .sf-table th.sf-th-check,
.sf-table-svc .sf-table td:first-child {
  padding-left: 14px;
  padding-right: 6px;
  width: 42px;
  text-overflow: clip;
}
.sf-table-backlinks .sf-col-check { width: 40px }
.sf-table-backlinks .sf-col-id { width: 52px }
.sf-table-backlinks .sf-col-name { width: 22% }
.sf-table-backlinks .sf-col-mail { width: 12% }
.sf-table-backlinks .sf-col-pass { width: 10% }
.sf-table-backlinks .sf-col-points { width: 8% }
.sf-table-backlinks .sf-col-result { width: 7% }
.sf-table-backlinks .sf-col-dl { width: 7% }
.sf-table-backlinks .sf-col-date { width: 8.5% }
.sf-table-backlinks .sf-col-status { width: 9% }
.sf-table-indexing .sf-col-check { width: 40px }
.sf-table-indexing .sf-col-id { width: 56px }
.sf-table-indexing .sf-col-name { width: 48% }
.sf-table-indexing .sf-col-result { width: 14% }
.sf-table-indexing .sf-col-date { width: 16% }
.sf-table-indexing .sf-col-status { width: 14% }
.sf-search-wide { min-width: 260px }
.sf-table-svc .sf-sort {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  vertical-align: -2px;
  opacity: 0.4;
  color: #94a3b8;
}
.sf-table-svc .sf-sort svg {
  width: 9px;
  height: 12px;
  display: block;
}
.sf-table-svc .sf-sort svg path { fill: currentColor; stroke: none }
.sf-empty-svc {
  min-height: 280px;
  color: #94a3b8;
}
.amt-plus { color: #059669; font-weight: 700 }
.amt-minus { color: #dc2626; font-weight: 700 }
.sf-empty-db {
  width: 72px;
  height: 72px;
  color: #cbd5e1;
  margin-bottom: 4px;
}

/* ——— Packages ——— */
.sf-packs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.sf-pack {
  position: relative;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.sf-pack:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.sf-pack.is-hot {
  border-color: #7dd3fc;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.12);
}
.sf-pack-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0ea5e9;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
}
.sf-pack h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}
.sf-pack .price {
  font-size: 22px;
  font-weight: 750;
  color: #0ea5e9;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.sf-pack .price span {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 2px;
}
.sf-pack ul {
  margin: 4px 0 10px;
  padding: 0;
  list-style: none;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
  display: grid;
  gap: 6px;
}
.sf-pack ul li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sf-pack ul svg {
  width: 14px;
  height: 14px;
  color: #0ea5e9;
  flex: 0 0 auto;
}
.sf-pack-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
}
.sf-pack-pick input {
  accent-color: #0ea5e9;
  width: 15px;
  height: 15px;
}
.sf-buy-btn { text-decoration: none }

.sf-pack.is-selected {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.sf-pack.is-selected .sf-pack-pick-text {
  color: #0284c7;
  font-weight: 650;
}

/* ——— Checkout drawer (LikePion) ——— */
.sf-pay-drawer { z-index: 86 }
.sf-pay-drawer .sf-drawer-backdrop {
  background: rgba(15, 23, 42, 0.52);
}
.sf-pay-promo-msg:empty { display: none }
.sf-pay-drawer-panel {
  width: min(420px, 100vw);
  background: #fff;
  overflow: hidden;
}
.sf-pay-drawer-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 8px;
}
.sf-pay-drawer-foot {
  flex: 0 0 auto;
  padding: 12px 22px 18px;
  background: #fff;
}
.sf-pay-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.sf-pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.sf-pay-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
}
.sf-pay-method svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.sf-pay-method.is-on {
  border-color: #38bdf8;
  background: #f0f9ff;
  color: #0369a1;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.sf-pay-promo {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.sf-pay-promo-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.sf-pay-promo-field svg {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  flex: 0 0 auto;
}
.sf-pay-promo-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: #0f172a;
  text-transform: uppercase;
}
.sf-pay-promo-field input::placeholder {
  text-transform: none;
  color: #94a3b8;
}
.sf-pay-promo-apply {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #e2e8f0;
  color: #64748b;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.sf-pay-promo-apply:hover { background: #cbd5e1; color: #334155 }
.sf-pay-promo-apply.is-ready {
  background: #38bdf8;
  color: #fff;
}
.sf-pay-promo-msg {
  margin: -14px 0 16px;
  font-size: 12.5px;
}
.sf-pay-promo-msg.is-ok { color: #047857 }
.sf-pay-promo-msg.is-err { color: #dc2626 }
.sf-pay-bill {
  border: 1px solid #eef1f5;
  border-radius: 12px;
  padding: 16px 16px 8px;
  background: #fcfdff;
}
.sf-pay-bill h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.sf-pay-bill-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  font-size: 13.5px;
  color: #64748b;
}
.sf-pay-bill-row b {
  color: #0f172a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sf-pay-bill-row.is-pts b { color: #0ea5e9 }
.sf-pay-bill-row.is-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  color: #64748b;
}
.sf-pay-bill-row.is-total b {
  color: #0ea5e9;
  font-size: 16px;
  font-weight: 800;
}
.sf-pay-confirm {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #38bdf8;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
}
.sf-pay-confirm:hover { background: #0ea5e9 }
.sf-pay-confirm:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none }
.sf-pay-qr {
  display: grid;
  place-items: center;
  margin: 8px 0 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}
.sf-pay-qr img {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 8px;
}
.sf-pay-hint {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.55;
  text-align: center;
}
.sf-pay-ok {
  text-align: center;
  padding: 18px 8px 8px;
}
.sf-pay-ok strong { display: block; font-size: 16px; color: #047857; margin-bottom: 6px }
.sf-pay-ok p { margin: 0; color: #475569; font-size: 13.5px }
.sf-pay-status {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #0284c7;
  text-align: center;
}
.sf-pay-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: #64748b;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
}
.sf-pay-meta b { color: #0f172a; font-weight: 700 }

/* ——— Settings ——— */
.sf-settings-card {
  padding: 0;
  overflow: hidden;
}
.sf-settings-tabs {
  padding: 0 10px;
  border-bottom: 1px solid #eef1f5;
}
.sf-settings-body {
  padding: 18px 20px 20px;
}
.sf-settings-body[hidden] {
  display: none !important;
}
.sf-settings-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.sf-settings-ui:not([hidden]) {
  display: grid;
  gap: 14px;
  max-width: 720px;
}
.sf-pref-block {
  max-width: 520px;
}
.sf-pref-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.sf-pref-card {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  background: #fff;
}
.sf-pref-copy h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.sf-pref-copy .sf-pref-desc { margin: 0 }
.sf-theme-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sf-theme-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.sf-theme-pick svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}
.sf-theme-pick:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}
.sf-theme-pick.is-active {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}
.sf-theme-pick.is-active svg { color: #3b82f6 }
.sf-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.sf-select-wrap svg {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex: 0 0 auto;
}
.sf-select-wrap select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sf-ink);
  font-size: 13.5px;
  font-weight: 500;
  min-height: 40px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 18px;
}
.sf-input-pass {
  padding-right: 6px;
}
.sf-pass-toggle {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.sf-pass-toggle:hover {
  background: #f1f5f9;
  color: #475569;
}
.sf-pass-toggle svg {
  width: 17px;
  height: 17px;
}
.sf-form-actions .sf-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.sf-form {
  max-width: 520px;
  display: grid;
  gap: 14px;
}
.sf-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.sf-input-ico {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #dde1e8;
  border-radius: 9px;
  background: #fff;
}
.sf-input-ico svg {
  width: 16px;
  height: 16px;
  color: #334155;
  flex: 0 0 auto;
}
.sf-input-ico .sf-phone-ico { color: #dc2626 }
.sf-input-ico .sf-at {
  width: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}
.sf-input-ico input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  min-height: 38px;
  font-size: 13.5px;
  color: var(--sf-ink);
  padding: 0;
}
.sf-input-ico:has(input:disabled) {
  background: #f8fafc;
}
.sf-field input:disabled {
  color: #64748b;
}
.sf-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--sf-muted);
}
.sf-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.sf-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: #f3f4f6;
  color: #334155;
  place-items: center;
  cursor: pointer;
}
.sf-menu-btn svg { width: 18px; height: 18px }

@media (max-width: 1100px) {
  .sf-stats { grid-template-columns: repeat(2, 1fr) }
  .sf-packs { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .sf-welcome,
  .sf-grid-2 { grid-template-columns: 1fr }
  .sf-quick { max-width: 200px }
}
@media (max-width: 860px) {
  .sf-shell,
  .sf-shell.is-side-collapsed { grid-template-columns: 1fr }
  .sf-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sf-side);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.12);
  }
  .sf-shell.is-nav-open .sf-side { transform: translateX(0) }
  .sf-menu-btn { display: grid }
  .sf-collapse-btn { display: none }
  .sf-user-meta { display: none }
  .sf-packs { grid-template-columns: 1fr }
  .sf-content { padding: 16px }
  .sf-quick { max-width: none }
}
@media (prefers-reduced-motion: reduce) {
  .sf-side,
  .sf-nav-item,
  .sf-btn,
  .sf-stat,
  .sf-pack,
  .sf-welcome::before { transition: none; animation: none }
}

/* ——— Create request (backlink profile/new) ——— */
.sf-new-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(380px, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: none;
}
.sf-new-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.sf-new-card {
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 14px;
  padding: 20px 20px 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.sf-new-h {
  margin: 0 0 16px;
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
}
.sf-new-field {
  margin-bottom: 14px;
  position: relative;
}
.sf-new-field:last-child { margin-bottom: 0 }
.sf-new-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
.sf-new-field .req { color: #ef4444 }
.sf-new-field .sf-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}
.sf-new-field.has-count-foot .sf-count-foot {
  display: block;
  margin-top: 5px;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}
.sf-new-field input,
.sf-new-field select,
.sf-new-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dde1e8;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-size: 14px;
  color: var(--sf-ink);
  outline: 0;
}
.sf-new-field textarea {
  min-height: 140px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
.sf-new-field input:focus,
.sf-new-field select:focus,
.sf-new-field textarea:focus {
  border-color: #93c5fd;
  background: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.sf-new-field select.sf-select-placeholder:invalid {
  color: #94a3b8;
}
.sf-new-field select.sf-select-placeholder option {
  color: #0f172a;
}
.sf-new-field select.sf-select-placeholder option[hidden] {
  display: none;
}
.sf-new-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.sf-new-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}
input.is-readonly,
.sf-new-field input.is-readonly {
  background: #f1f5f9;
  color: #64748b;
  cursor: default;
}
.sf-field-hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #94a3b8;
}
.sf-field-hint.sf-hint-above {
  margin: 0 0 8px;
  line-height: 1.45;
}
.sf-new-h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sf-new-h-row .sf-new-h {
  margin: 0;
}
.sf-mode-toggle {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.sf-mode-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
}
.sf-mode-btn.is-active {
  background: #fff;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.sf-mode-btn:hover:not(.is-active) {
  color: #334155;
}
.sf-check-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
}
.sf-check-block input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #0ea5e9;
  flex: 0 0 auto;
}
.sf-check-block strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}
.sf-check-block em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.45;
  color: #94a3b8;
}
.sf-comment-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12.5px;
  color: #94a3b8;
}
.sf-comment-foot #sfCmBodyCount {
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.sf-new-actions .sf-btn-ghost {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
}
.sf-text-link {
  border: 0;
  background: none;
  padding: 0;
  color: #0ea5e9;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
}
.sf-text-link:hover { text-decoration: underline; color: #0284c7 }
.sf-ed-tab.is-spin {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}
.sf-sum-plain .sf-sum-dash {
  text-align: center;
  padding: 18px 16px 8px;
  color: #94a3b8;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.sf-sum-titled .sf-sum-title {
  margin: 0;
  padding: 16px 18px 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid #eef0f4;
}
.sf-sum-list dd.is-cost-blue {
  color: #0ea5e9;
}
.sf-upload-lg {
  min-height: 88px;
  flex-direction: column;
  gap: 6px;
}
.sf-create-wrap {
  position: relative;
  display: inline-flex;
}
.sf-btn-sky .sf-dd-caret {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  opacity: 0.95;
}
.sf-btn-sky .sf-dd-caret[hidden] {
  display: none !important;
}
.sf-create-menu[hidden] {
  display: none !important;
}
.sf-create-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  padding: 6px;
  z-index: 40;
}
.sf-create-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  text-align: left;
}
.sf-create-menu button svg {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex: 0 0 auto;
}
.sf-create-menu button:hover {
  background: #f0f9ff;
  color: #0284c7;
}
.sf-create-menu button:hover svg { color: #0ea5e9 }
.sf-new-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.sf-new-label-row label { margin-bottom: 0 }
.sf-editor-tabs {
  display: inline-flex;
  gap: 4px;
}
.sf-ed-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.sf-ed-tab.is-active {
  color: #0ea5e9;
  border-color: #bae6fd;
  background: #f0f9ff;
}
.sf-ed-tab.is-ai {
  color: #0284c7;
  background: #e0f2fe;
  border-color: #bae6fd;
}
.sf-editor {
  border: 1px solid #dde1e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.sf-editor-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid #eef1f5;
  background: #fafbfd;
}
.sf-editor-bar button {
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.sf-editor-bar button:hover { background: #eef2f7; color: #0ea5e9 }
.sf-editor-bar button:active { background: #e0f2fe; color: #0284c7 }
.sf-editor-bar svg { width: 15px; height: 15px }
.sf-editor.is-html textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
.sf-ed-sep {
  width: 1px;
  height: 16px;
  background: #e5e7eb;
  margin: 0 4px;
}
.sf-editor textarea {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  min-height: 150px;
}
.sf-editor-foot {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 6px 12px 8px;
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
}
.sf-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fafbfd;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.sf-upload:hover {
  border-color: #7dd3fc;
  color: #0284c7;
  background: #f0f9ff;
}
.sf-upload svg { width: 18px; height: 18px }
.sf-upload.has-preview {
  padding: 0;
  min-height: 96px;
  overflow: hidden;
  position: relative;
}
.sf-upload.has-preview > svg,
.sf-upload.has-preview > span { display: none; }
.sf-upload.has-preview img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}
.sf-field-hint {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
}
.sf-sum-hero.has-img {
  background-size: cover !important;
  background-position: center !important;
}
.sf-sum-avatar.has-img {
  overflow: hidden;
  padding: 0;
  color: transparent;
}
.sf-sum-avatar.has-img svg { display: none; }
.sf-sum-avatar.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sf-new-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 20px;
}
.sf-btn-lg {
  min-height: 42px;
  padding: 0 22px;
  font-size: 14.5px;
  border-radius: 9px;
}
.sf-btn-green {
  background: #22c55e;
  color: #fff;
  border: 0;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.28);
}
.sf-btn-green:hover {
  background: #16a34a;
  filter: none;
}
.sf-new-sum {
  position: sticky;
  top: calc(var(--sf-top) + 16px);
  width: 100%;
  max-width: none;
  justify-self: stretch;
}
.sf-sum-card {
  background: #fff;
  border: 1px solid #e7eaef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}
.sf-sum-hero {
  height: 110px;
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(147, 197, 253, 0.55), transparent 55%),
    linear-gradient(180deg, #bddafc 0%, #dcebff 40%, #f3f8ff 100%);
}
.sf-sum-avatar {
  width: 76px;
  height: 76px;
  margin: -38px auto 0;
  border-radius: 999px;
  background: #eef2f6;
  border: 4px solid #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.sf-sum-avatar svg { width: 36px; height: 36px }
.sf-sum-id {
  text-align: center;
  padding: 12px 20px 16px;
}
.sf-sum-id strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.sf-sum-id span {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.3;
}
.sf-sum-list {
  margin: 0;
  padding: 2px 22px 18px;
  border-top: 1px solid #eef1f5;
}
.sf-sum-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 14px;
}
.sf-sum-list > div:last-child { border-bottom: 0 }
.sf-sum-list dt {
  margin: 0;
  color: #64748b;
  font-weight: 500;
  font-size: 14px;
}
.sf-sum-list dd {
  margin: 0;
  color: #1e293b;
  font-weight: 600;
  text-align: right;
  font-size: 14px;
  word-break: break-all;
}
.sf-sum-list dd.is-cost {
  color: #ef4444;
  font-weight: 750;
  font-size: 15px;
}
.sf-cost-note {
  margin-top: 12px;
  padding: 18px 20px 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.sf-cost-note-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #1e293b;
  letter-spacing: -0.01em;
}
.sf-cost-note-desc {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: #64748b;
}
.sf-cost-note-list {
  margin: 0;
  display: grid;
  gap: 8px;
}
.sf-cost-note-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.sf-cost-note-list dt {
  margin: 0;
  font-size: 13.5px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.4;
}
.sf-cost-note-list dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}
.sf-cost-note-list div:last-child dd {
  font-weight: 750;
}
.sf-sum-foot {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eef0f4;
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}
.sf-table th[hidden],
.sf-table td[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .sf-new-layout { grid-template-columns: 1fr }
  .sf-new-sum { position: static; width: 100%; max-width: 420px; margin: 0 auto; justify-self: center }
}
@media (max-width: 720px) {
  .sf-new-grid-2,
  .sf-new-grid-3 { grid-template-columns: 1fr }
  .sf-new-actions { flex-direction: column }
}

/* ——— Indexing create drawer (LikePion-style) ——— */
.sf-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.sf-drawer:not([hidden]) {
  pointer-events: auto;
}
.sf-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.sf-drawer.is-open .sf-drawer-backdrop {
  opacity: 1;
}
.sf-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.sf-drawer.is-open .sf-drawer-panel {
  transform: translateX(0);
}
.sf-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eef0f4;
  flex: 0 0 auto;
}
.sf-drawer-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}
.sf-drawer-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.sf-drawer-close svg { width: 18px; height: 18px }
.sf-drawer-close:hover {
  background: #f1f5f9;
  color: #475569;
}
.sf-drawer-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 0;
  gap: 16px;
}
.sf-drawer-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf-drawer-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}
.sf-req { color: #ef4444; font-weight: 700 }
.sf-drawer-field input,
.sf-drawer-field textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: none;
}
.sf-drawer-field textarea {
  min-height: 88px;
  height: 88px;
  max-height: min(52vh, 420px);
  line-height: 1.5;
  overflow-y: hidden;
  field-sizing: content;
}
.sf-drawer-field input:focus,
.sf-drawer-field textarea:focus {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.sf-drawer-field input::placeholder,
.sf-drawer-field textarea::placeholder {
  color: #94a3b8;
}
.sf-drawer-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 0 20px;
  flex: 0 0 auto;
  margin-top: auto;
}
.sf-drawer-foot .sf-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.sf-drawer-foot .sf-btn-green {
  background: #22c55e;
  color: #fff;
  border: 0;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.28);
}
.sf-drawer-foot .sf-btn-green:hover {
  background: #16a34a;
}

body.sf-drawer-open {
  overflow: hidden;
}

/* ——— Import group modal ——— */
.sf-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.sf-modal[hidden] { display: none !important }
.sf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.sf-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}
.sf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #eef0f4;
}
.sf-modal-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}
.sf-modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.sf-modal-close svg { width: 18px; height: 18px }
.sf-modal-close:hover { background: #f1f5f9; color: #475569 }
.sf-modal-body { padding: 16px 18px 8px }
.sf-modal-body .sf-new-field { margin-bottom: 12px }
.sf-sample-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  margin: 0 0 14px;
  color: #0ea5e9;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.sf-sample-link svg { width: 16px; height: 16px }
.sf-sample-link:hover { color: #0284c7; text-decoration: underline }
.sf-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 20px 16px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  background: #fafbfd;
  color: #64748b;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.sf-dropzone:hover,
.sf-dropzone.is-drag {
  border-color: #7dd3fc;
  background: #f0f9ff;
  color: #0284c7;
}
.sf-dropzone svg {
  width: 36px;
  height: 36px;
  color: #38bdf8;
}
.sf-dropzone strong {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.sf-dropzone span {
  font-size: 12.5px;
  color: #94a3b8;
  max-width: 280px;
  line-height: 1.4;
}
.sf-dropzone em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: #0ea5e9;
}
.sf-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px 18px;
}
.sf-modal-foot .sf-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.sf-btn-ghost {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 600;
}
.sf-btn-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
body.sf-modal-open { overflow: hidden }

/* ——— Dark theme ——— */
html.sf-dark {
  color-scheme: dark;
  --sf-bg: #121418;
  --sf-surface: #1c1f26;
  --sf-ink: #e8eaef;
  --sf-muted: #9aa3b2;
  --sf-line: #2a2f3a;
  --sf-purple-soft: #2a2440;
  --sf-blue-soft: #1a2740;
  --sf-shadow: 0 1px 2px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.28);
  --sf-shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.3), 0 16px 32px rgba(0, 0, 0, 0.32);
}
html.sf-dark body.sf-dash { background: var(--sf-bg); color: var(--sf-ink) }
html.sf-dark .sf-side {
  background: #16191f;
  border-right-color: #2a2f3a;
}
html.sf-dark .sf-nav-item { color: #c5cad3 }
html.sf-dark .sf-nav-item:hover { background: #22262e; color: #fff }
html.sf-dark .sf-nav-item.is-active {
  background: #1e3a5f;
  color: #7dd3fc;
}
html.sf-dark .sf-nav-label { color: #7b8494 }
html.sf-dark .sf-top {
  background: #16191f;
  border-bottom-color: #2a2f3a;
}
html.sf-dark .sf-top-title,
html.sf-dark .sf-crumb-link.is-current,
html.sf-dark .sf-crumb-tail { color: #e8eaef }
html.sf-dark .sf-icon-group,
html.sf-dark .sf-user-pill {
  background: #22262e;
  border-color: #323842;
}
html.sf-dark .sf-user-pill:hover { background: #2a2f38 }
html.sf-dark .sf-icon-btn { color: #9aa3b2 }
html.sf-dark .sf-icon-btn:hover { background: #2a2f38; color: #e8eaef }
html.sf-dark .sf-status-pill {
  background: #1a2740;
  border-color: #274060;
  color: #e8eaef;
}
html.sf-dark .sf-status-date { color: #9aa3b2 }
html.sf-dark .sf-status-div { background: #334155 }
html.sf-dark .sf-user-meta strong { color: #f1f5f9 }
html.sf-dark .sf-user-meta span { color: #94a3b8 }
html.sf-dark .sf-user-menu {
  background: #1c1f26;
  border-color: #323842;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
html.sf-dark .sf-user-menu-head { border-bottom-color: #2a2f3a }
html.sf-dark .sf-user-menu-head strong { color: #f1f5f9 }
html.sf-dark .sf-user-menu-item { color: #cbd5e1 }
html.sf-dark .sf-user-menu-item:hover { background: #262b35; color: #fff }
html.sf-dark .sf-user-menu-sep { background: #2a2f3a }
html.sf-dark .sf-card,
html.sf-dark .sf-welcome,
html.sf-dark .sf-stat,
html.sf-dark .sf-settings-card,
html.sf-dark .sf-pref-card {
  background: var(--sf-surface);
  border-color: var(--sf-line);
}
html.sf-dark .sf-spark { color: #c4b5fd }
html.sf-dark .sf-settings-tabs { border-bottom-color: #2a2f3a }
html.sf-dark .sf-tab { color: #9aa3b2 }
html.sf-dark .sf-tab.is-active { color: #60a5fa }
html.sf-dark .sf-input-ico,
html.sf-dark .sf-select-wrap,
html.sf-dark .sf-theme-pick {
  background: #16191f;
  border-color: #323842;
  color: #e8eaef;
}
html.sf-dark .sf-input-ico:has(input:disabled) { background: #1a1d24 }
html.sf-dark .sf-theme-pick:hover {
  background: #1a2740;
  border-color: #3b82f6;
}
html.sf-dark .sf-theme-pick.is-active {
  background: #1e3a5f;
  border-color: #3b82f6;
  color: #93c5fd;
}
html.sf-dark .sf-field label { color: #cbd5e1 }
html.sf-dark .sf-pref-desc,
html.sf-dark .sf-hint { color: #94a3b8 }
html.sf-dark .sf-btn-ghost {
  background: #22262e;
  border-color: #323842;
  color: #cbd5e1;
}
html.sf-dark .sf-btn-ghost:hover { background: #2a2f38 }
html.sf-dark .sf-pass-toggle:hover { background: #2a2f38; color: #e2e8f0 }
html.sf-dark .sf-select-wrap select {
  color: #e8eaef;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.sf-job-st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.sf-job-st::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.sf-job-st--queued { background: #fff7ed; color: #c2410c }
.sf-job-st--queued::before { background: #f97316 }
.sf-job-st--running { background: #eff6ff; color: #1d4ed8 }
.sf-job-st--running::before { background: #3b82f6 }
.sf-job-st--done { background: #ecfdf5; color: #047857 }
.sf-job-st--done::before { background: #10b981 }
.sf-job-st--failed { background: #fef2f2; color: #b91c1c }
.sf-job-st--failed::before { background: #ef4444 }
.sf-job-result {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0284c7;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.sf-job-result:hover { text-decoration: underline }
.sf-job-dl {
  appearance: none;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
.sf-job-dl:hover { background: #e0f2fe }
.sf-job-dl:disabled { opacity: .55; cursor: default }
.sf-td-pass { font-variant-numeric: tabular-nums; word-break: break-all }
.sf-result-card { width: min(820px, 100%) }
.sf-modal-head-acts { display: flex; align-items: center; gap: 8px }
.sf-modal-head-acts .sf-btn { padding: 7px 12px; font-size: 12.5px }
.sf-result-meta {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.45;
}
.sf-result-meta b { color: #0f172a; font-weight: 700; word-break: break-all }
.sf-result-table { width: 100%; border-collapse: collapse; font-size: 13px }
.sf-result-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f7;
}
.sf-result-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  word-break: break-all;
}
.sf-result-table td:first-child { width: 36px; white-space: nowrap; color: #94a3b8; word-break: normal }
.sf-result-url a { color: #0369a1; font-weight: 600 }
.sf-result-url a:hover { text-decoration: underline }
.sf-result-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px }
.sf-result-list a {
  display: block;
  padding: 9px 10px;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  color: #0369a1;
  font-size: 13px;
  word-break: break-all;
}
.sf-result-list a:hover { background: #f0f9ff }
.sf-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 120;
  background: #0f172a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.sf-toast.show { opacity: 1; transform: translateX(-50%) translateY(0) }
html.sf-dark .sf-job-st--queued { background: #3b2412; color: #fdba74 }
html.sf-dark .sf-job-st--running { background: #1e3a5f; color: #93c5fd }
html.sf-dark .sf-job-st--done { background: #14332a; color: #6ee7b7 }
html.sf-dark .sf-job-st--failed { background: #3f1d1d; color: #fca5a5 }
html.sf-dark .sf-result-list a { border-color: #323842; color: #7dd3fc }


