html,
body {
  height: 100%;
  font-family: "Source Han Sans CN", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

html.kern-admin-portal,
html.kern-admin-portal body {
  height: 100%;
}

html.kern-admin-portal body {
  min-height: 100vh;
  overflow: hidden;
}

html.kern-admin-portal body > aside {
  width: 16rem;
  flex: 0 0 16rem;
  display: none;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  color: #1e293b;
}

@media (min-width: 768px) {
  html.kern-admin-portal body > aside {
    display: flex;
  }
}

html.kern-admin-portal .kern-admin-brand {
  height: 4rem;
  flex: 0 0 4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

html.kern-admin-portal .kern-admin-brand > i {
  flex: 0 0 auto;
  color: #2563eb;
  font-size: 1.5rem;
  line-height: 1;
}

html.kern-admin-portal .kern-admin-brand-logo {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

html.kern-admin-portal .kern-admin-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  color: #1e293b;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
}

html.kern-admin-portal .kern-admin-brand-accent {
  color: #3b82f6;
}

html.kern-admin-portal aside > nav,
html.kern-admin-portal aside > .nav,
html.kern-admin-portal .kern-admin-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 0;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.kern-admin-portal aside > nav::-webkit-scrollbar,
html.kern-admin-portal aside > .nav::-webkit-scrollbar,
html.kern-admin-portal .kern-admin-nav::-webkit-scrollbar {
  display: none;
}

html.kern-admin-portal aside nav > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

html.kern-admin-portal aside.sidebar .nav a[data-uuid] {
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  gap: 10px;
  font-size: 14px;
  font-weight: normal;
}

html.kern-admin-portal aside.sidebar .nav a[data-uuid] span {
  font-weight: 700;
}

html.kern-admin-portal aside nav a[data-uuid] {
  box-sizing: border-box;
  min-height: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #64748b;
  background: transparent;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

html.kern-admin-portal aside nav a[data-uuid]:hover {
  color: #1e293b;
  background: #f1f5f9;
}

html.kern-admin-portal aside nav a[data-uuid].active {
  color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #dbeafe;
}

html.kern-admin-portal aside nav a[data-uuid] > i[class*="fa-"],
html.kern-admin-portal aside .nav a[data-uuid] > i[class*="fa-"] {
  display: inline-block !important;
  width: 1.5rem;
  flex: 0 0 1.5rem;
  margin-right: 0 !important;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1;
  text-align: center;
  font-style: normal;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-weight: 900;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

html.kern-admin-portal aside .nav a[data-uuid] > i[class*="fa-"] {
  width: 20px;
  flex: 0 0 20px;
  font-size: 14px;
}

html.kern-admin-portal #kernTopToolbar i.fa-regular {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-weight: 400 !important;
}

html.kern-admin-portal #kernTopToolbar i.fa-solid {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-style: normal;
}

html.kern-admin-portal aside nav a[data-uuid]:hover > i[class*="fa-"],
html.kern-admin-portal aside nav a[data-uuid].active > i[class*="fa-"],
html.kern-admin-portal aside .nav a[data-uuid]:hover > i[class*="fa-"],
html.kern-admin-portal aside .nav a[data-uuid].active > i[class*="fa-"] {
  color: #2563eb;
}

html.kern-admin-portal aside nav a[data-uuid] > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.kern-admin-portal [data-kern-admin-nav-group] {
  display: none !important;
}

html.kern-admin-portal .admin-user,
html.kern-admin-portal body > aside > .p-4.border-t {
  flex: 0 0 auto;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
}

html.kern-admin-portal .admin-user-inner,
html.kern-admin-portal body > aside > .p-4.border-t > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

html.kern-admin-portal .admin-user-inner:hover,
html.kern-admin-portal body > aside > .p-4.border-t > div:hover {
  background: #f8fafc;
}

html.kern-admin-portal .admin-user img,
html.kern-admin-portal body > aside img[alt="Admin"] {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border: 0;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 0 0 2px #e2e8f0;
}

/* Flex 布局下允许主内容区纵向滚动 */
body.h-screen.flex.overflow-hidden,
body.h-full.flex.overflow-hidden,
body.flex.flex-col.overflow-hidden.h-screen {
  min-height: 0;
}

body.h-screen.flex.overflow-hidden > main.flex-1,
body.h-full.flex.overflow-hidden > main.flex-1,
body.flex.flex-col.overflow-hidden.h-screen > .flex.flex-1.overflow-hidden,
body.flex.flex-col.overflow-hidden.h-screen > .flex.flex-1.overflow-hidden > main.flex-1 {
  min-height: 0;
}

body.h-screen.flex.overflow-hidden > aside,
body.h-full.flex.overflow-hidden > aside {
  align-self: stretch;
  min-height: 100vh;
  height: 100vh;
}

body.h-screen.flex.overflow-hidden > aside nav a[data-uuid] > i[class*="fa-"],
body.h-full.flex.overflow-hidden > aside nav a[data-uuid] > i[class*="fa-"] {
  display: inline-block !important;
  width: 1.5rem;
  flex-shrink: 0;
  text-align: center;
  font-style: normal;
  line-height: 1;
}

body.h-screen.flex.overflow-hidden > aside nav a[data-uuid] > i[class*="fa-"]::before,
body.h-full.flex.overflow-hidden > aside nav a[data-uuid] > i[class*="fa-"]::before {
  display: inline-block;
}

main.flex-1.flex.flex-col > .flex-1.overflow-y-auto,
main.flex-1.flex.flex-col.min-w-0 > .flex-1.overflow-y-auto {
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

html.kern-agent-portal main.flex-1 .wrapper,
body:has(aside [data-uuid="agent-dashboard"]) main.flex-1 .wrapper {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.kern-list-pagination > div {
  display: flex !important;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.kern-list-pagination nav[aria-label="Pagination"] a[data-page] {
  cursor: pointer;
}

.kern-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  color: #243044;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  font-size: 14px;
  line-height: 1.5;
}

.kern-toast[data-type="error"] {
  border-color: #fecaca;
  color: #991b1b;
}

.kern-toast[data-type="success"] {
  border-color: #bbf7d0;
  color: #166534;
}

.kern-live-empty {
  padding: 28px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
}

.kern-loading-row td {
  padding: 28px;
  color: #64748b;
  text-align: center;
}

.kern-captcha-image {
  object-fit: contain !important;
  padding: 4px;
  background: #ffffff;
}

.feedback-title {
  max-width: 25ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.kern-feedback-captcha-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.kern-feedback-captcha-overlay.hidden,
.kern-feedback-captcha-modal.hidden {
  display: none;
}

.kern-feedback-captcha-modal {
  width: min(100%, 380px);
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 20px;
}

.kern-feedback-captcha-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.kern-feedback-captcha-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.kern-feedback-captcha-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.kern-feedback-captcha-close,
.kern-feedback-captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.kern-feedback-captcha-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.kern-feedback-captcha-refresh {
  width: 42px;
  height: 56px;
}

.kern-feedback-captcha-close:hover,
.kern-feedback-captcha-refresh:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.kern-feedback-captcha-body {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px;
  margin-bottom: 12px;
}

.kern-feedback-captcha-image {
  width: 100%;
  height: 56px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.kern-feedback-captcha-input {
  text-transform: uppercase;
  letter-spacing: 0;
}

.kern-feedback-captcha-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* 日期控件：点击输入框任意位置均可弹出选择器 */
.kern-date-picker-wrap {
  position: relative;
  cursor: pointer;
}

.kern-date-picker-wrap .form-label {
  cursor: pointer;
}

input.form-input[type="date"],
input.form-input[type="month"],
.form-input[type="date"],
.form-input[type="month"] {
  position: relative;
  cursor: pointer;
  width: 100%;
}

input.form-input[type="date"]::-webkit-calendar-picker-indicator,
input.form-input[type="month"]::-webkit-calendar-picker-indicator,
.form-input[type="date"]::-webkit-calendar-picker-indicator,
.form-input[type="month"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

input.form-input[type="date"]::-webkit-datetime-edit,
input.form-input[type="month"]::-webkit-datetime-edit,
.form-input[type="date"]::-webkit-datetime-edit,
.form-input[type="month"]::-webkit-datetime-edit {
  cursor: pointer;
}

.kern-date-picker-wrap--compact {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}

.kern-date-picker-wrap input.kern-filter-control[type="date"],
.kern-date-picker-wrap input.kern-filter-control[type="month"],
.kern-date-picker-wrap .kern-filter-control[type="date"],
.kern-date-picker-wrap .kern-filter-control[type="month"] {
  position: relative;
  cursor: pointer;
  width: 100%;
  min-width: 108px;
  padding-left: 0;
}

.kern-date-picker-wrap input.kern-filter-control[type="date"]::-webkit-calendar-picker-indicator,
.kern-date-picker-wrap input.kern-filter-control[type="month"]::-webkit-calendar-picker-indicator,
.kern-date-picker-wrap .kern-filter-control[type="date"]::-webkit-calendar-picker-indicator,
.kern-date-picker-wrap .kern-filter-control[type="month"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.kern-date-picker-wrap input.kern-filter-control[type="date"]::-webkit-datetime-edit,
.kern-date-picker-wrap input.kern-filter-control[type="month"]::-webkit-datetime-edit,
.kern-date-picker-wrap .kern-filter-control[type="date"]::-webkit-datetime-edit,
.kern-date-picker-wrap .kern-filter-control[type="month"]::-webkit-datetime-edit {
  cursor: pointer;
}

.kern-filter-field--range {
  width: auto;
  min-width: 248px;
  max-width: 320px;
}

.kern-risk-sent-toolbar .kern-filter-field--compact {
  width: auto;
}

.kern-risk-sent-toolbar .btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}

.kern-filter-field {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.kern-filter-field:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.kern-filter-title {
  flex: 0 0 auto;
  padding-left: 12px;
  padding-right: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.kern-filter-control {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  min-height: 40px;
  padding: 10px 12px 10px 4px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.25;
  outline: none;
  box-shadow: none !important;
}

select.kern-filter-control {
  padding-right: 28px;
}

.kern-filter-field--compact {
  min-height: 36px;
}

.kern-filter-field--compact .kern-filter-control {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.kern-filter-range {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-right: 8px;
}

.kern-filter-range .kern-filter-control {
  min-width: 0;
  padding-right: 8px;
}

.kern-filter-separator {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.kern-view-host {
  min-height: 0;
}

.kern-view-pane[hidden] {
  display: none !important;
}

.kern-flat-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

aside .kern-flat-nav .kern-main-nav-item.active {
  background: #eff6ff;
  color: #2563eb;
}

.shell > main.content[hidden] {
  display: none !important;
}

.kern-portal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.kern-portal-header-inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  height: 4rem;
  padding: 0 1rem;
  gap: 1rem;
}

@media (min-width: 640px) {
  .kern-portal-header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .kern-portal-header-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.shell > .kern-portal-header {
  height: auto;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.kern-top-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
}

main.flex-1 > header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.kern-top-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.kern-top-search i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

.kern-top-search input {
  width: 220px;
  height: 34px;
  padding: 0 12px 0 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1f2937;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.kern-top-search input:focus {
  border-color: #bfdbfe;
  background: #ffffff;
}

.kern-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  position: relative;
}

.kern-top-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.kern-top-icon-btn:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.kern-top-icon-btn.is-refreshing i,
.kern-top-icon-btn:disabled i {
  animation: kern-spin 0.85s linear infinite;
}

.kern-top-logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

.kern-top-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px #ffffff;
}

.kern-top-dot[hidden] {
  display: none;
}

.kern-live-empty {
  padding: 40px 16px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

html.kern-agent-portal .kern-agent-header-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  gap: 1rem;
  justify-content: flex-start;
  min-width: 0;
}

html.kern-agent-portal main.flex-1 > header.kern-agent-header {
  overflow: visible;
  flex-shrink: 0;
}

html.kern-agent-portal .kern-agent-header-inner #kernHeaderBannerCarousel {
  flex-shrink: 0;
}

html.kern-agent-portal .kern-agent-header-inner #kernTopToolbar {
  margin-left: auto;
  flex-shrink: 0;
}

html.kern-agent-portal .kern-agent-header-inner > nav {
  min-width: 0;
  flex: 1 1 auto;
}

html.kern-agent-portal #kernTopToolbar {
  width: 424px;
  justify-content: flex-end;
}

html.kern-agent-portal #kernTopToolbar .kern-top-search {
  width: 220px;
}

html.kern-agent-portal #kernTopToolbar .kern-top-search input {
  width: 220px;
}

html.kern-agent-portal #kernTopToolbar .kern-top-actions {
  width: 168px;
  justify-content: flex-end;
}

html.kern-admin-portal .kern-admin-header-inner {
  box-sizing: border-box;
  width: 100%;
  gap: 1rem;
  justify-content: flex-start;
  min-width: 0;
}

html.kern-admin-portal main.flex-1 > header.kern-admin-header {
  overflow: visible;
  flex-shrink: 0;
}

html.kern-admin-portal .kern-admin-header-inner #kernHeaderBannerCarousel {
  flex-shrink: 0;
}

html.kern-admin-portal .kern-admin-header-inner > nav {
  min-width: 0;
  flex: 1 1 auto;
}

html.kern-admin-portal #kernTopToolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}

html.kern-admin-portal #kernTopToolbar .kern-top-search {
  width: 16rem;
  flex-shrink: 0;
}

html.kern-admin-portal #kernTopToolbar .kern-top-search input {
  width: 16rem;
}

html.kern-admin-portal #kernTopToolbar .kern-top-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.kern-header-banner-carousel {
  --kern-banner-display-width: 630px;
  --kern-banner-display-height: 60px;
  position: relative;
  flex: 0 0 var(--kern-banner-display-width);
  width: var(--kern-banner-display-width);
  min-width: var(--kern-banner-display-width);
  max-width: var(--kern-banner-display-width);
  height: var(--kern-banner-display-height);
  margin: 0 0.5rem;
  overflow: hidden;
  background: transparent;
}

html.kern-admin-portal .kern-admin-header-inner #kernHeaderBannerCarousel,
html.kern-agent-portal .kern-agent-header-inner #kernHeaderBannerCarousel {
  background: transparent;
}

.kern-marketing-banner-preview-box {
  width: 210px;
  height: 20px;
  flex-shrink: 0;
}

.kern-marketing-login-image-preview-box {
  width: 160px;
  height: 90px;
  flex-shrink: 0;
}

.kern-marketing-login-logo-preview-box {
  width: 140px;
  height: 56px;
  flex-shrink: 0;
}

.kern-login-logo-image {
  display: block;
  flex-shrink: 0;
  height: 2.8rem;
  width: 168px;
  max-width: 100%;
  background-color: currentColor;
  -webkit-mask-image: var(--kern-login-logo-url);
  mask-image: var(--kern-login-logo-url);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

.kern-header-banner-track {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
}

.kern-header-banner-slide,
.kern-header-banner-link.kern-header-banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.kern-header-banner-slide.is-active,
.kern-header-banner-link.kern-header-banner-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.kern-header-banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: none;
  mix-blend-mode: normal;
}

.kern-header-banner-link {
  text-decoration: none;
  color: inherit;
}

.kern-header-banner-draft {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.kern-header-banner-dots {
  position: absolute;
  right: 6px;
  bottom: 4px;
  z-index: 2;
  display: flex;
  gap: 4px;
}

.kern-header-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(100, 116, 139, 0.35);
  cursor: pointer;
}

.kern-header-banner-dot.is-active {
  background: #64748b;
  box-shadow: none;
}

.kern-style-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
}

.kern-style-carousel-track {
  position: relative;
  height: 18rem;
}

.kern-style-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.kern-style-carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.kern-style-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kern-style-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem 0.9rem;
}

.kern-style-carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 0;
  background: rgba(100, 116, 139, 0.35);
}

.kern-style-carousel-dot.is-active {
  background: #64748b;
}

@media (max-width: 1180px) {
  .kern-header-banner-carousel {
    flex: 1 1 360px !important;
    width: auto !important;
    min-width: 280px !important;
    max-width: 630px !important;
  }

  .kern-top-search input {
    width: 180px;
  }
}

@media (max-width: 860px) {
  .kern-header-banner-carousel {
    display: none !important;
  }

  .kern-portal-header-inner,
  html.kern-admin-portal .kern-admin-header-inner,
  html.kern-agent-portal .kern-agent-header-inner {
    gap: 0.5rem;
  }

  .kern-top-search input,
  html.kern-admin-portal #kernTopToolbar .kern-top-search,
  html.kern-admin-portal #kernTopToolbar .kern-top-search input,
  html.kern-agent-portal #kernTopToolbar .kern-top-search,
  html.kern-agent-portal #kernTopToolbar .kern-top-search input {
    width: 150px;
  }
}

html.kern-admin-portal .kern-admin-header-inner > nav {
  flex: 0 1 auto;
  min-width: 0;
}

html.kern-admin-portal .shell > header.topbar.kern-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

html.kern-admin-portal .shell > header.topbar.kern-admin-header > nav {
  min-width: 0;
  flex: 1 1 auto;
}

html.kern-admin-portal .kern-enterprise-header.kern-admin-header {
  padding: 0;
}

@keyframes kern-spin {
  to {
    transform: rotate(360deg);
  }
}

#kernTopToolbar .top-settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 176px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  z-index: 40;
  display: grid;
  gap: 4px;
}

#kernTopToolbar .top-settings-menu[hidden] {
  display: none !important;
}

#kernTopToolbar .top-settings-menu a {
  display: block;
  height: 34px;
  line-height: 34px;
  border-radius: 6px;
  padding: 0 10px;
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

#kernTopToolbar .top-settings-menu a:hover {
  background: #f1f5f9;
  color: #1f2937;
}

#kernTopToolbar .top-settings-menu a.active {
  background: #eff6ff;
  color: #2563eb;
}

html.kern-agent-portal .kern-agent-brand-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

html.kern-agent-portal [data-kern-agent-brand-shell],
html.kern-user-portal .kern-user-brand-shell {
  min-height: 4rem;
}

.kern-agent-brand-logo,
.kern-user-brand-logo,
[data-kern-user-brand-logo],
[data-kern-agent-brand-logo] {
  display: block;
  flex: 0 0 auto;
  width: 2.625rem;
  height: 2.625rem;
  max-width: 2.625rem;
  max-height: 2.625rem;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
}

html.kern-agent-portal .kern-agent-brand-logo,
html.kern-user-portal .kern-user-brand-logo {
  flex: 0 0 auto;
  width: 2.625rem;
  height: 2.625rem;
  max-width: 2.625rem;
  max-height: 2.625rem;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
}

html.kern-agent-portal .kern-agent-brand-name {
  min-width: 0;
  overflow: hidden;
  color: #1e293b;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.kern-user-portal,
html.kern-user-portal body {
  height: auto;
  min-height: 100%;
}

html.kern-user-portal body {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto !important;
}

html.kern-user-portal body.h-screen,
html.kern-user-portal body.h-full {
  height: auto !important;
  min-height: 100vh;
  overflow: auto !important;
}

html.kern-user-portal aside.kern-aside {
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  flex-shrink: 0;
}

html.kern-user-portal .kern-user-brand-shell {
  flex: 0 0 4rem;
}

html.kern-user-portal .kern-user-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  width: 100%;
  color: #1e293b;
  text-decoration: none;
}

html.kern-user-portal #previewEnterpriseTopLogo {
  background: transparent;
}

html.kern-user-portal .kern-user-brand-icon {
  flex: 0 0 auto;
  width: 2rem;
  color: #2563eb;
  font-size: 1.375rem;
  line-height: 1;
  text-align: center;
}

html.kern-user-portal .kern-user-brand-name {
  min-width: 0;
  overflow: hidden;
  color: #1e293b;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.kern-user-portal aside.kern-aside > nav,
html.kern-user-portal aside.kern-aside > .nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

html.kern-user-portal aside.kern-aside .kern-main-nav-item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

html.kern-user-portal aside.kern-aside .kern-main-nav-item:hover {
  color: #1e293b;
  background: #f1f5f9;
}

html.kern-user-portal aside.kern-aside .kern-main-nav-item.bg-brand-50,
html.kern-user-portal aside.kern-aside .kern-main-nav-item.active {
  color: #2563eb;
  background: #eff6ff;
}

html.kern-user-portal aside.kern-aside .kern-main-nav-item > i {
  display: inline-block;
  width: 1.5rem;
  flex: 0 0 1.5rem;
  margin-right: 0;
  color: #94a3b8;
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

html.kern-user-portal aside.kern-aside .kern-main-nav-item:hover > i,
html.kern-user-portal aside.kern-aside .kern-main-nav-item.bg-brand-50 > i,
html.kern-user-portal aside.kern-aside .kern-main-nav-item.active > i {
  color: #3b82f6;
}

html.kern-user-portal aside.kern-aside .kern-main-nav-item > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.kern-user-portal .kern-sidebar-user {
  margin-top: auto;
  flex-shrink: 0;
}

html.kern-user-portal main.flex-1 {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  overflow: visible !important;
}

html.kern-user-portal .kern-view-host {
  flex: 1;
  min-height: calc(100vh - 4rem);
  overflow: visible !important;
}

html.kern-user-portal .kern-view-pane {
  overflow-y: auto;
  min-height: calc(100vh - 4rem);
}

html.kern-user-portal #kernSettingsView .hidden,
html.kern-user-portal #kernSettingsView [hidden] {
  display: none !important;
}

html.kern-user-portal #kernSettingsView .enterprise-tab-panels {
  display: grid;
}

html.kern-user-portal #kernSettingsView .enterprise-tab-panels > [id^="panel-"] {
  grid-area: 1 / 1;
  min-width: 0;
  width: 100%;
}

html.kern-user-portal #sidebarUserAvatar:not([src]),
html.kern-user-portal #sidebarUserAvatar[src=""] {
  object-fit: cover;
  background: #e2e8f0;
}

html.kern-user-portal .wrapper[id^="resume"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  html.kern-user-portal .wrapper[id^="resume"] {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  html.kern-user-portal .wrapper[id^="resume"] {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

html.kern-user-portal .wrapper[id^="resume"] .card {
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.08);
}

html.kern-user-portal .wrapper[id^="resume"] .h2 {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
}

html.kern-user-portal .wrapper[id^="resume"] .h3 {
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
}

html.kern-user-portal .wrapper[id^="resume"] .panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
}

html.kern-user-portal .wrapper[id^="resume"] .panel-title i {
  color: #3b82f6;
}

html.kern-user-portal .wrapper[id^="resume"] .caption {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

html.kern-user-portal #resumeJobCards .resume-job-bookmark {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  padding: 0.25rem 0.625rem;
  color: #ED6A00;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

html.kern-user-portal #resumeJobCards .resume-job-bookmark:hover,
html.kern-user-portal #resumeJobCards .resume-job-bookmark.is-active {
  background: transparent;
  color: #ED6A00;
  transform: translateY(-1px);
}

html.kern-user-portal #resumeJobCards .resume-job-card-main {
  padding-right: 2.5rem;
}

html.kern-user-portal #resumeJobCards .delete-resume-job {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #94a3b8;
  opacity: 0;
  pointer-events: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

html.kern-user-portal #resumeJobCards .resume-job-card:hover .delete-resume-job,
html.kern-user-portal #resumeJobCards .resume-job-card:focus-within .delete-resume-job {
  opacity: 1;
  pointer-events: auto;
}

html.kern-user-portal #resumeJobCards .delete-resume-job:hover {
  color: #e11d48;
  transform: translateY(-1px);
}

html.kern-user-portal .resume-version-card .resume-version-card-main {
  padding-right: 2.5rem;
}

html.kern-user-portal .resume-version-card .delete-resume-version {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #94a3b8;
  opacity: 0;
  pointer-events: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

html.kern-user-portal .resume-version-card:hover .delete-resume-version,
html.kern-user-portal .resume-version-card:focus-within .delete-resume-version {
  opacity: 1;
  pointer-events: auto;
}

html.kern-user-portal .resume-version-card .delete-resume-version:hover {
  color: #e11d48;
  transform: translateY(-1px);
}

html.kern-user-portal .resume-version-card .resume-version-bookmark {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: transparent;
  padding: 0.25rem 0.625rem;
  color: #ED6A00;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

html.kern-user-portal .resume-version-card .resume-version-bookmark:hover,
html.kern-user-portal .resume-version-card .resume-version-bookmark.is-active {
  background: transparent;
  color: #ED6A00;
  transform: translateY(-1px);
}

html.kern-user-portal .wrapper[id^="resume"] .form-label {
  display: block;
  margin-bottom: 0.375rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

html.kern-user-portal .wrapper[id^="resume"] .form-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.625rem 0.75rem;
  color: #0f172a;
  font-size: 0.875rem;
  line-height: 1.25rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
  outline: none;
}

html.kern-user-portal .wrapper[id^="resume"] select.form-input {
  min-height: 2.625rem;
}

html.kern-user-portal .wrapper[id^="resume"] textarea.form-input {
  min-height: 6rem;
  resize: vertical;
}

html.kern-user-portal .wrapper[id^="resume"] .form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

html.kern-user-portal .wrapper[id^="resume"] .field-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  html.kern-user-portal .wrapper[id^="resume"] .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  html.kern-user-portal .wrapper[id^="resume"] .field-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

html.kern-user-portal .wrapper[id^="resume"] .btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

html.kern-user-portal .wrapper[id^="resume"] .btn-primary {
  background: #3b82f6;
  color: #ffffff;
}

html.kern-user-portal .wrapper[id^="resume"] .btn-primary:hover {
  background: #2563eb;
}

html.kern-user-portal .wrapper[id^="resume"] .btn-secondary {
  border-color: #e2e8f0;
  background: #ffffff;
  color: #0f172a;
}

html.kern-user-portal .wrapper[id^="resume"] .btn-secondary:hover {
  border-color: #3b82f6;
  color: #2563eb;
}

html.kern-user-portal .wrapper[id^="resume"] .step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.75rem;
}

html.kern-user-portal .wrapper[id^="resume"] .tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: #eff6ff;
  padding: 0.25rem 0.625rem;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
}

html.kern-user-portal .wrapper[id^="resume"] .metric {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.75rem 1rem;
}

/* 套餐订阅卡片 */
.kern-package-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .kern-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .kern-package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kern-package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kern-package-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.kern-package-card.is-selected {
  border: 2px solid #3b82f6;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.14);
}

.kern-package-ribbon {
  position: absolute;
  top: 12px;
  right: -28px;
  width: 108px;
  padding: 4px 0;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.kern-package-ribbon.ribbon-default {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

.kern-package-ribbon.ribbon-recommend {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.kern-package-ribbon.ribbon-hot {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.kern-package-ribbon.ribbon-custom {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.kern-package-ribbon.ribbon-new {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.kern-package-head {
  margin-bottom: 1rem;
  text-align: center;
}

.kern-package-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.375rem;
  margin: 0;
  color: #0f172a;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}

.kern-package-subtitle {
  margin: 0.5rem 0 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
}

.kern-package-price-block {
  margin-bottom: 1rem;
  text-align: center;
}

.kern-package-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.kern-package-price-value {
  color: #0f172a;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.kern-package-price-unit {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

.kern-package-price-original {
  margin-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.875rem;
  text-decoration: line-through;
}

.kern-package-price-note {
  margin-top: 0.375rem;
  color: #64748b;
  font-size: 0.8125rem;
}

.kern-points-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  color: #92400e;
  font-weight: 700;
  white-space: nowrap;
}

.kern-points-icon {
  position: relative;
  display: inline-flex;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(146, 64, 14, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #fff8c7 0 18%, transparent 19%),
    radial-gradient(circle at 50% 56%, rgba(180, 83, 9, 0.14) 0 34%, rgba(251, 191, 36, 0.1) 35% 45%, transparent 46%),
    linear-gradient(145deg, #fff3a3 0%, #fbbf24 42%, #d97706 100%);
  box-shadow:
    inset 0 2px 2px rgba(255, 248, 199, 0.55),
    inset 0 -3px 4px rgba(120, 53, 15, 0.34),
    0 2px 5px rgba(217, 119, 6, 0.18);
  color: #78350f;
  font-size: 0.95em;
  line-height: 1;
  transform: none;
}

.kern-points-icon::before {
  content: "K";
  position: relative;
  z-index: 1;
  font-size: 0.72em;
  font-weight: 950;
  line-height: 1;
  color: rgba(180, 83, 9, 0.38);
  text-shadow:
    0 -1px 0 rgba(146, 64, 14, 0.5),
    0 1px 0 rgba(255, 239, 184, 0.78),
    -1px -1px 1px rgba(146, 64, 14, 0.36),
    1px 1px 1px rgba(255, 247, 196, 0.42);
  transform: translateY(0.02em);
}

.kern-points-icon::after {
  content: "";
  position: absolute;
  inset: 0.24em;
  border-radius: 50%;
  box-shadow:
    inset 0 2px 3px rgba(146, 64, 14, 0.38),
    inset 0 -1px 2px rgba(255, 242, 166, 0.56);
  pointer-events: none;
}

.kern-package-points-note {
  margin-top: 0.625rem;
  color: #92400e;
  font-size: 0.875rem;
}

.kern-package-points-note .kern-points-icon {
  font-size: 1rem;
}

.kern-resume-prompt-points {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #92400e;
  font-weight: 700;
}

.kern-resume-prompt-points .kern-points-icon {
  font-size: 1rem;
}

.kern-resume-photo-generation-points {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #fff;
  font-weight: 700;
}

.kern-resume-photo-generation-points .kern-points-icon {
  font-size: 1rem;
}

html.kern-user-portal #modalResumePromptButtonList {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.375rem;
  overflow: visible;
}

html.kern-user-portal #modalResumePromptButtonList [data-resume-prompt-shortcut] {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  gap: 0.375rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1rem;
  white-space: nowrap;
}

html.kern-user-portal .wrapper[id^="resume"] #modalGenerateResumeVersions.is-resume-generating,
html.kern-user-portal #modalResumePromptButtonList [data-resume-prompt-shortcut].is-resume-generating {
  cursor: wait;
  pointer-events: none;
}

html.kern-user-portal .wrapper[id^="resume"] #modalGenerateResumeVersions.is-resume-generation-locked,
html.kern-user-portal #modalResumePromptButtonList [data-resume-prompt-shortcut].is-resume-generation-locked,
html.kern-user-portal #modalResumePromptButtonList [data-resume-prompt-shortcut].is-resume-generation-locked:hover {
  border-color: #e5e7eb;
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
}

html.kern-user-portal #modalResumePromptButtonList [data-resume-prompt-shortcut] > span:first-of-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.kern-user-portal #modalResumePromptButtonList .kern-resume-prompt-points {
  flex: 0 0 auto;
  font-size: 0.75rem;
}

html.kern-user-portal #modalResumePromptButtonList .kern-points-icon {
  font-size: 0.85rem;
}

html.kern-user-portal #modalResumePromptButtonList [data-resume-prompt-shortcut].is-resume-generation-locked .kern-resume-prompt-points {
  color: #94a3b8;
}

html.kern-user-portal #modalResumePromptButtonList [data-resume-prompt-shortcut].is-resume-generation-locked .kern-points-icon {
  border-color: rgba(148, 163, 184, 0.45);
  background:
    radial-gradient(circle at 32% 24%, #f8fafc 0 18%, transparent 19%),
    radial-gradient(circle at 50% 56%, rgba(100, 116, 139, 0.12) 0 34%, rgba(203, 213, 225, 0.1) 35% 45%, transparent 46%),
    linear-gradient(145deg, #f8fafc 0%, #cbd5e1 48%, #94a3b8 100%);
  box-shadow:
    inset 0 2px 2px rgba(248, 250, 252, 0.7),
    inset 0 -3px 4px rgba(71, 85, 105, 0.18),
    0 2px 5px rgba(100, 116, 139, 0.1);
  color: #64748b;
}

html.kern-user-portal #modalResumePromptButtonList [data-resume-prompt-shortcut].is-resume-generation-locked .kern-points-icon::before {
  color: rgba(100, 116, 139, 0.38);
  text-shadow:
    0 -1px 0 rgba(100, 116, 139, 0.34),
    0 1px 0 rgba(248, 250, 252, 0.78);
}

html.kern-user-portal #modalResumePromptButtonList [data-resume-prompt-shortcut].is-resume-generation-locked .kern-points-icon::after {
  box-shadow:
    inset 0 2px 3px rgba(100, 116, 139, 0.22),
    inset 0 -1px 2px rgba(248, 250, 252, 0.7);
}

html.kern-user-portal .kern-resume-generation-progress {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  display: flex;
  width: min(31rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 2rem));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

html.kern-user-portal .kern-resume-generation-progress.hidden {
  display: none;
}

html.kern-user-portal .kern-resume-generation-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.9rem 1rem 0.8rem;
}

html.kern-user-portal .kern-resume-generation-progress-eyebrow {
  margin: 0 0 0.2rem;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
}

html.kern-user-portal .kern-resume-generation-progress-title {
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.kern-user-portal .kern-resume-generation-progress-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
}

html.kern-user-portal .kern-resume-generation-progress-time {
  display: inline-flex;
  min-width: 3.5rem;
  justify-content: center;
  border-radius: 999px;
  background: #eff6ff;
  padding: 0.25rem 0.55rem;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
}

html.kern-user-portal .kern-resume-generation-progress-close {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  color: #64748b;
  transition: border-color 0.16s ease, color 0.16s ease;
}

html.kern-user-portal .kern-resume-generation-progress-close:hover {
  border-color: #3b82f6;
  color: #2563eb;
}

html.kern-user-portal .kern-resume-generation-progress-status {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.65rem 1rem;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
}

html.kern-user-portal .kern-resume-generation-progress[data-status="error"] .kern-resume-generation-progress-status {
  background: #fff1f2;
  color: #e11d48;
}

html.kern-user-portal .kern-resume-generation-progress[data-status="done"] .kern-resume-generation-progress-status {
  background: #ecfdf5;
  color: #047857;
}

html.kern-user-portal .kern-resume-generation-progress-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0.9rem 1rem 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.kern-user-portal .kern-resume-generation-progress-body::-webkit-scrollbar {
  display: none;
}

html.kern-user-portal .kern-resume-generation-progress-phases {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.kern-user-portal .kern-resume-generation-progress-phases li {
  position: relative;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.45;
}

html.kern-user-portal .kern-resume-generation-progress-phases li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #94a3b8;
}

html.kern-user-portal .kern-resume-generation-progress-phases li.is-current {
  color: #0f172a;
}

html.kern-user-portal .kern-resume-generation-progress-phases li.is-current::before {
  background: #3b82f6;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.12);
}

html.kern-user-portal .kern-resume-generation-progress-stream {
  margin-top: 0.85rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
}

html.kern-user-portal .kern-resume-generation-progress-stream-head {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.45rem 0.65rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

html.kern-user-portal .kern-resume-generation-progress-stream pre {
  max-height: 12rem;
  margin: 0;
  overflow-y: auto;
  padding: 0.65rem;
  color: #334155;
  font-size: 0.75rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.kern-user-portal .kern-resume-generation-progress-stream pre::-webkit-scrollbar {
  display: none;
}

@media (max-width: 720px) {
  html.kern-user-portal .kern-resume-generation-progress {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
    max-height: min(30rem, calc(100vh - 1.5rem));
  }

  html.kern-user-portal .kern-resume-generation-progress-title {
    white-space: normal;
  }
}

html.kern-user-portal .kern-resume-generation-notice-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.36);
}

html.kern-user-portal .kern-resume-generation-notice-mask.hidden {
  display: none;
}

html.kern-user-portal .kern-resume-generation-notice {
  position: relative;
  display: grid;
  width: min(26rem, 100%);
  gap: 1rem;
  border: 1px solid #dbeafe;
  border-radius: 0.5rem;
  background: #fff;
  padding: 1.35rem;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
  text-align: center;
}

html.kern-user-portal .kern-resume-generation-notice-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  color: #64748b;
}

html.kern-user-portal .kern-resume-generation-notice-close:hover {
  border-color: #3b82f6;
  color: #2563eb;
}

html.kern-user-portal .kern-resume-generation-notice-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 1.25rem;
}

html.kern-user-portal .kern-resume-generation-notice-body {
  display: grid;
  gap: 0.35rem;
}

html.kern-user-portal .kern-resume-generation-notice-eyebrow {
  margin: 0;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
}

html.kern-user-portal .kern-resume-generation-notice-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.35;
}

html.kern-user-portal .kern-resume-generation-notice-text {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
}

html.kern-user-portal .kern-resume-generation-notice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

html.kern-user-portal .kern-resume-generation-notice-actions .btn {
  min-width: 7.5rem;
}

.kern-package-promo {
  display: inline-flex;
  align-items: center;
  margin-top: 0.625rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 0.75rem;
  font-weight: 600;
}

.kern-package-divider {
  height: 1px;
  margin: 0 0 1rem;
  background: #e2e8f0;
}

.kern-package-features {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.kern-package-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: #334155;
  font-size: 0.875rem;
  line-height: 1.45;
}

.kern-package-features li.is-unsupported {
  color: #94a3b8;
}

.kern-package-features li i {
  flex-shrink: 0;
  width: 1rem;
  margin-top: 0.125rem;
  font-size: 0.875rem;
  text-align: center;
}

.kern-package-features li i.fa-check {
  color: #22c55e;
}

.kern-package-features li i.fa-times {
  color: #cbd5e1;
}

.kern-package-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.kern-package-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.kern-package-btn-subscribe {
  border: none;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}

.kern-package-btn-subscribe:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.kern-package-btn-subscribe.is-disabled,
.kern-package-btn-subscribe:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* 订阅弹窗 */
.kern-subscribe-body .kern-subscribe-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kern-subscribe-body .kern-subscribe-field.hidden,
.kern-subscribe-body #subscribe-user-field[hidden] {
  display: none !important;
}

.kern-subscribe-label {
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
}

.kern-subscribe-banner {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.kern-subscribe-banner-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  color: #0f172a;
  font-size: 0.9375rem;
  font-weight: 700;
}

.kern-subscribe-banner-name {
  color: #0f172a;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.kern-subscribe-banner-unit {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.kern-subscribe-banner-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.45;
}

.kern-subscribe-banner-renewal {
  color: #ea580c;
  font-weight: 600;
}

.kern-cycle-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.375rem;
}

.kern-subscribe-field:has(.kern-cycle-grid) {
  overflow: visible;
}

.kern-cycle-empty {
  margin: 0;
  padding: 0.75rem 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.kern-cycle-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 0.375rem 0.625rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.kern-cycle-card:not(.kern-cycle-card--loading):hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.kern-cycle-card.is-selected {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.12),
    0 6px 16px rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

.kern-cycle-card.has-discount {
  padding-top: 1rem;
}

.kern-cycle-card--loading {
  flex: 1 1 100%;
  cursor: default;
  background: #f8fafc;
  box-shadow: none;
}

.kern-cycle-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.kern-cycle-card-label {
  position: relative;
  z-index: 0;
  max-width: 100%;
  padding: 0 0.125rem;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kern-cycle-card.has-discount .kern-cycle-card-label {
  margin-top: 0.125rem;
  padding-right: 0.25rem;
}

.kern-cycle-card.is-selected .kern-cycle-card-label {
  color: #1d4ed8;
}

.kern-cycle-card-check {
  position: absolute;
  right: 0.5rem;
  bottom: 0.4375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #3b82f6;
  color: #ffffff;
  font-size: 0.5rem;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.kern-cycle-card.is-selected .kern-cycle-card-check {
  opacity: 1;
  transform: scale(1);
}

.kern-cycle-discount-tag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  pointer-events: none;
}

.kern-cycle-discount-tag-text {
  display: block;
  min-width: 3.5rem;
  padding: 0.1875rem 0.125rem;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 55%, #ea580c 100%);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  transform: translate(34%, -10%) rotate(45deg);
  transform-origin: center center;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.28);
}

.kern-cycle-discount-tag.is-decimal {
  width: 3.75rem;
  height: 3.75rem;
}

.kern-cycle-discount-tag.is-decimal .kern-cycle-discount-tag-text {
  min-width: 4.75rem;
  padding: 0.125rem 0.25rem;
  font-size: 0.5625rem;
  letter-spacing: 0;
  transform: translate(42%, -12%) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .kern-cycle-card {
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  .kern-cycle-card:not(.kern-cycle-card--loading):hover,
  .kern-cycle-card.is-selected {
    transform: none;
  }

  .kern-cycle-card-check {
    transition: opacity 0.18s ease;
  }
}

.kern-user-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.kern-user-slider-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
}

.kern-user-slider {
  --kern-slider-progress: 0%;
  width: 100%;
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #3b82f6 0%,
    #6366f1 var(--kern-slider-progress),
    #e2e8f0 var(--kern-slider-progress),
    #e2e8f0 100%
  );
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.kern-user-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.kern-user-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kern-user-slider::-webkit-slider-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.55);
}

.kern-user-slider::-moz-range-track {
  height: 8px;
  border: none;
  border-radius: 999px;
  background: #e2e8f0;
}

.kern-user-slider::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.kern-user-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
  cursor: pointer;
}

.kern-user-slider-input-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.kern-user-count-input {
  width: 5.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kern-user-count-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.kern-user-count-input::-webkit-outer-spin-button,
.kern-user-count-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.kern-user-count-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.kern-user-count-unit {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
}

.kern-payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.kern-payment-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.kern-payment-card.is-active {
  border-color: #3b82f6;
  background: #f0f7ff;
}

.kern-payment-radio {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0;
  border: 2px solid #cbd5e1;
  accent-color: #3b82f6;
  cursor: pointer;
}

.kern-payment-icon {
  flex-shrink: 0;
  font-size: 1.375rem;
  line-height: 1;
}

.kern-payment-icon.wechat {
  color: #22c55e;
}

.kern-payment-icon.alipay {
  color: #3b82f6;
}

.kern-payment-label {
  color: #334155;
  font-size: 0.9375rem;
  font-weight: 600;
}

.kern-subscribe-actions {
  align-items: stretch;
}

.kern-subscribe-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.kern-subscribe-actions .btn .fa-credit-card {
  font-size: 1rem;
  line-height: 1;
}

.kern-price-summary {
  padding: 0.75rem 0.875rem;
  border-radius: 8px;
  background: #f8fafc;
}

.kern-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
  color: #334155;
  font-size: 0.8125rem;
}

.kern-price-total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
  margin-bottom: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.kern-price-total span:last-child {
  font-size: 1.25rem;
}

.kern-qr-frame {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.kern-qr-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.kern-qr-image {
  display: block;
  width: 220px;
  height: 220px;
}

.kern-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #ffffff;
  pointer-events: none;
}

.kern-qr-logo .fa-brands {
  font-size: 2rem;
  line-height: 1;
}

.kern-qr-logo.wechat .fa-brands {
  color: #07c160;
}

.kern-qr-logo.alipay .fa-brands {
  color: #1677ff;
}

.kern-payment-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
}

.btn-edit-agent.is-disabled {
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
}

/* User-center style tabs (package subscribe, feedback, etc.) */
.settings-tab-bar {
  border-bottom: 1px solid #dbe3ef;
  background: #f8fafc;
}

.settings-tab-nav {
  display: flex;
  flex-wrap: wrap;
}

.settings-tab-nav .tab-nav-item,
.tab-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.tab-nav-item:hover {
  color: #1f2937;
}

.tab-nav-item.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.tab-nav-item.hidden,
.tab-nav-item[hidden] {
  display: none !important;
}

[data-enterprise-subscribe-col="points"].hidden,
[data-enterprise-subscribe-col="points"][hidden] {
  display: none !important;
}

[data-risk-recipient-picker] [data-recipient-tab].is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #2563eb;
}

.kern-recipient-sidebar .kern-recipient-panel {
  max-height: min(28rem, calc(100vh - 18rem));
  min-height: 16rem;
}

.kern-recipient-panel {
  max-height: 18rem;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
}

.kern-recipient-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.kern-recipient-row:last-child {
  border-bottom: 0;
}

.kern-recipient-row:hover,
.kern-recipient-row.is-selected {
  background: #f8fafc;
}

.kern-recipient-row.is-selected {
  background: #eff6ff;
}

.kern-recipient-row .form-checkbox {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.kern-recipient-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-top: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  background: #f8fafc;
}

.kern-recipient-pagination.hidden {
  display: none;
}

.kern-recipient-pagination-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kern-recipient-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.kern-recipient-option:last-child {
  border-bottom: 0;
}

.kern-recipient-option:hover,
.kern-recipient-option.is-selected {
  background: #f8fafc;
}

.kern-recipient-option.is-selected {
  background: #eff6ff;
}

.kern-recipient-option .form-checkbox {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.kern-recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  max-width: 100%;
  padding: 0.25rem 0.5rem 0.25rem 0.625rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #dbeafe;
  color: #1e293b;
  font-size: 0.75rem;
  line-height: 1.25;
}

.kern-recipient-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.kern-recipient-chip button:hover {
  background: #fee2e2;
  color: #dc2626;
}

.kern-recipient-empty-note {
  padding: 0.75rem;
  color: #64748b;
  font-size: 0.875rem;
  text-align: center;
}

/* Login page: tab switcher + password visibility */
.login-mode-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.login-mode-tab {
  flex: 1;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  color: #64748b;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.login-mode-tab:hover:not(.active) {
  color: #334155;
}

.login-mode-tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.login-mode-tab:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.login-password-wrap .form-input {
  padding-right: 2.75rem;
}

.login-password-wrap .password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.login-password-wrap .password-toggle:hover {
  color: #3b82f6;
  background: #eff6ff;
}

.login-form-body {
  display: grid;
  align-items: start;
}

.login-form-body > .login-form-panel {
  grid-area: 1 / 1;
  width: 100%;
}

.login-form-body > .login-form-panel.hidden {
  display: flex !important;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.login-form-options-spacer {
  flex-shrink: 0;
}

.kern-slide-captcha {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kern-slide-captcha-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 160;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f8fafc;
  user-select: none;
}

.kern-slide-captcha-bg,
.kern-slide-captcha-piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.kern-slide-captcha-piece {
  z-index: 2;
}

.kern-slide-captcha-track {
  position: relative;
  height: 2.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #f8fafc;
  overflow: hidden;
}

.kern-slide-captcha-track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, #dbeafe, #bfdbfe);
  transition: background 0.2s ease;
}

.kern-slide-captcha-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: 3rem;
  font-size: 0.8125rem;
  color: #64748b;
  pointer-events: none;
}

.kern-slide-captcha-handle {
  position: absolute;
  top: 2px;
  left: 0;
  width: 2.5rem;
  height: calc(100% - 4px);
  border: 0;
  border-radius: 9999px;
  background: #fff;
  color: #64748b;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.12);
  cursor: grab;
  touch-action: none;
  z-index: 1;
}

.kern-slide-captcha-handle:active {
  cursor: grabbing;
}

.kern-slide-captcha.is-verifying .kern-slide-captcha-handle,
.kern-slide-captcha.is-success .kern-slide-captcha-handle {
  cursor: default;
}

.kern-slide-captcha.is-success .kern-slide-captcha-track-fill {
  background: linear-gradient(90deg, #bbf7d0, #86efac);
}

.kern-slide-captcha.is-success .kern-slide-captcha-handle {
  background: #10b981;
  color: #fff;
}

.kern-slide-captcha.is-error .kern-slide-captcha-track-fill {
  background: linear-gradient(90deg, #fecaca, #fca5a5);
}

.kern-slide-captcha-status {
  min-height: 1.25rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.kern-slide-captcha.is-error .kern-slide-captcha-status {
  color: #ef4444;
}

.kern-slide-captcha.is-success .kern-slide-captcha-status {
  color: #10b981;
}

.btn.kern-sms-countdown,
.btn.kern-sms-countdown:disabled,
.button.kern-sms-countdown,
.button.kern-sms-countdown:disabled {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
}

.kern-captcha-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.kern-captcha-overlay.hidden {
  display: none !important;
}

.kern-captcha-overlay-inner {
  width: 100%;
  max-width: 400px;
}

.kern-captcha-modal {
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.kern-captcha-modal.hidden {
  display: none !important;
}

.kern-captcha-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.kern-captcha-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.kern-captcha-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.kern-captcha-modal-close:hover {
  background: #f1f5f9;
  color: #334155;
}

.kern-captcha-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kern-captcha-modal-actions {
  display: flex;
  gap: 12px;
}

.kern-captcha-modal-refresh {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.kern-captcha-modal-refresh:hover {
  background: #f8fafc;
}

.kern-active-package-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 2rem;
}

.kern-active-package-card {
  max-width: 880px;
}

.kern-active-package-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%);
  border-bottom: 1px solid #e2e8f0;
}

.kern-active-package-hero-main {
  flex: 1 1 320px;
  min-width: 0;
}

.kern-active-package-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
}

.kern-active-package-name {
  margin: 0.75rem 0 0.375rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.kern-active-package-type {
  margin: 0;
  font-size: 0.9375rem;
  color: #64748b;
}

.kern-active-package-body {
  padding: 1.5rem 2rem 2rem;
}

.kern-active-package-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .kern-active-package-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kern-active-package-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.125rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.kern-active-package-meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kern-active-package-meta-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-all;
}

.kern-active-package-meta-hint {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

.kern-active-package-meta-accent {
  color: #ea580c;
}

.kern-active-package-divider {
  height: 1px;
  margin: 1.5rem 0;
  background: #e2e8f0;
}

.kern-active-package-benefits-title {
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #334155;
}

.kern-active-package-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.kern-my-subscription-card {
  padding: 0;
}

.kern-my-subscription-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.kern-my-subscription-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.kern-my-subscription-title {
  margin-top: 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.kern-my-subscription-summary {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #64748b;
}

.kern-my-subscription-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.kern-my-subscription-status--active {
  background: #dcfce7;
  color: #15803d;
}

.kern-my-subscription-status--expired {
  background: #fee2e2;
  color: #b91c1c;
}

.kern-my-subscription-status--muted {
  background: #f1f5f9;
  color: #64748b;
}

.kern-my-subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.5rem 1.75rem;
}

.kern-my-subscription-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.125rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
}

.kern-my-subscription-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.kern-my-subscription-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.kern-my-subscription-value-accent {
  color: #2563eb;
}

.kern-my-subscription-value-points {
  color: #ea580c;
  font-size: 1.375rem;
}

.kern-my-subscription-value-points .kern-points-icon {
  font-size: 1rem;
}

.kern-my-subscription-points-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.kern-my-subscription-log-btn {
  min-height: 2.25rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.kern-my-subscription-log-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.kern-points-log-change {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.kern-points-log-change .kern-points-icon {
  font-size: 0.95rem;
}

.kern-my-subscription-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.kern-my-subscription-hint {
  font-size: 0.875rem;
  color: #64748b;
}

@media (max-width: 768px) {
  .kern-my-subscription-grid {
    grid-template-columns: 1fr;
  }

  .kern-my-subscription-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

.kern-package-grid.kern-points-topup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.kern-points-topup-helper {
  grid-column: 1 / -1;
  margin-bottom: 0.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.kern-points-topup-grid .kern-points-topup-card {
  cursor: default;
}

@media (max-width: 900px) {
  .kern-package-grid.kern-points-topup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .kern-package-grid.kern-points-topup-grid {
    grid-template-columns: 1fr;
  }
}

/* 模型管理：左侧子菜单 + 内容区（SPA 与直链共用） */
.kern-model-mgmt-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .kern-model-mgmt-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

.kern-model-section-nav {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
  overflow-x: auto;
}

@media (min-width: 1024px) {
  .kern-model-section-nav {
    flex-direction: column;
    overflow-x: visible;
  }
}

.kern-model-section-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.kern-model-section-item:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.kern-model-section-item.active {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #2563eb;
}

.kern-model-tab-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.kern-model-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.kern-model-tab-item.active {
  color: #2563eb;
  border-bottom-color: #3b82f6;
}

.kern-consume-chat-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.kern-consume-chat-bubble.user {
  margin-left: auto;
  background: #3b82f6;
  color: #fff;
}

.kern-consume-chat-bubble.assistant {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.kern-consume-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.kern-consume-product-card.selected {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
