.admin-layout {
  min-height: 100vh;
  background: var(--color-bg);
}

.admin-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--admin-header-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 0 var(--space-lg);
}

.admin-header__brand,
.user-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-main);
  font-size: 16px;
  font-weight: 600;
}

.brand-logo {
  display: block;
  width: 128px;
  height: 36px;
  object-fit: contain;
}

.admin-header__actions,
.user-header__actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.language-switch {
  width: auto;
  min-width: 116px;
}

.admin-sidebar {
  position: fixed;
  z-index: 10;
  top: var(--admin-header-height);
  bottom: 0;
  left: 0;
  width: var(--admin-sidebar-width);
  border-right: 1px solid var(--color-border);
  background: var(--color-white);
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  overflow-y: auto;
  transition: width 200ms ease-in-out;
}

.admin-sidebar__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-sm);
}

.admin-layout--sidebar-collapsed .admin-sidebar {
  width: var(--admin-sidebar-collapsed-width);
}

.admin-layout--sidebar-collapsed .admin-menu__text {
  display: none;
}

.admin-layout--sidebar-collapsed .admin-main {
  margin-left: var(--admin-sidebar-collapsed-width);
}

.admin-layout--sidebar-collapsed .admin-sidebar__toolbar {
  justify-content: center;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-menu__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 40px;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--color-text-secondary);
  transition: all 200ms ease-in-out;
}

.admin-menu__link:hover,
.admin-menu__link.is-active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.admin-menu__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.admin-menu__icon-img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.admin-main {
  min-height: 100vh;
  margin-left: var(--admin-sidebar-width);
  padding: calc(var(--admin-header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
  transition: margin-left 200ms ease-in-out;
}

.admin-content {
  min-height: calc(100vh - var(--admin-header-height) - var(--space-lg) * 2);
}

.dashboard__header {
  align-items: flex-start;
}

.dashboard__welcome {
  margin: var(--space-sm) 0 0;
  color: var(--color-text-secondary);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.dashboard-stat-card {
  display: flex;
  min-height: 156px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  text-align: left;
  transition: transform 200ms ease-in-out, box-shadow 200ms ease-in-out, border-color 200ms ease-in-out;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 103, 218, 0.24);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.dashboard-stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 20px;
}

.dashboard-stat-card__value {
  color: var(--color-primary);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.dashboard-stat-card__label {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.dashboard__error {
  margin-top: var(--space-md);
  color: var(--color-danger);
}

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

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.module-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.module-tabs__empty {
  margin: 0 0 var(--space-md);
}

.module-tab {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.module-tab:hover {
  color: var(--color-primary);
  background: var(--color-bg-muted);
}

.module-tab.is-active {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  font-weight: 500;
}

.module-page__current-product {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-muted);
  color: var(--color-text-main);
  font-size: 14px;
}

.form-field__hint {
  margin: 4px 0 10px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.module-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
}

.module-icon-picker__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.module-icon-picker__item:hover {
  border-color: rgba(14, 103, 218, 0.35);
  color: var(--primary-blue);
}

.module-icon-picker__item.is-active {
  border-color: var(--primary-blue);
  background: rgba(14, 103, 218, 0.08);
  color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(14, 103, 218, 0.12);
}

.module-icon-picker__clear {
  margin-top: 8px;
}

.module-icon-source__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.module-icon-source__tab {
  min-height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  color: var(--color-text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.module-icon-source__tab.is-active {
  border-color: var(--primary-blue);
  background: rgba(14, 103, 218, 0.08);
  color: var(--primary-blue);
  font-weight: 600;
}

.module-icon-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.module-icon-upload__preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-muted);
}

.module-icon-upload__preview-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.module-accent-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-accent-picker__item {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent-color);
  box-shadow: 0 0 0 1px var(--color-border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-accent-picker__item:hover {
  transform: scale(1.05);
}

.module-accent-picker__item.is-active {
  box-shadow: 0 0 0 2px var(--accent-color);
  transform: scale(1.08);
}

.module-table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f2ff 0%, #f0f7ff 100%);
  color: var(--primary-blue);
  font-size: 16px;
}

.module-table-icon--themed {
  color: var(--module-accent, var(--primary-blue));
  background: linear-gradient(135deg, rgba(14, 103, 218, 0.12) 0%, rgba(14, 103, 218, 0.04) 100%);
}

.module-table-icon__img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.article-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: calc(100vh - var(--admin-header-height) - var(--space-lg) * 2);
  min-height: 0;
  overflow: hidden;
}

.article-page__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.article-page__header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-self: start;
  min-width: 0;
}

.article-page__header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-self: center;
  min-width: 0;
}

.article-page__header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 4px;
  justify-self: end;
  min-width: 0;
}

.article-page__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.article-page__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  flex: 1;
}

.article-page__filter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.article-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.article-main__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.article-editor__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.article-page:not(:has(.article-editor:not(.hidden))) .article-page__header-center,
.article-page:not(:has(.article-editor:not(.hidden))) .article-page__header-right {
  display: none;
}

.select--compact {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 13px;
}

.article-page__body {
  --article-tree-col: 280px;
  --article-outline-col: 240px;
  display: grid;
  grid-template-columns: var(--article-tree-col) minmax(0, 1fr) var(--article-outline-col);
  gap: var(--space-md);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  transition: grid-template-columns 200ms ease-in-out;
}

.article-page__body.is-tree-collapsed {
  --article-tree-col: 44px;
}

.article-page__body.is-outline-collapsed {
  --article-outline-col: 44px;
}

.panel-toggle-btn,
.article-panel__expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.panel-toggle-btn:hover,
.article-panel__expand-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.article-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  flex-shrink: 0;
}

.article-panel__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-panel__expand-btn {
  display: none;
}

.article-tree,
.article-outline {
  position: relative;
  overflow: hidden;
}

.article-tree__body,
.article-outline__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.article-tree.is-collapsed .article-panel__header,
.article-tree.is-collapsed .article-tree__body,
.article-outline.is-collapsed .article-panel__header,
.article-outline.is-collapsed .article-outline__body {
  display: none;
}

.article-tree.is-collapsed .article-panel__expand-btn,
.article-outline.is-collapsed .article-panel__expand-btn {
  display: inline-flex;
}

.article-tree.is-collapsed,
.article-outline.is-collapsed {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: var(--space-sm) 0;
}

.article-tree.is-collapsed .article-panel__expand-btn,
.article-outline.is-collapsed .article-panel__expand-btn {
  margin: auto;
}

.article-panel__expand-btn--left {
  transform: none;
}

.article-tree,
.article-main,
.article-outline,
.article-empty {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.article-tree {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.article-tree__header,
.article-outline__header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
}

.article-tree__loading,
.article-tree__empty {
  padding: var(--space-md);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.article-tree__list {
  flex: 1;
  overflow: auto;
  padding: var(--space-sm) 0;
}

.article-tree__item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding-right: var(--space-sm);
  border-left: 3px solid transparent;
  cursor: pointer;
}

.article-tree__item:hover {
  background: var(--color-bg-muted);
}

.article-tree__item.is-active {
  background: rgba(37, 99, 235, 0.08);
  border-left-color: var(--color-primary);
}

.article-tree__toggle,
.article-tree__toggle-placeholder {
  width: 18px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 10px;
  cursor: pointer;
}

.article-tree__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.article-tree__status-dot,
.article-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.article-tree__status-dot.is-published,
.article-status__dot.is-published {
  background: #16a34a;
}

.article-tree__status-dot.is-draft,
.article-status__dot.is-draft {
  background: #f59e0b;
}

.article-tree__node-actions {
  display: none;
  gap: 2px;
}

.article-tree__item:hover .article-tree__node-actions {
  display: inline-flex;
}

.article-tree__actions {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-md);
}

.article-tree__actions .article-tree__add {
  flex: 1;
  margin: 0;
  min-width: 0;
  white-space: nowrap;
}

.article-tree__add {
  margin: var(--space-md);
}

.article-editor {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.article-main .article-editor,
.article-main .article-empty,
.article-main .update-log-panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.article-editor__title-row {
  padding: 8px 12px 0;
}

.article-editor__header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.article-editor__title {
  width: 100%;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  padding: 6px 10px;
}

.article-editor__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

.article-id-dropdown {
  position: relative;
  flex-shrink: 0;
}

.article-id-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-id-dropdown__chevron {
  font-size: 10px;
  line-height: 1;
}

.article-id-dropdown__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: 400px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.article-id-dropdown__panel.hidden {
  display: none;
}

.article-id-panel__row + .article-id-panel__row {
  margin-top: 12px;
}

.article-id-panel__field {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.article-id-panel__label {
  font-size: 13px;
  color: var(--color-text-main);
  text-align: left;
}

.article-id-panel__input--readonly {
  background: var(--color-bg-muted, #f1f5f9);
  color: var(--color-text-secondary);
  cursor: text;
}

.article-id-panel__slug-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.article-id-panel__slug-row .input {
  flex: 1;
  min-width: 0;
}

.article-id-panel__hint {
  margin: 6px 0 0 80px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-weak);
}

.article-id-panel__meta {
  margin: 4px 0 0 80px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-weak);
  word-break: break-all;
}

.article-editor__status {
  padding: 0 var(--space-md) var(--space-sm);
  font-size: 13px;
  color: var(--color-text-secondary);
}

.article-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-status__tag {
  margin-left: var(--space-sm);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-bg-muted);
  font-size: 12px;
}

.article-editor__overall-status {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.article-editor__lang-hint {
  padding: 6px 12px 0;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.article-editor__lang-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.article-lang-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}

.article-lang-tab.is-active {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
}

.article-lang-tab__status {
  font-size: 11px;
}

.article-lang-tab__status.is-published {
  color: #16a34a;
}

.article-lang-tab__status.is-draft {
  color: #f59e0b;
}

.article-editor__content {
  flex: 1;
  min-height: 0;
  padding: 0 12px 12px;
  position: relative;
}

.article-outline {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.article-outline__list {
  flex: 1;
  overflow: auto;
  padding: var(--space-sm);
}

.article-outline__item {
  display: block;
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-main);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.article-outline__item:hover {
  background: var(--color-bg-muted);
  color: var(--color-primary);
}

.article-empty {
  grid-column: 2 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--color-text-secondary);
}

.article-log-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.article-log-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.article-tree__item--changelog.is-active {
  background: rgba(14, 103, 218, 0.1);
  border-left-color: var(--color-primary);
}

.article-tree__item--changelog.is-active .article-tree__changelog-icon {
  opacity: 1;
}

.article-tree__changelog-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  opacity: 0.72;
}

.update-log-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.update-log-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.update-log-panel__header h2 {
  margin: 0;
  font-size: 18px;
}

.update-log-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.update-log-panel__lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: 0 var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.update-log-panel__loading,
.update-log-panel__empty {
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-text-secondary);
}

.update-log-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.update-log-timeline {
  flex: 1;
  overflow: auto;
  padding: var(--space-lg);
}

.update-log-timeline__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.update-log-timeline__track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.update-log-timeline__dot {
  width: 12px;
  height: 12px;
  border: 3px solid #0E67DA;
  border-radius: 50%;
  background: var(--color-white);
  flex-shrink: 0;
}

.update-log-timeline__line {
  flex: 1;
  width: 2px;
  margin-top: 4px;
  background: rgba(14, 103, 218, 0.2);
}

.update-log-timeline__item:last-child .update-log-timeline__line {
  display: none;
}

.update-log-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--color-white);
}

.update-log-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.update-log-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.update-log-card__version {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 103, 218, 0.1);
  color: #0E67DA;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.update-log-card__date {
  color: #0E67DA;
  font-size: 16px;
  font-weight: 600;
}

.update-log-card__summary,
.update-log-card__content {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.update-log-card__content ol,
.update-log-card__content ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.update-log-card__content ol {
  list-style-type: decimal;
}

.update-log-card__content ul {
  list-style-type: disc;
}

.update-log-card__content li {
  margin: 0.25em 0;
}

.update-log-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: flex-end;
}

.update-log-modal__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.update-log-modal__version-hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.update-log-modal__sync-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.update-log-modal__content {
  margin-top: var(--space-md);
}

.update-log-modal__content-label {
  margin-bottom: var(--space-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
}

.update-log-modal__lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.update-log-modal__lang-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text-main);
  font-size: 13px;
  cursor: pointer;
}

.update-log-modal__lang-tab.is-active {
  border-color: var(--color-primary);
  background: rgba(22, 119, 255, 0.08);
  color: var(--color-primary);
}

.update-log-modal__lang-tab-status {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.update-log-modal__lang-tab-status.is-published {
  color: #389e0d;
}

.update-log-modal__lang-tab-status.is-draft {
  color: #d48806;
}

.update-log-modal__editor-panels {
  min-height: 360px;
}

.update-log-modal__editor-panel {
  min-height: 360px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.update-log-modal__editor {
  min-height: 360px;
  margin-top: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.input.is-readonly {
  background: var(--color-bg-muted);
  color: var(--color-text-secondary);
  cursor: not-allowed;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-main);
  font-size: 14px;
}

.home-config-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.home-config-section {
  padding: var(--space-lg);
}

.home-config-section__header {
  margin-bottom: var(--space-md);
}

.home-config-section__header h2 {
  margin: 0 0 var(--space-xs);
  font-size: 16px;
  font-weight: 600;
}

.home-config__error {
  margin-top: var(--space-md);
  color: var(--color-danger);
  font-size: 14px;
}

.account-row--current td {
  background: rgba(37, 99, 235, 0.04);
}

.account-password-modal__target {
  margin: 0 0 var(--space-md);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.product-table-card {
  padding: 0;
  overflow: hidden;
}

.product-name {
  color: var(--color-text-main);
  font-weight: 500;
}

.product-name__sub {
  max-width: 420px;
  margin-top: 2px;
  color: var(--color-text-weak);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slug-meta {
  max-width: 420px;
  margin-top: 4px;
  color: var(--color-text-weak);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
  padding: var(--space-lg);
}

.modal {
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - var(--space-xl));
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-modal);
  overflow: auto;
}

.modal--large {
  max-width: 900px;
}

.modal__header,
.modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.modal__header {
  border-bottom: 1px solid var(--color-border);
}

.modal__header h2 {
  margin: 0;
  font-size: 20px;
}

.modal__body {
  padding: var(--space-lg);
}

.modal__footer {
  justify-content: flex-end;
  border-top: 1px solid var(--color-border);
}

.ai-translate-modal__section + .ai-translate-modal__section {
  margin-top: var(--space-lg);
}

.ai-translate-modal__section-title {
  margin: 0 0 var(--space-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.ai-translate-modal__radio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.ai-translate-modal__radio-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-translate-modal__radio-label {
  color: var(--color-text);
  font-weight: 500;
}

.ai-translate-modal__option-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-tertiary, #6b7280);
}

.ai-translate-modal__targets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-sm);
}

.ai-translate-modal__checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.ai-translate-modal__hint {
  margin: var(--space-xs) 0 0;
  color: var(--color-warning, #d97706);
  font-size: 13px;
}

.ai-translate-modal__progress {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--color-bg-secondary, #f3f4f6);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-export__chevron {
  font-size: 10px;
  line-height: 1;
  opacity: 0.75;
}

.ai-translate-modal__radio.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ai-translate-modal__radio.is-disabled input {
  pointer-events: none;
}

.form-switch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.form-switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-switch__track {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
  margin-top: 2px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.2s ease;
}

.form-switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.form-switch__input:checked + .form-switch__track {
  background: var(--color-primary, #1677ff);
}

.form-switch__input:checked + .form-switch__track::after {
  transform: translateX(20px);
}

.form-switch__input:focus-visible + .form-switch__track {
  outline: 2px solid rgba(22, 119, 255, 0.35);
  outline-offset: 2px;
}

.form-switch__text {
  display: grid;
  gap: 4px;
}

.form-switch__label {
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
}

.form-switch__desc {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.export-modal__outline-tip {
  margin: 8px 0 0 52px;
}

.language-fields {
  display: grid;
  gap: var(--space-md);
}

.language-field {
  display: grid;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  font-weight: 400;
}

.radio-group {
  display: flex;
  gap: var(--space-lg);
  color: var(--color-text-secondary);
  font-weight: 400;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(14, 103, 218, 0.24), transparent 28%),
    linear-gradient(135deg, #F8FBFF 0%, #E8F0FE 42%, #FFFFFF 100%);
}

.admin-login__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xxl);
  overflow: hidden;
}

.admin-login__brand::before,
.admin-login__brand::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(14, 103, 218, 0.12);
}

.admin-login__brand::before {
  top: 12%;
  right: 12%;
  width: 180px;
  height: 180px;
}

.admin-login__brand::after {
  bottom: 12%;
  left: 8%;
  width: 260px;
  height: 260px;
}

.admin-login__logo {
  position: relative;
  z-index: 1;
  width: 260px;
  max-width: 72%;
  margin-bottom: var(--space-xl);
}

.admin-login__brand h1 {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-bottom: var(--space-md);
  color: var(--color-text-main);
  font-size: 36px;
  font-weight: 600;
}

.admin-login__brand p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.admin-login__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxl) var(--space-xl);
}

.admin-login__card {
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(229, 231, 235, 0.72);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  padding: 40px;
}

.admin-login__header {
  margin-bottom: var(--space-lg);
}

.admin-login__header h2 {
  margin-bottom: var(--space-xs);
  font-size: 24px;
}

.admin-login__header p {
  margin: 0;
  color: var(--color-text-secondary);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--color-text-main);
  font-weight: 500;
}

.login-error {
  margin: 2px 0 var(--space-md);
  color: var(--color-danger);
  font-size: 12px;
}

.login-submit {
  width: 100%;
  margin-top: var(--space-sm);
}

.login-submit__spinner {
  display: none;
  width: 14px;
  height: 14px;
  margin-right: var(--space-sm);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--color-white);
  border-radius: 999px;
  animation: login-spin 800ms linear infinite;
}

.login-submit.is-loading .login-submit__spinner {
  display: inline-block;
}

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

.user-layout {
  min-height: 100vh;
  background: #ffffff;
  color: var(--color-text-main);
  line-height: 1.8;
}

/* 用户端首页：隐藏页面滚动条，保留滚轮/触控滚动 */
html:has(.user-hero),
body:has(.user-hero) {
  overflow-x: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(.user-hero)::-webkit-scrollbar,
body:has(.user-hero)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.user-layout:has(.user-hero) {
  overflow-x: clip;
}

.user-layout:not(:has(.user-article-page)) {
  padding-top: var(--user-header-height);
}

/* 用户端文章页：锁定视口高度，禁止整页滚动 */
.user-layout:has(.user-article-page) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
}

.user-layout:has(.user-article-page) .user-header {
  position: relative;
  top: auto;
  flex-shrink: 0;
}

.user-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  width: 100%;
  height: var(--user-header-height);
  border-bottom: 1px solid rgba(14, 103, 218, 0.08);
  background: rgba(255, 255, 255, 0.88);
  padding: 0 clamp(20px, 4vw, 48px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(14, 103, 218, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-header__start {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
}

.user-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.user-header__brand-divider {
  width: 1px;
  height: 16px;
  margin: 0 12px;
  background: #e5e6eb;
  flex-shrink: 0;
}

.user-header__brand span:last-child {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.user-header__product-switch {
  position: relative;
  flex-shrink: 0;
}

.user-header__language-switch {
  position: relative;
  flex-shrink: 0;
}

.user-dropdown {
  position: relative;
  min-width: 0;
}

.user-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 148px;
  max-width: 220px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 0 12px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown--product .user-dropdown__trigger {
  gap: 8px;
  min-width: 112px;
  max-width: 200px;
  height: 40px;
  padding: 0 12px;
}

.user-dropdown--language .user-dropdown__trigger {
  min-width: 120px;
  max-width: 180px;
  height: 32px;
  border-color: transparent;
  background: transparent;
  border-radius: 6px;
  padding: 0 12px;
}

.user-dropdown__trigger:hover,
.user-dropdown.is-open .user-dropdown__trigger {
  border-color: rgba(14, 103, 218, 0.18);
  background: #f8fbff;
}

.user-dropdown__trigger:focus {
  outline: none;
}

.user-dropdown__trigger:focus-visible {
  outline: 2px solid rgba(14, 103, 218, 0.28);
  outline-offset: 2px;
}

.user-dropdown--language .user-dropdown__trigger:hover,
.user-dropdown--language.is-open .user-dropdown__trigger {
  border-color: transparent;
  background: #f2f3f5;
}

.user-dropdown--language .user-dropdown__panel {
  left: auto;
  right: 0;
  width: max-content;
  min-width: 120px;
}

.user-dropdown--language .user-dropdown__option {
  min-height: 36px;
  padding: 8px 12px 8px 16px;
}

.user-dropdown__prefix {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: var(--primary-blue);
  font-size: 14px;
}

.user-dropdown__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown__chevron {
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown.is-open .user-dropdown__chevron {
  color: var(--primary-blue);
  transform: rotate(180deg);
}

.user-dropdown__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
}

.user-dropdown__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.user-dropdown__item {
  margin: 0;
}

.user-dropdown__option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 8px 12px 8px 16px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown__option:hover {
  background: #f2f7ff;
}

.user-dropdown__option.is-selected {
  background: rgba(14, 103, 218, 0.06);
  color: var(--primary-blue);
}

.user-dropdown__option.is-selected::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--primary-blue);
}

.user-header__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.user-header__search {
  position: relative;
  display: flex;
  align-items: center;
}

.user-header__search--expanded {
  margin-left: auto;
}

.user-header__search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.user-header__search-toggle:hover {
  background: transparent;
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.user-header__search-icon {
  display: block;
}

.user-header__search-form {
  display: none;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.user-header__search--expanded .user-header__search-form {
  display: flex;
  width: clamp(300px, 34vw, 380px);
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fafbfc;
  padding: 0 6px 0 14px;
  opacity: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.user-header__search--expanded .user-header__search-form:focus-within {
  border-color: rgba(14, 103, 218, 0.35);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 103, 218, 0.08);
}

.user-header__search--expanded .user-header__search-toggle {
  display: none;
}

.user-header__search-field-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  color: #9ca3af;
}

.user-header__search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 8px 0 0;
  color: var(--color-text-main);
  font-size: 14px;
  transition: all 0.3s ease;
}

.user-header__search-input:focus {
  outline: none;
}

.user-header__search-input:-webkit-autofill,
.user-header__search-input:-webkit-autofill:hover,
.user-header__search-input:-webkit-autofill:focus,
.user-header__search-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fafbfc inset !important;
  box-shadow: 0 0 0 1000px #fafbfc inset !important;
  -webkit-text-fill-color: var(--color-text-main) !important;
  caret-color: var(--color-text-main);
  transition: background-color 99999s ease-out 0s;
}

.user-header__search--expanded .user-header__search-form:focus-within .user-header__search-input:-webkit-autofill,
.user-header__search--expanded .user-header__search-form:focus-within .user-header__search-input:-webkit-autofill:hover,
.user-header__search--expanded .user-header__search-form:focus-within .user-header__search-input:-webkit-autofill:focus,
.user-header__search--expanded .user-header__search-form:focus-within .user-header__search-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.user-header__search-submit {
  flex-shrink: 0;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: var(--primary-blue);
  padding: 0 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.user-header__search-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(14, 103, 218, 0.22);
}

.user-main {
  min-height: calc(100vh - var(--user-header-height));
}

.user-main--articles {
  flex: 1;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.user-article-page {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.user-article-page__body {
  --user-sidebar-width: 280px;
  --user-outline-width: 260px;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.user-article-page .article-tree,
.user-article-page .article-outline,
.user-article-page .article-main {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.user-article-page__sidebar-wrap {
  position: relative;
  flex: 0 0 var(--user-sidebar-width);
  width: var(--user-sidebar-width);
  min-width: 0;
  height: 100%;
  transition: flex-basis 0.3s ease, width 0.3s ease;
  overflow: visible;
}

.user-article-page__body.is-sidebar-collapsed {
  --user-sidebar-width: 0px;
}

.user-article-page__sidebar {
  display: flex;
  flex-direction: column;
  width: 280px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.user-article-page__body.is-sidebar-collapsed .user-article-page__sidebar {
  opacity: 0;
  pointer-events: none;
}

.user-article-page__panel-toggle {
  position: absolute;
  z-index: 6;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #e5e6eb;
  background: #ffffff;
  color: #86909c;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transform: translateY(-50%);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.user-article-page__panel-toggle:hover {
  border-color: #c9cdd4;
  background: #f7f8fa;
  color: #4e5969;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.user-article-page__panel-toggle:focus {
  outline: none;
}

.user-article-page__panel-toggle:focus-visible {
  outline: 2px solid rgba(14, 103, 218, 0.28);
  outline-offset: 1px;
}

.user-article-page__panel-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.user-article-page__panel-toggle-svg {
  display: block;
}

.user-article-page__panel-toggle--left {
  right: -12px;
  border-left: none;
  border-radius: 0 4px 4px 0;
}

.user-article-page__panel-toggle--right {
  left: -12px;
  border-right: none;
  border-radius: 4px 0 0 4px;
}

.user-article-page__body.is-sidebar-collapsed .user-article-page__panel-toggle--left {
  right: auto;
  left: 0;
  border-left: 1px solid #e5e6eb;
  border-radius: 0 4px 4px 0;
}

.user-article-page__body.is-outline-collapsed .user-article-page__panel-toggle--right {
  left: auto;
  right: 0;
  border-right: 1px solid #e5e6eb;
  border-radius: 4px 0 0 4px;
}

.user-article-page__outline-wrap {
  position: relative;
  flex: 0 0 var(--user-outline-width);
  width: var(--user-outline-width);
  min-width: 0;
  height: 100%;
  transition: flex-basis 0.3s ease, width 0.3s ease;
  overflow: visible;
}

.user-article-page__body.is-outline-collapsed {
  --user-outline-width: 0px;
}

.user-article-page__body.is-sidebar-collapsed.is-outline-collapsed .user-article-page__main {
  box-shadow: none;
}

.user-article-page__outline-wrap.hidden {
  display: none;
}

.user-article-page .update-log-panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.user-article-page__sidebar .article-tree__list {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-sm) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.user-article-page__sidebar .article-tree__list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.user-article-page__module-nav {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
}

.user-article-page__module-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
}

.user-article-page__module-title {
  flex-shrink: 0;
  color: var(--color-text-main);
  font-size: 14px;
  font-weight: 600;
}

.user-article-page__module-picker {
  flex: 1;
  min-width: 0;
}

.user-article-page__module-empty {
  display: block;
  overflow: hidden;
  color: var(--color-text-secondary);
  font-size: 13px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown--sidebar-module {
  width: 100%;
}

.user-dropdown--sidebar-module .user-dropdown__trigger {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 32px;
  padding: 0 8px 0 10px;
  font-size: 13px;
}

.user-dropdown--sidebar-module .user-dropdown__label {
  font-size: 13px;
  font-weight: 500;
}

.user-dropdown--sidebar-module .user-dropdown__panel {
  right: 0;
  left: auto;
  width: max(100%, 180px);
  max-width: 260px;
}

.user-article-page__sidebar .article-tree__body {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-article-page__sidebar .article-tree__loading,
.user-article-page__sidebar .article-tree__empty {
  flex-shrink: 0;
}

.user-article-page__main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
}

.user-article-page .article-main.user-article-page__main {
  box-shadow: inset 1px 0 0 #e5e6eb, inset -1px 0 0 #e5e6eb;
}

.user-article-page__body.is-sidebar-collapsed .user-article-page .article-main.user-article-page__main {
  box-shadow: inset -1px 0 0 #e5e6eb;
}

.user-article-page__body.is-outline-collapsed .user-article-page .article-main.user-article-page__main,
.user-article-page__body:has(.user-article-page__outline-wrap.hidden) .user-article-page__main {
  box-shadow: inset 1px 0 0 #e5e6eb;
}

.user-article-page__scroll {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 32px 0 48px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.user-article-page__scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.user-article-page__article-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 40px;
  box-sizing: border-box;
  text-align: left;
}

.user-article-page .article-content {
  max-width: 100%;
  text-align: left;
}

.user-article-page .article-content img {
  max-width: min(100%, 960px);
  width: auto;
  height: auto;
  display: inline-block;
  vertical-align: top;
  object-fit: contain;
}

.user-article-page__title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-main);
}

.user-article-page__meta {
  margin: 0 0 24px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.user-article-page__guide-intro {
  margin: 0 0 28px;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.user-article-page__section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.user-article-page__guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-article-page__guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-article-page__guide-link:hover {
  border-color: rgba(14, 103, 218, 0.35);
  box-shadow: 0 4px 16px rgba(14, 103, 218, 0.08);
}

.user-article-page__guide-link-title {
  color: var(--color-text-main);
  font-size: 15px;
  font-weight: 500;
}

.user-article-page__guide-link-date {
  color: var(--color-text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.user-article-page__outline {
  display: flex;
  flex-direction: column;
  width: 260px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.user-article-page__body.is-outline-collapsed .user-article-page__outline {
  opacity: 0;
  pointer-events: none;
}

.user-article-page__outline-scroll {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.14) transparent;
}

.user-article-page__outline .article-outline__header {
  padding: 20px 16px 12px;
  border-bottom: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.user-article-page__outline .article-outline__body {
  padding: 0 12px 20px;
}

.user-article-page__outline .article-outline__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-article-page__outline .article-outline__item {
  width: 100%;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 6px 8px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.user-article-page__outline .article-outline__item:hover,
.user-article-page__outline .article-outline__item.is-active {
  color: var(--color-primary);
}

.user-article-page__outline .article-outline__item.is-active {
  border-left-color: var(--color-primary);
  background: rgba(14, 103, 218, 0.06);
}

.user-article-page__back-top {
  display: block;
  width: 100%;
  margin-top: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 8px 12px;
  color: var(--color-text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.user-article-page__back-top:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.user-article-page__loading {
  padding: 48px 0;
  text-align: center;
  color: var(--color-text-secondary);
}

.user-article-page__empty-hint {
  margin: 0;
  padding: 8px 4px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.user-article-page__log-card .update-log-card__content {
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .user-article-page__body {
    --user-sidebar-width: 240px;
  }

  .user-article-page__sidebar {
    width: 240px;
  }

  .user-article-page__outline-wrap {
    display: none;
  }
}

@media (max-width: 768px) {
  .user-article-page__sidebar-wrap {
    display: none;
  }

  .user-article-page__title {
    font-size: 26px;
  }
}

.user-hero {
  position: relative;
  overflow: hidden;
  padding: 72px clamp(20px, 4vw, 48px) 80px;
  background:
    radial-gradient(circle at 85% 20%, rgba(14, 103, 218, 0.08), transparent 42%),
    radial-gradient(circle at 10% 80%, rgba(14, 103, 218, 0.05), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.user-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(14, 103, 218, 0.05) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(14, 103, 218, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  pointer-events: none;
}

.user-hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  container-type: inline-size;
  container-name: hero;
}

.user-hero__content {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 720px;
  overflow: visible;
}

.user-hero__title {
  margin: 0 0 16px;
  color: var(--primary-blue);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
}

.user-hero__subtitle {
  margin: 0 auto 32px;
  max-width: 520px;
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.8;
  text-align: center;
}

.user-hero__search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(14, 103, 218, 0.08);
  border-radius: 16px;
  background: #ffffff;
  padding: 8px 8px 8px 0;
  box-shadow: 0 8px 24px rgba(14, 103, 218, 0.08);
  transition: all 0.3s ease;
}

.user-hero__search:focus-within {
  border-color: rgba(14, 103, 218, 0.18);
  box-shadow: 0 12px 32px rgba(14, 103, 218, 0.12);
}

.user-hero__search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 12px;
}

.user-hero__search-icon-svg {
  display: block;
  flex-shrink: 0;
}

.user-hero__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--color-text-main);
  font-size: 16px;
}

.user-hero__search-input:focus {
  outline: none;
}

.user-hero__search-input:-webkit-autofill,
.user-hero__search-input:-webkit-autofill:hover,
.user-hero__search-input:-webkit-autofill:focus,
.user-hero__search-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: var(--color-text-main) !important;
  caret-color: var(--color-text-main);
  transition: background-color 99999s ease-out 0s;
}

.user-hero__search-input::placeholder {
  color: var(--color-text-weak);
}

.user-hero__search-btn {
  flex-shrink: 0;
  height: 40px;
  border: none;
  border-radius: 20px;
  background: var(--primary-blue);
  padding: 6px 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.user-hero__search-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 103, 218, 0.24);
}

.user-hero__hot-search {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.user-hero__hot-label {
  flex-shrink: 0;
  margin-top: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.user-hero__hot-tags {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  overflow-x: visible;
}

.user-hero__hot-tags::-webkit-scrollbar {
  display: none;
}

.user-hero__hot-tag {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  max-width: none;
  min-height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(14, 103, 218, 0.06);
  padding: 6px 14px;
  color: var(--color-text-main);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.user-hero__hot-tag:hover {
  background: rgba(14, 103, 218, 0.12);
  color: var(--primary-blue);
}

.user-hero__hot-tag:active {
  transform: translateY(1px);
}

@keyframes user-hero-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.user-hero__visual {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(100%, 320px);
  min-height: 300px;
  pointer-events: none;
  justify-self: end;
  align-self: center;
}

.user-hero__art {
  position: relative;
  width: 280px;
  height: 280px;
  animation: user-hero-float 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(14, 103, 218, 0.25));
}

.user-hero__float-shape {
  position: absolute;
  transition: all 0.3s ease;
}

.user-hero__float-shape--ring {
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  border: 1.5px solid rgba(14, 103, 218, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.user-hero__float-shape--core {
  top: 50%;
  left: 50%;
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: linear-gradient(145deg, #0e67da 0%, #4d9af0 55%, #a8d4ff 100%);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    0 16px 40px rgba(14, 103, 218, 0.28);
}

.user-hero__float-shape--shard {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(14, 103, 218, 0.12);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(14, 103, 218, 0.08));
  backdrop-filter: blur(6px);
}

.user-hero__float-shape--shard-a {
  top: 18%;
  right: 12%;
  transform: rotate(18deg);
}

.user-hero__float-shape--shard-b {
  bottom: 16%;
  left: 10%;
  width: 44px;
  height: 44px;
  transform: rotate(-24deg);
  opacity: 0.85;
}

.user-hero__float-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.user-docs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px clamp(20px, 4vw, 48px) 80px;
}

.user-docs__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.user-docs__title {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.user-docs__subtitle {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.user-docs__view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-blue);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-docs__view-all::after {
  content: ">";
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-docs__view-all:hover {
  color: var(--color-primary-dark);
}

.user-docs__view-all:hover::after {
  transform: translateX(4px);
}

.user-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.user-module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  background: #ffffff;
  padding: 20px 20px 16px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.user-module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-blue);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.user-module-card:hover {
  border-color: rgba(14, 103, 218, 0.16);
  box-shadow: 0 8px 24px rgba(14, 103, 218, 0.08);
  transform: translateY(-2px);
}

.user-module-card:hover::before {
  opacity: 1;
}

.user-module-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-module-card__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f2ff 0%, #f0f7ff 100%);
  color: var(--primary-blue);
  font-size: 18px;
}

.user-module-card__icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.user-module-card__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--color-text-main);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.user-module-card__meta {
  margin: 0;
  flex: 1;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.user-module-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: auto;
  padding: 0;
  background: none;
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.user-module-card__cta i {
  transition: transform 0.2s ease;
}

.user-module-card:hover .user-module-card__cta {
  color: var(--color-primary-dark);
}

.user-module-card:hover .user-module-card__cta i {
  transform: translateX(4px);
}

.user-module-card--themed::before {
  background: var(--module-accent, var(--primary-blue));
}

.user-module-card--themed .user-module-card__icon {
  color: var(--module-accent, var(--primary-blue));
}

.user-module-card--themed:hover {
  border-color: rgba(14, 103, 218, 0.16);
  box-shadow: 0 8px 24px rgba(14, 103, 218, 0.08);
}

.user-module-card--themed:hover .user-module-card__cta {
  color: var(--module-accent, var(--color-primary-dark));
}

.user-module-card--skeleton {
  pointer-events: none;
  cursor: default;
  min-height: 180px;
}

.user-module-card--skeleton::before {
  display: none;
}

.user-module-card--skeleton:hover {
  border-color: #e8ecf0;
  box-shadow: none;
  transform: none;
}

.user-module-card__shimmer {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f6;
}

.user-module-card__shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-100%);
  animation: user-module-shimmer 1.4s ease-in-out infinite;
}

.user-module-card--skeleton .user-module-card__icon.user-module-card__shimmer {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.user-module-card--skeleton .user-module-card__title.user-module-card__shimmer {
  flex: 1;
  height: 20px;
}

.user-module-card--skeleton .user-module-card__meta.user-module-card__shimmer {
  height: 14px;
  width: 72%;
}

.user-module-card--skeleton .user-module-card__cta.user-module-card__shimmer {
  height: 14px;
  width: 88px;
}

@keyframes user-module-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.user-module-card--loading,
.user-module-card--empty {
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  color: var(--color-text-secondary);
  text-align: center;
  cursor: default;
}

.user-module-card--loading::before,
.user-module-card--empty::before {
  display: none;
}

.user-module-card--loading:hover,
.user-module-card--empty:hover {
  border-color: #e8ecf0;
  box-shadow: none;
  transform: none;
}

@media (max-width: 992px) {
  .user-hero__container {
    grid-template-columns: 1fr;
  }

  .user-hero__content {
    grid-column: 1;
  }

  .user-hero__visual {
    display: none;
  }
}

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

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

  .user-hero__visual {
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    width: 64px;
  }

  .admin-menu__text {
    display: none;
  }

  .admin-main {
    margin-left: 64px;
  }

  .admin-login {
    grid-template-columns: 1fr;
  }

  .admin-login__brand {
    display: none;
  }

  .admin-login__panel {
    padding: var(--space-lg);
  }

  .user-header {
    height: auto;
    min-height: 64px;
    padding: 12px var(--space-md);
  }

  .user-header__start {
    flex-wrap: wrap;
  }

  .user-header__brand span {
    display: none;
  }

  .user-header__toolbar {
    gap: 12px;
  }

  .user-header__search--expanded {
    margin-left: 0;
  }

  .user-header__search--expanded .user-header__search-form {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    width: min(340px, calc(100vw - 32px));
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fafbfc;
    padding: 0 6px 0 14px;
    box-shadow: 0 8px 24px rgba(14, 103, 218, 0.1);
  }

  .user-header__search--expanded .user-header__search-form:focus-within {
    border-color: rgba(14, 103, 218, 0.35);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 103, 218, 0.08), 0 8px 24px rgba(14, 103, 218, 0.1);
  }

  .user-hero {
    padding: 48px 20px 56px;
  }

  .user-hero__title {
    font-size: 30px;
  }

  .user-hero__subtitle {
    font-size: 15px;
  }

  .user-hero__search {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .user-hero__search-btn {
    width: 100%;
  }

  .user-hero__hot-search {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .user-hero__hot-tags {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }

  .user-hero__visual {
    display: none;
  }

  .user-docs {
    padding: 48px 20px 64px;
  }

  .user-docs__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: 104px;
    height: 30px;
  }

  .user-search {
    flex-direction: column;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .user-card-grid {
    grid-template-columns: 1fr;
  }

  .article-page__body {
    grid-template-columns: 1fr;
  }

  .article-outline {
    display: none;
  }

  .article-empty {
    grid-column: 1;
  }

  .article-main {
    grid-column: 1;
  }
}

.user-main--search {
  background: #ffffff;
}

.user-search-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 32px 48px;
}

.user-search-page__stats {
  margin: 0 0 20px;
  font-size: 14px;
  color: #86909c;
}

.user-search-page__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result-item {
  padding: 16px 20px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  border-color: #c9cdd4;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  outline: none;
}

.search-result-item__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #1d2129;
}

.search-result-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #86909c;
}

.search-result-item__highlight {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4e5969;
}

.user-search-page .search-highlight {
  color: #165dff;
  font-weight: 500;
}

.user-search-page__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.user-search-page__page-btn {
  min-width: 88px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #ffffff;
  color: #1d2129;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.user-search-page__page-btn:hover:not(:disabled) {
  border-color: #165dff;
  color: #165dff;
}

.user-search-page__page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.user-search-page__page-info {
  font-size: 14px;
  color: #4e5969;
}

.user-search-page__empty,
.user-search-page__loading {
  padding: 48px 16px;
  text-align: center;
  color: #86909c;
  font-size: 14px;
}

@media (max-width: 768px) {
  .user-search-page {
    padding: 16px;
  }
}
