:root {
  --bg: #f5f7fd;
  --panel: #ffffff;
  --panel-soft: #f9fbfd;
  --text: #172033;
  --muted: #697386;
  --line: #dce3ec;
  --primary: #216cf4;
  --primary-weak: #eaf2ff;
  --success: #12b879;
  --warning: #ff6a1a;
  --danger: #bc2f3d;
  --shadow: 0 14px 36px rgba(21, 45, 95, 0.08);
  --sidebar: #0d2c70;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-page {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(36px, 5.6vh, 72px) clamp(32px, 6.4vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(111, 157, 230, 0.18), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(33, 108, 244, 0.1), transparent 28%),
    linear-gradient(135deg, #f7fbff 0%, #ffffff 48%, #f0f6ff 100%);
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  width: clamp(150px, 11.5vw, 220px);
  height: clamp(104px, 7.8vw, 150px);
  opacity: 0.52;
  background-image: radial-gradient(circle, #dbe6f5 2px, transparent 2.5px);
  background-size: 24px 24px;
}

.auth-page::before {
  top: clamp(40px, 6.5vh, 70px);
  left: clamp(34px, 2.5vw, 48px);
}

.auth-page::after {
  right: clamp(38px, 3.2vw, 62px);
  bottom: clamp(42px, 6.7vh, 72px);
}

.auth-page.auth-login,
.auth-page.auth-register {
  padding-top: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100vw - 160px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(198, 211, 230, 0.8);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(28, 58, 112, 0.16);
}

.auth-card-login {
  width: min(1400px, calc(100vw - 220px));
  height: clamp(700px, 80vh, 820px);
  min-height: 0;
}

.auth-card-register {
  width: min(1400px, calc(100vw - 220px));
  min-height: clamp(700px, 80vh, 820px);
}

.auth-card-forgot {
  width: min(1440px, calc(100vw - 220px));
  min-height: clamp(720px, 82vh, 840px);
}

.auth-side {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 5vw, 78px) clamp(48px, 4.8vw, 74px);
  background:
    radial-gradient(circle at 74% 25%, rgba(37, 119, 255, 0.2), transparent 34%),
    linear-gradient(150deg, #081c46 0%, #092457 52%, #0c347a 100%);
  color: #fff;
}

.auth-side::before {
  content: "";
  position: absolute;
  inset: -80px -120px auto auto;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(76, 148, 255, 0.15);
  border-radius: 50%;
  box-shadow: -38px 38px 0 rgba(76, 148, 255, 0.08), -76px 76px 0 rgba(76, 148, 255, 0.05);
}

.auth-side::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -96px;
  width: 520px;
  height: 260px;
  border-top: 1px solid rgba(50, 133, 255, 0.28);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.auth-logo-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.auth-logo,
.auth-brand-mark {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(13, 98, 255, 0.34));
}

.auth-logo {
  width: 52px;
  height: 52px;
}

.auth-logo-row strong {
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.auth-brand-mark {
  position: relative;
  z-index: 1;
  width: 98px;
  height: 98px;
  margin-bottom: 34px;
}

.auth-side h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.auth-side p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 410px;
  color: rgba(236, 244, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

.auth-feature-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  margin-top: 50px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 18px;
}

.auth-feature span,
.auth-value span {
  display: grid;
  place-items: center;
  color: #78dcff;
  background: rgba(28, 104, 232, 0.62);
  border: 1px solid rgba(95, 162, 255, 0.28);
}

.auth-feature span {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.auth-feature strong {
  color: #f6fbff;
  font-size: 17px;
}

.auth-feature svg,
.auth-value svg,
.auth-input svg,
.auth-safe svg,
.auth-methods svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-visual {
  position: absolute;
  left: 68px;
  right: 44px;
  bottom: 46px;
  height: 150px;
  opacity: 0.38;
}

.auth-visual span,
.auth-visual em {
  position: absolute;
  display: block;
  border: 1px solid rgba(81, 161, 255, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(53, 139, 255, 0.24), rgba(27, 80, 188, 0.14));
  box-shadow: 0 18px 40px rgba(0, 22, 70, 0.34);
}

.auth-visual span:nth-child(1) {
  left: 0;
  bottom: 0;
  width: 150px;
  height: 92px;
}

.auth-visual span:nth-child(2) {
  left: 170px;
  bottom: 10px;
  width: 138px;
  height: 102px;
}

.auth-visual span:nth-child(3) {
  right: 0;
  bottom: 20px;
  width: 148px;
  height: 74px;
}

.auth-visual em {
  left: 190px;
  bottom: 0;
  width: 94px;
  height: 56px;
  border-radius: 50%;
}

.auth-side-register {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(64px, 5.4vw, 84px) clamp(48px, 4.2vw, 62px);
}

.auth-side-register p {
  max-width: 440px;
}

.auth-value-row {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 54px;
}

.auth-value {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.auth-value span {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.auth-value strong {
  color: #fff;
  font-size: 15px;
}

.auth-value em {
  color: rgba(236, 244, 255, 0.76);
  font-size: 13px;
  font-style: normal;
}

.auth-wave {
  position: absolute;
  left: -70px;
  right: -40px;
  bottom: -60px;
  height: 230px;
  border-top: 1px solid rgba(83, 159, 255, 0.34);
  border-radius: 50%;
  transform: rotate(6deg);
}

.auth-form {
  display: grid;
  align-content: center;
  padding: clamp(54px, 4.8vw, 70px) clamp(48px, 4.8vw, 74px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: rgba(255, 255, 255, 0.96);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 34px;
  border-bottom: 1px solid #dce3ec;
}

.auth-tabs button,
.segmented button {
  height: 48px;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 18px;
  font-weight: 700;
}

.auth-tabs button.active,
.segmented button.active {
  color: var(--primary);
  background: transparent;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--primary);
}

.auth-register .auth-tabs {
  width: auto;
  justify-self: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #dce3ec;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.auth-register .auth-tabs button {
  height: 48px;
  font-size: 18px;
}

.auth-register .auth-tabs button.active {
  background: transparent;
  box-shadow: inset 0 -3px 0 var(--primary);
}

.auth-register .auth-form {
  align-content: start;
}

.auth-form-inner {
  display: grid;
  gap: 24px;
}

.register-inner {
  gap: 18px;
}

.forgot-inner {
  width: min(620px, 100%);
  justify-self: center;
  gap: 22px;
}

.auth-steps {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-steps span {
  --circle-bg: #d8e0eb;
  --circle-fg: #6f7b90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #a0aabc;
  font-size: 15px;
  font-weight: 800;
  line-height: 30px;
  user-select: none;
  white-space: nowrap;
}

.auth-steps span.active,
.auth-steps span.done {
  --circle-bg: var(--primary);
  --circle-fg: #fff;
  color: var(--primary);
}

.auth-steps span::before {
  content: attr(data-step);
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--circle-fg);
  background: var(--circle-bg);
  font-size: 14px;
  font-weight: 900;
}

.auth-steps span em {
  color: inherit;
  font-style: normal;
}

.auth-steps i {
  height: 2px;
  background: #d8e0eb;
}

.auth-steps i:first-of-type {
  background: var(--primary);
}

.forgot-title {
  display: grid;
  gap: 10px;
  margin-bottom: 2px;
}

.forgot-title h1 {
  margin: 0;
  color: #172033;
  font-size: 34px;
  line-height: 1.2;
}

.forgot-title p {
  margin: 0;
  color: #697386;
  font-size: 16px;
}

.forgot-methods {
  margin-bottom: 4px;
}

.auth-field {
  display: grid;
  gap: 12px;
}

.auth-field > span {
  color: #19253b;
  font-size: 17px;
  font-weight: 700;
}

.auth-input {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #d8e1ee;
  border-radius: 6px;
  background: #fff;
  color: #8190a6;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(33, 108, 244, 0.1);
}

.auth-input i {
  display: grid;
  place-items: center;
  color: #8290a5;
  font-style: normal;
}

.auth-input input,
.auth-input select {
  min-width: 0;
  flex: 1;
  height: 54px;
  border: 0;
  outline: 0;
  color: #172033;
  background: transparent;
  font-size: 16px;
}

.auth-input input::placeholder {
  color: #a5afbf;
}

.auth-eye {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #8290a5;
  background: transparent;
}

.auth-eye svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -4px;
  color: #556176;
  font-size: 15px;
}

.auth-options label,
.auth-agree {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-options input,
.auth-agree input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}

.auth-options button,
.auth-bottom button {
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 700;
}

.auth-submit {
  height: 58px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #2176ff, #0754e8);
  box-shadow: 0 12px 26px rgba(33, 108, 244, 0.28);
  font-size: 18px;
  font-weight: 800;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: #8a96aa;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #e7edf5;
}

.auth-secondary {
  height: 56px;
  border: 1px solid #d8e1ee;
  border-radius: 6px;
  color: #172033;
  background: #fff;
  font-size: 16px;
}

.auth-secondary strong {
  color: var(--primary);
}

.auth-safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  color: #8a96aa;
  font-size: 15px;
}

.auth-safe svg {
  width: 20px;
  height: 20px;
}

.auth-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #dce5f2;
  border-radius: 6px;
  overflow: hidden;
}

.auth-methods button {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #68758a;
  background: #f9fbfe;
  font-weight: 700;
}

.auth-methods button.active {
  color: var(--primary);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--primary);
}

.phone-input {
  padding: 0;
  gap: 0;
}

.phone-input select {
  flex: 0 0 146px;
  padding: 0 12px;
  border-right: 1px solid #d8e1ee;
  color: #26344d;
  font-weight: 700;
}

.phone-input input {
  padding: 0 16px;
}

.code-input {
  padding-right: 0;
}

.code-input button {
  align-self: stretch;
  padding: 0 20px;
  border-left: 1px solid #d8e1ee;
  color: var(--primary);
  background: #fff;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.code-input button.is-counting {
  color: #6b7890;
  background: #f3f6fb;
}

.split-code-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 148px;
}

.auth-back {
  justify-self: center;
  min-height: 34px;
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.auth-tip-box {
  min-height: 54px;
  margin-top: 4px;
  padding: 0 20px;
  border: 1px solid #c9d9f5;
  border-radius: 6px;
  background: #f9fbff;
  color: #65748b;
}

.auth-tip-box svg {
  color: var(--primary);
}

.auth-agree {
  color: #6c788c;
  font-size: 14px;
}

.auth-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 0;
  color: #7a879b;
  font-size: 13px;
  line-height: 1.6;
}

.auth-tip svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-agree a {
  color: var(--primary);
  font-weight: 700;
}

.auth-bottom {
  margin: 8px 0 0;
  color: #6c788c;
  text-align: center;
}

.app-shell {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px 1fr;
  max-width: 100vw;
  overflow: hidden;
  background: var(--bg);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 92px 1fr;
}

.sidebar {
  position: relative;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 20px;
  overflow-y: hidden;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 12% 4%, rgba(53, 136, 255, 0.75), transparent 24%),
    linear-gradient(180deg, #071b4e 0%, #0a2d75 52%, #0e3c96 100%);
  color: #eaf2ff;
  box-shadow: 18px 0 42px rgba(18, 56, 131, 0.16);
}

.brand {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 6px 24px;
  margin-bottom: 8px;
}

.brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  color: #fff;
}

.brand span {
  display: block;
  margin-top: 6px;
  color: rgba(234, 242, 255, 0.78);
  font-size: 13px;
}

.brand-logo-shell {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(78, 169, 255, 0.22), rgba(91, 87, 255, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 28px rgba(12, 46, 116, 0.28);
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(22, 104, 222, 0.36));
}

.brand-collapse {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(232, 241, 255, 0.94);
  background: rgba(255, 255, 255, 0.1);
  font-size: 22px;
  line-height: 1;
}

.brand-collapse:hover {
  background: rgba(255, 255, 255, 0.18);
}

.app-shell.sidebar-collapsed .sidebar {
  padding: 18px 10px 14px;
}

.app-shell.sidebar-collapsed .brand {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
  padding: 0 0 16px;
}

.app-shell.sidebar-collapsed .brand-copy {
  display: none;
}

.app-shell.sidebar-collapsed .brand-logo {
  width: 42px;
  height: 42px;
}

.app-shell.sidebar-collapsed .brand-logo-shell {
  width: 52px;
  height: 52px;
}

.app-shell.sidebar-collapsed .brand-collapse {
  margin: 0;
}

.nav {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.nav::-webkit-scrollbar {
  width: 6px;
}

.nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.nav button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 12px;
  color: rgba(245, 249, 255, 0.92);
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
}

.app-shell.sidebar-collapsed .nav {
  gap: 6px;
}

.app-shell.sidebar-collapsed .nav button {
  min-height: 50px;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
}

.app-shell.sidebar-collapsed .nav button > span:not(.nav-icon):not(.nav-arrow) {
  display: none;
}

.nav button.active,
.nav button:hover {
  color: #fff;
  background: linear-gradient(135deg, #246df4, #1957cd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 20px rgba(8, 27, 87, 0.2);
}

.nav button[data-view="stats"] {
  display: none !important;
}

.nav-icon,
.collapse-menu svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.nav-icon svg,
.collapse-menu svg,
.metric-icon svg,
.summary-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-icon svg,
.help-center svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.collapse-menu svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.metric-icon svg {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.summary-icon svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.nav-arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

.nav-group {
  display: grid;
  gap: 8px;
}

.nav-parent {
  font-weight: 700;
}

.subnav {
  display: none;
  gap: 6px;
  margin-top: -2px;
  padding-left: 14px;
}

.nav-group.open .subnav {
  display: grid;
}

.app-shell.sidebar-collapsed .subnav {
  display: none !important;
}

.subnav button {
  min-height: 40px;
  gap: 8px;
  padding: 0 12px 0 14px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(234, 242, 255, 0.78);
  font-weight: 500;
  box-shadow: none;
}

.subnav button.active,
.subnav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.submark {
  width: 12px;
  display: inline-flex;
  justify-content: center;
  color: rgba(136, 173, 240, 0.86);
  font-size: 12px;
  line-height: 1;
}

.subnav button.active .submark,
.subnav button:hover .submark {
  color: #d8e8ff;
}

.nav-parent .nav-arrow {
  transition: transform 0.2s ease;
}

.nav-group.open .nav-parent .nav-arrow {
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .nav-arrow {
  display: none;
}

.collapse-menu {
  width: 100%;
  min-height: 48px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 0 16px;
  border-radius: 12px;
  color: rgba(245, 249, 255, 0.92);
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
}

.app-shell.sidebar-collapsed .collapse-menu {
  min-height: 44px;
  justify-content: center;
  padding: 0;
}

.app-shell.sidebar-collapsed .collapse-menu span {
  display: none;
}

.app-shell.sidebar-collapsed .collapse-menu svg {
  transform: rotate(180deg);
}

.collapse-menu:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main {
  height: 100vh;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 40px 0 26px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(220, 227, 236, 0.58);
  backdrop-filter: blur(14px);
}

.topbar h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.page-heading p {
  min-height: 18px;
  margin: 8px 0 0;
  color: #748198;
  font-size: 14px;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #16233a;
}

.admin-console-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d8e4f5;
  border-radius: 8px;
  color: #172033;
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.admin-console-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-console-link:hover {
  color: var(--primary);
  border-color: #bcd2fb;
  background: #f7fbff;
}

.topbar .top-icon,
.topbar .help-center,
.topbar .top-divider {
  display: none !important;
}

.top-icon {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #0f1d35;
  background: transparent;
}

.notify-badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #f0444c;
  font-size: 11px;
  font-weight: 800;
}

.help-center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #172033;
  white-space: nowrap;
  font-weight: 700;
}

.top-divider {
  width: 1px;
  height: 32px;
  background: #d7dfec;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f1d35;
  background: transparent;
}

.profile-menu {
  position: relative;
}

.profile-trigger {
  min-height: 48px;
  padding: 0 2px 0 0;
  border-radius: 999px;
}

.profile-trigger.open {
  background: transparent;
}

.profile-trigger.open .chevron svg {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 12;
  width: 182px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(20, 43, 91, 0.14);
}

.profile-dropdown[hidden] {
  display: none !important;
}

.profile-menu-item {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 8px;
  color: #0f1d35;
  background: transparent;
  text-align: left;
}

.profile-menu-item:hover {
  background: #f4f7fc;
}

.profile-menu-item span {
  width: 20px;
  height: 20px;
  color: #223657;
}

.profile-menu-item span svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-menu-item em {
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
}

.profile-menu-item.danger {
  color: #d14747;
}

.profile-menu-item.danger span {
  color: #d14747;
}

.profile-menu-divider {
  height: 1px;
  background: #e7edf6;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #225fd4;
  background: #dbe7ff;
  border: 1px solid #c9dcff;
  font-size: 20px;
  font-weight: 800;
}

.chevron {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #213351;
}

.chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.panel-focus {
  box-shadow: 0 0 0 2px rgba(33, 108, 244, 0.28), var(--shadow);
}

.content {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 28px 40px 34px 26px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(220, 227, 236, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin: 0;
  font-size: 16px;
}

.panel-body {
  padding: 16px;
}

.metric {
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.textarea {
  min-height: 104px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.toolbar-group {
  display: grid;
  gap: 7px;
}

.toolbar-group label {
  color: var(--muted);
  font-size: 13px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.region-picker {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
}

.region-country {
  display: grid;
  gap: 8px;
}

.region-country strong {
  font-size: 13px;
}

.region-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}

.btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--text);
  background: #e9eef5;
}

.btn.primary {
  color: #fff;
  background: var(--primary);
}

.btn.success {
  color: #fff;
  background: var(--success);
}

.btn.warning {
  color: #fff;
  background: var(--warning);
}

.btn.danger {
  color: #fff;
  background: var(--danger);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-weight: 700;
  background: var(--panel-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef2f7;
  font-size: 12px;
  white-space: nowrap;
}

.tag.success {
  color: var(--success);
  background: #e8f5ee;
}

.tag.warning {
  color: var(--warning);
  background: #fff3df;
}

.tag.danger {
  color: var(--danger);
  background: #fdecef;
}

.empty {
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #152238;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(14, 24, 39, 0.42);
}

.modal {
  width: min(820px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal:not(.confirm-modal) .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.modal-head h3 {
  margin: 0;
  font-size: 16px;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.generation-progress-backdrop {
  z-index: 30;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}

.generation-progress-modal {
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(16, 35, 62, 0.22);
}

.generation-progress-head {
  min-height: 82px;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.generation-progress-head h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  color: #0f1b33;
  font-size: 26px;
  line-height: 1.2;
}

.generation-progress-head h3 span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.generation-progress-head h3 svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
}

.generation-progress-head p {
  margin: 0;
  color: #65738b;
  font-size: 14px;
}

.generation-progress-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #65738b;
  border-radius: 8px;
  background: transparent;
}

.generation-progress-close:hover {
  color: #1d2a42;
  background: #eef4ff;
}

.generation-progress-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
}

.generation-progress-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  overflow: hidden;
  padding: 22px 32px 16px;
  background:
    linear-gradient(135deg, rgba(238, 245, 255, 0.64), transparent 42%),
    #fff;
}

.generation-orbit-panel {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.generation-orbit {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 108, 244, 0.18) 0%, rgba(33, 108, 244, 0.06) 45%, rgba(255, 255, 255, 0) 70%);
}

.generation-orbit-ring {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(33, 108, 244, 0.24);
}

.generation-orbit-ring.one {
  animation: generationSpin 9s linear infinite;
}

.generation-orbit-ring.two {
  inset: 42px;
  border-style: dashed;
  animation: generationSpinReverse 7s linear infinite;
}

.generation-orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b75ff;
  box-shadow: 0 0 0 6px rgba(43, 117, 255, 0.12);
}

.generation-orbit-dot.dot-a {
  top: 24px;
  left: 116px;
  animation: generationPulse 1.4s ease-in-out infinite;
}

.generation-orbit-dot.dot-b {
  right: 34px;
  top: 116px;
  animation: generationPulse 1.4s ease-in-out 0.2s infinite;
}

.generation-orbit-dot.dot-c {
  bottom: 36px;
  left: 78px;
  animation: generationPulse 1.4s ease-in-out 0.4s infinite;
}

.generation-core {
  position: relative;
  z-index: 1;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 10px solid rgba(213, 228, 255, 0.95);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #5fb0ff 0%, #216cf4 62%, #1648c7 100%);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.35),
    0 18px 34px rgba(33, 108, 244, 0.28);
}

.generation-core strong {
  display: block;
  font-size: 38px;
  line-height: 1;
}

.generation-core em {
  margin-top: 8px;
  font-style: normal;
  font-size: 14px;
}

.generation-floating-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.generation-floating-tags span {
  position: absolute;
  padding: 7px 12px;
  color: #216cf4;
  font-size: 12px;
  border: 1px solid rgba(33, 108, 244, 0.16);
  border-radius: 7px;
  background: rgba(239, 246, 255, 0.92);
  box-shadow: 0 8px 20px rgba(33, 108, 244, 0.08);
}

.generation-floating-tags span:nth-child(1) {
  left: 16px;
  top: 28px;
}

.generation-floating-tags span:nth-child(2) {
  right: 18px;
  top: 58px;
}

.generation-floating-tags span:nth-child(3) {
  left: 2px;
  top: 128px;
}

.generation-floating-tags span:nth-child(4) {
  right: 6px;
  top: 150px;
}

.generation-floating-tags span:nth-child(5) {
  left: 28px;
  bottom: 38px;
}

.generation-floating-tags span:nth-child(6) {
  right: 40px;
  bottom: 18px;
}

.generation-step-list {
  display: grid;
  align-content: start;
}

.generation-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 76px;
  padding: 0 0 18px;
}

.generation-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 16px;
  width: 2px;
  height: calc(100% - 28px);
  background: #d7e1ef;
}

.generation-step.done:not(:last-child)::after,
.generation-step.active:not(:last-child)::after {
  background: var(--primary);
}

.generation-step-index {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b8aa0;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid #cbd6e5;
  border-radius: 50%;
  background: #fff;
}

.generation-step.done .generation-step-index,
.generation-step.active .generation-step-index {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.generation-step.done .generation-step-index::before {
  content: "✓";
}

.generation-step.done .generation-step-index {
  font-size: 0;
}

.generation-step.done .generation-step-index::before {
  content: "\2713";
}

.generation-step.failed .generation-step-index {
  color: #fff;
  border-color: var(--danger);
  background: var(--danger);
}

.generation-step strong {
  display: block;
  margin: 3px 0 6px;
  color: #11203a;
  font-size: 16px;
}

.generation-step p {
  margin: 0;
  color: #718096;
  font-size: 13px;
}

.generation-step em {
  margin-top: 6px;
  color: #6c7a90;
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
}

.generation-step.active em {
  color: var(--primary);
}

.generation-progress-foot {
  flex: 0 0 auto;
  padding: 0 32px 18px;
  background: #fff;
}

.generation-progress-line {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef9;
}

.generation-progress-line span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #216cf4, #63a4ff);
  box-shadow: 0 6px 16px rgba(33, 108, 244, 0.24);
  transition: width 0.55s ease;
}

.generation-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: #718096;
  font-size: 13px;
}

.generation-status-row em {
  color: #4f6178;
  font-style: normal;
}

.generation-preview {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf2f8;
}

.generation-preview h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #10203a;
  font-size: 15px;
}

.generation-preview h4 svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  fill: none;
  stroke: currentColor;
}

.generation-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 42px;
  overflow: hidden;
}

.generation-preview span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  color: var(--primary);
  font-size: 13px;
  border: 1px solid #cfe0ff;
  border-radius: 7px;
  background: #f6f9ff;
}

.generation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.generation-actions .btn {
  min-width: 116px;
}

.generation-submit-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.generation-submit-status span {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: generationSpin 0.8s linear infinite;
}

.generation-submit-status svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}

@keyframes generationSpin {
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes generationPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

.legal-modal-backdrop {
  z-index: 20;
}

.legal-modal {
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 26px 72px rgba(16, 35, 62, 0.18);
}

.legal-modal-head {
  min-height: 74px;
  padding: 18px 24px;
  background: #fff;
}

.legal-modal-head h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
}

.legal-modal-head span {
  color: #718096;
  font-size: 13px;
}

.legal-modal-close {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #5e6b7f;
}

.legal-modal-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-modal-body {
  max-height: min(68vh, 660px);
  padding: 0;
  overflow: auto;
  background: #fff;
}

.legal-content {
  padding: 22px 28px 8px;
  color: #27344a;
}

.legal-updated {
  margin: 0 0 12px;
  color: #6f7d92;
  font-size: 14px;
}

.legal-intro {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #dbe7f6;
  border-radius: 8px;
  background: #f7fbff;
  color: #42516a;
  line-height: 1.8;
}

.legal-section {
  padding: 16px 0;
  border-top: 1px solid #edf1f7;
}

.legal-section h4 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
  color: #4e5d73;
  line-height: 1.9;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-note {
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #667085;
  background: #f3f6fb;
  line-height: 1.7;
}

.legal-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e8edf5;
  background: #fff;
}

.legal-modal-actions .btn {
  min-width: 128px;
  height: 42px;
}

.confirm-modal {
  width: min(640px, calc(100vw - 56px));
  max-height: calc(100vh - 72px);
  overflow: hidden;
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 68px rgba(16, 35, 62, 0.16);
}

.confirm-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid #e8edf5;
}

.confirm-head-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.confirm-head h3 {
  margin: 0;
  color: #1d2740;
  font-size: 24px;
  line-height: 1.2;
}

.confirm-alert-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #f7c35d 0%, #f3a12e 100%);
  box-shadow: 0 0 0 8px rgba(248, 188, 84, 0.14);
}

.confirm-alert-badge svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
}

.confirm-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6b7487;
  background: transparent;
}

.confirm-close:hover {
  background: #f3f6fb;
}

.confirm-close svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.confirm-body {
  padding: 0 28px;
  border-bottom: 1px solid #e8edf5;
}

.confirm-content {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.confirm-body-icon {
  width: 64px;
  height: 64px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  color: #2b74f7;
  background: #eaf2ff;
}

.confirm-body-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
}

.confirm-text {
  min-width: 0;
}

.confirm-question {
  margin: 0;
  color: #1f2b43;
  font-size: 22px;
  line-height: 1.3;
}

.confirm-message {
  margin: 12px 0 0;
  color: #7a8191;
  font-size: 15px;
  line-height: 1.45;
}

.confirm-foot {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px;
}

.confirm-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.confirm-btn {
  min-width: 128px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
}

.confirm-btn.secondary {
  color: #25314a;
  border: 2px solid #d5ddea;
  background: #fff;
}

.confirm-btn.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: none;
  background: linear-gradient(180deg, #ea3347 0%, #d81d36 100%);
  color: #fff;
}

.confirm-btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  color: #fff;
  background: #1769ff;
}

.confirm-btn-icon {
  display: inline-grid;
  place-items: center;
}

.confirm-btn-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

@media (max-width: 1280px) {
  .confirm-modal {
    width: min(640px, calc(100vw - 40px));
  }

  .confirm-head {
    min-height: 98px;
    padding: 0 24px;
  }

  .confirm-head-left {
    gap: 16px;
  }

  .confirm-alert-badge {
    width: 62px;
    height: 62px;
    box-shadow: 0 0 0 6px rgba(248, 188, 84, 0.14);
  }

  .confirm-alert-badge svg {
    width: 30px;
    height: 30px;
  }

  .confirm-head h3 {
    font-size: 30px;
  }

  .confirm-close {
    width: 44px;
    height: 44px;
  }

  .confirm-close svg {
    width: 28px;
    height: 28px;
  }

  .confirm-body {
    padding: 0 24px;
  }

  .confirm-content {
    min-height: 150px;
    gap: 18px;
  }

  .confirm-body-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .confirm-body-icon svg {
    width: 34px;
    height: 34px;
  }

  .confirm-question {
    font-size: 24px;
  }

  .confirm-message {
    margin-top: 10px;
    font-size: 16px;
  }

  .confirm-foot {
    min-height: 96px;
    padding: 0 24px;
  }

  .confirm-actions {
    gap: 14px;
  }

  .confirm-btn {
    min-width: 140px;
    min-height: 56px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 18px;
  }

  .confirm-btn-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 760px) {
  .confirm-modal {
    width: min(520px, calc(100vw - 24px));
    border-radius: 14px;
  }

  .confirm-head {
    min-height: 92px;
    padding: 0 16px;
  }

  .confirm-head h3 {
    font-size: 24px;
  }

  .confirm-body {
    padding: 0 16px;
  }

  .confirm-content {
    min-height: 132px;
    gap: 14px;
  }

  .confirm-foot {
    min-height: 92px;
    padding: 0 16px;
  }

  .confirm-btn {
    min-width: 126px;
    min-height: 48px;
    font-size: 18px;
  }
}

.trend {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 64px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef5;
}

.bar-fill {
  height: 100%;
  background: var(--primary);
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.account-setting-card {
  overflow: hidden;
}

.account-setting-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px;
  border-bottom: 1px solid #e6edf7;
}

.account-setting-head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1a2a45;
  font-size: 18px;
}

.account-setting-head-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #2369f1;
  background: #edf4ff;
}

.account-setting-head-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-setting-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.account-password-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-setting-submit {
  width: 100%;
}

.account-password-wrap {
  position: relative;
}

.account-password-wrap .input {
  padding-right: 42px;
}

.account-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 6px;
  color: #72839f;
  background: transparent;
}

.account-password-toggle:hover {
  color: #375c97;
  background: #f1f5fd;
}

.account-password-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-logs-head {
  justify-content: space-between;
}

.account-logs-refresh {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2a3f66;
  border: 1px solid #d8e2f1;
  background: #fff;
}

.account-logs-refresh svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-logs-table-wrap {
  overflow-x: auto;
}

.account-logs-table {
  min-width: 880px;
}

.account-logs-table th {
  color: #506182;
}

.account-log-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2c4d84;
}

.account-log-location svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-logs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px;
  color: #6a7a94;
  font-size: 13px;
}

.prompt-lab-page {
  display: grid;
  gap: 16px;
}

.prompt-lab-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prompt-lab-inline-actions .actions {
  margin-top: 0;
}

.prompt-lab-hint {
  color: #5f6f88;
  font-size: 13px;
}

.prompt-lab-submit-row {
  display: flex;
  justify-content: flex-end;
}

.prompt-lab-submit-row .btn {
  min-width: 152px;
}

.prompt-lab-result-body {
  display: grid;
  gap: 12px;
}

.prompt-lab-meta {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  background: #f1f5fb;
  color: #334562;
  font-size: 13px;
  font-weight: 700;
}

.prompt-lab-pre {
  margin: 0;
  width: 100%;
  max-height: 320px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  background: #fbfdff;
  color: #1b2a45;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-lab-user {
  min-height: 180px;
}

.help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.enterprise-page {
  display: grid;
  gap: 16px;
}

.enterprise-status-bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
}

.enterprise-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.enterprise-status-line strong {
  color: #1c2a42;
  font-size: 22px;
}

.enterprise-reject-tip {
  color: #db3f3f;
  font-size: 14px;
}

.enterprise-form {
  display: grid;
  gap: 16px;
}

.enterprise-layout-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.enterprise-card-main {
  grid-column: span 8;
}

.enterprise-card-license {
  grid-column: span 4;
}

.enterprise-card-tags {
  grid-column: span 6;
}

.enterprise-card-intro {
  grid-column: span 6;
}

.enterprise-card-region,
.enterprise-card-offices {
  grid-column: 1 / -1;
}

.enterprise-main-body {
  display: grid;
  gap: 14px;
}

.enterprise-subsection {
  display: grid;
  gap: 10px;
}

.enterprise-grid-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.enterprise-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.enterprise-card {
  overflow: hidden;
}

.enterprise-card-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid #e4ebf5;
}

.enterprise-card-head h3 {
  margin: 0;
  color: #172844;
  font-size: 18px;
}

.enterprise-card-head h3 em {
  color: #5e6e89;
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
}

.enterprise-card-body {
  padding: 16px 18px;
}

.enterprise-basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.enterprise-basic-grid .field {
  margin: 0;
}

.enterprise-basic-grid .field.full {
  grid-column: 1 / -1;
}

.enterprise-divider {
  margin: 14px 0;
  height: 1px;
  background: #e4ebf5;
}

.enterprise-license-body {
  display: grid;
  gap: 12px;
}

.enterprise-license-tip {
  margin: 0;
  color: #5f708c;
  font-size: 13px;
  line-height: 1.5;
}

.enterprise-license-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.enterprise-license-state {
  color: #5f708c;
  font-size: 13px;
}

.enterprise-license-file {
  min-height: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.enterprise-license-link {
  color: #286bf4;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.enterprise-license-link:hover {
  text-decoration: underline;
}

.enterprise-license-empty {
  color: #7d8da5;
  font-size: 13px;
}

.enterprise-license-remove {
  min-height: 30px;
  padding: 0 10px;
}

.enterprise-card-body h4 {
  margin: 0;
  color: #1b2b46;
  font-size: 16px;
}

.enterprise-card-body h4 em {
  color: #60728d;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
}

.enterprise-tag-group {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.enterprise-tag-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d6dfed;
  border-radius: 8px;
  color: #495b78;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.enterprise-tag-chip input {
  display: none;
}

.enterprise-tag-chip.checked {
  color: #1f5de8;
  border-color: #c6dafd;
  background: #edf4ff;
}

.enterprise-region-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.enterprise-region-panel {
  display: grid;
  gap: 10px;
}

.enterprise-region-panel h4 {
  margin: 0;
  color: #1b2b46;
  font-size: 16px;
}

.enterprise-region-shell {
  min-height: 250px;
  display: grid;
  grid-template-columns: 142px 1fr;
  border: 1px solid #dde6f3;
  border-radius: 8px;
  overflow: hidden;
  background: #fbfdff;
}

.enterprise-country-nav {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px;
  border-right: 1px solid #e4ebf5;
  background: #f7fafe;
}

.enterprise-country-btn {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  color: #394a65;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.enterprise-country-btn.active {
  color: #fff;
  background: #2b6df4;
}

.enterprise-city-pane {
  padding: 10px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}

.enterprise-city-search {
  min-height: 36px;
}

.enterprise-city-selected {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.enterprise-selected-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #cadbfd;
  border-radius: 999px;
  color: #1f5de8;
  background: #eef4ff;
  font-size: 12px;
}

.enterprise-selected-chip span {
  font-size: 16px;
  line-height: 1;
}

.enterprise-selected-empty {
  color: #7b8aa1;
  font-size: 12px;
}

.enterprise-city-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
  overflow: auto;
}

.enterprise-city-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d6dfed;
  border-radius: 8px;
  color: #45556f;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.enterprise-city-chip input {
  display: none;
}

.enterprise-city-chip.checked {
  color: #1f5de8;
  border-color: #c6dafd;
  background: #edf4ff;
}

.enterprise-office-head {
  align-items: center;
}

.enterprise-office-body {
  display: grid;
  gap: 12px;
}

.enterprise-office-tip {
  margin: 0;
  color: #6f7f98;
  font-size: 13px;
}

.enterprise-office-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed #cfdbed;
  border-radius: 10px;
  color: #6f7f98;
  font-size: 14px;
}

.enterprise-office-item {
  border: 1px solid #dde6f3;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
}

.enterprise-office-item + .enterprise-office-item {
  margin-top: 10px;
}

.enterprise-office-main {
  display: grid;
  gap: 8px;
}

.enterprise-office-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.enterprise-office-item-title {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.enterprise-office-main strong {
  color: #20324e;
  font-size: 16px;
  font-weight: 700;
}

.enterprise-office-type-tag {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #4e5f7b;
  background: #eef3fb;
  font-size: 12px;
}

.enterprise-office-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.enterprise-office-meta {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4e5f7b;
  font-size: 13px;
}

.enterprise-office-meta > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.enterprise-office-meta-icon {
  width: 14px;
  height: 14px;
  color: #8493aa;
  flex: 0 0 auto;
}

.enterprise-office-meta-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.enterprise-office-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.enterprise-office-actions button {
  padding: 0;
  color: #2a6df5;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.enterprise-office-actions button[data-office-action="delete"] {
  color: #ea4545;
}

.enterprise-office-total {
  text-align: center;
  color: #7f8ea4;
  font-size: 13px;
}

.enterprise-office-modal {
  width: min(760px, 100%);
  max-height: min(920px, calc(100vh - 40px));
}

.enterprise-office-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.enterprise-office-form > .full {
  grid-column: 1 / -1;
}

.enterprise-office-detail {
  min-height: 92px;
}

.enterprise-office-note {
  min-height: 84px;
}

.enterprise-office-count {
  margin-top: 6px;
  text-align: right;
  color: #7f8ea4;
  font-size: 12px;
}

.enterprise-office-phone-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
}

.enterprise-office-type-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.enterprise-office-type-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d7e0ed;
  border-radius: 8px;
  color: #4e5f7b;
  background: #fff;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
}

.enterprise-office-type-chip input {
  display: none;
}

.enterprise-office-type-chip.checked {
  color: #216cf4;
  border-color: #b8d0fb;
  background: #edf4ff;
}

.enterprise-office-switch-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
}

.enterprise-office-switch-row > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.enterprise-office-switch-row strong {
  color: #243757;
  font-size: 14px;
}

.enterprise-office-switch-row em {
  color: #7f8ea4;
  font-size: 12px;
  font-style: normal;
}

.enterprise-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
}

.enterprise-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.enterprise-switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ced8e8;
  transition: background 0.2s ease;
}

.enterprise-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(29, 47, 84, 0.2);
  transition: transform 0.2s ease;
}

.enterprise-switch input:checked + i {
  background: #2c76ff;
}

.enterprise-switch input:checked + i::after {
  transform: translateX(20px);
}

.enterprise-office-modal-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  margin-top: 6px;
}

.enterprise-intro {
  min-height: 238px;
}

.enterprise-intro-count {
  margin-top: 8px;
  text-align: right;
  color: #7f8ea4;
  font-size: 13px;
}

.enterprise-submit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.enterprise-submit-row .btn {
  min-height: 50px;
  font-size: 18px;
  font-weight: 700;
}

.seo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.seo-kpi-card {
  min-height: 122px;
}

.seo-kpi-card p {
  margin: 0;
  color: #2a3750;
  font-size: 15px;
}

.seo-kpi-card strong {
  margin-top: 14px;
  font-size: 34px;
  line-height: 1;
}

.seo-kpi-hint {
  display: block;
  margin-top: 10px;
  color: #16a765;
  font-size: 13px;
  font-weight: 700;
}

.seo-filter-panel .panel-body,
.seo-filter-panel {
  padding: 0;
}

.seo-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  gap: 16px;
  padding: 18px 22px;
}

.seo-filter-item {
  display: grid;
  gap: 8px;
}

.seo-filter-item > span {
  color: #364561;
  font-size: 15px;
  font-weight: 700;
}

.seo-search-wrap {
  position: relative;
}

.seo-search-wrap i {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 22px;
  height: 22px;
  color: #8390a6;
  pointer-events: none;
}

.seo-search-wrap svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-search-wrap .input {
  padding-right: 42px;
}

.seo-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.seo-filter-actions .btn {
  min-width: 74px;
}

.seo-table-panel .panel-head {
  padding: 14px 20px;
}

.seo-table-head h3 {
  font-size: 18px;
  letter-spacing: 0;
}

.seo-keyword-table-wrap table {
  min-width: 860px;
}

.seo-keyword-table-wrap th,
.seo-keyword-table-wrap td {
  padding: 14px 12px;
  font-size: 14px;
  white-space: nowrap;
}

.seo-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.seo-pill.blue {
  color: #2468e8;
  background: #eaf1ff;
}

.seo-pill.green {
  color: #17a466;
  background: #e8f8ef;
}

.seo-pill.purple {
  color: #8357ef;
  background: #f1ebff;
}

.seo-pill.orange {
  color: #d67b12;
  background: #fff2e3;
}

.seo-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.seo-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.seo-status.enabled {
  color: #159956;
  background: #e8f8ef;
}

.seo-status.enabled i {
  background: #16aa5e;
}

.seo-status.disabled {
  color: #db3939;
  background: #fdeaea;
}

.seo-status.disabled i {
  background: #e54646;
}

.seo-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.seo-action-btn {
  padding: 0;
  color: #1f5be7;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.seo-action-btn.delete {
  color: #ef3f3f;
}

.seo-action-btn.disable {
  color: #f58b18;
}

.seo-action-btn.enable {
  color: #17a860;
}

.seo-table-footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 18px;
  color: #596881;
  font-size: 14px;
}

.seo-title-table-wrap table {
  min-width: 1120px;
}

.seo-title-table-wrap th,
.seo-title-table-wrap td {
  padding: 14px 12px;
  font-size: 14px;
}

.seo-title-text {
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-gen-tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.seo-gen-tag.generated {
  color: #159956;
  background: #e8f8ef;
}

.seo-gen-tag.pending {
  color: #e0871d;
  background: #fff2e3;
}

.seo-pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.seo-page-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #d6dfed;
  border-radius: 8px;
  color: #4f5e78;
  background: #fff;
  font-size: 18px;
}

.seo-page-btn.active {
  border-color: #2c6df5;
  color: #2c6df5;
}

.seo-page-btn:disabled {
  opacity: 0.45;
}

.seo-size-select {
  min-width: 110px;
  min-height: 38px;
}

.seo-generate-backdrop {
  background: rgba(10, 22, 44, 0.45);
}

.seo-generate-modal {
  width: min(920px, 100%);
  border-radius: 14px;
}

.seo-generate-modal .modal-head {
  padding: 16px 22px;
}

.seo-generate-modal .modal-head h3 {
  font-size: 30px;
}

.seo-generate-modal .modal-body {
  padding: 14px 22px 22px;
}

.seo-generate-form {
  display: grid;
  gap: 16px;
}

.seo-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.seo-title-generate-modal {
  width: min(860px, 100%);
  border-radius: 14px;
}

.seo-title-generate-modal .modal-head {
  padding: 16px 22px;
}

.seo-title-generate-modal .modal-head h3 {
  font-size: 38px;
}

.seo-title-generate-modal .modal-body {
  padding: 14px 22px 22px;
}

.seo-title-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.seo-title-type-item {
  min-height: 104px;
  position: relative;
  display: grid;
  align-items: start;
  padding: 14px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #fff;
}

.seo-title-type-item:has(input:checked) {
  border-color: #2a6df4;
  background: #f2f7ff;
}

.seo-title-type-item input {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  accent-color: #2a6df4;
}

.seo-title-type-item strong {
  display: block;
  color: #1e2d47;
  font-size: 16px;
}

.seo-title-type-item span {
  display: block;
  margin-top: 6px;
  max-width: calc(100% - 26px);
  color: #6f7c93;
  font-size: 13px;
  line-height: 1.5;
}

.seo-source-item {
  min-height: 104px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #fff;
}

.seo-source-item:has(input:checked) {
  border-color: #6bb58a;
  background: #f1fbf5;
}

.seo-source-item input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #2278f0;
}

.seo-source-item strong {
  display: block;
  color: #1e2d47;
  font-size: 16px;
}

.seo-source-item span {
  display: block;
  margin-top: 6px;
  color: #6f7c93;
  font-size: 13px;
  line-height: 1.5;
}

.seo-generate-settings {
  display: grid;
  gap: 16px;
  padding-top: 2px;
  border-top: 1px solid #e4ebf5;
}

.seo-generate-settings h4 {
  margin: 0;
  color: #1f2f48;
  font-size: 18px;
}

.seo-generate-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
}

.seo-generate-row > label {
  color: #33435f;
  font-size: 15px;
  font-weight: 700;
}

.seo-generate-mode {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.seo-generate-mode label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #384764;
  font-size: 15px;
}

.seo-generate-mode input {
  width: 16px;
  height: 16px;
  accent-color: #2a6df4;
}

.seo-generate-count {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.seo-generate-count .input {
  width: 140px;
}

.seo-generate-count span {
  color: #66758f;
  font-size: 14px;
}

.seo-generate-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  padding-top: 2px;
}

.seo-generate-actions .btn {
  min-width: 124px;
}

.btn-icon-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.seo-keyword-kpi-grid .seo-kpi-card {
  min-height: 118px;
}

.seo-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.seo-keyword-table-wrap table {
  min-width: 1180px;
}

.seo-keyword-text {
  color: #0d5bea;
  font-weight: 800;
}

.seo-platform-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #173462;
  font-weight: 700;
}

.seo-platform-cell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #1769ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-keyword-detail-modal {
  width: min(720px, 100%);
}

.seo-keyword-detail-modal .modal-head .btn.ghost {
  width: 38px;
  height: 38px;
  padding: 0;
}

.seo-keyword-detail-modal .modal-head svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-keyword-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seo-keyword-detail-item {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #e1e8f3;
  border-radius: 8px;
  background: #f8fbff;
}

.seo-keyword-detail-item.full {
  grid-column: 1 / -1;
}

.seo-keyword-detail-item span {
  color: #6b7890;
  font-size: 13px;
  font-weight: 700;
}

.seo-keyword-detail-item strong {
  color: #14243d;
  font-size: 15px;
  line-height: 1.55;
  word-break: break-word;
}

.seo-generate-backdrop {
  background: rgba(8, 16, 32, 0.58);
}

.seo-generate-modal {
  width: min(1160px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  overflow: hidden;
  border-radius: 12px;
}

.seo-generate-head {
  align-items: flex-start;
  padding: 22px 28px 14px;
}

.seo-generate-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #102348;
  font-size: 28px;
  letter-spacing: 0;
}

.seo-generate-head h3 span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: #1269ff;
}

.seo-generate-head h3 svg,
.seo-generate-close svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-generate-head p {
  margin: 8px 0 0;
  color: #697894;
  font-size: 15px;
}

.seo-generate-close {
  width: 40px;
  height: 40px;
  padding: 10px;
  color: #596980;
}

.seo-generate-modal .modal-body {
  max-height: calc(100vh - 150px);
  overflow: auto;
  padding: 0;
}

.seo-generate-form {
  gap: 0;
}

.seo-generate-section {
  padding: 14px 24px;
  border-top: 1px solid #e6edf7;
}

.seo-generate-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.seo-generate-section-title > span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #1269ff;
  font-size: 13px;
  font-weight: 800;
}

.seo-generate-section-title h4 {
  margin: 0;
  color: #112545;
  font-size: 17px;
  letter-spacing: 0;
}

.seo-generate-section-title p {
  margin: 2px 0 0 6px;
  color: #6a7890;
  font-size: 13px;
}

.seo-platform-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.seo-platform-choice {
  min-height: 68px;
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d8e3f1;
  border-radius: 8px;
  background: #fff;
}

.seo-platform-choice:has(input:checked) {
  border-color: #1769ff;
  background: #f5f9ff;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 255, 0.28);
}

.seo-platform-choice.disabled {
  opacity: 0.58;
  cursor: not-allowed;
  background: #f5f7fb;
  filter: grayscale(0.35);
}

.seo-platform-choice.disabled strong,
.seo-platform-choice.disabled em,
.seo-platform-choice.disabled > span {
  color: #8c99ad;
}

.seo-platform-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seo-platform-choice > span {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #1769ff;
  background: #edf4ff;
}

.seo-platform-choice svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-platform-choice strong {
  color: #172844;
  font-size: 15px;
}

.seo-platform-choice em {
  font-style: normal;
  color: #6b7890;
  font-size: 12px;
}

.seo-platform-choice > i {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  color: #1269ff;
}

.seo-source-grid.rich {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.seo-source-item.rich {
  min-height: 72px;
  grid-template-columns: 40px 1fr;
  position: relative;
  padding: 12px 38px 12px 12px;
  border-radius: 8px;
}

.seo-source-item.rich:has(input:checked) {
  border-color: #1769ff;
  background: #f5f9ff;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 255, 0.24);
}

.seo-source-item.rich input {
  position: absolute;
  top: 12px;
  right: 12px;
}

.seo-source-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #1769ff;
  background: #edf4ff;
}

.seo-source-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-source-item.rich strong {
  font-size: 15px;
}

.seo-source-item.rich span:not(.seo-source-icon) {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}

.seo-keyword-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
}

.seo-keyword-type-choice {
  min-height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 38px 0 14px;
  border: 1px solid #d8e3f1;
  border-radius: 7px;
  background: #fff;
}

.seo-keyword-type-choice:has(input:checked) {
  border-color: #1769ff;
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 255, 0.22);
}

.seo-keyword-type-choice input {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 16px;
  height: 16px;
  accent-color: #1269ff;
}

.seo-keyword-type-choice span {
  width: 22px;
  height: 22px;
  color: #1269ff;
}

.seo-keyword-type-choice svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-keyword-type-choice strong {
  color: #162743;
  font-size: 14px;
}

.seo-generate-setting-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.15fr 1fr 280px;
  gap: 22px;
  align-items: stretch;
}

.seo-generate-setting-block {
  min-width: 0;
  padding-right: 20px;
  border-right: 1px solid #e4ebf5;
}

.seo-setting-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  color: #253752;
  font-size: 14px;
  font-weight: 800;
}

.seo-setting-label svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #7d8da7;
  stroke-width: 2;
}

.seo-generate-setting-block p {
  margin: 12px 0 0;
  color: #7a879c;
  font-size: 13px;
  line-height: 1.5;
}

.seo-generate-setting-block p strong {
  color: #1769ff;
}

.seo-stepper {
  display: inline-grid;
  grid-template-columns: 38px 74px 38px auto;
  align-items: center;
}

.seo-stepper button,
.seo-stepper .input {
  height: 38px;
  border: 1px solid #d5dfec;
}

.seo-stepper button {
  color: #2d65d8;
  background: #f7fbff;
  font-size: 20px;
}

.seo-stepper button:first-child {
  border-radius: 6px 0 0 6px;
}

.seo-stepper button:nth-child(3) {
  border-radius: 0 6px 6px 0;
}

.seo-stepper .input {
  width: 74px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  text-align: center;
}

.seo-stepper em {
  margin-left: 10px;
  color: #7b879a;
  font-style: normal;
  font-size: 13px;
}

.seo-token-estimate {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #b9d3ff;
  border-radius: 8px;
  background: #f8fbff;
}

.seo-token-estimate h4 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #1769ff;
  font-size: 15px;
}

.seo-token-estimate h4 svg,
.seo-token-estimate p svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.seo-token-estimate p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #253752;
  font-size: 13px;
}

.seo-token-estimate p span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #607089;
}

.seo-token-estimate p strong {
  white-space: nowrap;
}

.seo-token-estimate a {
  color: #1769ff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.seo-generate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-top: 1px solid #e6edf7;
}

.seo-generate-footer p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #607089;
  font-size: 14px;
}

.seo-generate-footer p svg,
.seo-generate-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.seo-generate-footer .seo-generate-actions {
  padding: 0;
}

.seo-title-generate-modal {
  width: min(1180px, 100%);
  border-radius: 14px;
}

.seo-title-generate-head {
  padding: 18px 26px;
}

.seo-title-generate-head h3 {
  color: #102345;
  font-size: 48px;
  line-height: 1.1;
}

.seo-title-generate-close {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 8px;
  color: #60708a;
}

.seo-title-generate-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-title-generate-form {
  display: grid;
}

.seo-title-generate-body {
  padding: 0;
}

.seo-title-generate-section {
  padding: 20px 26px;
  border-top: 1px solid #e7edf6;
}

.seo-title-generate-section:first-child {
  border-top: 0;
}

.seo-title-generate-section-head h4 {
  margin: 0;
  color: #162948;
  font-size: 36px;
  line-height: 1.2;
}

.seo-title-generate-section-head p {
  margin: 8px 0 0;
  color: #6f7d94;
  font-size: 14px;
  line-height: 1.6;
}

.seo-title-platform-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.seo-title-platform-item,
.seo-title-type-item {
  position: relative;
  min-height: 104px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.seo-title-platform-item:has(input:checked),
.seo-title-type-item:has(input:checked) {
  border-color: #2a6df4;
  background: #f3f7ff;
  box-shadow: inset 0 0 0 1px rgba(42, 109, 244, 0.08);
}

.seo-title-platform-item input,
.seo-title-type-item input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.seo-title-card-check {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 18px;
  height: 18px;
  display: none;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: #2a6df4;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.seo-title-platform-item:has(input:checked) .seo-title-card-check,
.seo-title-type-item:has(input:checked) .seo-title-card-check {
  display: grid;
}

.seo-title-platform-icon,
.seo-title-type-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #2c75ff;
  border-radius: 8px;
  background: #ecf3ff;
}

.seo-title-platform-icon svg,
.seo-title-type-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-title-platform-text strong,
.seo-title-type-text strong {
  display: block;
  color: #1c2e4a;
  font-size: 18px;
  line-height: 1.25;
}

.seo-title-platform-text span,
.seo-title-type-text span {
  display: block;
  margin-top: 4px;
  color: #6e7c92;
  font-size: 12px;
  line-height: 1.45;
}

.seo-title-platform-tip {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #5371a8;
  background: #f2f7ff;
  font-size: 12px;
}

.seo-title-platform-tip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-title-type-grid.rich {
  margin-top: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-title-type-grid.rich .seo-title-type-item {
  min-height: 72px;
}

.seo-title-generate-setting-grid {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.seo-title-generate-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.seo-title-generate-row > label {
  color: #33435f;
  font-size: 15px;
  font-weight: 700;
}

.seo-title-generate-hint {
  color: #66758f;
  font-size: 14px;
}

.seo-title-generate-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 26px 20px;
  border-top: 1px solid #e7edf6;
}

.seo-title-generate-foot-note,
.seo-title-generate-foot-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5f6f89;
  font-size: 14px;
}

.seo-title-generate-foot-note svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-title-generate-footer .seo-generate-actions {
  padding-top: 0;
}

.seo-title-page {
  display: grid;
  gap: 16px;
}

.seo-title-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-title-filter-panel,
.seo-title-management-panel {
  margin-top: 0;
}

.seo-title-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
  gap: 16px;
  padding: 18px 22px;
}

.seo-title-filter-actions {
  min-width: 0;
  justify-content: flex-end;
}

.seo-title-table-head {
  align-items: center;
}

.seo-title-table-wrap table {
  min-width: 1380px;
}

.seo-title-table-wrap th,
.seo-title-table-wrap td {
  padding: 13px 12px;
  white-space: nowrap;
}

.seo-title-table-wrap .seo-title-text {
  max-width: 300px;
  color: #0d5bea;
  font-weight: 800;
  white-space: normal;
  line-height: 1.5;
}

.seo-table-actions .seo-action-btn:disabled {
  cursor: not-allowed;
  color: #a8b4c6;
}

.title-flow-modal {
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  overflow: hidden;
  border-radius: 12px;
}

.title-flow-head {
  align-items: flex-start;
  padding: 18px 24px 14px;
  border-bottom: 1px solid #e5ecf6;
}

.seo-title-generate-modal.title-flow-modal .title-flow-head h3 {
  margin: 0;
  color: #102345;
  font-size: 24px;
  line-height: 1.25;
}

.title-flow-head p {
  margin: 6px 0 0;
  color: #687891;
  font-size: 13px;
  line-height: 1.5;
}

.title-flow-body {
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding: 0;
}

.title-flow-form {
  display: grid;
  gap: 0;
}

.title-flow-section {
  padding: 16px 24px;
  border-bottom: 1px solid #e8eef7;
}

.title-flow-section-head {
  margin-bottom: 12px;
}

.title-flow-section-head h4 {
  margin: 0;
  color: #152642;
  font-size: 16px;
  line-height: 1.4;
}

.title-flow-section-head h4 small {
  margin-left: 6px;
  color: #66758e;
  font-size: 13px;
  font-weight: 700;
}

.title-flow-section-head p {
  margin: 4px 0 0;
  color: #6f7d94;
  font-size: 13px;
}

.title-flow-platform-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.title-flow-platform-card {
  position: relative;
  min-height: 60px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid #d9e3f1;
  border-radius: 8px;
  background: #fff;
}

.title-flow-platform-card.disabled {
  cursor: not-allowed;
  opacity: 0.58;
  background: #f5f7fb;
  filter: grayscale(0.35);
}

.title-flow-platform-card.disabled strong,
.title-flow-platform-card.disabled em,
.title-flow-platform-card.disabled i {
  color: #8c99ad;
}

.title-flow-platform-card input,
.title-flow-type-card input,
.title-flow-compact-choice input,
.title-flow-content-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.title-flow-platform-card:has(input:checked),
.title-flow-type-card:has(input:checked),
.title-flow-compact-choice:has(input:checked) {
  border-color: #1769ff;
  background: #f4f8ff;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 255, 0.12);
}

.title-flow-card-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 16px;
  height: 16px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1769ff;
  font-size: 12px;
  font-weight: 800;
}

.title-flow-platform-card:has(input:checked) .title-flow-card-check,
.title-flow-type-card:has(input:checked) .title-flow-card-check {
  display: grid;
}

.title-flow-platform-card i,
.title-flow-type-card i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #1769ff;
  background: #edf4ff;
}

.title-flow-platform-card i svg,
.title-flow-type-card i svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title-flow-platform-card strong,
.title-flow-type-card strong {
  display: block;
  color: #162744;
  font-size: 13px;
}

.title-flow-platform-card em,
.title-flow-type-card em {
  display: block;
  margin-top: 2px;
  color: #6e7d94;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.title-flow-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.title-flow-type-card {
  position: relative;
  min-height: 60px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #d9e3f1;
  border-radius: 8px;
  background: #fff;
}

.title-flow-intent-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.title-flow-compact-choice {
  position: relative;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d9e3f1;
  border-radius: 7px;
  color: #273750;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.title-flow-content-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid #d9e3f1;
  border-radius: 8px;
  background: #fff;
}

.title-flow-content-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #dce5f1;
  border-radius: 7px;
  color: #273750;
  background: #f6f9fe;
  font-size: 12px;
  font-weight: 700;
}

.title-flow-content-chip i {
  color: #8a98ad;
  font-style: normal;
}

.title-flow-content-chip:has(input:not(:checked)) {
  opacity: 0.58;
}

.title-flow-settings {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.title-flow-count,
.title-flow-dedupe {
  display: grid;
  gap: 6px;
  color: #33435f;
  font-size: 13px;
  font-weight: 700;
}

.title-flow-count {
  grid-template-columns: 40px 96px 40px auto;
  align-items: center;
  width: max-content;
}

.title-flow-count > span {
  grid-column: 1 / -1;
}

.title-flow-count button {
  width: 40px;
  height: 40px;
  border: 1px solid #d6dfed;
  border-radius: 7px;
  color: #1769ff;
  background: #fff;
  font-size: 18px;
  font-weight: 800;
}

.title-flow-count .input {
  width: 96px;
  min-height: 40px;
  height: 40px;
  padding: 7px 8px;
  box-sizing: border-box;
  text-align: center;
  color: #10213d;
  font-size: 16px;
  font-weight: 800;
  -moz-appearance: textfield;
}

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

.title-flow-count em {
  color: #748198;
  font-style: normal;
  font-weight: 500;
}

.title-flow-token {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 38px;
  color: #687891;
  font-size: 13px;
  white-space: nowrap;
}

.title-flow-token strong {
  color: #1769ff;
  font-size: 15px;
}

.title-flow-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.title-flow-tips p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #53657f;
  background: #f3f7fc;
  font-size: 12px;
}

.title-flow-tips svg,
.title-flow-footer svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title-flow-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 18px;
}

.title-flow-footer .btn {
  min-width: 120px;
}

.title-flow-footer .btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.seo-article-page {
  display: grid;
  gap: 12px;
}

.seo-article-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.seo-article-kpi-grid .publish-kpi-card {
  min-height: 98px;
  padding: 14px 18px;
  border-radius: 8px;
}

.seo-article-kpi-grid .publish-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.seo-article-kpi-grid .publish-kpi-icon svg {
  width: 24px;
  height: 24px;
}

.seo-article-kpi-grid .publish-kpi-card strong {
  margin-top: 8px;
  font-size: 30px;
}

.seo-article-kpi-grid .publish-kpi-card em {
  margin-top: 8px;
}

.seo-article-filter-panel {
  padding: 0;
}

.seo-article-filter-grid {
  display: grid;
  grid-template-columns:
    minmax(200px, 240px)
    minmax(160px, 190px)
    minmax(140px, 170px)
    minmax(320px, 380px)
    max-content;
  align-items: end;
  justify-content: start;
  gap: 12px;
  padding: 14px 24px 14px 18px;
}

.seo-article-filter-keyword {
  max-width: 190px;
}

.seo-article-filter-status {
  max-width: 170px;
}

.seo-article-filter-date {
  min-width: 320px;
  max-width: 380px;
}

.seo-article-date-range {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) auto minmax(118px, 1fr);
  align-items: center;
  gap: 10px;
}

.seo-article-date-range span {
  color: #65748d;
  font-size: 14px;
  text-align: center;
}

.seo-article-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  white-space: nowrap;
}

.seo-article-filter-actions .btn {
  min-width: 76px;
  padding-inline: 16px;
}

#seoArticleGenerateBtn {
  min-width: 100px;
}

.seo-article-filter-actions .btn svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seo-article-table-panel {
  overflow: hidden;
}

.seo-article-tabs {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 22px;
  min-height: 62px;
  border-bottom: 1px solid #e8edf6;
}

.seo-article-batch-bar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  border-bottom: 1px solid #e8edf6;
  background: #f7faff;
}

.seo-article-batch-bar strong {
  display: block;
  color: #17233c;
  font-size: 15px;
}

.seo-article-batch-bar span {
  display: block;
  margin-top: 4px;
  color: #718096;
  font-size: 13px;
}

.seo-article-batch-bar .btn {
  min-width: 132px;
  min-height: 38px;
}

.seo-article-check-col {
  width: 42px;
  text-align: center;
}

.seo-article-check-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1769ff;
}

.seo-article-tabs button {
  min-height: 46px;
  padding: 0;
  color: #5a6780;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  border-radius: 0;
}

.seo-article-tabs button.active {
  color: #246ef4;
  box-shadow: inset 0 -3px 0 #246ef4;
}

.seo-article-table-wrap {
  width: 100%;
  overflow: auto;
}

.seo-article-table {
  min-width: 1320px;
}

.seo-article-table th,
.seo-article-table td {
  padding: 12px 12px;
  font-size: 14px;
  vertical-align: middle;
}

.seo-article-title {
  max-width: 300px;
  color: #1153da;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-article-desc {
  max-width: 360px;
  color: #364762;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-article-time {
  display: grid;
  gap: 4px;
}

.seo-article-time span {
  display: block;
  color: #2a3852;
}

.seo-article-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.seo-article-status.success {
  color: #149a59;
  background: #e8f8ef;
}

.seo-article-status.warning {
  color: #e08520;
  background: #fff3e2;
}

.seo-article-status.danger {
  color: #d34a4a;
  background: #fdeaea;
}

.seo-article-status.muted {
  color: #65758f;
  background: #edf1f7;
}

.seo-article-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.article-detail-backdrop {
  background: rgba(10, 20, 38, 0.5);
}

.article-detail-modal {
  width: min(960px, calc(100vw - 48px));
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(18, 35, 61, 0.24);
}

.article-detail-head {
  align-items: flex-start;
  padding: 18px 24px 14px;
}

.article-detail-head h3 {
  margin: 0;
  color: #102345;
  font-size: 24px;
  line-height: 1.25;
}

.article-detail-head p {
  margin: 6px 0 0;
  color: #687891;
  font-size: 13px;
}

.article-detail-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.article-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px 24px 0;
  background:
    linear-gradient(135deg, rgba(238, 245, 255, 0.7), transparent 42%),
    #fff;
}

.article-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #e2eaf6;
  border-radius: 10px;
  background: #f8fbff;
}

.article-detail-eyebrow {
  display: block;
  color: #1769ff;
  font-size: 12px;
  font-weight: 800;
}

.article-detail-hero h2 {
  margin: 6px 0 0;
  color: #102345;
  font-size: 22px;
  line-height: 1.35;
}

.article-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.article-detail-meta-item {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #e2eaf6;
  border-radius: 8px;
  background: #fff;
}

.article-detail-meta-item span {
  color: #687891;
  font-size: 12px;
  font-weight: 700;
}

.article-detail-meta-item strong {
  color: #172642;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.article-detail-summary,
.article-detail-content {
  margin-top: 12px;
  border: 1px solid #e2eaf6;
  border-radius: 10px;
  background: #fff;
}

.article-detail-summary {
  padding: 14px 16px;
}

.article-detail-summary h4,
.article-detail-section-title h4 {
  margin: 0;
  color: #152642;
  font-size: 16px;
}

.article-detail-summary p {
  margin: 8px 0 0;
  color: #33435d;
  font-size: 14px;
  line-height: 1.75;
}

.article-detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e8eef7;
}

.article-detail-section-title span {
  color: #748198;
  font-size: 12px;
  white-space: nowrap;
}

.article-detail-content article {
  max-height: min(42vh, 520px);
  overflow: auto;
  padding: 16px 18px;
  color: #1f2f49;
  font-size: 15px;
  line-height: 1.9;
}

.article-detail-content h5 {
  margin: 18px 0 8px;
  color: #102345;
  font-size: 17px;
}

.article-detail-content h5:first-child {
  margin-top: 0;
}

.article-detail-content p {
  margin: 0 0 14px;
}

.article-detail-empty {
  color: #748198;
}

.article-detail-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid #e8eef7;
  background: #fff;
}

.article-detail-foot .btn {
  min-width: 112px;
}

.article-edit-form {
  padding-bottom: 18px;
}

.article-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-edit-grid .field.full {
  grid-column: 1 / -1;
}

.article-edit-grid .textarea {
  min-height: 112px;
}

.article-edit-grid .field.full:last-child .textarea {
  min-height: 300px;
}

.seo-article-generate-backdrop {
  background: rgba(10, 20, 38, 0.5);
}

.seo-article-generate-modal {
  width: min(960px, calc(100vw - 48px));
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(18, 35, 61, 0.24);
}

.seo-article-generate-head {
  align-items: flex-start;
  padding: 18px 24px 14px;
}

.seo-article-generate-head h3 {
  margin: 0;
  color: #102345;
  font-size: 24px;
  line-height: 1.25;
}

.seo-article-generate-head p {
  margin: 6px 0 0;
  color: #687891;
  font-size: 13px;
  line-height: 1.5;
}

.seo-article-generate-form {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
}

.seo-article-generate-section {
  padding: 16px 24px;
  border-top: 1px solid #e8edf6;
}

.seo-article-generate-section:first-child {
  border-top: 0;
}

.seo-article-generate-section-head h4 {
  margin: 0;
  color: #1a2a44;
  font-size: 16px;
}

.seo-article-generate-section-head p {
  margin: 8px 0 0;
  color: #6f7d94;
  font-size: 14px;
}

.seo-article-generate-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.seo-article-generate-search {
  width: min(360px, 100%);
}

.seo-article-selected {
  color: #51607a;
  font-size: 14px;
}

.seo-article-selected strong {
  color: #1a2a44;
}

.seo-article-title-pool-wrap {
  margin-top: 12px;
  max-height: 240px;
  overflow: auto;
}

.seo-article-title-pool-table {
  min-width: 820px;
}

.seo-article-title-pool-table th,
.seo-article-title-pool-table td {
  padding: 9px 10px;
  font-size: 13px;
}

.seo-article-title-pool-title {
  max-width: 340px;
  color: #145deb;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-article-title-pool-page {
  color: #51607a;
  font-size: 13px;
  font-weight: 700;
}

.seo-article-title-pool-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.seo-article-content-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.seo-article-type-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.seo-article-type-mode-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 12px 14px 12px 42px;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.seo-article-type-mode-card input {
  position: absolute;
  top: 15px;
  left: 14px;
  width: 16px;
  height: 16px;
  accent-color: #246bfe;
}

.seo-article-type-mode-card strong {
  color: #162744;
  font-size: 14px;
}

.seo-article-type-mode-card span {
  color: #6c7a92;
  font-size: 12px;
  line-height: 1.45;
}

.seo-article-type-mode-card.active {
  border-color: #246bfe;
  background: #f3f7ff;
  box-shadow: 0 0 0 1px rgba(36, 107, 254, 0.14);
}

.seo-article-recommend-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid #d9e7ff;
  border-radius: 7px;
  color: #246bfe;
  background: #f4f8ff;
  font-size: 12px;
}

.seo-article-recommend-summary strong {
  flex: 0 0 auto;
  color: #102345;
}

.seo-article-recommend-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-article-recommend-summary.muted {
  color: #748198;
  background: #f7f9fc;
  border-color: #e2e8f2;
}

.seo-article-content-type-grid.is-disabled {
  opacity: 0.56;
}

.seo-article-content-type-grid.is-disabled .seo-article-type-card {
  cursor: not-allowed;
  background: #f8fafc;
}

.seo-article-type-card {
  position: relative;
  min-height: 62px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 9px 12px 9px 36px;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.seo-article-type-card input {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 16px;
  height: 16px;
  accent-color: #246bfe;
}

.seo-article-type-card strong {
  color: #1a2a44;
  font-size: 13px;
}

.seo-article-type-card span {
  color: #718198;
  font-size: 12px;
  line-height: 1.45;
}

.seo-article-type-card:has(input:checked) {
  border-color: #246bfe;
  background: #f3f7ff;
  box-shadow: 0 0 0 1px rgba(36, 107, 254, 0.16);
}

.seo-article-generate-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seo-article-radio-group,
.seo-article-check-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  min-height: 40px;
}

.seo-article-radio-group label,
.seo-article-check-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #33435f;
  font-size: 14px;
}

.seo-article-radio-group input,
.seo-article-check-group input {
  width: 16px;
  height: 16px;
  accent-color: #2a6df4;
}

.seo-article-generate-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid #e8edf6;
  background: #fff;
}

.seo-article-generate-actions .btn {
  min-width: 128px;
}

@media (max-width: 1560px) {
  .seo-title-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-article-content-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-title-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .title-flow-platform-grid,
  .title-flow-intent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .title-flow-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-title-platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-article-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-article-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-article-filter-date {
    grid-column: span 2;
  }

  .seo-article-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 960px) {
  .seo-title-kpi-grid,
  .seo-title-filter-grid,
  .title-flow-platform-grid,
  .title-flow-type-grid,
  .title-flow-intent-grid,
  .title-flow-settings,
  .title-flow-tips {
    grid-template-columns: 1fr;
  }

  .title-flow-count {
    grid-template-columns: 34px 82px 34px auto;
  }

  .seo-title-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-title-type-grid.rich {
    grid-template-columns: 1fr;
  }

  .seo-title-generate-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .seo-title-generate-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .seo-article-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-article-filter-grid,
  .seo-article-generate-config-grid {
    grid-template-columns: 1fr;
  }

  .seo-article-filter-date {
    min-width: 0;
    grid-column: auto;
  }

  .seo-article-date-range {
    grid-template-columns: 1fr;
  }

  .seo-article-date-range span {
    display: none;
  }

  .seo-article-filter-actions {
    justify-content: stretch;
  }

  .seo-article-filter-actions .btn {
    flex: 1;
  }

  .seo-article-type-mode-grid,
  .seo-article-content-type-grid {
    grid-template-columns: 1fr;
  }

  .seo-article-tabs {
    gap: 14px;
    overflow: auto;
  }

  .seo-article-generate-toolbar {
    flex-wrap: wrap;
  }
}

.dashboard-page {
  display: grid;
  gap: 16px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 16px;
}

.dashboard-card {
  min-height: 112px;
  padding: 20px 24px;
  border: 1px solid rgba(220, 227, 236, 0.78);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.metric-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.metric-card p,
.summary-head p {
  margin: 0;
  color: #1d2b45;
  font-size: 15px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: #061a3d;
  font-size: 30px;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 10px;
  color: #8a96aa;
  font-size: 13px;
}

.metric-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.metric-icon.blue {
  color: #2c75ff;
  background: linear-gradient(135deg, #eaf1ff, #dbe7ff);
}

.metric-icon.green {
  color: #13bd7d;
  background: linear-gradient(135deg, #e7fbf3, #d5f6e9);
}

.metric-icon.purple {
  color: #7a5cff;
  background: linear-gradient(135deg, #f1ecff, #e4d8ff);
}

.metric-icon.orange {
  color: #ff7a1f;
  background: linear-gradient(135deg, #fff0e2, #ffe3ca);
}

.summary-card {
  min-height: 164px;
}

.summary-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.summary-head strong {
  font-weight: 700;
}

.summary-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #216cf4;
  background: linear-gradient(135deg, #eaf1ff, #dbe7ff);
}

.summary-values {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
}

.summary-value {
  min-width: 54px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.summary-value strong {
  font-size: 34px;
  line-height: 1;
}

.summary-value span {
  color: #6f7b90;
  font-size: 14px;
}

.summary-value.blue strong {
  color: #216cf4;
}

.summary-value.green strong {
  color: #12b879;
}

.summary-value.orange strong {
  color: #ff6a1a;
}

.summary-values em {
  align-self: start;
  margin-top: 4px;
  color: #51617b;
  font-size: 32px;
  font-style: normal;
}

.dashboard-panel .panel-head {
  min-height: 62px;
  padding: 18px 26px;
  border-bottom: 0;
}

.dashboard-panel .panel-head h3 {
  color: #0f1d35;
  font-size: 18px;
}

.dashboard-panel .panel-body {
  padding: 0 26px 22px;
}

.trend-chart {
  min-height: 238px;
}

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px 28px;
  color: #43516a;
  font-size: 14px;
}

.chart-legend span {
  width: 30px;
  height: 2px;
  display: inline-block;
  position: relative;
  background: #216cf4;
}

.chart-legend span::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #216cf4;
}

.trend-chart svg {
  width: 100%;
  min-height: 238px;
}

.grid-line line {
  stroke: #dfe7f3;
  stroke-dasharray: 4 4;
}

.grid-line text,
.x-label {
  fill: #6f7b90;
  font-size: 13px;
}

.trend-line {
  fill: none;
  stroke: #216cf4;
  stroke-width: 2.8;
}

.trend-dot {
  fill: #fff;
  stroke: #216cf4;
  stroke-width: 2.8;
}

.dashboard-list {
  display: grid;
  gap: 10px;
  padding: 0 26px 24px;
}

.dashboard-list-item {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f7;
}

.dashboard-list-item:last-child {
  border-bottom: 0;
}

.dashboard-list-item strong {
  display: block;
  max-width: 520px;
  color: #111f36;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-list-item span {
  display: block;
  margin-top: 8px;
  color: #7d899c;
  font-size: 13px;
}

.empty-state {
  min-height: 250px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 22px;
  color: #7c8ba3;
  text-align: center;
}

.publish-panel .empty-state {
  min-height: 164px;
}

.empty-state svg {
  width: min(190px, 70%);
  margin-bottom: 8px;
}

.empty-state strong {
  display: block;
  color: #1b2940;
  font-size: 16px;
}

.empty-state span {
  display: block;
  margin-top: 8px;
  color: #7c8ba3;
  font-size: 14px;
}

.empty-ground,
.empty-line,
.empty-fold,
.empty-plus {
  fill: none;
  stroke: #9fbeee;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-paper {
  fill: #eaf3ff;
  stroke: #8fb4ee;
  stroke-width: 4;
  stroke-linejoin: round;
}

.empty-bubble {
  fill: #7eabed;
}

.empty-cloud {
  fill: none;
  stroke: #d6e6ff;
  stroke-width: 5;
  stroke-linecap: round;
}

.home-page {
  display: grid;
  gap: 16px;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-metric-card {
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(220, 227, 236, 0.8);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-metric-main p {
  margin: 0;
  color: #1d2b45;
  font-size: 16px;
  font-weight: 700;
}

.home-metric-main strong {
  display: block;
  margin-top: 14px;
  color: #0d2347;
  font-size: 38px;
  line-height: 1;
}

.home-delta {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
}

.home-delta.up {
  color: #10a66a;
}

.home-delta.down {
  color: #e45353;
}

.home-delta.flat {
  color: #7a889f;
}

.home-metric-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 16px;
}

.home-metric-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-metric-icon.blue {
  color: #2c75ff;
  background: linear-gradient(135deg, #ecf2ff, #dce8ff);
}

.home-metric-icon.green {
  color: #13bd7d;
  background: linear-gradient(135deg, #e9fbf3, #d7f7ea);
}

.home-metric-icon.purple {
  color: #7a5cff;
  background: linear-gradient(135deg, #f2eeff, #e7dcff);
}

.home-metric-icon.orange {
  color: #ff7a1f;
  background: linear-gradient(135deg, #fff2e4, #ffe6d1);
}

.home-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-summary-card {
  min-height: 120px;
  padding: 16px 20px 18px;
  border: 1px solid rgba(220, 227, 236, 0.8);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-summary-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-summary-head strong {
  color: #111f37;
  font-size: 24px;
}

.home-summary-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #216cf4;
  background: linear-gradient(135deg, #ebf2ff, #dce8ff);
}

.home-summary-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-summary-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.home-summary-item {
  padding: 0 6px;
  text-align: center;
}

.home-summary-item:not(:last-child) {
  border-right: 1px solid #e6edf8;
}

.home-summary-item strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.home-summary-item span {
  display: block;
  margin-top: 8px;
  color: #60708a;
  font-size: 15px;
  font-weight: 600;
}

.home-summary-item.blue strong {
  color: #216cf4;
}

.home-summary-item.green strong {
  color: #12b879;
}

.home-summary-item.orange strong {
  color: #ff6a1a;
}

.home-effect-panel .home-panel-head span {
  color: #74829a;
  font-size: 14px;
  font-weight: 600;
}

.home-effect-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 20px 18px;
}

.home-effect-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e3ebf7;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fbff);
}

.home-effect-card p {
  margin: 0;
  color: #1d2b45;
  font-size: 14px;
  font-weight: 800;
}

.home-effect-card strong {
  display: block;
  margin-top: 8px;
  color: #0d2347;
  font-size: 28px;
  line-height: 1;
}

.home-effect-card em {
  display: block;
  margin-top: 8px;
  color: #697890;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
}

.home-effect-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.home-effect-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-effect-card.blue .home-effect-icon {
  color: #216cf4;
  background: #eaf2ff;
}

.home-effect-card.purple .home-effect-icon {
  color: #7a5cff;
  background: #f0ebff;
}

.home-effect-card.green .home-effect-icon {
  color: #12b879;
  background: #e7f8f0;
}

.home-effect-card.cyan .home-effect-icon {
  color: #0ba6c9;
  background: #e9f8fb;
}

.home-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1.12fr) minmax(260px, 0.78fr);
  gap: 16px;
}

.home-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.42fr);
  gap: 16px;
}

.home-bottom-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.home-panel {
  border-radius: 8px;
}

.home-panel-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #e7edf6;
}

.home-panel-head h3 {
  margin: 0;
  color: #111f37;
  font-size: 22px;
}

.home-panel-body {
  padding: 14px 16px 16px;
}

.home-more-btn {
  min-height: 28px;
  padding: 0;
  color: #5f6f88;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}

.home-trend-panel .home-panel-body {
  padding-top: 12px;
}

.home-trend-chart {
  min-height: 270px;
}

.home-trend-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 8px 46px;
  color: #1b2a45;
  font-size: 14px;
  font-weight: 700;
}

.home-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-trend-legend i {
  width: 24px;
  height: 2px;
  position: relative;
  display: inline-block;
}

.home-trend-legend i::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.home-trend-legend .pv i,
.home-trend-line.pv {
  color: #216cf4;
  background: #216cf4;
  stroke: #216cf4;
}

.home-trend-legend .pv i::after {
  background: #216cf4;
}

.home-trend-legend .uv i,
.home-trend-line.uv {
  color: #12b879;
  background: #12b879;
  stroke: #12b879;
}

.home-trend-legend .uv i::after {
  background: #12b879;
}

.home-trend-svg {
  width: 100%;
  min-height: 260px;
}

.home-grid-line line {
  stroke: #dbe4f1;
  stroke-dasharray: 4 4;
}

.home-grid-line text,
.home-x-label {
  fill: #62728d;
  font-size: 13px;
}

.home-pv-area {
  fill: url(#homePvFill);
}

.home-trend-line {
  fill: none;
  stroke-width: 2.8;
}

.home-trend-dot {
  fill: #fff;
  stroke-width: 2.6;
}

.home-trend-dot.pv {
  stroke: #216cf4;
}

.home-trend-dot.uv {
  stroke: #12b879;
}

.home-recent-list {
  display: grid;
  gap: 4px;
  padding: 4px 16px 12px;
}

.home-recent-item {
  min-height: 56px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f8;
}

.home-recent-item:last-child {
  border-bottom: 0;
}

.home-recent-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #2a6df4;
}

.home-recent-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-recent-main strong {
  display: block;
  color: #112039;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-recent-main span {
  display: block;
  margin-top: 4px;
  color: #6f7f97;
  font-size: 13px;
}

.home-recent-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.home-recent-meta time {
  color: #6e7d96;
  font-size: 13px;
}

.home-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.home-status.success {
  color: #139a66;
  background: #e6f6ee;
}

.home-status.warning {
  color: #f17a1a;
  background: #fff2e1;
}

.home-status.danger {
  color: #d04a4a;
  background: #ffebed;
}

.home-status.muted {
  color: #66788f;
  background: #eef2f7;
}

.home-quick-panel .home-panel-body {
  display: grid;
  gap: 10px;
}

.home-quick-item {
  min-height: 82px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid #dde6f2;
  border-radius: 8px;
  background: #fdfefe;
  text-align: left;
}

.home-quick-item:hover {
  border-color: #b8cef7;
  background: #f7fbff;
}

.home-quick-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.home-quick-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-quick-icon.blue {
  color: #216cf4;
  background: #e9f1ff;
}

.home-quick-icon.purple {
  color: #7a5cff;
  background: #efe9ff;
}

.home-quick-icon.green {
  color: #12b879;
  background: #e7f9f1;
}

.home-quick-text strong {
  display: block;
  color: #112039;
  font-size: 16px;
}

.home-quick-text em {
  display: block;
  margin-top: 4px;
  color: #74849b;
  font-size: 13px;
  font-style: normal;
}

.home-quick-arrow {
  color: #607088;
  font-size: 20px;
  font-weight: 700;
}

.home-publish-wrap {
  padding: 0 16px 14px;
  overflow: auto;
}

.home-publish-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.home-publish-table th,
.home-publish-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e9eff8;
  font-size: 13px;
  text-align: left;
}

.home-publish-table th {
  color: #60708a;
  font-weight: 700;
  background: #f7faff;
}

.home-publish-table td {
  color: #122038;
}

.home-package-panel {
  align-self: start;
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.home-package-panel-wide {
  max-width: none;
  justify-self: stretch;
}

.home-package-panel-wide .home-panel-head {
  min-height: 52px;
  padding: 0 20px;
}

.home-package-panel-wide .home-panel-head h3 {
  font-size: 20px;
}

.home-package-panel-wide .home-package-body {
  grid-template-columns: minmax(220px, 0.9fr) minmax(420px, 1.6fr) minmax(250px, 1fr);
  grid-template-areas:
    "current stats footer"
    "progress progress footer";
  align-items: center;
  gap: 12px 18px;
  padding: 14px 20px 16px;
}

.home-package-panel-wide .home-package-current {
  grid-area: current;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.home-package-panel-wide .home-package-current strong {
  font-size: 34px;
}

.home-package-panel-wide .home-package-stats {
  grid-area: stats;
}

.home-package-panel-wide .home-package-progress {
  grid-area: progress;
}

.home-package-panel-wide .home-package-footer {
  grid-area: footer;
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 10px;
}

.home-package-panel-wide .home-package-expire {
  justify-content: flex-end;
  white-space: nowrap;
}

.home-package-panel-wide .home-package-actions {
  justify-content: flex-end;
}

.home-package-panel .home-panel-head {
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid #e7edf7;
}

.home-package-panel .home-panel-head h3 {
  font-size: 19px;
}

.home-package-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.home-package-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-package-current strong {
  color: #1a2841;
  font-size: 22px;
  font-weight: 900;
}

.home-package-current-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  color: #1f62e8;
  background: #eaf2ff;
  font-size: 13px;
  font-weight: 700;
}

.home-package-current-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: currentColor;
}

.home-package-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #e5ecf7;
  border-radius: 8px;
  overflow: hidden;
}

.home-package-stats article {
  min-width: 0;
  padding: 10px 12px;
  background: #f8fbff;
}

.home-package-stats article:not(:last-child) {
  border-right: 1px solid #e5ecf7;
}

.home-package-stats span {
  color: #6c7a90;
  font-size: 12px;
  font-weight: 700;
}

.home-package-stats strong {
  display: block;
  margin-top: 7px;
  color: #1b2a45;
  font-size: 20px;
  line-height: 1.05;
}

.home-package-progress {
  display: grid;
  gap: 8px;
}

.home-package-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5f6f89;
  font-size: 13px;
  font-weight: 700;
}

.home-package-progress-head strong {
  color: #216cf4;
  font-size: 18px;
  font-weight: 900;
}

.home-package-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7f4;
}

.home-package-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d7bff, #216cf4);
}

.home-package-footer {
  display: grid;
  gap: 12px;
}

.home-package-expire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #617089;
  font-size: 13px;
  font-weight: 700;
}

.home-package-expire svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-package-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-package-actions .btn {
  min-height: 36px;
  min-width: 0;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.home-token-package-card {
  --token-progress: 0%;
  --token-progress-angle: 0deg;
  overflow: hidden;
  border: 1px solid rgba(218, 227, 243, 0.96);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(28, 54, 104, 0.11);
}

.home-token-hero {
  min-height: 112px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 30px;
  background:
    linear-gradient(90deg, rgba(244, 249, 255, 0.96), rgba(236, 244, 255, 0.7)),
    radial-gradient(circle at 80% 20%, rgba(33, 108, 244, 0.14), transparent 34%);
}

.home-token-title-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-token-crown {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82, 143, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #1f78ff, #2664ee 54%, #6a87ff);
  box-shadow: 0 14px 26px rgba(35, 99, 230, 0.28);
}

.home-token-crown svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-token-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.home-token-title-row h3 {
  margin: 0;
  color: #216cf4;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.home-token-title-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  color: #1f62e8;
  background: rgba(222, 234, 255, 0.86);
  font-size: 15px;
  font-weight: 800;
}

.home-token-title-row svg {
  width: 22px;
  height: 22px;
  fill: #1f62e8;
  stroke: #1f62e8;
}

.home-token-title-group p {
  margin: 10px 0 0;
  color: #4c596d;
  font-size: 18px;
  font-weight: 700;
}

.home-token-art {
  width: 180px;
  height: 88px;
  position: relative;
  flex: 0 0 180px;
}

.home-token-art b {
  position: absolute;
  right: 18px;
  bottom: 8px;
  width: 176px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(226, 238, 255, 0.95), rgba(199, 219, 255, 0.92));
  border: 1px solid rgba(120, 160, 235, 0.25);
  box-shadow: 0 18px 28px rgba(60, 107, 205, 0.16);
}

.home-token-diamond {
  position: absolute;
  right: 72px;
  top: 10px;
  width: 78px;
  height: 78px;
  transform: rotate(45deg);
  border-radius: 8px;
  background: linear-gradient(135deg, #87b8ff 0%, #1f65ed 52%, #9bbfff 100%);
  box-shadow: 0 18px 34px rgba(35, 96, 225, 0.28);
}

.home-token-diamond::before,
.home-token-diamond::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.home-token-diamond::after {
  transform: rotate(90deg);
}

.home-token-orbit {
  position: absolute;
  inset: 10px 0 0 24px;
  border: 1px solid rgba(115, 154, 225, 0.18);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.home-token-body {
  padding: 18px 28px 20px;
}

.home-token-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.home-token-stat {
  min-width: 0;
  padding: 4px 24px;
}

.home-token-stat:not(:last-child) {
  border-right: 1px solid #e1e9f6;
}

.home-token-stat span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #17223a;
  font-size: 17px;
  font-weight: 800;
}

.home-token-stat span i {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: #216cf4;
}

.home-token-stat svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-token-stat strong {
  display: block;
  margin-top: 12px;
  color: #182235;
  font-size: 38px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.home-token-stat.primary strong {
  color: #216cf4;
}

.home-token-progress-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 16px 24px;
  border-radius: 8px;
  background: #f3f7fe;
}

.home-token-progress-main {
  min-width: 0;
}

.home-token-progress-title {
  display: flex;
  align-items: baseline;
  gap: 34px;
}

.home-token-progress-title strong {
  color: #182235;
  font-size: 20px;
  font-weight: 900;
}

.home-token-progress-title em {
  color: #216cf4;
  font-size: 30px;
  font-style: normal;
  font-weight: 900;
}

.home-token-track {
  height: 12px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7f3;
}

.home-token-track i {
  display: block;
  width: var(--token-progress);
  min-width: 8px;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #216cf4;
  box-shadow: 0 6px 12px rgba(33, 108, 244, 0.22);
}

.home-token-ring {
  width: 92px;
  height: 92px;
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: conic-gradient(#216cf4 var(--token-progress-angle), #dfe8f5 0deg);
}

.home-token-ring span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #f3f7fe;
}

.home-token-ring strong {
  color: #216cf4;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.home-token-ring em {
  margin-top: 8px;
  color: #67768c;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
}

.home-token-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}

.home-token-expire {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #526278;
  font-size: 17px;
  font-weight: 700;
}

.home-token-expire svg {
  width: 22px;
  height: 22px;
  color: #216cf4;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-token-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-token-actions .btn {
  min-width: 170px;
  min-height: 52px;
  font-size: 20px;
  font-weight: 800;
}

.home-token-actions .btn svg {
  width: 22px;
  height: 22px;
  margin-left: 6px;
  transform: rotate(-90deg);
}

.home-panel-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #6f7f97;
}

.publish-page {
  display: grid;
  gap: 16px;
}

.publish-subtitle {
  margin: -6px 0 0;
  color: #5f6f88;
  font-size: 14px;
}

.publish-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.publish-kpi-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(220, 227, 236, 0.82);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.publish-kpi-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.publish-kpi-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publish-kpi-icon.blue {
  color: #216cf4;
  background: #eaf1ff;
}

.publish-kpi-icon.orange {
  color: #f2831b;
  background: #fff2e5;
}

.publish-kpi-icon.green {
  color: #16b577;
  background: #e8f8f0;
}

.publish-kpi-icon.purple {
  color: #775ef8;
  background: #eee9ff;
}

.publish-kpi-icon.cyan {
  color: #10a9b2;
  background: #e7f8fa;
}

.publish-kpi-card p {
  margin: 0;
  color: #1d2b45;
  font-size: 14px;
  font-weight: 700;
}

.publish-kpi-card strong {
  display: block;
  margin-top: 6px;
  color: #102240;
  font-size: 40px;
  line-height: 1;
}

.publish-kpi-card em {
  display: block;
  margin-top: 8px;
  color: #13aa6c;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.publish-plan-panel {
  padding: 14px 16px 16px;
}

.publish-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.publish-block-head h3 {
  margin: 0;
  font-size: 30px;
  color: #112039;
}

.publish-block-head span {
  width: 20px;
  height: 20px;
  color: #8a97ac;
}

.publish-block-head span svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publish-block-tip {
  margin: 8px 0 0;
  color: #667690;
  font-size: 14px;
}

.publish-plan-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.publish-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.publish-mode-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d7e0ee;
  border-radius: 8px;
  background: #fbfdff;
  cursor: pointer;
}

.publish-mode-card.active {
  border-color: #236df4;
  box-shadow: inset 0 0 0 1px #236df4;
}

.publish-mode-card > input {
  display: none;
}

.publish-mode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.publish-mode-head strong {
  color: #112039;
  font-size: 15px;
}

.publish-mode-head span {
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f4ff;
  color: #2371f6;
  font-size: 12px;
  line-height: 22px;
  font-weight: 700;
}

.publish-mode-card p {
  margin: 0;
  color: #65758f;
  font-size: 13px;
  line-height: 1.6;
}

.publish-mode-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.publish-mode-fields label {
  display: grid;
  gap: 6px;
}

.publish-mode-fields span {
  color: #5f6f88;
  font-size: 12px;
}

.publish-plan-note {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  color: #5f6f88;
  background: #f2f7ff;
  font-size: 13px;
}

.publish-plan-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #246ef4;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publish-table-panel {
  padding: 0 0 12px;
}

.publish-tab-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e7edf6;
}

.publish-tab-row.publish-tab-row-spread {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.publish-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.publish-tabs button {
  min-height: 32px;
  padding: 0;
  border-radius: 0;
  color: #5f6f88;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}

.publish-tabs button.active {
  color: #216cf4;
  box-shadow: inset 0 -2px 0 #216cf4;
}

.publish-content-filter-panel {
  padding: 0;
}

.publish-content-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
  gap: 14px;
  padding: 16px 18px 18px;
}

.publish-content-filter-grid > .seo-filter-item:nth-of-type(6) {
  min-width: 0;
}

.publish-content-filter-grid > .seo-filter-item:nth-of-type(6) .seo-article-date-range {
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  gap: 10px;
}

.publish-content-filter-grid > .seo-filter-item:nth-of-type(6) .input {
  min-width: 0;
}

.publish-content-filter-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 1 / -1;
}

.publish-content-filter-actions .btn {
  min-width: 88px;
}

.publish-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.publish-export-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publish-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.7fr) minmax(180px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px 18px 18px;
}

.publish-filter-row label {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.publish-filter-row label > span {
  color: #1d2b45;
  font-size: 14px;
  font-weight: 800;
}

.publish-filter-actions {
  display: inline-flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.publish-filter-actions .btn {
  min-width: 84px;
}

.publish-search-wrap {
  position: relative;
}

.publish-search-wrap .input {
  padding-right: 34px;
}

.publish-search-wrap span {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #73839a;
}

.publish-search-wrap svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publish-table-wrap {
  overflow: auto;
}

.publish-table {
  width: 100%;
  min-width: 1280px;
}

.publish-table th,
.publish-table td {
  padding: 12px 10px;
  font-size: 13px;
}

.publish-table td:first-child {
  text-align: center;
}

.publish-select-col {
  width: 44px;
  text-align: center;
}

.publish-content-title {
  max-width: 320px;
  color: #1153da;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.publish-url-cell {
  max-width: 320px;
  color: #51617a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.publish-time-cell {
  display: grid;
  gap: 4px;
}

.publish-time-cell span {
  display: block;
  color: #2a3852;
}

.publish-mode-tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.publish-mode-tag.auto {
  color: #246ef4;
  background: #e8f1ff;
}

.publish-mode-tag.manual {
  color: #f2851d;
  background: #fff1e4;
}

.publish-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.publish-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.publish-status.success {
  color: #14a86c;
  background: #e8f7f0;
}

.publish-status.success i {
  background: #14a86c;
}

.publish-status.warning {
  color: #f3841b;
  background: #fff2e4;
}

.publish-status.warning i {
  background: #f3841b;
}

.publish-status.processing {
  color: #216cf4;
  background: #e8f1ff;
}

.publish-status.processing i {
  background: #216cf4;
}

.publish-status.danger {
  color: #df4a4a;
  background: #ffebed;
}

.publish-status.danger i {
  background: #df4a4a;
}

.publish-status.muted {
  color: #6f7d92;
  background: #eef2f7;
}

.publish-status.muted i {
  background: #6f7d92;
}

.publish-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.publish-link-btn {
  min-height: 24px;
  padding: 0;
  color: #216cf4;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.publish-link-btn.danger {
  color: #ea4257;
}

.publish-more-btn {
  min-width: 22px;
  min-height: 24px;
  padding: 0;
  color: #66788f;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}

.publish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 2px;
  color: #5f6f88;
  font-size: 13px;
}

.publish-action-muted {
  color: #9aa8bc;
}

.publish-pager-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.publish-pager-wrap .select {
  min-width: 102px;
}

.publish-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pager-btn {
  min-width: 30px;
  height: 30px;
  border: 1px solid #d5dfec;
  border-radius: 6px;
  color: #52627b;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.pager-btn.active {
  color: #fff;
  border-color: #216cf4;
  background: #216cf4;
}

.pager-btn:disabled {
  color: #a9b5c6;
  background: #f4f7fc;
}

.publish-account-page {
  display: grid;
  gap: 16px;
}

.publish-account-panel {
  padding: 14px 16px 12px;
}

.publish-account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.publish-account-table {
  width: 100%;
  min-width: 920px;
}

.publish-account-table th,
.publish-account-table td {
  padding: 12px 10px;
}

.publish-account-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9aa8bc;
}

.publish-account-link {
  min-height: 24px;
  padding: 0;
  color: #216cf4;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.publish-account-link.danger {
  color: #ea4257;
}

.publish-account-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 2px;
  color: #5f6f88;
  font-size: 13px;
}

.publish-account-modal-backdrop {
  background: rgba(14, 24, 39, 0.46);
}

.publish-account-modal {
  width: min(920px, 100%);
}

.publish-account-modal .modal-head {
  min-height: 72px;
  padding: 0 22px;
}

.publish-account-modal .modal-head h3 {
  font-size: 34px;
  color: #111f38;
}

.publish-account-close {
  width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.publish-account-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publish-account-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.publish-account-form-grid .field > span {
  color: #223657;
  font-size: 15px;
  font-weight: 700;
}

.publish-account-form-grid .field > span em {
  color: #f25353;
  font-style: normal;
}

.publish-account-password-wrap {
  position: relative;
}

.publish-account-password-wrap .input {
  padding-right: 44px;
}

.publish-account-password-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 8px;
  color: #74849a;
  background: transparent;
}

.publish-account-password-toggle:hover {
  background: #eff4fb;
}

.publish-account-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.publish-account-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.publish-account-actions-row .btn {
  min-width: 108px;
}

.publish-plan-page {
  display: grid;
  gap: 16px;
}

.publish-plan-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.publish-plan-filter-panel,
.publish-plan-list-panel {
  padding: 14px 16px 12px;
}

.publish-plan-section-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.publish-plan-section-head h3 {
  margin: 0;
  padding-left: 10px;
  border-left: 4px solid #216cf4;
  color: #12223c;
  font-size: 18px;
  line-height: 1;
}

.publish-plan-filter-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.95fr) minmax(0, 0.95fr) auto;
  align-items: end;
  gap: 12px 14px;
}

.publish-plan-filter-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.publish-plan-table {
  width: 100%;
  min-width: 1260px;
}

.publish-plan-table th,
.publish-plan-table td {
  padding: 14px 10px;
  font-size: 14px;
  vertical-align: middle;
}

.publish-plan-name {
  max-width: 260px;
  color: #1a2943;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.publish-plan-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #243651;
  font-weight: 600;
}

.publish-plan-platform i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #216cf4;
  background: #e9f1ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.publish-plan-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.publish-plan-status.running {
  color: #149a59;
  background: #e8f8ef;
}

.publish-plan-status.paused {
  color: #e08520;
  background: #fff3e2;
}

.publish-plan-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.publish-plan-modal-backdrop {
  background: rgba(12, 22, 39, 0.52);
}

.publish-plan-modal {
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
}

.publish-plan-modal .modal-head {
  min-height: 72px;
  padding: 0 24px;
}

.publish-plan-modal .modal-head h3 {
  color: #13233d;
  font-size: 34px;
}

.publish-plan-modal-form {
  display: grid;
  gap: 18px;
}

.publish-plan-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.publish-plan-modal-grid .field > span {
  color: #223657;
  font-size: 15px;
  font-weight: 700;
}

.publish-plan-modal-grid .field > span em {
  color: #f25353;
  font-style: normal;
}

.publish-plan-name-input-wrap {
  position: relative;
}

.publish-plan-name-input-wrap small {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a98ae;
  font-size: 12px;
  pointer-events: none;
}

.publish-plan-name-input-wrap .input {
  padding-right: 56px;
}

.publish-plan-switch {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.publish-plan-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.publish-plan-switch-ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d6deeb;
  position: relative;
  transition: background 0.2s ease;
}

.publish-plan-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 43, 90, 0.2);
  transition: transform 0.2s ease;
}

.publish-plan-switch input:checked + .publish-plan-switch-ui {
  background: #216cf4;
}

.publish-plan-switch input:checked + .publish-plan-switch-ui::after {
  transform: translateX(20px);
}

.publish-plan-switch b {
  color: #1d2e47;
  font-size: 14px;
}

.publish-plan-count-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.publish-plan-count-wrap span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: #33445f;
  font-size: 14px;
}

.publish-plan-category-editor {
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  background: #fff;
}

.publish-plan-category-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 6px;
  color: #223657;
  background: #eef3fb;
  font-size: 13px;
}

.publish-plan-category-chip button {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6f7d93;
  background: transparent;
  font-size: 14px;
  line-height: 1;
}

.publish-plan-category-input {
  min-width: 180px;
  flex: 1 1 180px;
  min-height: 30px;
  border: 0;
  outline: none;
  color: #172033;
  background: transparent;
  font-size: 14px;
}

.publish-plan-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.publish-plan-modal-actions .btn {
  min-width: 118px;
}

.publish-plan-log-modal {
  width: min(900px, 100%);
}

@media (max-width: 1480px) {
  .publish-plan-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .publish-plan-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publish-plan-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .publish-plan-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .publish-plan-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1480px) {
  .publish-content-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .publish-content-filter-grid > .seo-filter-item:nth-of-type(6) {
    grid-column: span 2;
  }

  .publish-content-filter-actions {
    grid-column: 1 / -1;
  }
}

.materials-page {
  display: grid;
  gap: 14px;
}

.materials-filter-panel {
  padding: 14px;
}

.materials-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.72fr) minmax(0, 0.72fr) auto;
  gap: 14px 18px;
  align-items: end;
}

.materials-filter-item {
  display: grid;
  gap: 8px;
}

.materials-filter-item > span {
  color: #223657;
  font-size: 14px;
  font-weight: 700;
}

.materials-search-wrap {
  position: relative;
}

.materials-search-wrap .input {
  padding-right: 34px;
}

.materials-search-wrap i {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #6f8098;
}

.materials-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.materials-filter-select {
  min-height: 38px;
  border: 0;
  box-shadow: none;
  padding-right: 40px;
  background: transparent;
  color: #1f3152;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.materials-filter-select:focus {
  border: 0;
  box-shadow: none;
}

.materials-select-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}

.materials-filter-select:disabled {
  color: #8a9ab1;
  background: #f7f9fc;
  cursor: not-allowed;
}

.materials-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: #7b8ba3;
  transform: translateY(-50%);
  pointer-events: none;
}

.materials-select-arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.materials-search-wrap i svg,
.materials-filter-actions .btn svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.materials-filter-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.materials-filter-actions .btn.primary {
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.materials-filter-actions .btn.primary svg {
  width: 18px;
  height: 18px;
}

.materials-table-panel {
  padding: 0 0 12px;
}

.materials-table {
  width: 100%;
  min-width: 980px;
}

.materials-table th,
.materials-table td {
  padding: 14px 10px;
  font-size: 14px;
}

.materials-table td:nth-child(1) {
  min-width: 180px;
  max-width: 260px;
}

.materials-table td:nth-child(4) {
  min-width: 280px;
}

.materials-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.materials-status.enabled {
  color: #16a86d;
  background: #e8f7f0;
}

.materials-status.disabled {
  color: #f2831b;
  background: #fff1e3;
}

.materials-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.materials-action {
  min-width: 58px;
  min-height: 34px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
}

.materials-action.edit {
  color: #216cf4;
  border: 1px solid #b9d0fc;
}

.materials-action.delete {
  color: #e45151;
  border: 1px solid #f3b6b9;
}

.materials-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 2px;
  color: #5f6f88;
  font-size: 13px;
}

.materials-pager-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.materials-pager-wrap .select {
  min-width: 110px;
}

.materials-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.materials-modal-backdrop {
  background: rgba(14, 24, 39, 0.48);
}

.materials-modal {
  width: min(980px, 100%);
}

.materials-modal .modal-head h3 {
  font-size: 34px;
}

.materials-modal .modal-head .btn.ghost {
  width: 34px;
  min-height: 34px;
  border-radius: 50%;
  color: #60708a;
  font-size: 28px;
}

.materials-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.materials-form-grid .field > span {
  color: #223657;
  font-size: 14px;
  font-weight: 700;
}

.materials-form-grid .field > span em {
  color: #f25353;
  font-style: normal;
}

.materials-form-grid .field > span i {
  color: #667690;
  font-style: normal;
  font-weight: 600;
}

.materials-content-input {
  min-height: 112px;
  padding-bottom: 24px;
}

.materials-content-count {
  margin-top: -6px;
  color: #72829a;
  font-size: 12px;
  text-align: right;
}

.materials-upload-box {
  min-height: 118px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed #b8cef8;
  border-radius: 8px;
  color: #1f6bf3;
  background: #f9fbff;
}

.materials-upload-box.dragover {
  border-color: #1f6bf3;
  background: #eef5ff;
}

.materials-upload-box strong {
  color: #1f6bf3;
  font-size: 16px;
}

.materials-upload-box em {
  color: #7a899f;
  font-style: normal;
  font-size: 13px;
}

.materials-file-types {
  margin-top: 8px;
  color: #6f8098;
  font-size: 12px;
}

.materials-file-list {
  min-height: 126px;
  max-height: 180px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #fff;
}

.materials-file-list article {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px;
  border-bottom: 1px solid #edf1f7;
}

.materials-file-list article:last-child {
  border-bottom: 0;
}

.materials-file-list a,
.materials-file-list span {
  color: #12213a;
  font-size: 13px;
  word-break: break-all;
}

.materials-file-list button {
  min-height: 24px;
  padding: 0 8px;
  color: #e45151;
  background: transparent;
  font-size: 12px;
}

.materials-file-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  color: #8c99ad;
  font-size: 13px;
}

.materials-form-tip {
  grid-column: 1 / -1;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f6f88;
  font-size: 13px;
}

.materials-form-tip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #216cf4;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.materials-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1024px) {
  .app-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .sidebar {
    position: static;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding-right: 0;
  }

  .main {
    height: auto;
    overflow: visible;
  }

  .nav button {
    justify-content: center;
    text-align: center;
  }

  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  .account-setting-form,
  .account-password-form,
  .enterprise-layout-grid,
  .enterprise-grid-top,
  .enterprise-grid-bottom,
  .enterprise-region-grid,
  .enterprise-submit-row,
  .seo-kpi-grid,
  .seo-title-type-grid,
  .seo-source-grid,
  .materials-form-grid,
  .materials-filter-grid,
  .split,
  .publish-kpi-grid,
  .home-metrics,
  .home-effect-grid,
  .home-summary-grid,
  .home-main-grid,
  .home-bottom-grid,
  .dashboard-metrics,
  .dashboard-summary,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .seo-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-filter-actions {
    grid-column: 1 / -1;
    justify-content: end;
  }

  .seo-generate-row {
    grid-template-columns: 1fr;
  }

  .collapse-menu {
    display: none;
  }

  .publish-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publish-filter-actions {
    grid-column: 1 / -1;
  }

  .publish-content-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publish-content-filter-grid > .seo-filter-item:nth-of-type(6) {
    grid-column: 1 / -1;
  }

  .publish-content-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .publish-tab-row.publish-tab-row-spread {
    grid-template-columns: 1fr;
  }

  .materials-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .home-token-hero {
    align-items: flex-start;
    padding: 24px;
  }

  .home-token-art {
    width: 220px;
    flex-basis: 220px;
  }

  .home-token-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-token-stat {
    padding: 14px 0;
  }

  .home-token-stat:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid #e1e9f6;
  }

  .home-token-progress-card {
    grid-template-columns: 1fr;
  }

  .home-token-ring {
    justify-self: start;
  }

  .home-package-actions {
    flex-wrap: wrap;
  }

  .home-package-panel-wide .home-package-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "current"
      "stats"
      "progress"
      "footer";
  }

  .home-package-panel-wide .home-package-footer {
    justify-items: start;
  }

  .home-package-panel-wide .home-package-expire,
  .home-package-panel-wide .home-package-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .publish-content-filter-grid {
    grid-template-columns: 1fr;
  }

  .publish-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-page {
    padding: 24px 16px;
    overflow: auto;
  }

  .auth-card,
  .auth-card-login,
  .auth-card-register,
  .auth-card-forgot,
  .form-grid {
    width: 100%;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .auth-side {
    padding: 28px;
  }

  .auth-form {
    padding: 28px 20px;
  }

  .auth-steps {
    grid-template-columns: 1fr;
  }

  .auth-steps i {
    display: none;
  }

  .enterprise-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .enterprise-basic-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-region-shell {
    grid-template-columns: 1fr;
  }

  .enterprise-country-nav {
    display: flex;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid #e4ebf5;
  }

  .enterprise-office-item-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .enterprise-office-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .home-token-hero {
    display: grid;
    gap: 20px;
    padding: 22px 18px;
  }

  .home-token-title-group {
    gap: 16px;
    align-items: flex-start;
  }

  .home-token-crown {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .home-token-crown svg {
    width: 34px;
    height: 34px;
  }

  .home-token-title-row h3 {
    font-size: 38px;
  }

  .home-token-title-row span {
    min-height: 32px;
    padding: 0 12px;
    font-size: 15px;
  }

  .home-token-title-group p {
    margin-top: 12px;
    font-size: 20px;
  }

  .home-token-art {
    display: none;
  }

  .home-token-body {
    padding: 20px 18px;
  }

  .home-token-stat span {
    font-size: 18px;
  }

  .home-token-stat strong {
    font-size: 38px;
  }

  .home-token-progress-card {
    gap: 20px;
    padding: 20px;
  }

  .home-token-progress-title {
    flex-wrap: wrap;
    gap: 16px;
  }

  .home-token-progress-title strong {
    font-size: 22px;
  }

  .home-token-progress-title em {
    font-size: 34px;
  }

  .home-token-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-token-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .home-token-actions .btn {
    width: 100%;
  }

  .home-token-expire {
    font-size: 18px;
  }

  .home-package-current {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-package-current strong {
    font-size: 22px;
  }

  .home-package-stats {
    grid-template-columns: 1fr;
  }

  .home-package-stats article:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid #e5ecf7;
  }

  .home-package-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .enterprise-office-meta-row {
    grid-template-columns: 1fr;
  }

  .enterprise-office-form {
    grid-template-columns: 1fr;
  }

  .enterprise-office-phone-row {
    grid-template-columns: 116px 1fr;
  }

  .enterprise-office-modal-actions {
    grid-template-columns: 1fr;
  }

  .seo-filter-grid {
    grid-template-columns: 1fr;
  }

  .seo-filter-actions {
    justify-content: flex-start;
  }

  .materials-filter-actions {
    justify-content: flex-start;
  }

  .materials-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-logs-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .materials-pager-wrap {
    width: 100%;
    flex-wrap: wrap;
  }

  .publish-tab-row {
    grid-template-columns: 1fr;
  }

  .publish-filter-row {
    grid-template-columns: 1fr;
  }

  .publish-filter-actions {
    justify-content: stretch;
  }

  .publish-filter-actions .btn {
    flex: 1;
  }

  .publish-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .publish-mode-grid {
    grid-template-columns: 1fr;
  }

  .home-metric-main strong {
    font-size: 34px;
  }

  .home-summary-head strong {
    font-size: 24px;
  }

  .home-summary-item strong {
    font-size: 34px;
  }

  .home-summary-item span {
    font-size: 14px;
  }

  .home-panel-head h3 {
    font-size: 20px;
  }

  .seo-table-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .seo-pager {
    width: 100%;
    flex-wrap: wrap;
  }

  .content,
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand {
    grid-template-columns: 44px 1fr;
  }

  .brand-collapse,
  .help-center,
  .top-divider {
    display: none;
  }

  .user-box {
    display: none;
  }

  .dashboard-card {
    padding: 20px;
  }

  .summary-values {
    gap: 14px;
  }

  .summary-value strong,
  .metric-card strong {
    font-size: 28px;
  }
}

@media (max-width: 1280px) {
  .seo-platform-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-source-grid.rich,
  .seo-keyword-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-generate-setting-layout {
    grid-template-columns: 1fr 1fr;
  }

  .seo-token-estimate {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .generation-progress-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .generation-progress-head,
  .generation-progress-body,
  .generation-progress-foot {
    padding-left: 18px;
    padding-right: 18px;
  }

  .generation-progress-body {
    grid-template-columns: 1fr;
  }

  .generation-orbit-panel {
    min-height: 240px;
  }

  .generation-orbit {
    width: 210px;
    height: 210px;
  }

  .generation-core {
    width: 132px;
    height: 132px;
  }

  .generation-core strong {
    font-size: 34px;
  }

  .generation-floating-tags {
    display: none;
  }

  .generation-actions {
    flex-direction: column;
  }

  .generation-actions .btn {
    width: 100%;
  }

  .seo-generate-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .seo-platform-choice-grid,
  .seo-source-grid.rich,
  .seo-keyword-type-grid,
  .seo-generate-setting-layout,
  .seo-keyword-detail-grid {
    grid-template-columns: 1fr;
  }

  .seo-generate-setting-block {
    padding-right: 0;
    border-right: 0;
  }

  .seo-generate-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .seo-generate-footer .seo-generate-actions {
    justify-content: stretch;
  }
}

/* UI consistency pass: quieter shell, tighter cards, unified controls. */
:root {
  --bg: #f3f6fb;
  --panel-soft: #f8fafd;
  --line: #e2e8f2;
  --shadow: 0 8px 24px rgba(17, 35, 70, 0.06);
  --sidebar: #0b2d73;
}

body {
  line-height: 1.45;
}

.app-shell {
  grid-template-columns: 272px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 82px minmax(0, 1fr);
}

.sidebar {
  padding: 18px 12px 16px;
  background: linear-gradient(180deg, #071e57 0%, #0b337e 100%);
  box-shadow: none;
}

.brand {
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  padding: 0 4px 18px;
  margin-bottom: 6px;
}

.brand-logo-shell {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand strong {
  font-size: 22px;
}

.brand span {
  margin-top: 4px;
  font-size: 12px;
}

.brand-collapse {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav {
  gap: 4px;
}

.nav-group {
  gap: 4px;
}

.nav button {
  min-height: 46px;
  gap: 10px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 15px;
}

.nav button.active,
.nav button:hover {
  background: #226df4;
  box-shadow: none;
}

.nav-icon,
.collapse-menu svg {
  width: 21px;
  height: 21px;
}

.subnav {
  gap: 2px;
  padding-left: 14px;
}

.subnav button {
  min-height: 34px;
  padding: 0 10px 0 12px;
  border-radius: 7px;
  font-size: 13px;
}

.collapse-menu {
  min-height: 42px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 14px;
}

.app-shell.sidebar-collapsed .sidebar {
  padding: 16px 8px 14px;
}

.app-shell.sidebar-collapsed .brand-logo-shell {
  width: 48px;
  height: 48px;
}

.app-shell.sidebar-collapsed .nav button {
  min-height: 46px;
  border-radius: 9px;
}

.topbar {
  min-height: 72px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid #e5ebf4;
  backdrop-filter: none;
}

.topbar h2 {
  font-size: 22px;
}

.page-heading p {
  margin-top: 6px;
  font-size: 13px;
}

.content {
  padding: 20px 32px 28px;
}

.panel,
.dashboard-card,
.summary-card,
.home-panel,
.publish-kpi-card,
.seo-kpi-card {
  border-color: #e3e9f3;
  box-shadow: var(--shadow);
}

.panel-head {
  min-height: 48px;
  padding: 12px 16px;
}

.panel-body {
  padding: 14px 16px;
}

.btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  font-weight: 700;
}

.input,
.select,
.textarea {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 6px;
}

table {
  min-width: 720px;
}

th,
td,
.seo-keyword-table-wrap th,
.seo-keyword-table-wrap td,
.seo-title-table-wrap th,
.seo-title-table-wrap td,
.seo-article-table th,
.seo-article-table td,
.publish-table th,
.publish-table td,
.publish-plan-table th,
.publish-plan-table td,
.publish-account-table th,
.publish-account-table td,
.materials-table th,
.materials-table td {
  padding: 10px 10px;
  font-size: 13px;
}

th {
  background: #f8fafd;
}

.seo-kpi-grid,
.publish-kpi-grid,
.dashboard-metrics,
.seo-article-kpi-grid,
.publish-plan-kpi-grid {
  gap: 12px;
}

.publish-kpi-card,
.seo-article-kpi-grid .publish-kpi-card {
  min-height: 88px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
}

.publish-kpi-icon,
.seo-article-kpi-grid .publish-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.publish-kpi-icon svg,
.seo-article-kpi-grid .publish-kpi-icon svg {
  width: 22px;
  height: 22px;
}

.publish-kpi-card p {
  font-size: 13px;
}

.publish-kpi-card strong,
.seo-article-kpi-grid .publish-kpi-card strong {
  margin-top: 4px;
  font-size: 30px;
}

.publish-kpi-card em,
.seo-article-kpi-grid .publish-kpi-card em {
  margin-top: 5px;
}

.seo-kpi-card,
.seo-keyword-kpi-grid .seo-kpi-card {
  min-height: 92px;
  padding: 14px 16px;
}

.seo-kpi-card p {
  font-size: 13px;
}

.seo-kpi-card strong {
  margin-top: 8px;
  font-size: 30px;
}

.seo-kpi-hint {
  margin-top: 6px;
}

.seo-filter-grid,
.seo-title-filter-grid,
.seo-article-filter-grid,
.publish-content-filter-grid,
.publish-filter-row,
.publish-plan-filter-grid,
.materials-filter-grid {
  gap: 12px;
  padding: 14px 16px;
}

.seo-filter-item {
  gap: 6px;
}

.seo-filter-item > span {
  font-size: 13px;
}

.seo-filter-actions,
.seo-article-filter-actions,
.publish-filter-actions,
.publish-content-filter-actions,
.publish-plan-filter-actions,
.materials-filter-actions {
  gap: 8px;
}

.seo-filter-actions .btn,
.seo-article-filter-actions .btn,
.publish-filter-actions .btn,
.publish-content-filter-actions .btn,
.publish-plan-filter-actions .btn,
.materials-filter-actions .btn {
  min-width: 72px;
}

.seo-article-filter-grid {
  grid-template-columns:
    minmax(170px, 1fr)
    minmax(150px, 0.85fr)
    minmax(140px, 0.75fr)
    minmax(260px, 1fr)
    max-content;
  justify-content: stretch;
}

.seo-article-filter-keyword,
.seo-article-filter-status,
.seo-article-filter-date {
  max-width: none;
}

.seo-article-date-range {
  grid-template-columns: minmax(104px, 1fr) 14px minmax(104px, 1fr);
  gap: 8px;
}

.publish-content-filter-grid {
  grid-template-columns:
    minmax(170px, 1fr)
    minmax(130px, 0.7fr)
    minmax(130px, 0.7fr)
    minmax(250px, 1fr)
    max-content;
}

.publish-content-filter-actions {
  grid-column: auto;
  justify-content: flex-start;
}

.publish-filter-row {
  grid-template-columns:
    minmax(160px, 1fr)
    minmax(130px, 0.8fr)
    minmax(130px, 0.8fr)
    minmax(230px, 1fr)
    max-content;
}

.seo-article-tabs,
.publish-tabs {
  gap: 18px;
}

.seo-article-tabs {
  min-height: 52px;
  padding: 0 16px;
}

.seo-article-tabs button,
.publish-tabs button {
  font-size: 14px;
}

.seo-table-footer,
.publish-footer {
  min-height: 56px;
  padding: 0 16px 14px;
}

.seo-keyword-table-wrap table,
.seo-title-table-wrap table {
  min-width: 1040px;
}

.seo-article-table {
  min-width: 1180px;
}

.publish-table {
  min-width: 1080px;
}

.seo-pill,
.seo-status,
.seo-gen-tag,
.seo-article-status {
  min-height: 24px;
  padding: 0 10px;
  font-size: 12px;
}

.modal {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(18, 35, 61, 0.18);
}

.modal-head {
  min-height: 52px;
  padding: 12px 16px;
}

.modal-body {
  padding: 14px 16px;
}

.modal-head h3 {
  font-size: 18px;
}

:where(
  .seo-generate-modal,
  .seo-title-generate-modal,
  .seo-article-generate-modal,
  .title-flow-modal,
  .article-detail-modal,
  .materials-modal,
  .publish-plan-modal,
  .publish-account-modal
) {
  width: min(920px, calc(100vw - 48px));
  border-radius: 10px;
}

.seo-generate-modal .modal-head,
.seo-title-generate-modal .modal-head,
.publish-account-modal .modal-head,
.publish-plan-modal .modal-head {
  padding: 14px 18px;
}

.seo-generate-modal .modal-head h3,
.seo-title-generate-modal .modal-head h3,
.publish-account-modal .modal-head h3,
.publish-plan-modal .modal-head h3 {
  font-size: 24px;
}

.seo-generate-modal .modal-body,
.seo-title-generate-modal .modal-body {
  padding: 14px 18px 18px;
}

.seo-platform-choice,
.seo-source-card,
.seo-keyword-type-card {
  min-height: 74px;
  padding: 12px;
}

.seo-platform-choice-grid,
.seo-source-grid.rich,
.seo-keyword-type-grid {
  gap: 10px;
}

.generation-progress-modal {
  width: min(880px, calc(100vw - 48px));
}

.generation-progress-head {
  min-height: 70px;
  padding: 16px 24px 14px;
}

.generation-progress-head h3 {
  font-size: 24px;
}

.generation-progress-body {
  padding: 18px 24px;
}

.generation-progress-foot {
  padding: 14px 24px 18px;
}

.home-token-panel,
.home-package-panel {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-package-body,
.home-token-body {
  padding: 18px 22px;
}

.home-package-current strong {
  font-size: 30px;
}

.home-package-stats strong,
.home-token-stat strong {
  font-size: 22px;
}

@media (max-width: 1380px) {
  .content {
    padding: 18px 22px 26px;
  }

  .seo-kpi-grid,
  .publish-kpi-grid,
  .dashboard-metrics,
  .seo-article-kpi-grid,
  .publish-plan-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-article-filter-grid,
  .publish-content-filter-grid,
  .publish-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-article-filter-actions,
  .publish-content-filter-actions,
  .publish-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .topbar {
    min-height: 64px;
    padding: 0 14px;
  }

  .content {
    padding: 14px;
  }

  .seo-kpi-grid,
  .publish-kpi-grid,
  .dashboard-metrics,
  .seo-article-kpi-grid,
  .publish-plan-kpi-grid,
  .seo-article-filter-grid,
  .publish-content-filter-grid,
  .publish-filter-row {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 12px;
  }

  :where(
    .seo-generate-modal,
    .seo-title-generate-modal,
    .seo-article-generate-modal,
    .title-flow-modal,
    .article-detail-modal,
    .materials-modal,
    .publish-plan-modal,
    .publish-account-modal
  ) {
    width: calc(100vw - 24px);
  }
}

@media (min-width: 921px) {
  .seo-kpi-grid,
  .publish-kpi-grid,
  .dashboard-metrics,
  .publish-plan-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .seo-article-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .seo-filter-grid {
    grid-template-columns:
      minmax(150px, 1fr)
      minmax(130px, 0.75fr)
      minmax(130px, 0.75fr)
      minmax(130px, 0.75fr)
      minmax(130px, 0.75fr)
      max-content;
  }

  .seo-title-filter-grid {
    grid-template-columns:
      minmax(155px, 1fr)
      minmax(130px, 0.72fr)
      minmax(145px, 0.82fr)
      minmax(125px, 0.7fr)
      minmax(125px, 0.7fr)
      minmax(125px, 0.7fr)
      max-content;
  }

  .seo-title-filter-actions {
    grid-column: auto;
    justify-content: flex-start;
  }

  .seo-article-filter-grid {
    grid-template-columns:
      minmax(160px, 1fr)
      minmax(145px, 0.82fr)
      minmax(125px, 0.7fr)
      minmax(230px, 1fr)
      max-content;
  }

  .seo-article-filter-date {
    min-width: 0;
    grid-column: auto;
  }

  .seo-article-filter-actions {
    grid-column: auto;
    flex-wrap: nowrap;
  }

  .seo-article-filter-actions .btn,
  .publish-content-filter-actions .btn,
  .publish-filter-actions .btn {
    min-width: 68px;
    padding-inline: 12px;
  }

  #seoArticleGenerateBtn {
    min-width: 94px;
  }

  .publish-content-filter-grid {
    grid-template-columns:
      minmax(160px, 1fr)
      minmax(120px, 0.68fr)
      minmax(120px, 0.68fr)
      minmax(220px, 1fr)
      max-content;
  }

  .publish-filter-row {
    grid-template-columns:
      minmax(155px, 1fr)
      minmax(120px, 0.7fr)
      minmax(120px, 0.7fr)
      minmax(215px, 1fr)
      max-content;
  }

  .seo-article-table {
    min-width: 1060px;
  }
}
