/* ===================================================
   SproutGate · 萌芽账户认证中心
   黑白灰文档风 + 圆角 · 手机/桌面双端适配
   =================================================== */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 隐藏视口滚动条，保留滚动（各浏览器） */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* 全站中文以楷体栈为默认，子元素继承（含表单、等宽类名场景） */
  font-family:
    "Kaiti SC", "STKaiti", "KaiTi", "楷体",
    "FangSong", "STFangSong", "仿宋",
    "Songti SC", "STSong", "SimSun", "NSimSun", "宋体",
    serif;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

body {
  margin: 0;
  font-family: inherit;
  background: #f4f4f5;
  color: #171717;
  font-size: 20px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

/* === Splash Screen === */
/* 全站随机背景：高斯模糊 = --app-rand-bg-blur-ref × 20%（默认 24px → 4.8px） */
.app-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  --app-rand-bg-blur-ref: 6px;
}

.app-rand-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.app-rand-bg__img {
  position: absolute;
  left: -8%;
  top: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(calc(var(--app-rand-bg-blur-ref) * 0.2));
  transform: scale(1.02);
}

.app-rand-bg__veil {
  position: absolute;
  inset: 0;
  background: rgba(244, 244, 245, 0.78);
}

.app-shell > .app {
  position: relative;
  z-index: 1;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #ececec 0%, #fafafa 40%, #f0f0f0 100%);
  overflow: hidden;
}

.splash-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.06), transparent 55%),
    radial-gradient(circle at 40% 70%, rgba(0, 0, 0, 0.04), transparent 55%);
  animation: splashPulse 6s ease-in-out infinite;
}

.splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.splash-logo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-rings span {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  animation: ringPulse 2.6s ease-out infinite;
}

.splash-rings span:nth-child(2) {
  animation-delay: 0.8s;
  border-color: rgba(0, 0, 0, 0.09);
}

.splash-rings span:nth-child(3) {
  animation-delay: 1.6s;
  border-color: rgba(0, 0, 0, 0.08);
}

.splash-logo {
  display: block;
  width: 120px;
  height: 120px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  animation: floatLogo 3s ease-in-out infinite;
  object-fit: contain;
  object-position: center;
}

.splash-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #171717;
}

.splash-subtitle {
  font-size: 14px;
  color: #9ca3af;
}

.splash-dots {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.splash-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #404040;
  animation: dotPulse 1.2s infinite ease-in-out;
}

.splash-dots span:nth-child(2) { animation-delay: 0.2s; }
.splash-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes splashPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes ringPulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  70% { opacity: 0.2; }
  100% { transform: scale(1.7); opacity: 0; }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(0.7); opacity: 0.6; }
  50% { transform: scale(1); opacity: 1; }
}

/* === App Layout === */
.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 14px 32px;
}

/* === Header === */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-header-logo-btn {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  line-height: 0;
  flex-shrink: 0;
}

.app-header-logo-btn:focus-visible {
  outline: 2px solid #404040;
  outline-offset: 2px;
}

.app-header-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: #fff;
  padding: 0;
  box-sizing: border-box;
}

.app-header h1,
.unified-user-header h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.app-header p {
  margin: 2px 0 0;
  color: #9ca3af;
  font-size: 15px;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

nav a {
  padding: 6px 14px;
  border-radius: 999px;
  background: #ececec;
  color: #262626;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

nav a:hover {
  background: #e5e5e5;
  color: #171717;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.04);
}

/* === 用户中心：顶栏 + 内容合并为一张卡片 === */
.unified-user-shell {
  width: 100%;
}

.unified-user-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 6px 22px rgba(15, 23, 42, 0.045),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.unified-user-card-accent {
  height: 3px;
  background: linear-gradient(90deg, #525252, #404040, #262626);
}

.unified-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.unified-user-main {
  padding: 12px 14px 16px;
  background: #fafafa;
}

.unified-user-main .panel {
  gap: 10px;
}

.unified-page-loading {
  padding: 20px 4px 8px;
  text-align: center;
  font-size: 14px;
  color: #737373;
}

.unified-page-miss {
  padding: 12px 4px 8px;
}

.unified-page-miss h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
}

/* === 公开用户列表 /users === */
.public-user-list-page {
  max-width: 640px;
  margin: 0 auto;
}

.public-user-list-head {
  margin-bottom: 14px;
}

.public-user-list-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #171717;
  letter-spacing: -0.3px;
}

.public-user-list-lead {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.public-user-list-error {
  margin-top: 8px;
}

.public-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.public-user-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.public-user-list-row:hover {
  border-color: #d4d4d4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.public-user-list-row:focus-visible {
  outline: 2px solid #404040;
  outline-offset: 2px;
}

.public-user-list-row .public-user-list-avatar.avatar-shell {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.public-user-list-row .public-user-list-avatar.avatar-shell img {
  width: 56px;
  height: 56px;
}

.public-user-list-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.public-user-list-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.public-user-list-account {
  font-size: 13px;
  color: #737373;
}

.public-user-list-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.public-user-list-sub .icon {
  flex-shrink: 0;
}

.public-user-list-sub-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #d4d4d4;
  margin: 0 2px;
}

.public-user-list-chevron {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  color: #a3a3a3;
  line-height: 1;
}

/* 外层已是卡片，内层登录表单不再叠第二张卡片 */
.unified-user-main .auth-card {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 4px 0 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.unified-user-main .auth-card::before {
  display: none;
}

/* 用户中心合并布局：内容区不再叠第二张白卡片 */
.unified-user-main .card.profile {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

/* === 管理后台：单卡片内分区（无嵌套 card）=== */
.unified-user-main .admin-console {
  padding: 0;
}

.admin-console .panel-title {
  margin-bottom: 2px;
}

.admin-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
}

.admin-console > .panel-title + .admin-section {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}

.admin-section-heading {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #111827;
}

.admin-subheading {
  margin: 12px 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #374151;
}

.admin-invite-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-invite-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.admin-invite-code {
  font-weight: 800;
  color: #111827;
}

.admin-invite-meta {
  margin-top: 4px;
  font-size: 13px;
}

.hint .inline-code {
  font-family: inherit;
  font-size: 0.88em;
  padding: 1px 5px;
  background: #f3f4f6;
  border-radius: 4px;
  color: #4b5563;
}

.admin-section-heading-inline {
  margin: 0;
  font-size: 17px;
}

.admin-section .list-header {
  margin-bottom: 12px;
}

.admin-console .table {
  gap: 0;
}

.unified-user-main .admin-table .table-row {
  grid-template-columns: 1fr 0.85fr 1.35fr 0.45fr 0.45fr 0.75fr 0.85fr 0.95fr minmax(100px, auto);
  background: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: none;
}

.unified-user-main .admin-table .table-row:not(.header):hover {
  background: #f5f5f5;
  border-color: transparent;
  box-shadow: none;
}

.unified-user-main .admin-table .table-row.header {
  background: #f0f0f0;
  color: #6b7280;
  border-bottom: 1px solid #e5e5e5;
}

.admin-user-banned {
  color: #b91c1c;
  font-weight: 700;
}

.modal-body .admin-ban-row {
  grid-column: 1 / -1;
}

.admin-ban-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-body .admin-ban-toggle input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.admin-readonly-auth-clients .admin-auth-client-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.admin-auth-client-meta {
  font-size: 12px;
  margin-top: 2px;
}

/* === Panel === */
.panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-title {
  font-size: 17px;
  font-weight: 800;
  color: #525252;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* === Card === */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.025);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #111827;
}

.card h2 + .hint {
  margin-bottom: 16px;
}

/* === Form === */
.form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 11px;
  font-size: 15px;
}

.label-text,
.info-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.label-text .hint {
  margin-left: 3px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  flex-shrink: 0;
  color: #c4cbda;
}

.icon svg {
  width: 14px;
  height: 14px;
}

.form input,
.form textarea {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
  background: #fafafa;
  color: #171717;
  width: 100%;
}

.form input:hover {
  border-color: #d4d4d4;
}

.form input:focus,
.form textarea:focus {
  border-color: #404040;
  box-shadow: 0 0 0 2.5px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.form input::placeholder {
  color: #c4cbda;
}

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

/* === Buttons === */
button {
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s, opacity 0.15s;
  line-height: 1;
}

button:active:not(:disabled) {
  transform: scale(0.965);
}

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

.primary,
.ghost,
.danger,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary {
  background: #262626;
  color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.primary:hover:not(:disabled) {
  background: #404040;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ghost {
  background: #f4f4f5;
  color: #404040;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.035);
}

.ghost:hover:not(:disabled) {
  background: #e8e8e8;
  color: #171717;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.04);
}

.danger {
  background: #f5f5f5;
  color: #404040;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.035);
}

.danger:hover:not(:disabled) {
  background: #ebebeb;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.045);
}

.text-button {
  background: transparent;
  color: #404040;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.text-button:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* === Actions Row === */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.actions.compact {
  margin-top: 0;
}

/* === Tags === */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  background: #ececec;
  color: #262626;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

/* === Feedback Messages === */
.error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #404040;
  padding: 9px 12px;
  font-size: 15px;
  margin-top: 10px;
  line-height: 1.5;
}

.success {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #525252;
  padding: 9px 12px;
  font-size: 15px;
  margin-top: 10px;
  line-height: 1.5;
}

.hint {
  color: #9ca3af;
  font-size: 15px;
  line-height: 1.5;
}

/* === Profile Card === */
.profile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

/* 外层圆角裁切 + 内层平铺，避免 WebKit 下圆角直接加在 img 上时 GIF 只播首帧 */
.profile-header .avatar-shell {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: top;
  line-height: 0;
}

.profile-header .avatar-shell .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
  image-rendering: auto;
}

.profile-header > div {
  flex: 1;
  min-width: 0;
}

.profile-header h2 {
  margin: 0 0 2px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-header p {
  margin: 0 0 8px;
  color: #9ca3af;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* <a> 与 <button> 共用 .ghost，需显式统一（避免全局 button 与链接默认样式不一致） */
.profile-header-actions .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.1;
  border-radius: 999px;
  border: none;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  background: #f4f4f5;
  color: #404040;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.035);
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s, color 0.15s, opacity 0.15s;
}

.profile-header-actions a.ghost:visited {
  color: #404040;
}

.profile-header-actions .ghost:hover {
  background: #e8e8e8;
  color: #171717;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.04);
}

.profile-header-actions .ghost:active:not(:disabled) {
  transform: scale(0.965);
}

/* === Profile Info Rows (紧凑表格式信息) === */
.profile-info-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  overflow: hidden;
}

/* 单卡片资料页：去掉内层「表格盒子」围边，仅用行分割线 */
.card.profile .profile-info-rows {
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-top: 2px;
  padding-top: 8px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.35;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.12s;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row:hover {
  background: #fafafa;
}

.info-row-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9ca3af;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 72px;
  flex-shrink: 0;
}

.info-row-value {
  flex: 1;
  min-width: 0;
  color: #111827;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-row-value .tag {
  font-weight: 600;
  margin-right: 4px;
}

.info-row-value .muted {
  color: #c4cbda;
  font-weight: 400;
}

a.tag.tag-mailto {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

a.tag.tag-mailto:hover {
  background: #e0e0e0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mailto-email-link {
  color: #404040;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-header-email .profile-external-link {
  word-break: break-all;
}

.admin-email-cell {
  display: inline;
  line-height: 1.45;
}

.admin-email-cell .profile-external-link {
  word-break: break-all;
}

.profile-external-link {
  color: #404040;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

.profile-external-link:hover {
  color: #171717;
}

.info-row .text-button {
  flex-shrink: 0;
}

/* === Profile Section Title === */
.profile-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #525252;
  text-transform: none;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.card.profile > .profile-section-title {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e5e5;
}

/* 资料列表上方「基本信息」：紧贴头像区，不再叠一条顶部分割线 */
.card.profile > .profile-section-title.profile-section-title--lead {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

/* === Profile Stats Flow (紧凑横向统计) === */
.profile-stats-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 15px;
  color: #6b7280;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

.stat-item:hover {
  border-color: #d4d4d4;
  background: #f0f0f0;
}

.stat-item-lead {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.stat-item-icon.icon {
  color: #9ca3af;
}

.stat-item-value {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.card.profile .stat-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 14px 4px 0;
  box-shadow: none;
}

/* 公开主页点赞 */
.profile-like-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
  padding-top: 8px;
}

.profile-like-btn {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
}

.profile-like-done {
  font-size: 14px;
  font-weight: 600;
  color: #059669;
}

.profile-like-error {
  font-size: 14px;
}

.profile-like-hint {
  font-size: 13px;
  width: 100%;
  flex-basis: 100%;
  margin: 0;
}

.profile-like-quota {
  width: 100%;
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  color: #525252;
}

.profile-like-quota-exhausted {
  color: #b45309;
}

.card.profile .stat-item:hover {
  background: transparent;
  border: none;
  box-shadow: none;
}

.card.profile .profile-checkin-block {
  margin-top: 4px;
}

.card.profile .profile-checkin-block .tag-list {
  margin-top: 6px;
  margin-bottom: 2px;
}

.card.profile .profile-checkin-actions {
  margin-top: 8px;
}

/* === Profile Activity Row === */
.profile-activity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 15px;
  color: #9ca3af;
}

.profile-activity-row strong {
  color: #374151;
  font-weight: 600;
  margin-left: 3px;
}

.profile-visit-meta {
  margin-top: 2px;
}

.profile-auth-clients-hint {
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 6px;
}

.profile-auth-clients-hint .inline-code {
  font-family: inherit;
  font-size: 0.9em;
  padding: 1px 5px;
  background: #f3f4f6;
  border-radius: 4px;
  color: #374151;
}

.profile-auth-clients-empty {
  font-size: 16px;
  padding: 4px 0 2px;
}

.profile-auth-clients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-auth-client-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
}

.profile-auth-client-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 16px;
  color: #111827;
}

.profile-auth-client-icon {
  color: #9ca3af;
  flex-shrink: 0;
}

.profile-auth-client-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.profile-auth-client-times {
  font-size: 14px;
}

.profile-auth-client-dname {
  font-weight: 500;
}

.mono {
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* === Markdown === */
.markdown h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #525252;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.markdown-body {
  background: #fafafa;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.65;
  color: #374151;
  border: 1px solid #ebebeb;
}

.markdown-body p {
  margin: 0 0 8px;
}

.markdown-body p:last-child {
  margin-bottom: 0;
}

.markdown-body code,
.markdown-body pre {
  font-family: inherit;
  font-size: inherit;
}

/* 简介区：顶部分割由上一行 `.profile-section-title` 承担，此处不再重复画线 */
.card.profile .profile-markdown {
  margin-top: 0;
  padding-top: 4px;
  border-top: none;
}

.card.profile .profile-markdown .markdown-body {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 0 0;
}

/* === Public Profile === */
.public-profile {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.public-profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.public-profile-hero img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  flex-shrink: 0;
}

.public-profile-copy {
  flex: 1;
  min-width: 0;
}

.public-profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8e8e8;
  color: #262626;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.public-profile-copy h2 {
  margin: 8px 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.public-profile-copy p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.public-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.public-stat {
  background: #f5f5f5;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.public-stat:hover {
  border-color: #d4d4d4;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.035);
}

.public-stat span {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.public-stat strong {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

/* === Grid layout (admin) === */
.grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 20px;
}

/* === Admin List & Table === */
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.list-header h2 {
  margin: 0;
}

.list .table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.8fr 0.6fr 0.6fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.table-row:not(.header):hover {
  background: #f4f4f5;
  border-color: #d4d4d4;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.table-row.header {
  background: transparent;
  font-weight: 700;
  color: #9ca3af;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 14px;
}

.table-row span {
  font-size: 14px;
  word-break: break-all;
}

.table-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.table-cell .icon {
  color: #c4cbda;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.row-actions button {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
}

/* === Modal === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(5px);
}

.modal-card {
  width: min(720px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.modal-header h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.modal-header p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.modal-close {
  flex-shrink: 0;
}

.modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 20px 24px;
  overflow: auto;
}

.modal-body label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
  font-size: 14px;
}

.modal-body .full-span {
  grid-column: 1 / -1;
}

.modal-body textarea {
  min-height: 120px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 24px 22px;
  border-top: 1px solid #f1f5f9;
  margin-top: 0;
}

/* === 图片预览弹窗 === */
.image-preview-card {
  width: min(820px, 100%);
  padding: 0;
  gap: 0;
  border-radius: 10px;
  background: #fff;
}

.image-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.image-preview-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.image-preview-subtitle {
  margin-top: 4px;
  color: #9ca3af;
  font-size: 14px;
}

.image-preview-body {
  padding: 16px 20px 20px;
  overflow: auto;
}

.image-preview-img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.07);
  transform: translateZ(0);
  image-rendering: auto;
}

.previewable-image {
  cursor: pointer;
}

.previewable-image:focus {
  outline: none;
  box-shadow: 0 0 0 2.5px rgba(0, 0, 0, 0.05);
}

.markdown-body img {
  cursor: pointer;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

/* === Auth 登录 / 注册 / 重置（与顶栏风格统一）=== */
.panel > form.auth-card {
  max-width: 420px;
  align-self: center;
  width: 100%;
  padding: 28px 26px 24px;
  border-radius: 10px;
  box-shadow:
    0 6px 22px rgba(15, 23, 42, 0.045),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.panel > form.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #525252, #404040, #262626);
  pointer-events: none;
}

.auth-form-head {
  text-align: center;
  margin-bottom: 22px;
}

.panel > form.auth-card .auth-form-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.45px;
  color: #0f172a;
}

.auth-form-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
  font-weight: 500;
}

.auth-form-hint {
  margin-top: 14px;
  text-align: center;
}

.auth-form-body {
  margin-bottom: 2px;
}

.auth-card .auth-field {
  margin-bottom: 16px;
}

.auth-card .auth-field:last-child {
  margin-bottom: 0;
}

.auth-form-alert {
  margin-top: 14px;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.auth-form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.auth-footer-back {
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  box-shadow: none;
}

.auth-footer-back:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.auth-form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.auth-footer-link {
  border: none;
  background: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #404040;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  line-height: 1.2;
}

.auth-footer-link:hover {
  background: #ebebeb;
  color: #262626;
}

.auth-footer-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.auth-card .icon {
  color: #94a3b8;
}

form.auth-card input,
form.auth-card textarea {
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 15px;
}

/* === 所有 input/textarea 基础样式（覆盖 Modal、Admin） === */
input,
textarea,
select {
  font-family: inherit;
}

.modal-body input,
.modal-body textarea {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
  background: #fafafa;
  color: #171717;
  width: 100%;
}

.modal-body input:hover,
.modal-body textarea:hover {
  border-color: #d4d4d4;
}

.modal-body input:focus,
.modal-body textarea:focus {
  border-color: #404040;
  box-shadow: 0 0 0 2.5px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.modal-body input::placeholder {
  color: #c4cbda;
}

.modal-body textarea {
  resize: vertical;
}

/* ===================================================
   Responsive · 移动端适配
   =================================================== */

/* --- Tablet (<= 900px) --- */
@media (max-width: 900px) {
  .app {
    padding: 12px 12px 28px;
  }

  .app-header {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .app-header h1,
  .unified-user-header h1 {
    font-size: 19px;
  }

  .app-header p {
    display: none;
  }

  .unified-user-header {
    padding: 10px 12px;
  }

  .unified-user-main {
    padding: 12px 12px 16px;
  }

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

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

  .table-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .table-row.header {
    display: none;
  }

  .list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-card {
    border-radius: 12px 12px 8px 8px;
    max-height: 90vh;
  }
}

/* --- Mobile (<= 640px) --- */
@media (max-width: 640px) {
  .app {
    padding: 12px 12px 32px;
  }

  .app-header {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    gap: 10px;
  }

  .app-header h1,
  .unified-user-header h1 {
    font-size: 17px;
  }

  .app-header-logo,
  .unified-user-header .app-header-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .unified-user-card {
    border-radius: 10px;
  }

  .unified-user-header {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .unified-user-main {
    padding: 14px 12px 18px;
  }

  nav a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .card {
    padding: 18px 16px;
    border-radius: 10px;
  }

  .card h2 {
    font-size: 18px;
  }

  .panel > form.auth-card {
    padding: 22px 18px 20px;
    max-width: none;
  }

  .panel > form.auth-card .auth-form-head h2 {
    font-size: 20px;
  }

  .auth-form-lead {
    font-size: 14px;
  }

  .auth-submit {
    min-height: 46px;
    font-size: 14px;
  }

  .auth-form-footer {
    flex-direction: column;
    gap: 4px;
  }

  .auth-footer-sep {
    display: none;
  }

  .profile-header {
    gap: 14px;
  }

  .profile-header .avatar-shell {
    width: 60px;
    height: 60px;
  }

  .profile-header h2 {
    font-size: 19px;
  }

  .info-row {
    padding: 8px 12px;
    font-size: 14px;
  }

  .info-row-label {
    min-width: 54px;
    font-size: 14px;
  }

  .stat-item {
    padding: 6px 10px;
    font-size: 14px;
  }

  .stat-item-value {
    font-size: 18px;
  }

  .public-profile-hero img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
  }

  .public-profile-copy h2 {
    font-size: 18px;
  }

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

  .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
  }

  .row-actions {
    flex-direction: row;
  }

  .modal-header {
    padding: 18px 18px 0;
  }

  .modal-body {
    padding: 16px 18px;
  }

  .modal-actions {
    padding: 4px 18px 18px;
  }

  .actions {
    flex-direction: column;
  }

  .actions > * {
    width: 100%;
    justify-content: center;
  }

  .actions.compact {
    flex-direction: row;
  }

  .actions.compact > * {
    width: auto;
  }

  .profile-header-actions {
    flex-direction: row;
  }

  .profile-header-actions .ghost {
    flex: 1;
    justify-content: center;
  }

  .splash-logo-wrap {
    width: 160px;
    height: 160px;
  }

  .splash-rings span {
    width: 120px;
    height: 120px;
  }

  .splash-logo {
    width: 96px;
    height: 96px;
  }

  .splash-title {
    font-size: 21px;
  }
}

/* —— OAuth 独立授权页 —— */
.oauth-authorize-shell .oauth-authorize-main {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.oauth-authorize-shell .panel {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.oauth-authorize-header .oauth-authorize-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.oauth-header-deny {
  color: var(--muted, #64748b);
  font-size: 0.95rem;
}

.oauth-authorize-invalid h2 {
  margin-top: 0;
}

.oauth-consent {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 8px;
  color: #171717;
}

.oauth-consent-brand {
  text-align: center;
  padding: 8px 12px 4px;
}

.oauth-consent-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #f4f4f5;
  border: 1px solid #e5e5e5;
  color: #404040;
}

.oauth-consent-lock {
  display: block;
  opacity: 1;
}

.oauth-consent-app-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
  color: #111827;
  letter-spacing: -0.02em;
}

.oauth-consent-lead {
  margin: 0;
  font-size: 0.95rem;
  color: #57534e;
}

.oauth-consent-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.oauth-consent-card--identity {
  padding: 16px 20px;
}

.oauth-consent-identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.oauth-consent-identity .oauth-consent-avatar,
.oauth-consent-identity .oauth-consent-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
}

.oauth-consent-id-text {
  flex: 1;
  min-width: 0;
}

.oauth-consent-display {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.oauth-consent-as {
  font-size: 0.9rem;
  color: #57534e;
  margin-bottom: 6px;
}

.oauth-consent-account {
  word-break: break-all;
}

.oauth-consent-email {
  font-size: 0.88rem;
}

.oauth-consent .muted {
  color: #a3a3a3;
}

.oauth-consent-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 12px;
}

.oauth-consent-section-label--perm {
  margin-top: 20px;
  margin-bottom: 8px;
}

.oauth-consent-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oauth-consent-meta > li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.oauth-consent-meta-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #525252;
  opacity: 1;
}

.oauth-consent-meta-key {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 2px;
}

.oauth-consent-meta-val,
.oauth-consent-meta-link {
  font-size: 0.92rem;
  word-break: break-all;
  color: #262626;
}

.oauth-consent-meta-link {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.oauth-consent-meta-link:hover {
  color: #1e40af;
}

.oauth-consent-perm-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: #262626;
  font-size: 0.9rem;
  cursor: pointer;
}

.oauth-consent-perm-toggle:hover {
  border-color: #d4d4d4;
  background: #f4f4f5;
}

.oauth-consent-chevron {
  transition: transform 0.15s ease;
}

.oauth-consent-perm-toggle.is-open .oauth-consent-chevron {
  transform: rotate(-180deg);
}

.oauth-consent-perms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oauth-consent-perms > li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.oauth-consent-perm-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #525252;
  opacity: 1;
}

.oauth-consent-perm-title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: #171717;
}

.oauth-consent-perm-desc {
  font-size: 0.85rem;
  color: #57534e;
  line-height: 1.5;
}

.oauth-consent-scope-list {
  margin: 6px 0 0;
  padding-left: 1.1em;
  font-size: 0.88rem;
  color: #44403c;
}

.oauth-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.oauth-consent-allow {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
}

.oauth-consent-deny {
  width: 100%;
}

.oauth-consent-switch {
  align-self: center;
  margin-top: 4px;
  font-size: 0.9rem;
}

.oauth-consent-footnote {
  font-size: 0.78rem;
  color: #737373;
  line-height: 1.5;
  margin: 8px 0 0;
  text-align: center;
}

@media (min-width: 640px) {
  .oauth-consent-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .oauth-consent-allow {
    flex: 1 1 160px;
    width: auto;
  }

  .oauth-consent-deny {
    flex: 0 1 auto;
    width: auto;
    min-width: 120px;
  }

  .oauth-consent-switch {
    flex: 1 1 100%;
    margin-top: 6px;
  }
}
