* { box-sizing: border-box; }

:root {
  --tk-bg: #f4f7fc;
  --tk-bg-elevated: #ffffff;
  --tk-bg-subtle: #eef2f9;
  --tk-sidebar: #ffffff;
  --tk-header: rgba(255, 255, 255, 0.92);
  --tk-card: #ffffff;
  --tk-card-border: #e2e8f0;
  --tk-text: #0f172a;
  --tk-text-muted: #64748b;
  --tk-accent: #0ea5e9;
  --tk-accent-2: #6366f1;
  --tk-accent-dim: rgba(14, 165, 233, 0.12);
  --tk-accent-glow: rgba(14, 165, 233, 0.25);
  --tk-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  --tk-shadow-lg: 0 4px 24px rgba(15, 23, 42, 0.08);
  --tk-radius: 12px;
  --tk-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  margin: 0;
  font-family: var(--tk-font);
  background: var(--tk-bg);
  color: var(--tk-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Light tech theme — seller app */
body.tech-theme {
  background: var(--tk-bg);
  color: var(--tk-text);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -20%, rgba(14, 165, 233, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(99, 102, 241, 0.06), transparent);
}
body.tech-theme .layout-seller { background: transparent; }
body.tech-theme .sidebar {
  background: var(--tk-sidebar);
  border-right: 1px solid var(--tk-card-border);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.03);
}
body.tech-theme .sidebar-nav a { color: var(--tk-text-muted); }
body.tech-theme .sidebar-nav a:hover { background: var(--tk-bg-subtle); color: var(--tk-text); }
body.tech-theme .sidebar-nav a.active { background: var(--tk-accent-dim); color: var(--tk-accent); font-weight: 600; }
body.tech-theme .sidebar-section-title { color: var(--tk-text-muted); }
body.tech-theme .main-content { background: transparent; }
body.tech-theme .page-title { color: var(--tk-text); font-weight: 700; letter-spacing: -0.02em; }
body.tech-theme .card {
  background: var(--tk-card);
  border: 1px solid var(--tk-card-border);
  box-shadow: var(--tk-shadow);
  border-radius: var(--tk-radius);
}
body.tech-theme .card h2 { color: var(--tk-text); }
body.tech-theme .welcome-line { color: var(--tk-text-muted); }
body.tech-theme .welcome-line .muted { color: var(--tk-text-muted); }
body.tech-theme table th { color: var(--tk-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
body.tech-theme table td { border-color: var(--tk-card-border); }
body.tech-theme .filter-form {
  background: var(--tk-card);
  border-color: var(--tk-card-border);
  box-shadow: var(--tk-shadow);
  border-radius: var(--tk-radius);
}
body.tech-theme .filter-form label { color: var(--tk-text-muted); font-weight: 500; }
body.tech-theme .filter-form input, body.tech-theme .filter-form select {
  background: var(--tk-bg-subtle);
  border-color: var(--tk-card-border);
  color: var(--tk-text);
  border-radius: 8px;
}
body.tech-theme .filter-form .btn-query {
  background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-2));
  color: #fff;
  border: none;
  font-weight: 600;
}
body.tech-theme .table-wrap { background: var(--tk-card); }
body.tech-theme .filter-bar input,
body.tech-theme .filter-bar select,
body.tech-theme .filter-bar .btn-outline {
  background: var(--tk-card);
  border-color: var(--tk-card-border);
  color: var(--tk-text);
}
body.tech-theme .filter-bar .found { color: var(--tk-text-muted); }
body.tech-theme .btn-batch {
  background: var(--tk-card);
  border-color: var(--tk-card-border);
  color: var(--tk-text);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.tech-theme .btn-batch:hover {
  border-color: var(--tk-accent);
  box-shadow: 0 0 0 3px var(--tk-accent-dim);
}
body.tech-theme .notice-banner {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.08), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--tk-text);
  border-radius: var(--tk-radius);
}
body.tech-theme .notice-banner a { color: var(--tk-accent); font-weight: 600; }
body.tech-theme .action-card {
  background: var(--tk-card);
  border-color: var(--tk-card-border);
  box-shadow: var(--tk-shadow);
  border-radius: var(--tk-radius);
  transition: transform 0.15s, box-shadow 0.15s;
}
body.tech-theme .action-card:hover { transform: translateY(-2px); box-shadow: var(--tk-shadow-lg); }
body.tech-theme .action-card .num { color: var(--tk-accent); font-variant-numeric: tabular-nums; }
body.tech-theme .action-card .label { color: var(--tk-text-muted); }
body.tech-theme .tabs {
  background: var(--tk-card);
  border-radius: var(--tk-radius) var(--tk-radius) 0 0;
  border: 1px solid var(--tk-card-border);
  border-bottom: none;
  padding: 4px 8px 0;
  gap: 4px;
}
body.tech-theme .tabs a, body.tech-theme .tabs span.tab {
  color: var(--tk-text-muted);
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
  border-bottom: 2px solid transparent;
}
body.tech-theme .tabs a:hover { color: var(--tk-text); background: var(--tk-bg-subtle); }
body.tech-theme .tabs a.active, body.tech-theme .tabs span.tab.active {
  color: var(--tk-accent);
  border-bottom-color: var(--tk-accent);
  background: var(--tk-accent-dim);
  font-weight: 600;
}
body.tech-theme .orders-table,
body.tech-theme .products-table { background: var(--tk-card); color: var(--tk-text); }
body.tech-theme .orders-table thead,
body.tech-theme .products-table thead { background: var(--tk-bg-subtle); }
body.tech-theme .orders-table th,
body.tech-theme .products-table th {
  background: var(--tk-bg-subtle);
  color: var(--tk-text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--tk-card-border);
}
body.tech-theme .orders-table tbody tr,
body.tech-theme .products-table tbody tr { background: var(--tk-card); transition: background 0.12s; }
body.tech-theme .orders-table td,
body.tech-theme .products-table td {
  border-color: var(--tk-card-border);
  color: var(--tk-text);
  background: transparent;
}
body.tech-theme .orders-table tbody tr:nth-child(even),
body.tech-theme .products-table tbody tr:nth-child(even) { background: rgba(241, 245, 249, 0.5); }
body.tech-theme .orders-table tbody tr:hover,
body.tech-theme .products-table tbody tr:hover { background: var(--tk-accent-dim); }
body.tech-theme .pagination .total { color: var(--tk-text-muted); }
body.tech-theme .pagination a, body.tech-theme .pagination span {
  background: var(--tk-card);
  border-color: var(--tk-card-border);
  color: var(--tk-text);
  border-radius: 8px;
}
body.tech-theme .pagination .current {
  background: var(--tk-accent-dim);
  border-color: var(--tk-accent);
  color: var(--tk-accent);
  font-weight: 600;
}
body.tech-theme .global-header {
  background: var(--tk-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tk-card-border);
  color: var(--tk-text);
  height: 56px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
body.tech-theme .global-header .brand a {
  color: var(--tk-text);
  font-weight: 700;
  background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.tech-theme .global-header .main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
body.tech-theme .global-header .main-nav a {
  color: var(--tk-text-muted);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
}
.kk-file-field .kk-file-name { font-size: 13px; color: var(--tk-text-muted); }
.kpi-card:hover { border-color: var(--tk-accent); box-shadow: var(--tk-shadow-lg); }
body.tech-theme .global-header .main-nav a:hover,
body.tech-theme .global-header .main-nav a.active {
  color: var(--tk-accent);
  background: var(--tk-accent-dim);
}
body.tech-theme .global-header .header-search {
  background: var(--tk-bg-subtle);
  border-color: var(--tk-card-border);
  color: var(--tk-text);
}
body.tech-theme .global-header .header-search::placeholder { color: var(--tk-text-muted); }
body.tech-theme .global-header .header-btn {
  background: var(--tk-accent-dim);
  color: var(--tk-accent);
}
body.tech-theme .global-header .header-user a { color: var(--tk-text); font-weight: 500; }
body.tech-theme .btn-sm-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
body.tech-theme .btn-sm-gray {
  background: var(--tk-card);
  border-color: var(--tk-card-border);
  color: var(--tk-text);
}
body.tech-theme .product-info .name, body.tech-theme .prod-name { color: var(--tk-text); }
body.tech-theme .product-info .sku, body.tech-theme .prod-id { color: var(--tk-text-muted); }
body.tech-theme .product-thumb, body.tech-theme .prod-thumb {
  background: linear-gradient(135deg, var(--tk-bg-subtle), #e2e8f0);
  border: 1px solid var(--tk-card-border);
}
body.tech-theme .edit-notice {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
body.tech-theme .edit-form label { color: var(--tk-text); }
body.tech-theme .edit-form input, body.tech-theme .edit-form textarea, body.tech-theme .edit-form select {
  background: var(--tk-bg-subtle);
  border-color: var(--tk-card-border);
  color: var(--tk-text);
}
body.tech-theme .back-link { color: var(--tk-accent); }

/* Login / auth pages: KingKung tech style */
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: var(--tk-bg);
}
.login-box {
  background: var(--tk-card);
  border: 1px solid var(--tk-card-border);
  border-radius: 12px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.login-box h1 { margin: 0 0 8px; font-size: 1.5rem; color: var(--tk-text); }
.login-box h2 { color: var(--tk-text); }
.login-box .brand-kk { color: var(--tk-accent); font-weight: 700; }
.login-box .auth-desc { color: var(--tk-text-muted); }
.login-box .auth-scopes { color: var(--tk-text-muted); }
.subtitle { color: var(--tk-text-muted); font-size: 14px; margin: 0 0 24px; }
.btn-primary {
  display: inline-block;
  background: var(--tk-accent);
  color: #0d1117;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 12px;
  width: 100%;
  border: none;
}
.btn-primary:hover { background: #00e6b8; color: #0d1117; }
.btn-secondary { display: inline-block; color: var(--tk-text-muted); padding: 10px; text-decoration: none; font-size: 14px; }
.btn-secondary:hover { color: var(--tk-text); }
.hint { font-size: 12px; color: #888; margin: 16px 0 0; line-height: 1.4; }
.auth-box { max-width: 440px; }
.auth-header { margin-bottom: 20px; }
.logo-placeholder { font-weight: 700; font-size: 1.2rem; }
.auth-box h2 { margin: 0 0 12px; font-size: 1.25rem; }
.auth-desc { color: #666; font-size: 14px; margin: 0 0 16px; text-align: left; }
.auth-scopes { text-align: left; margin: 0 0 24px; padding-left: 20px; color: #555; font-size: 14px; }
.auth-consent .auth-desc { margin-bottom: 8px; }
.auth-terms { font-size: 12px; color: #888; margin: 0 0 20px; line-height: 1.5; text-align: left; }
.auth-terms a { color: #000; text-decoration: underline; }
.auth-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.auth-actions .btn-secondary { margin-top: 4px; }
.consent-header { padding-bottom: 16px; border-bottom: 1px solid var(--tk-card-border); }
.logo-text { font-weight: 700; font-size: 1.25rem; color: var(--tk-text); }
.auth-risk {
  background: rgba(248,81,73,0.12);
  border: 1px solid rgba(248,81,73,0.4);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #f85149;
  text-align: left;
}
.auth-risk strong { display: block; margin-bottom: 4px; }

/* Dashboard: loading state */
.dashboard-loading {
  text-align: center;
  padding: 60px 20px;
}
.dashboard-loading .spinner { margin: 0 auto 20px; }
.dashboard-loading .spinner { border-color: var(--tk-card-border); border-top-color: var(--tk-accent); }
.dashboard-loading p { color: var(--tk-text-muted); font-size: 14px; }

/* Dashboard: KPI cards row (official style) */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--tk-card);
  border: 1px solid var(--tk-card-border);
  border-radius: var(--tk-radius, 12px);
  padding: 20px;
  box-shadow: var(--tk-shadow);
}
.kpi-card .kpi-num { font-size: 1.75rem; font-weight: 700; color: var(--tk-text); line-height: 1.2; }
.kpi-card .kpi-label { font-size: 13px; color: var(--tk-text-muted); margin-top: 6px; }
.kpi-card .kpi-status { font-size: 12px; color: var(--tk-accent); margin-top: 4px; }
.kpi-card.warn .kpi-num { color: #f85149; }
.kpi-card.warn .kpi-status { color: #f85149; }

/* Dashboard: shop performance */
.perf-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.perf-item {
  background: var(--tk-card);
  border: 1px solid var(--tk-card-border);
  border-radius: 8px;
  padding: 16px;
}
.perf-item .perf-value { font-size: 1.25rem; font-weight: 600; color: var(--tk-text); }
.perf-item .perf-label { font-size: 12px; color: var(--tk-text-muted); margin-top: 4px; }
.perf-item .perf-change { font-size: 12px; color: var(--tk-accent); margin-top: 2px; }
@media (max-width: 900px) {
  .perf-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .perf-row { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr; }
}
.card-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.card-toolbar select { padding: 6px 10px; border: 1px solid var(--tk-card-border); border-radius: 6px; background: var(--tk-bg); color: var(--tk-text); font-size: 13px; }
.card-toolbar .updated { font-size: 12px; color: var(--tk-text-muted); }

/* Dashboard: shop health */
.shop-health-card {
  background: var(--tk-card);
  border: 1px solid var(--tk-card-border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.shop-health-card .icon { font-size: 24px; }
.shop-health-card .body { flex: 1; }
.shop-health-card .title { font-weight: 600; color: var(--tk-text); margin-bottom: 4px; }
.shop-health-card .desc { font-size: 13px; color: var(--tk-text-muted); }
.shop-health-card.ok .icon { color: var(--tk-accent); }
.shop-health-card.warn .icon { color: #f85149; }

/* Auth success banner (for video: show "auth success" step clearly) */
.auth-success-banner {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--tk-accent);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--tk-accent);
}
.auth-success-banner strong { margin-right: 6px; }
.welcome-line { color: #666; margin-bottom: 20px; font-size: 14px; }
.welcome-line .muted { color: #888; font-size: 13px; font-weight: normal; }
.page-desc { color: #666; margin-bottom: 20px; font-size: 14px; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid #eee;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* App layout (simple – login/dashboard minimal) */
.app-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header h1 { margin: 0; font-size: 1.2rem; }
.app-nav a {
  margin-left: 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.app-nav a:hover, .app-nav a.active { color: #000; font-weight: 600; }
.container { max-width: 1000px; margin: 0 auto; padding: 24px; }

/* Global header (integrated backend style) */
.global-header {
  background: #1a237e;
  color: #fff;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.global-header .brand {
  font-weight: 700;
  font-size: 15px;
  margin-right: 24px;
  white-space: nowrap;
}
.global-header .brand a { color: #fff; text-decoration: none; }
.global-header .main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.global-header .main-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.global-header .main-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.global-header .main-nav a.active { background: rgba(255,255,255,0.2); color: #fff; }
.global-header .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.global-header .header-search {
  width: 200px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px;
}
.global-header .header-search::placeholder { color: rgba(255,255,255,0.6); }
.global-header .header-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  cursor: pointer;
}
.global-header .header-btn:hover { background: rgba(255,255,255,0.3); }
.global-header .header-user {
  font-size: 13px;
  color: rgba(255,255,255,0.95);
}
.global-header .header-user a { color: #fff; text-decoration: none; }
.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.card h2 { margin: 0 0 16px; font-size: 1.1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
th { color: #666; font-weight: 600; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-pending { background: #fff3e0; color: #e65100; }
.badge-info { background: #e3f2fd; color: #1565c0; }
.badge-warning { background: #fff8e1; color: #f57c00; }
.badge-neutral { background: #eceff1; color: #546e7a; }
.badge-danger { background: #ffebee; color: #c62828; }
.table-wrap { overflow-x: auto; }
.order-id { font-family: ui-monospace, monospace; font-size: 13px; }
.page-title { margin: 0 0 20px; font-size: 1.4rem; }
.page-meta { color: #888; font-size: 13px; margin-bottom: 16px; }

/* Seller Center layout: sidebar + main */
.layout-seller {
  display: flex;
  min-height: 100vh;
  background: #f5f5f5;
}
.sidebar {
  width: 240px;
  min-width: 240px;
  background: #fff;
  border-right: 1px solid #eee;
  padding: 12px 0;
  overflow-y: auto;
}
.sidebar-nav { margin: 0; padding: 0; list-style: none; }
.sidebar-nav li { margin: 0; }
.sidebar-nav a {
  display: block;
  padding: 8px 20px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
}
.sidebar-nav a:hover { background: #f5f5f5; }
.sidebar-nav a.active { background: #e3f2fd; color: #1565c0; font-weight: 600; }
.sidebar-section { margin-bottom: 4px; }
.sidebar-section-title {
  padding: 10px 20px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.main-content { flex: 1; padding: 20px 24px; overflow-x: auto; min-width: 0; }

/* Filter form (multi-row like 订单检索) */
.filter-form {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.filter-form .filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.filter-form .filter-row:last-child { margin-bottom: 0; }
.filter-form label {
  font-size: 13px;
  color: #666;
  min-width: 100px;
}
.filter-form input, .filter-form select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}
.filter-form .filter-actions { margin-top: 12px; display: flex; gap: 8px; }
.filter-form .btn-query { background: #1565c0; color: #fff; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.filter-form .btn-reset { background: #fff; color: #333; border: 1px solid #ddd; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; }

/* Batch action buttons row */
.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.batch-actions .btn-batch {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}
.batch-actions .btn-batch:hover { background: #f5f5f5; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 0;
  font-size: 13px;
  color: #666;
}
.pagination a, .pagination span {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  background: #fff;
}
.pagination a:hover { background: #f5f5f5; }
.pagination .current { background: #e3f2fd; border-color: #1565c0; color: #1565c0; }
.pagination .total { margin-right: 12px; }

/* Top bar inside main (optional) */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.top-bar-search {
  flex: 1;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}
.top-bar-actions { display: flex; gap: 8px; align-items: center; }

/* Notice banner */
.notice-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff8e1;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #333;
}
.notice-banner a { color: #1565c0; text-decoration: underline; }

/* Action needed cards (Manage orders) */
.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.action-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #eee;
  text-align: center;
}
.action-card .num { font-size: 1.5rem; font-weight: 700; color: #333; }
.action-card .label { font-size: 12px; color: #666; margin-top: 4px; line-height: 1.3; }

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
  background: #fff;
  padding: 0 16px 0 0;
}
.tabs a, .tabs span.tab {
  padding: 12px 16px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: #333; }
.tabs a.active, .tabs span.tab.active { color: #2e7d32; font-weight: 600; border-bottom-color: #2e7d32; }
.tab-badge { margin-left: 4px; font-size: 12px; color: #888; }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.filter-bar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  min-width: 200px;
}
.filter-bar .btn-outline {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
.filter-bar .btn-outline:hover { background: #f5f5f5; }
.filter-bar .found { font-size: 14px; color: #666; margin-left: auto; }

/* Order table (dense, official style) */
.orders-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.orders-table th, .orders-table td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.orders-table th { color: #666; font-weight: 600; background: #fafafa; }
.orders-table .col-check { width: 36px; }
.orders-table .col-order-id { width: 140px; font-family: ui-monospace, monospace; }
.orders-table .col-product { min-width: 200px; }
.orders-table .col-actions { white-space: nowrap; }
.product-cell { display: flex; align-items: flex-start; gap: 10px; }
.product-thumb {
  width: 48px; height: 48px;
  background: #f0f0f0;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #999; font-size: 10px;
}
img.product-thumb.kk-thumb-img,
.prod-cell img.product-thumb {
  object-fit: cover;
  display: block;
  border: 1px solid #e8e8e8;
}
.product-info .name { font-weight: 500; color: #333; }
.product-info .sku { font-size: 12px; color: #888; margin-top: 2px; }
.btn-sm {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  margin-right: 6px;
  margin-bottom: 4px;
}
.btn-sm-green { background: #2e7d32; color: #fff; border: none; }
.btn-sm-green:hover { background: #1b5e20; color: #fff; }
.btn-sm-gray { background: #fff; color: #333; border: 1px solid #ddd; }
.btn-sm-gray:hover { background: #f5f5f5; }
.link-chat { font-size: 12px; color: #1565c0; text-decoration: none; margin-right: 8px; }
.shipping-line { font-size: 12px; color: #666; }
.shipping-line + .shipping-line { margin-top: 2px; }

/* Product table (Manage products) */
.products-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.products-table th, .products-table td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.products-table th { color: #666; font-weight: 600; background: #fafafa; }
.products-table .col-check { width: 36px; }
.products-table .col-prod { min-width: 260px; }
.products-table .col-perf { width: 140px; }
.products-table .col-status { width: 160px; }
.products-table .col-stock { width: 80px; }
.products-table .col-price { width: 140px; }
.products-table .col-action { width: 120px; white-space: nowrap; }
.prod-cell { display: flex; align-items: center; gap: 12px; }
.prod-thumb { width: 56px; height: 56px; background: #f0f0f0; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #999; font-size: 10px; }
.prod-name { font-weight: 500; color: #333; }
.prod-id { font-size: 12px; color: #888; margin-top: 2px; font-family: ui-monospace, monospace; }
.perf-block { font-size: 12px; color: #666; }
.perf-block span { display: block; margin-top: 2px; }
.stock-low { color: #c62828; font-weight: 600; }
.sku-expand { font-size: 12px; color: #666; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; background: transparent; color: #666; cursor: pointer; border-radius: 6px; }
.icon-btn:hover { background: #f0f0f0; color: #333; }

/* Product edit page */
.edit-notice {
  background: #ffebee;
  color: #c62828;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 13px;
}
.edit-toolbar { display: flex; gap: 10px; margin-bottom: 20px; }
.edit-form .form-group { margin-bottom: 20px; }
.edit-form label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; }
.edit-form input[type="text"], .edit-form textarea, .edit-form select {
  width: 100%;
  max-width: 560px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}
.edit-form textarea { min-height: 120px; resize: vertical; }
.edit-form .sku-table { margin-top: 12px; font-size: 13px; }
.edit-form .inline-inputs { display: flex; gap: 12px; flex-wrap: wrap; }
.edit-form .inline-inputs input { width: 80px; max-width: none; }
.back-link { color: #1565c0; text-decoration: none; font-size: 14px; margin-bottom: 16px; display: inline-block; }
.back-link:hover { text-decoration: underline; }

/* Language switcher */
.lang-switcher { display: inline-flex; gap: 2px; align-items: center; }
.lang-switcher .lang-btn {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--tk-card-border, #30363d);
  background: var(--tk-card, #21262d);
  color: var(--tk-text-muted, #8b949e);
  border-radius: 4px;
  cursor: pointer;
}
.lang-switcher .lang-btn:hover { color: var(--tk-text, #e6edf3); background: var(--tk-card-border, #30363d); }
.lang-switcher .lang-btn.active { color: var(--tk-accent, #00d4aa); border-color: var(--tk-accent); background: var(--tk-accent-dim, rgba(0,212,170,0.15)); }
body:not(.tech-theme) .lang-switcher .lang-btn { background: #fff; border-color: #ddd; color: #666; }
body:not(.tech-theme) .lang-switcher .lang-btn:hover { color: #333; }
body:not(.tech-theme) .lang-switcher .lang-btn.active { color: #00d4aa; border-color: #00d4aa; }

/* OMS review: split shipment & BR invoices */
.btn-sm-primary {
  background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-2));
  color: #fff;
  border: none;
}
.btn-sm-primary:hover { filter: brightness(1.08); }
.oms-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.oms-modal[hidden] { display: none !important; }
.oms-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.oms-modal-panel { position: relative; max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; z-index: 1; margin: 0; }
.oms-order-detail-panel {
  max-width: 720px;
  width: calc(100vw - 48px);
  max-height: 85vh;
  overflow: auto;
}
.oms-detail-official {
  max-width: 920px;
}
.sc-order-id {
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}
.orders-table-official .col-order-id { min-width: 168px; }
.sc-customer { font-size: 13px; color: var(--tk-text-muted, #5c6b7a); }
.sc-total { font-weight: 600; white-space: nowrap; }
.sc-status-hint { font-size: 11px; color: #e54545; margin-top: 4px; font-weight: 500; }
.sc-items-cell .product-info .name { font-size: 13px; line-height: 1.35; }
.sc-detail-order-id {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sc-detail-status-card {
  background: var(--tk-bg-muted, #f5f7fa);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.sc-detail-status-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.sc-detail-meta {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 13px;
}
.sc-detail-meta dt { color: var(--tk-text-muted); margin: 0; }
.sc-detail-meta dd { margin: 0; word-break: break-word; }
.sc-detail-package {
  border: 1px solid var(--tk-card-border, #e8ecf0);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}
.sc-detail-package-head { font-size: 13px; margin-bottom: 10px; }
.sc-detail-line-item { background: #fff; border: 1px solid var(--tk-card-border, #eef1f4); }
.sc-line-main { flex: 1; min-width: 0; }
.sc-detail-sidebars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .sc-detail-sidebars { grid-template-columns: 1fr; }
}
.sc-detail-sidebar {
  border: 1px solid var(--tk-card-border, #e8ecf0);
  border-radius: 10px;
  padding: 14px 16px;
}
.sc-detail-sidebar h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}
.sc-pay-dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  margin: 0;
  font-size: 13px;
}
.sc-pay-dl dt { color: var(--tk-text-muted); margin: 0; }
.sc-pay-dl dd { margin: 0; text-align: right; }
.sc-pay-dl .sc-pay-total { font-size: 15px; padding-top: 8px; border-top: 1px solid var(--tk-card-border, #e8ecf0); }
.sc-link-muted { color: var(--tk-text-muted); text-decoration: none; font-size: 12px; }
.oms-detail-section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tk-card-border, #e8ecf0);
}
.oms-detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.oms-detail-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tk-text-muted);
}
.oms-detail-dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.oms-detail-dl dt { color: var(--tk-text-muted); margin: 0; font-weight: 500; }
.oms-detail-dl dd { margin: 0; word-break: break-word; }
.oms-detail-line-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--tk-bg-muted, #f5f7fa);
  border-radius: 8px;
  font-size: 14px;
}
.oms-logistics-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 4px;
  border-left: 2px solid var(--tk-border, #e8e8e8);
}
.oms-logistics-timeline li {
  position: relative;
  padding: 0 0 14px 18px;
  font-size: 13px;
}
.oms-logistics-timeline li.is-latest .oms-tl-dot {
  background: var(--tk-primary, #fe2c55);
  box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.15);
}
.oms-tl-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tk-border, #ccc);
}
.oms-detail-line-item .kk-thumb {
  flex-shrink: 0;
}
.oms-package-box { border: 1px solid var(--tk-card-border, #30363d); border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; background: var(--tk-card, #21262d); }
.oms-package-box h3 { margin: 0 0 8px; font-size: 15px; }
.oms-line-list { list-style: none; padding: 0; margin: 0; }
.oms-line-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.oms-line-list li:last-child { border-bottom: none; }
.oms-quick-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.oms-quick-card { display: block; padding: 16px; border-radius: 8px; border: 1px solid var(--tk-card-border, #30363d); background: var(--tk-card, #21262d); text-decoration: none; color: inherit; }
.oms-quick-card:hover { border-color: var(--tk-accent, #00d4aa); }
.oms-quick-card strong { display: block; margin-bottom: 6px; color: var(--tk-accent, #00d4aa); }
.oms-quick-card span { font-size: 13px; color: var(--tk-text-muted, #8b949e); }

/* Login page (unified) */
.login-page .login-box-unified {
  max-width: 440px;
  width: 100%;
  text-align: left;
  padding: 36px 40px 32px;
}
.login-box-header { text-align: center; margin-bottom: 24px; }
.login-box-header h1 { margin-bottom: 6px; }
.login-box-header .subtitle { margin-bottom: 12px; }
.login-env-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tk-accent);
  background: var(--tk-accent-dim);
  border: 1px solid rgba(14, 165, 233, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}
.login-page .reviewer-form { margin-top: 0; }
.login-page .reviewer-form label {
  display: block;
  font-size: 13px;
  margin: 14px 0 6px;
  color: var(--tk-text-muted);
}
.login-page .reviewer-form label:first-of-type { margin-top: 0; }
.login-page .reviewer-form input[type="text"],
.login-page .reviewer-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid var(--tk-card-border);
  border-radius: 8px;
  background: var(--tk-bg);
  color: var(--tk-text);
  font-size: 14px;
}
.login-page .reviewer-form input:focus {
  outline: none;
  border-color: var(--tk-accent);
  box-shadow: 0 0 0 2px var(--tk-accent-dim);
}
.login-page .reviewer-form .btn-primary {
  margin-top: 20px;
  margin-bottom: 0;
  text-align: center;
  cursor: pointer;
}
.login-error {
  color: #f85149;
  font-size: 13px;
  margin: 12px 0 0;
}
.login-page .reviewer-cred-hint {
  margin-top: 20px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.45);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--tk-text);
}
.login-page .reviewer-cred-hint summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--tk-accent);
}
.login-page .reviewer-cred-hint code {
  background: rgba(0, 0, 0, 0.35);
  color: #e6edf3;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.login-page .login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--tk-text-muted);
  font-size: 12px;
}
.login-page .login-divider::before,
.login-page .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tk-card-border);
}
.login-page .login-divider span { padding: 0; background: none; }
.login-page .btn-oauth {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--tk-card-border);
  color: var(--tk-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
}
.login-page .btn-oauth:hover {
  border-color: var(--tk-accent);
  color: var(--tk-accent);
  background: var(--tk-accent-dim);
}
.login-page .hint {
  color: var(--tk-text-muted);
  text-align: center;
  margin-top: 12px;
}
.login-box-wide { max-width: 640px; width: 100%; }
.demo-shop-list { list-style: none; padding: 0; margin: 0; }
.demo-shop-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

/* Select shop page — match login / seller dark theme */
body.shop-select-page {
  background: var(--tk-bg);
  color: var(--tk-text);
}
body.shop-select-page .login-wrap { background: var(--tk-bg); }
body.shop-select-page .login-box-wide {
  max-width: 680px;
  text-align: left;
  padding: 32px 36px 28px;
}
body.shop-select-page .shop-select-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--tk-card-border);
}
body.shop-select-page .shop-select-header h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
body.shop-select-page .shop-select-header .subtitle {
  margin: 0;
}
body.shop-select-page .login-env-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--tk-accent-dim);
  color: var(--tk-accent);
  border: 1px solid rgba(14, 165, 233, 0.35);
}
body.shop-select-page .reviewer-cred-hint {
  margin-bottom: 20px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--tk-text);
}
body.shop-select-page .reviewer-cred-hint summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--tk-accent);
}
body.shop-select-page .reviewer-cred-hint code {
  background: var(--tk-bg-subtle);
  color: var(--tk-text);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  word-break: break-all;
}
body.shop-select-page .reviewer-cred-hint p {
  margin: 8px 0 0;
  color: var(--tk-text-muted);
  font-size: 13px;
}
body.shop-select-page .demo-shop-card {
  background: var(--tk-bg);
  border: 1px solid var(--tk-card-border);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.shop-select-page .demo-shop-card:hover {
  border-color: var(--tk-accent);
  box-shadow: 0 0 0 3px var(--tk-accent-dim);
}
body.shop-select-page .demo-shop-card .shop-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
body.shop-select-page .demo-shop-card .shop-card-title strong {
  color: var(--tk-text);
  font-size: 15px;
}
body.shop-select-page .demo-shop-card .shop-card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--tk-text-muted);
  line-height: 1.45;
}
body.shop-select-page .demo-shop-card .shop-card-meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--tk-text-muted);
}
body.shop-select-page .demo-shop-card .shop-card-meta code {
  background: var(--tk-bg-subtle);
  color: var(--tk-text);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}
body.shop-select-page .demo-shop-card .btn-enter {
  flex-shrink: 0;
  width: auto;
  min-width: 108px;
  padding: 10px 18px;
  margin: 0;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}
body.shop-select-page .shop-select-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--tk-card-border);
  text-align: center;
  font-size: 14px;
}
body.shop-select-page .shop-select-footer a {
  color: var(--tk-accent);
  text-decoration: none;
}
body.shop-select-page .shop-select-footer a:hover {
  text-decoration: underline;
}
body.shop-select-page .lang-switcher-wrap {
  position: absolute;
  top: 16px;
  right: 16px;
}
@media (max-width: 560px) {
  body.shop-select-page .demo-shop-card {
    flex-direction: column;
    align-items: stretch;
  }
  body.shop-select-page .demo-shop-card .btn-enter {
    width: 100%;
  }
}
.shop-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(0, 180, 140, 0.08), rgba(14, 165, 233, 0.06));
  border: 1px solid rgba(0, 180, 140, 0.25);
  border-radius: 8px;
  font-size: 13px;
}
.shop-status-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-status-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.shop-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00b48c;
  box-shadow: 0 0 0 3px rgba(0, 180, 140, 0.25);
  flex-shrink: 0;
}
.tiktok-sync-banner.tiktok-sync-ok {
  background: rgba(0, 180, 140, 0.06);
  border-color: rgba(0, 180, 140, 0.2);
}
.tiktok-sync-banner.tiktok-sync-loading { border-color: rgba(14, 165, 233, 0.35); }
.tiktok-sync-banner.tiktok-sync-staged {
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(14, 165, 233, 0.06);
}
.tiktok-sync-banner .tiktok-sync-detail { display: inline-block; margin-top: 4px; font-size: 13px; }
.tiktok-sync-banner.tiktok-sync-error { border-color: rgba(220, 53, 69, 0.35); background: rgba(220, 53, 69, 0.05); }
.demo-banner {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.demo-banner strong { color: var(--tk-accent, #0ea5e9); }
.kk-thumb { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 6px; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.oms-line-list .kk-thumb { width: 36px; height: 36px; }
.product-info .sku { display: block; font-size: 12px; color: var(--tk-text-muted, #8b949e); margin-top: 2px; }
.kk-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  padding: 14px 20px; border-radius: 8px; font-size: 14px; max-width: 420px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35); display: none;
}
.kk-toast-ok { background: #1a3d34; border: 1px solid var(--tk-accent, #00d4aa); color: #e6edf3; }
.kk-toast-err { background: #3d1a1a; border: 1px solid #f85149; color: #ffd6d6; }

.partner-api-sub { font-size: 12px; margin: 6px 0 0; line-height: 1.45; }
.partner-api-details { cursor: pointer; }
.partner-api-details summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.partner-api-details summary::-webkit-details-marker { display: none; }
.partner-api-details[open] summary { margin-bottom: 8px; border-bottom: 1px solid var(--tk-card-border, #30363d); padding-bottom: 8px; }
.partner-api-method { font-weight: 600; font-size: 12px; color: var(--tk-text-muted, #8b949e); }
.partner-api-path { font-size: 12px; }
.partner-api-meta { font-size: 11px; color: var(--tk-text-muted, #8b949e); margin-left: auto; }
.partner-api-body { padding: 0 0 12px 4px; }
.partner-api-block { margin-bottom: 10px; }
.partner-api-block strong { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tk-text-muted, #8b949e); }
.partner-api-pre {
  margin: 4px 0 0;
  padding: 10px;
  font-size: 11px;
  line-height: 1.4;
  max-height: 220px;
  overflow: auto;
  background: var(--tk-bg-subtle, #0d1117);
  border: 1px solid var(--tk-card-border, #30363d);
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-all;
}
.partner-api-simulated code,
.partner-api-simulated .partner-api-path { color: #a371f7; }
.partner-api-panel {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--tk-card-border, #30363d);
  background: var(--tk-card, #21262d);
}
.partner-api-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.partner-api-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.partner-api-item { padding: 10px 0; border-bottom: 1px solid var(--tk-card-border, #30363d); font-size: 13px; }
.partner-api-item:last-child { border-bottom: none; }
.partner-api-live code { color: #3fb950; }
.partner-api-sandbox code { color: #58a6ff; }
#apiModeBanner { margin-bottom: 12px; font-size: 13px; }

/* ========== Layout v2: light tech sidebar + list ========== */
body.layout-v2 .global-header {
  background: var(--tk-header);
  color: var(--tk-text);
  height: 56px;
  padding: 0 20px 0 16px;
}
body.layout-v2 .global-header .main-nav.nav-top-compact {
  display: none;
}
@media (min-width: 1200px) {
  body.layout-v2 .global-header .main-nav.nav-top-compact {
    display: flex;
    gap: 4px;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--tk-card-border);
  }
}
body.layout-v2 .layout-seller {
  min-height: calc(100vh - 56px);
  align-items: stretch;
}
body.layout-v2 .sidebar {
  width: 260px;
  min-width: 260px;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--tk-sidebar);
}
body.layout-v2 .sidebar-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 12px;
}
body.layout-v2 .sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--tk-accent-glow);
}
body.layout-v2 .sidebar-brand-title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--tk-text);
  line-height: 1.2;
}
body.layout-v2 .sidebar-brand-sub {
  display: block;
  font-size: 11px;
  color: var(--tk-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.layout-v2 .sidebar-shop-card {
  margin: 0 12px 12px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(99, 102, 241, 0.08));
  border: 1px solid var(--tk-card-border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
body.layout-v2 .sidebar-shop-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.layout-v2 .sidebar-shop-meta {
  min-width: 0;
  flex: 1;
}
body.layout-v2 .sidebar-shop-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.layout-v2 .sidebar-shop-region {
  display: block;
  font-size: 11px;
  color: var(--tk-text-muted);
  margin-top: 2px;
}
body.layout-v2 .sidebar-shop-market {
  margin-top: 6px;
  font-size: 10px;
}
body.layout-v2 .sidebar-nav-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 12px;
}
body.layout-v2 .sidebar-section {
  margin-bottom: 8px;
}
body.layout-v2 .sidebar-section-title {
  padding: 10px 16px 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--tk-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.layout-v2 .sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0 8px;
}
body.layout-v2 .sidebar-nav li {
  margin: 2px 0;
}
body.layout-v2 .sidebar-nav a.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--tk-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
body.layout-v2 .sidebar-nav a.nav-link .nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.75;
}
body.layout-v2 .sidebar-nav a.nav-link .nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
body.layout-v2 .sidebar-nav a.nav-link:hover {
  background: var(--tk-bg-subtle);
  color: var(--tk-text);
}
body.layout-v2 .sidebar-nav a.nav-link:hover .nav-icon {
  opacity: 1;
  color: var(--tk-accent);
}
body.layout-v2 .sidebar-nav a.nav-link.active {
  background: var(--tk-accent-dim);
  color: var(--tk-accent);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--tk-accent);
}
body.layout-v2 .sidebar-nav a.nav-link.active .nav-icon {
  opacity: 1;
  color: var(--tk-accent);
}
body.layout-v2 .sidebar-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--tk-card-border);
}
body.layout-v2 .sidebar-footer-link {
  font-size: 12px;
  color: var(--tk-accent);
  text-decoration: none;
  font-weight: 500;
}
body.layout-v2 .sidebar-footer-link:hover {
  text-decoration: underline;
}
body.layout-v2 .sidebar-nav-hint {
  margin: 0 12px 10px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--tk-text-muted);
  background: var(--tk-bg-subtle);
  border: 1px dashed var(--tk-card-border);
  border-radius: 8px;
}
body.layout-v2 .sidebar-nav-hint strong {
  color: var(--tk-accent);
  font-weight: 600;
}
body.layout-v2 .nav-market-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--tk-accent-dim);
  color: var(--tk-accent);
  flex-shrink: 0;
}
body.layout-v2 .nav-link.nav-market-mismatch {
  opacity: 1;
  background: var(--tk-bg-subtle);
}
body.layout-v2 .nav-link.nav-market-mismatch .nav-market-tag {
  background: #f1f5f9;
  color: var(--tk-text-muted);
  border: 1px dashed var(--tk-card-border);
}
body.layout-v2 .nav-link.nav-market-mismatch .nav-icon {
  opacity: 0.5;
}
body.layout-v2 .sidebar-capabilities {
  margin: 8px 12px 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--tk-bg-subtle);
  border: 1px solid var(--tk-card-border);
}
body.layout-v2 .sidebar-cap-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tk-text-muted);
  margin-bottom: 8px;
}
body.layout-v2 .sidebar-capabilities ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.layout-v2 .sidebar-capabilities li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
  color: var(--tk-text-muted);
}
body.layout-v2 .sidebar-capabilities li.cap-on {
  color: var(--tk-text);
  font-weight: 500;
}
body.layout-v2 .sidebar-capabilities .cap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
body.layout-v2 .sidebar-capabilities li.cap-on .cap-dot {
  background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-2));
  box-shadow: 0 0 6px var(--tk-accent-glow);
}
.btn-batch-muted,
.btn-market-muted {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}
.page-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.page-stat-chip {
  background: var(--tk-card);
  border: 1px solid var(--tk-card-border);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--tk-shadow);
}
.page-stat-chip .val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tk-accent);
  font-variant-numeric: tabular-nums;
}
.page-stat-chip .lbl {
  font-size: 11px;
  color: var(--tk-text-muted);
  margin-top: 4px;
}
.review-capabilities-banner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.review-cap-card {
  display: block;
  padding: 14px 16px;
  border-radius: var(--tk-radius);
  border: 1px solid var(--tk-card-border);
  background: var(--tk-card);
  box-shadow: var(--tk-shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.review-cap-card:hover {
  border-color: var(--tk-accent);
  box-shadow: var(--tk-shadow-lg);
}
.review-cap-card strong {
  display: block;
  font-size: 14px;
  color: var(--tk-text);
  margin-bottom: 4px;
}
.review-cap-card span {
  font-size: 12px;
  color: var(--tk-text-muted);
  line-height: 1.4;
}
.review-cap-card .cap-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.review-cap-card.cap-active .cap-badge {
  background: #ecfdf5;
  color: #059669;
}
.review-cap-card.cap-inactive .cap-badge {
  background: #f1f5f9;
  color: #64748b;
}

/* Partner workflow strip (split / invoice pages) */
.oms-flow-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.oms-flow-step {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 10px;
  border: 1px solid var(--tk-card-border);
  background: var(--tk-card);
  box-shadow: var(--tk-shadow);
  min-height: 72px;
}
.oms-flow-step .oms-flow-num {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oms-flow-step .oms-flow-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tk-text);
  line-height: 1.35;
  margin-bottom: 6px;
}
.oms-flow-step .oms-flow-api {
  display: block;
  font-size: 10px;
  color: var(--tk-text-muted);
  font-family: ui-monospace, monospace;
  word-break: break-all;
  line-height: 1.3;
}
.oms-flow-step.oms-flow-highlight {
  border-color: rgba(14, 165, 233, 0.45);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(99, 102, 241, 0.04));
}
.oms-review-order-hint {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--tk-radius);
  border: 1px dashed var(--tk-card-border);
  background: var(--tk-bg-subtle);
  font-size: 13px;
  color: var(--tk-text-muted);
}
.oms-review-order-hint strong {
  color: var(--tk-text);
}
.oms-review-order-hint code {
  font-size: 12px;
  background: var(--tk-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--tk-card-border);
}
body.layout-v2 .main-content {
  padding: 24px 28px 32px;
  max-width: 100%;
}
body.layout-v2 .page-title {
  font-size: 1.5rem;
  margin: 0 0 6px;
}
body.layout-v2 .page-desc {
  color: var(--tk-text-muted);
  font-size: 14px;
  margin: 0 0 20px;
  max-width: 720px;
  line-height: 1.5;
}
body.layout-v2 .demo-banner {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
}
body.layout-v2 .demo-banner strong {
  color: var(--tk-accent);
}
body.layout-v2 .batch-actions {
  padding: 12px 14px;
  background: var(--tk-card);
  border: 1px solid var(--tk-card-border);
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
  margin-bottom: 16px;
}
body.layout-v2 .batch-actions .btn-batch.btn-batch-primary {
  background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-2));
  color: #fff;
  border: none;
  font-weight: 600;
}
/* Full-bleed data tables only — never strip padding on forms (e.g. product edit SKU grid) */
body.layout-v2 .main-content > .card.card-table,
body.layout-v2 .main-content > .card:has(> .table-wrap):not(.edit-form):not(.partner-api-panel),
body.layout-v2 .main-content > .card:has(.orders-table):not(.edit-form),
body.layout-v2 .main-content > .card:has(.products-table):not(.edit-form) {
  padding: 0;
  overflow: hidden;
  border-radius: 0 0 var(--tk-radius) var(--tk-radius);
  border-top: none;
  margin-top: 0;
  box-shadow: var(--tk-shadow);
}
body.layout-v2 .filter-form {
  padding: 18px 20px;
}
body.layout-v2 .main-content > .card:not(.card-table):not(:has(> .table-wrap)) {
  padding: 20px 24px;
}
body.layout-v2 .main-content > .card.edit-form {
  padding: 24px 28px 28px;
}
body.layout-v2 .partner-api-panel.card {
  padding: 0;
}
body.layout-v2 .partner-api-panel .partner-api-collapse > summary {
  padding: 12px 16px;
}
body.layout-v2 .tabs + .card {
  border-radius: 0 0 var(--tk-radius) var(--tk-radius);
  margin-top: 0;
}
body.layout-v2 .orders-table thead,
body.layout-v2 .products-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
body.layout-v2 .kpi-card {
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
body.layout-v2 .kpi-card .kpi-num {
  background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.layout-v2 .oms-quick-card {
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
  transition: transform 0.15s, border-color 0.15s;
}
body.layout-v2 .oms-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tk-shadow-lg);
}
body.layout-v2 .oms-quick-card strong {
  color: var(--tk-accent);
}
body.layout-v2 .partner-api-panel {
  background: var(--tk-card);
  border: 1px solid var(--tk-card-border);
  box-shadow: var(--tk-shadow);
  border-radius: var(--tk-radius);
}
body.layout-v2 .partner-api-pre {
  background: var(--tk-bg-subtle);
  border-color: var(--tk-card-border);
  color: var(--tk-text);
}
body.layout-v2 .partner-api-simulated .partner-api-path {
  color: var(--tk-accent-2);
}
body.layout-v2 .kk-toast-ok {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  box-shadow: var(--tk-shadow-lg);
}
body.layout-v2 .kk-toast-err {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}
body.layout-v2 .oms-modal-backdrop {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}
body.layout-v2 .oms-modal-panel.card {
  box-shadow: var(--tk-shadow-lg);
  border-radius: var(--tk-radius);
}
body.layout-v2 .oms-line-list li {
  border-bottom-color: var(--tk-card-border);
}
body.layout-v2 .oms-package-box {
  background: var(--tk-bg-subtle);
  border-color: var(--tk-card-border);
}
body.layout-v2 .login-wrap {
  background: var(--tk-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -20%, rgba(14, 165, 233, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(99, 102, 241, 0.1), transparent);
}
body.layout-v2 .btn-primary,
body.tech-theme .btn-primary {
  background: linear-gradient(135deg, var(--tk-accent), var(--tk-accent-2));
  color: #fff;
}
body.layout-v2 .btn-primary:hover {
  filter: brightness(1.05);
  color: #fff;
}
@media (max-width: 900px) {
  body.layout-v2 .sidebar {
    width: 72px;
    min-width: 72px;
  }
  body.layout-v2 .sidebar-brand-text,
  body.layout-v2 .sidebar-shop-meta,
  body.layout-v2 .sidebar-section-title,
  body.layout-v2 .nav-label,
  body.layout-v2 .sidebar-footer-link span {
    display: none;
  }
  body.layout-v2 .sidebar-shop-card {
    justify-content: center;
    padding: 8px;
  }
  body.layout-v2 .sidebar-nav a.nav-link {
    justify-content: center;
    padding: 10px;
  }
}

/* Legal footer & login footer */
.seller-app-footer {
  margin-top: 24px;
  padding: 16px 24px;
  border-top: 1px solid var(--tk-card-border, #e8eaed);
  background: var(--tk-bg-muted, #f8f9fb);
  font-size: 13px;
  color: var(--tk-text-muted, #5f6368);
}
.seller-app-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.seller-app-footer-links a {
  margin-left: 16px;
  color: var(--tk-accent, #fe2c55);
  text-decoration: none;
}
.seller-app-footer-links a:hover { text-decoration: underline; }
.login-legal-footer {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--tk-text-muted);
}
.login-legal-footer a { color: var(--tk-accent); margin: 0 6px; }
.review-quickstart-card code {
  background: var(--tk-bg-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.shop-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 140px;
}
.shop-card-actions .btn-sm {
  text-align: center;
  white-space: nowrap;
}
.oauth-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--tk-bg-muted);
}
.oauth-review_demo, .oauth-simulation_only, .oauth-live {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
.oauth-not_connected {
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
}
.settings-tiktok-card .oauth-scopes-list code {
  font-size: 12px;
}
.partner-api-summary-hint {
  font-size: 12px;
  font-weight: normal;
}
.partner-api-panel.card {
  margin-top: 20px;
}
.partner-api-collapse {
  margin-bottom: 0;
}
.partner-api-collapse > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
}
.partner-api-collapse > summary::-webkit-details-marker { display: none; }
.partner-api-collapse-body {
  padding: 0 14px 12px;
}
.partner-api-collapse:not([open]) .partner-api-collapse-body {
  display: none;
}

/* Modal / card sections — avoid content flush to edges */
.oms-modal-panel.card {
  padding: 0;
}
.oms-modal-panel .card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--tk-card-border, #e8ecf0);
}
.oms-modal-panel .card-body {
  padding: 20px 24px 8px;
}
.oms-modal-panel .card-body + .filter-actions,
.oms-modal-panel #kkOrderModalFooter {
  padding: 12px 24px 20px;
  margin: 0;
}
.oms-modal-panel.card:not(:has(.card-header)) {
  padding: 20px 24px;
}
.oms-modal-panel.card:not(:has(.card-header)) form {
  margin-top: 8px;
}

/* Product edit — Seller Center listing form */
body.layout-v2 .card.edit-form,
.card.edit-form {
  padding: 24px 28px 28px;
}
.edit-form .table-wrap {
  border: 1px solid var(--tk-card-border, #e2e8f0);
  border-radius: var(--tk-radius, 8px);
  overflow: hidden;
  margin-top: 8px;
  background: var(--tk-card, #fff);
}
.edit-form .table-wrap .orders-table th:first-child,
.edit-form .table-wrap .orders-table td:first-child {
  padding-left: 16px;
}
.edit-form .table-wrap .orders-table th:last-child,
.edit-form .table-wrap .orders-table td:last-child {
  padding-right: 16px;
}
.edit-form .batch-actions {
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--tk-bg-muted, #f5f7fa);
  border: 1px solid var(--tk-card-border, #e8ecf0);
  border-radius: 8px;
}
.edit-notice-info {
  background: var(--tk-bg-muted, #f0f4f8);
  border: 1px solid var(--tk-card-border, #e2e8f0);
  color: var(--tk-text-muted);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.edit-toolbar-sticky {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--tk-card, #fff);
  border: 1px solid var(--tk-card-border, #e8ecf0);
  border-radius: var(--tk-radius, 8px);
  box-shadow: var(--tk-shadow, 0 1px 4px rgba(0,0,0,.06));
}
body.layout-v2 .main-content > .back-link {
  display: inline-block;
  margin-bottom: 8px;
}
.edit-form .form-group label {
  font-weight: 600;
  font-size: 13px;
  color: var(--tk-text, #1a1a2e);
}
.edit-form .input-readonly {
  background: var(--tk-bg-muted, #f5f7fa);
  color: var(--tk-text-muted);
  cursor: default;
}
.edit-form textarea {
  min-height: 96px;
  resize: vertical;
}
.sku-table th {
  font-size: 11px;
  white-space: nowrap;
}
.sidebar-capabilities .cap-off {
  opacity: 0.55;
}
.filter-form.filter-collapsed .filter-row {
  display: none;
}
.filter-form.filter-collapsed .filter-actions {
  margin-top: 0;
}
