:root {
  --bg: #eef4fb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #ffffff;
  --text: #162033;
  --muted: #66758f;
  --line: rgba(161, 176, 204, 0.24);
  --primary: #1677d9;
  --primary-dark: #0f5fb2;
  --primary-soft: #eaf4ff;
  --danger: #cf3346;
  --success: #138a57;
  --sidebar: #0f1b31;
  --sidebar-2: #162845;
  --shadow-lg: 0 24px 60px rgba(13, 26, 51, 0.12);
  --shadow-md: 0 14px 32px rgba(13, 26, 51, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.62 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(22, 119, 217, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(39, 174, 96, 0.08), transparent 26%),
    linear-gradient(180deg, #f6faff 0%, #eef4fb 100%);
}

a {
  color: var(--primary);
  text-decoration: none;
}

button,
.button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 11px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(22, 119, 217, 0.22);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(22, 119, 217, 0.26);
}

.button.success {
  background: linear-gradient(135deg, #35b86b, #229e55);
  box-shadow: 0 10px 22px rgba(34, 158, 85, 0.2);
}

button.danger.solid {
  background: linear-gradient(135deg, #ff7a45, #f04438);
  color: #fff;
  box-shadow: 0 10px 22px rgba(240, 68, 56, 0.2);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(149, 167, 197, 0.28);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(22, 119, 217, 0.52);
  box-shadow: 0 0 0 4px rgba(22, 119, 217, 0.12);
  background: #fff;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}

.app-shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: 100vh;
  gap: 28px;
  padding: 22px 26px;
}

.sidebar {
  position: sticky;
  top: 22px;
  align-self: start;
  min-height: calc(100vh - 44px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 24px 18px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(121, 179, 255, 0.18), transparent 28%),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  box-shadow: var(--shadow-lg);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.brand-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, #ffd76e, #ff9a57);
  color: #372100;
}

.brand-badge.has-image {
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 14px 28px rgba(7, 16, 34, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: 4px;
  color: rgba(222, 232, 247, 0.76);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-section-label {
  margin: 2px 6px 12px;
  color: rgba(222, 232, 247, 0.56);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.nav-group {
  position: relative;
  border-radius: 20px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-group.has-children.active,
.nav-group.has-children.is-open {
  padding: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.08);
}

.nav-group.has-children.active::before,
.nav-group.has-children.is-open::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 999px;
  background: #ffd76e;
}

.nav-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: rgba(226, 236, 248, 0.84);
  padding: 10px 12px;
  border-radius: 18px;
  transition: background .18s ease, transform .18s ease, color .18s ease, box-shadow .18s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateX(1px);
}

.nav-link.active {
  color: #fff;
}

.nav-group.has-children.active .nav-link,
.nav-group.has-children.is-open .nav-link {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

.nav-group:not(.has-children) .nav-link.active {
  background: linear-gradient(135deg, rgba(76, 130, 255, 0.28), rgba(89, 199, 152, 0.2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-pill {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 243, 212, 0.88);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-link.active .nav-pill,
.nav-group.active .nav-pill {
  background: linear-gradient(135deg, #ffd76e, #ff9a57);
  color: #372100;
}

.nav-label {
  min-width: 0;
  font-weight: 750;
}

.nav-arrow {
  color: rgba(222, 232, 247, 0.64);
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease, color .18s ease;
}

.nav-group.is-open .nav-arrow {
  color: #fff;
  transform: rotate(90deg);
}

.nav-children {
  display: none;
  gap: 3px;
  margin: 6px 4px 6px 42px;
  padding-left: 9px;
  border-left: 1px solid rgba(222, 232, 247, 0.14);
}

.nav-group.is-open .nav-children {
  display: grid;
}

.nav-child {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px 5px 16px;
  border-radius: 10px;
  color: rgba(222, 232, 247, 0.72);
  font-size: 13px;
  font-weight: 650;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav-child:hover,
.nav-child.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(1px);
}

.nav-child::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: transparent;
  transform: translateY(-50%);
  transition: background .18s ease, box-shadow .18s ease;
}

.nav-child.active::before {
  background: #ffd76e;
  box-shadow: 0 0 0 4px rgba(255, 215, 110, 0.12);
}

.anchor-target {
  display: block;
  position: relative;
  top: -18px;
  height: 0;
  overflow: hidden;
}

[id="instructions"],
[id="problem"],
[id="about"],
[id="site_logo"],
[id="platforms"],
[id="copyright"] {
  scroll-margin-top: 24px;
}

.main {
  width: min(100%, 1720px);
  padding: 4px 4px 42px 0;
}

.topbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.topbar-card {
  padding: 28px 30px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(194, 209, 233, 0.32);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.topbar-copy {
  flex: 1;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 8px 0 6px;
  font-size: 36px;
  line-height: 1.15;
}

.topbar p {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 15px;
}

.content-region {
  display: block;
}

.content-main {
  min-width: 0;
}

.section-tabs {
  width: 220px;
  display: grid;
  gap: 10px;
  position: sticky;
  top: 22px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(194, 209, 233, 0.5);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(31, 45, 74, 0.08);
  backdrop-filter: blur(14px);
}

.section-tabs-title {
  display: grid;
  gap: 2px;
  padding: 2px 4px 8px;
  color: #1d2b44;
  font-size: 13px;
  font-weight: 800;
}

.section-tabs-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.section-tabs-list {
  display: grid;
  gap: 8px;
}

.section-tab {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  color: #526179;
  font-size: 14px;
  font-weight: 800;
  background: transparent;
  border: 1px solid transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.section-tab:hover {
  color: var(--primary);
  background: rgba(75, 111, 255, 0.08);
}

.section-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #4b6fff, #7c5cff);
  border-color: rgba(75, 111, 255, 0.16);
  box-shadow: 0 12px 24px rgba(75, 111, 255, 0.22);
}

.topbar-side {
  display: flex;
  align-items: flex-start;
}

.operator-card {
  min-width: 260px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.78);
  border: 1px solid rgba(161, 176, 204, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.operator-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #6aa8f0);
}

.operator-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.operator-chip,
.muted-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  width: max-content;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(234, 244, 255, 0.86);
  color: var(--primary);
  border: 1px solid rgba(161, 176, 204, 0.24);
  box-shadow: none;
}

.operator-name {
  font-size: 15px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost,
.ghost-button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border: 1px solid rgba(161, 176, 204, 0.24);
  box-shadow: none;
}

.panel,
.stats-grid article {
  background: var(--panel);
  border: 1px solid rgba(194, 209, 233, 0.3);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.panel {
  padding: 30px;
}

.panel-head,
.form-actions,
.inline-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.panel-head p,
.info-panel p {
  margin: 0;
  color: var(--muted);
}

.panel-hero {
  margin-bottom: 20px;
}

.info-panel {
  margin-top: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #52b788, #ffd166);
}

.metric-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.stats-grid span {
  display: block;
  margin: 16px 0 4px;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.stats-grid p {
  margin: 0;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

th,
td {
  padding: 15px 14px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  background: transparent;
  padding-bottom: 4px;
}

tbody tr {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

tbody td {
  border-top: 1px solid rgba(194, 209, 233, 0.26);
  border-bottom: 1px solid rgba(194, 209, 233, 0.26);
}

tbody td:first-child {
  border-left: 1px solid rgba(194, 209, 233, 0.26);
  border-radius: 16px 0 0 16px;
}

tbody td:last-child {
  border-right: 1px solid rgba(194, 209, 233, 0.26);
  border-radius: 0 16px 16px 0;
}

.thumb-cell img {
  width: 130px;
  max-height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(194, 209, 233, 0.3);
}

.avatar-cell img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--muted);
  background: #f3f6fb;
  border: 1px solid rgba(194, 209, 233, 0.3);
}

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

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
}

.link {
  background: transparent;
  color: var(--primary);
  padding: 0;
  box-shadow: none;
}

.danger {
  color: var(--danger);
}

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

.mono {
  font-family: Consolas, Monaco, monospace;
}

.table-total {
  margin-top: 22px;
  text-align: right;
  color: var(--text);
  font-weight: 600;
}

.wrap {
  max-width: 420px;
  overflow-wrap: anywhere;
}

.form-panel form {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.field-tip {
  color: #74839d;
  font-size: 12px;
  line-height: 1.5;
}

.notice-box {
  border: 1px solid rgba(77, 146, 219, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  color: #0b5ea8;
  background: #eff7ff;
}

.notice-box code {
  font-family: Consolas, Monaco, monospace;
  color: #0f172a;
}

.switches {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.switches label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.switches input {
  width: auto;
}

.switch-group {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(194, 209, 233, 0.3);
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.92);
}

.settings-page {
  padding: 32px;
}

.settings-form {
  max-width: none;
}

.settings-head,
.settings-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.settings-head {
  margin-bottom: 24px;
}

.settings-head h2,
.settings-card h3 {
  margin: 0;
}

.settings-head p,
.settings-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.settings-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.settings-summary-grid article {
  min-width: 0;
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  border: 1px solid rgba(194, 209, 233, 0.5);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
  position: relative;
  overflow: hidden;
}

.settings-summary-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(22, 119, 217, 0.72), rgba(89, 199, 152, 0.58));
  opacity: 0.72;
}

.settings-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.settings-summary-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.modern-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.mine-site-settings-page {
  display: grid;
  gap: 18px;
}

.mine-site-head {
  align-items: center;
  margin-bottom: 0;
  padding: 18px 20px;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(22, 119, 217, .08), rgba(255, 255, 255, 0) 46%),
    #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .045);
}

.mine-site-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mine-site-title em {
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #1d4ed8;
  background: #eef6ff;
  font-style: normal;
  font-weight: 900;
}

.mine-site-title span {
  min-width: 0;
}

.mine-site-title h2 {
  margin: 0 0 5px;
}

.mine-site-title p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.mine-site-title p strong {
  margin-right: 8px;
  color: #172033;
  font-weight: 900;
}

.mine-site-actions {
  flex: 0 0 auto;
}

.site-current-section {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eef6ff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.site-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #1677d9;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #2385ed, #146fd0);
  box-shadow: 0 10px 20px rgba(22, 119, 217, .18);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.site-home-link:hover {
  color: #fff;
  background: linear-gradient(180deg, #2f8ff5, #0f67c4);
  box-shadow: 0 14px 26px rgba(22, 119, 217, .24);
  transform: translateY(-1px);
}

.site-home-link:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(22, 119, 217, .18);
}

.site-section-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.site-section-tabs a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  color: #26344d;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .035);
}

.site-section-tabs a:hover,
.site-section-tabs a.active {
  border-color: #b8d6fb;
  background: #f3f8ff;
}

.site-section-tabs em {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #1d4ed8;
  background: #eef6ff;
  font-style: normal;
  font-weight: 900;
}

.site-section-tabs span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.site-section-tabs strong {
  font-size: 14px;
}

.site-section-tabs small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  background: #fff;
}

.mine-section-toolbar h3 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 18px;
}

.mine-section-toolbar p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.mine-row-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  color: #475569;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-row-preview b {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eef6ff;
  font-size: 12px;
}

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

.settings-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(194, 209, 233, 0.42);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card-head {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
}

.settings-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 800;
}

.settings-choice {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid rgba(194, 209, 233, 0.38);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid rgba(194, 209, 233, 0.38);
  font-weight: 700;
  color: var(--text);
}

.switch-row input {
  width: auto;
}

.parse-mode-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(194, 209, 233, 0.42);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.parse-mode-panel[hidden] {
  display: none;
}

.parse-mode-head {
  display: grid;
  gap: 4px;
}

.parse-mode-head strong {
  color: var(--text);
  font-size: 16px;
}

.parse-mode-head span {
  color: var(--muted);
  font-size: 12px;
}

.settings-switch-list {
  display: grid;
  gap: 10px;
}

.settings-switch-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--text);
  background: #f7fbff;
  border: 1px solid rgba(194, 209, 233, 0.38);
}

.settings-switch-list input {
  width: auto;
}

.settings-savebar {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(194, 209, 233, 0.5);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.cleanup-page {
  max-width: 980px;
}

.cleanup-head {
  align-items: flex-start;
  margin-bottom: 20px;
}

.cleanup-grid {
  gap: 14px;
}

.cleanup-card {
  position: relative;
  grid-template-columns: 1fr auto;
  align-items: center;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cleanup-card:hover {
  border-color: rgba(240, 68, 56, 0.28);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.cleanup-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cleanup-card-main strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.cleanup-count {
  flex: 0 0 auto;
  min-width: 74px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #b42318;
  background: #fff1ed;
  text-align: center;
  font-weight: 800;
}

.cleanup-card input {
  width: 20px;
  height: 20px;
  accent-color: #f04438;
}

.cleanup-protected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  background: #f6fbff;
}

.cleanup-savebar {
  align-items: center;
  border-color: rgba(240, 68, 56, 0.18);
  background: linear-gradient(180deg, #fff, #fff8f6);
}

.cleanup-dialog .notice-dialog-content {
  min-width: min(420px, calc(100vw - 72px));
}

.cleanup-selected-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cleanup-selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(240, 68, 56, 0.16);
  border-radius: 12px;
  background: #fff7f5;
}

.cleanup-selected-item span {
  color: #b42318;
  font-weight: 800;
}

.settings-advanced {
  margin-top: 18px;
  border: 1px solid rgba(194, 209, 233, 0.42);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
  overflow: hidden;
}

.settings-advanced summary {
  list-style: none;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
}

.settings-advanced summary::-webkit-details-marker {
  display: none;
}

.settings-advanced strong,
.settings-advanced em {
  display: block;
}

.settings-advanced strong {
  color: var(--text);
  font-size: 16px;
}

.settings-advanced em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.settings-advanced summary b {
  color: var(--primary);
  font-size: 12px;
}

.settings-advanced[open] summary b {
  color: var(--muted);
}

.settings-advanced[open] summary b::before {
  content: "收起";
  font-size: 12px;
}

.settings-advanced[open] summary b {
  font-size: 0;
}

.settings-advanced-body {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(194, 209, 233, 0.32);
}

.field-title {
  color: var(--text);
  font-weight: 700;
}

.field-title .required {
  color: #ef4444;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  user-select: none;
}

.radio-pill input {
  width: auto;
  margin: 0;
}

.preview img {
  max-width: 360px;
  border-radius: 14px;
  border: 1px solid rgba(194, 209, 233, 0.3);
}

.inline-form {
  justify-content: flex-start;
}

.inline-form input {
  max-width: 520px;
}

.upload-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed rgba(77, 146, 219, 0.36);
  border-radius: 18px;
  background: #f7fbff;
}

.upload-panel.compact {
  margin-top: 8px;
  padding: 10px;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-row input[type="file"] {
  max-width: 420px;
}

.upload-panel.compact input[type="file"] {
  max-width: 100%;
}

.site-logo-upload-panel {
  margin-top: 12px;
}

.site-logo-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 22px 28px 0;
}

.site-logo-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(194, 209, 233, 0.5);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-logo-preview img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid rgba(194, 209, 233, 0.44);
}

.tools-create-panel,
.tools-manage-panel {
  margin-bottom: 20px;
}

.tool-list-page {
  padding: 28px;
}

.tool-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.tool-page-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.tool-page-head p {
  margin: 0;
  color: var(--muted);
}

.tool-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tool-create-drawer {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(194, 209, 233, 0.44);
  border-radius: 22px;
  background: #fbfdff;
}

.tool-table-card {
  display: grid;
  gap: 12px;
}

.tool-table-head,
.tool-row-summary {
  display: grid;
  grid-template-columns: 64px 84px minmax(150px, 1.2fr) minmax(170px, 1.2fr) minmax(100px, .8fr) 72px 82px 82px 104px;
  gap: 12px;
  align-items: center;
}

.tool-table-head {
  padding: 0 14px 6px;
  color: #5e6f8c;
  font-size: 13px;
  font-weight: 700;
}

.tool-row-card {
  border: 1px solid rgba(194, 209, 233, 0.42);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.tool-row-summary {
  min-height: 78px;
  padding: 14px;
}

.tool-row-cover {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background: #f2f6fb;
  border: 1px solid rgba(194, 209, 233, 0.5);
}

.tool-row-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-row-title {
  color: var(--text);
  font-weight: 700;
}

.tool-row-id,
.tool-row-appid {
  font-family: Consolas, Monaco, monospace;
}

.tool-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-row-actions form {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.status-pill.is-on {
  color: #147b45;
  background: #dff8e9;
}

.status-pill.is-off {
  color: #9a3412;
  background: #ffedd5;
}

.tool-row-editor {
  padding: 18px;
  border-top: 1px solid rgba(194, 209, 233, 0.42);
  background: #f8fbff;
}

body.modal-open {
  overflow: hidden;
}

.tool-edit-modal[hidden] {
  display: none;
}

.tool-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: center;
  justify-items: center;
  place-items: center;
  padding: 28px;
}

.tool-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(76, 130, 255, 0.16), transparent 30%),
    rgba(15, 27, 49, 0.52);
  backdrop-filter: blur(10px) saturate(1.08);
}

.tool-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(960px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(214, 225, 242, 0.86);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  box-shadow: 0 34px 92px rgba(13, 26, 51, 0.28), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  scrollbar-width: thin;
  scrollbar-color: rgba(112, 132, 166, 0.34) transparent;
}

.settings-modal-panel {
  width: min(780px, calc(100vw - 48px));
}

.tool-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 26px 28px 20px;
  border-bottom: 1px solid rgba(194, 209, 233, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.78));
}

.tool-modal-head p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.tool-modal-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  color: #60718e;
  background: #eef4fb;
  border: 1px solid rgba(194, 209, 233, 0.58);
  box-shadow: none;
  font-size: 22px;
  line-height: 1;
}

.tool-modal-close:hover {
  color: #14233a;
  background: #e5edf8;
  box-shadow: 0 10px 22px rgba(15, 35, 70, 0.12);
}

.tool-drawer-form,
.tool-row-editor form {
  display: grid;
  gap: 16px;
}

.tool-modal-panel form {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.tool-modal-panel > form > .settings-field-grid,
.tool-modal-panel > form > .settings-choice,
.tool-modal-panel > form > .modern-switch-list,
.tool-modal-panel > form > .upload-panel,
.tool-modal-panel > form > .preview,
.tool-modal-panel > form > .tool-editor-grid,
.tool-modal-panel > form > .tool-form-grid,
.tool-modal-panel > form > .two-col,
.tool-modal-panel > form > .three-col {
  margin: 22px 28px 0;
}

.tool-editor-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

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

.tool-modal-panel > .tool-editor-grid {
  padding: 22px 28px 0;
}

.tool-editor-grid .span-2 {
  grid-column: span 2;
}

.tool-editor-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tool-inline-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-inline-upload input[type="file"] {
  max-width: 260px;
  padding: 9px;
  border-radius: 12px;
}

.tool-editor-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-left: auto;
  padding: 20px 28px 24px;
  border-top: 1px solid rgba(194, 209, 233, 0.38);
  background: rgba(248, 251, 255, 0.82);
}

.tool-status-select {
  min-width: 150px;
}

.admin-list-page {
  padding: 32px;
}

.admin-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-list-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.admin-list-head p {
  margin: 0;
  color: var(--muted);
}

.admin-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-head-actions form {
  margin: 0;
}

.admin-table-card {
  display: grid;
  gap: 14px;
}

.admin-table-head,
.admin-row-card {
  display: grid;
  gap: 12px;
  align-items: center;
}

.admin-table-head {
  padding: 0 18px 8px;
  color: #5e6f8c;
  font-size: 13px;
  font-weight: 700;
}

.admin-row-card {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(194, 209, 233, 0.42);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.admin-main-text {
  color: var(--text);
  font-weight: 700;
}

.admin-wrap {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.admin-row-actions form {
  margin: 0;
}

.admin-empty {
  padding: 26px;
  border: 1px dashed rgba(149, 167, 197, 0.34);
  border-radius: 18px;
  background: #f8fbff;
}

.admin-avatar,
.admin-thumb,
.admin-banner-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(194, 209, 233, 0.5);
  background: #f2f6fb;
  color: var(--muted);
  font-style: normal;
}

.admin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.admin-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.admin-banner-thumb {
  width: 96px;
  height: 54px;
  border-radius: 14px;
}

.admin-avatar img,
.admin-thumb img,
.admin-banner-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-row-detail {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(194, 209, 233, 0.32);
  color: var(--muted);
  font-size: 12px;
}

.users-grid {
  grid-template-columns: 64px 84px minmax(120px, .9fr) minmax(220px, 1.4fr) 86px minmax(160px, 1fr) 86px;
}

.records-grid {
  grid-template-columns: 64px 84px minmax(160px, 1.3fr) minmax(180px, 1.1fr) 88px 72px 82px minmax(160px, 1fr);
}

.records-modern-page {
  display: grid;
  gap: 18px;
}

.records-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
}

.records-search {
  flex: 1 1 280px;
  min-width: 220px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.records-search input {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.records-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #fff;
}

.records-filter button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.records-filter button.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.records-card-list {
  display: grid;
  gap: 14px;
}

.record-history-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
}

.record-cover,
.record-cover img {
  width: 116px;
  height: 116px;
  border-radius: 16px;
}

.record-cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2ff, #fdf2f8);
  color: #818cf8;
  font-size: 12px;
  font-weight: 950;
}

.record-cover img {
  object-fit: cover;
}

.record-body {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.record-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-title-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  word-break: break-word;
}

.record-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 850;
}

.record-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.record-url-line {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f8fbff;
  color: #64748b;
  font-size: 12px;
  font-family: Consolas, Monaco, monospace;
}

.record-url-line span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-actions {
  display: grid;
  align-content: center;
  gap: 10px;
}

.record-actions a,
.record-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid #dbe4ef;
  background: #f8fbff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.record-actions a {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.urls-grid {
  grid-template-columns: 64px minmax(280px, 1.8fr) 92px minmax(160px, 1fr) minmax(160px, 1fr) 86px;
}

.banners-grid {
  grid-template-columns: 120px minmax(280px, 1.8fr) 80px minmax(170px, 1fr) 110px;
}

.dashboard-platform-grid {
  grid-template-columns: minmax(180px, 1fr) 140px 120px;
}

.parse-config-grid {
  grid-template-columns: minmax(220px, 1.2fr) 150px 110px minmax(220px, 1.4fr) 86px;
}

.rate-config-grid {
  grid-template-columns: minmax(260px, 1.3fr) 120px minmax(150px, 0.75fr) minmax(240px, 1.35fr) 86px;
}

.settings-config-grid {
  grid-template-columns: minmax(300px, 1.2fr) 190px minmax(280px, 1fr) 92px;
}

.mine-content-row-grid {
  grid-template-columns: minmax(260px, 1.1fr) 120px minmax(280px, 1fr) 132px;
}

.site-platform-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr) minmax(180px, .85fr) 132px;
  align-items: center;
  gap: 18px;
}

.platform-icon-box {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 14px;
  color: var(--platform-color, #111827);
  background: var(--platform-bg, #f4f4f5);
  font-style: normal;
  font-weight: 900;
}

.platform-icon-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  background: var(--platform-bg, #f4f4f5);
  box-sizing: border-box;
}

.platform-icon-box b {
  font-size: 15px;
  line-height: 1;
}

.settings-status-stack {
  display: inline-grid;
  gap: 6px;
  justify-items: start;
  align-content: center;
}

.parse-name {
  display: flex;
  align-items: center;
  gap: 14px;
}

.parse-name .settings-card-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.parse-name small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
}

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

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

.tool-modal-panel > .settings-field-grid,
.tool-modal-panel > .settings-choice,
.tool-modal-panel > .modern-switch-list,
.tool-modal-panel > .upload-panel,
.tool-modal-panel > .preview {
  margin: 22px 28px 0;
}

.tool-modal-panel .settings-field-grid {
  gap: 18px;
}

.tool-modal-panel .settings-field-grid label,
.tool-modal-panel .tool-editor-grid label,
.tool-modal-panel .tool-form-grid label {
  color: #61718c;
  font-size: 13px;
  font-weight: 750;
}

.tool-modal-panel input,
.tool-modal-panel select,
.tool-modal-panel textarea {
  margin-top: 2px;
  border-color: rgba(176, 193, 222, 0.58);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(15, 35, 70, 0.04);
}

.tool-modal-panel input:focus,
.tool-modal-panel select:focus,
.tool-modal-panel textarea:focus {
  border-color: rgba(22, 119, 217, 0.62);
  box-shadow: 0 0 0 4px rgba(22, 119, 217, 0.12), 0 12px 26px rgba(15, 35, 70, 0.08);
}

.tool-modal-panel .field-tip {
  font-weight: 500;
  line-height: 1.6;
}

.tool-modal-panel .ghost-button,
.tool-editor-actions .ghost-button {
  min-height: 42px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(194, 209, 233, 0.72);
  color: #27364f;
  box-shadow: 0 8px 18px rgba(15, 35, 70, 0.06);
}

.tool-editor-actions button[type="submit"],
.tool-editor-actions .button {
  min-height: 42px;
  padding-inline: 22px;
}

.banner-modal-preview img {
  width: min(520px, 100%);
  max-height: 260px;
  object-fit: cover;
}

.settings-modern-page .settings-form {
  max-width: none;
}

.settings-warning {
  margin-bottom: 18px;
}

.modern-summary {
  margin-bottom: 18px;
}

.system-check-card {
  margin-top: 24px;
}

.system-check-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.settings-section-list {
  display: grid;
  gap: 16px;
}

.settings-section-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(194, 209, 233, 0.42);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.settings-section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.settings-section-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.settings-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

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

.settings-field-grid.single {
  grid-template-columns: minmax(240px, 420px);
}

.settings-field-grid.single.fluid {
  grid-template-columns: minmax(0, 1fr);
}

.site-logo-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.site-logo-row .site-logo-preview {
  min-height: 150px;
  display: grid;
  gap: 10px;
  place-items: center;
  align-content: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(194, 209, 233, 0.56);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.site-logo-row .site-logo-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compact-choice {
  padding: 14px 16px;
  border-radius: 16px;
}

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

.modern-switch-list label,
.modern-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(194, 209, 233, 0.42);
  border-radius: 16px;
  background: #f8fbff;
  color: var(--text);
}

.tool-modal-panel .modern-switch-list label,
.tool-modal-panel .modern-switch-row,
.tool-modal-panel .compact-choice {
  border-color: rgba(194, 209, 233, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 10px 24px rgba(15, 35, 70, 0.05);
}

.tool-modal-panel .modern-switch-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
  justify-content: start;
  gap: 12px;
}

.tool-modal-panel .modern-switch-list label {
  min-height: 62px;
  justify-content: flex-start;
  padding: 14px 16px;
}

.tool-modal-panel .modern-switch-list input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.tool-modal-panel .modern-switch-list span {
  min-width: 0;
  color: #22314a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.tool-modal-panel .modern-switch-list label:hover,
.tool-modal-panel .modern-switch-row:hover {
  border-color: rgba(22, 119, 217, 0.34);
}

.modern-switch-list input,
.modern-switch-row input {
  width: auto;
}

.modern-parse-panel {
  border-radius: 18px;
  background: #f8fbff;
}

.modern-savebar {
  margin-top: 18px;
}

.tool-create-form {
  display: grid;
  gap: 18px;
}

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

.tool-form-grid.wide {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.tool-create-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.tool-submit-box {
  display: grid;
  gap: 14px;
  align-content: space-between;
}

.tool-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 700;
  white-space: nowrap;
}

.tool-card-list {
  display: grid;
  gap: 16px;
}

.tool-manager-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(194, 209, 233, 0.44);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.tool-card-main {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
}

.tool-cover-editor {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tool-cover-frame {
  width: 120px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(194, 209, 233, 0.56);
  background: #f4f8fd;
}

.tool-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tool-id {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  color: var(--muted);
  background: #f4f7fb;
  font-size: 12px;
  font-weight: 700;
}

.tool-card-fields {
  display: grid;
  gap: 16px;
}

.tool-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
}

.tool-card-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: stretch;
}

.tool-upload-box {
  min-width: 0;
}

.tool-cover-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.tool-meta-box {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(194, 209, 233, 0.34);
  border-radius: 18px;
  background: #f8fbff;
}

.tool-clicks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.tool-clicks strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.tool-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.tool-card-actions form {
  margin: 0;
}

.tool-empty {
  padding: 26px;
  border: 1px dashed rgba(149, 167, 197, 0.34);
  border-radius: 18px;
  background: #f8fbff;
}

.success-text {
  color: var(--success);
}

.danger-text {
  color: var(--danger);
}

.flash {
  display: none;
}

.notice-dialog-mask {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 20, 36, 0.32);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 9999;
}

.notice-dialog-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.notice-dialog {
  width: min(460px, 100%);
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(188, 205, 230, 0.7);
  box-shadow: 0 28px 70px rgba(13, 26, 51, 0.18);
  position: relative;
  overflow: hidden;
}

.notice-dialog.success {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.98);
}

.notice-dialog.error {
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.98);
}

.notice-dialog-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.notice-dialog.success .notice-dialog-icon {
  background: linear-gradient(135deg, #22c55e, #15803d);
}

.notice-dialog.error .notice-dialog-icon {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.notice-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(22, 119, 217, 0.2), rgba(22, 119, 217, 0.9));
}

.notice-dialog.success::before {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.24), rgba(21, 128, 61, 0.95));
}

.notice-dialog.error::before {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.24), rgba(220, 38, 38, 0.95));
}

.notice-dialog-icon::before,
.notice-dialog-icon::after {
  content: "";
  position: absolute;
}

.notice-dialog.success .notice-dialog-icon::before {
  width: 14px;
  height: 28px;
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(45deg);
  top: 14px;
  left: 23px;
}

.notice-dialog.error .notice-dialog-icon::before {
  width: 4px;
  height: 24px;
  background: #fff;
  border-radius: 999px;
  top: 14px;
  left: 30px;
}

.notice-dialog.error .notice-dialog-icon::after {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 999px;
  bottom: 14px;
  left: 29px;
}

.notice-dialog-content h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
}

.notice-dialog-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.notice-dialog-close {
  justify-self: end;
  min-width: 116px;
}

.notice-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.mine-menu-page form {
  max-width: 1180px;
}
.mine-menu-head {
  align-items: flex-start;
}
.mine-menu-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.legend-dot.live {
  background: linear-gradient(135deg, #fde68a, #fb7185);
}
.legend-dot.form {
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
}
.mine-menu-grid {
  display: grid;
  gap: 18px;
}
.mine-entry-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 12px 32px rgba(22, 131, 216, .06);
}
.mine-entry-preview {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  border: 1px solid #d9e9ff;
  display: grid;
  gap: 12px;
}
.preview-label {
  font-size: 12px;
  color: #5b6b7f;
}
.preview-phone-row {
  display: grid;
  grid-template-columns: 48px 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #edf2f7;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .05);
}
.preview-phone-icon-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7ed, #fffbeb);
}
.preview-phone-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.preview-phone-texts {
  min-width: 0;
}
.preview-phone-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}
.preview-phone-subtitle {
  font-size: 12px;
  color: #7c8797;
  line-height: 1.45;
}
.preview-phone-arrow {
  color: #f59e0b;
  font-size: 24px;
  line-height: 1;
  text-align: right;
}
.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.preview-tag,
.preview-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}
.preview-tag {
  background: #eff6ff;
  color: #1d4ed8;
}
.preview-status.is-enabled {
  background: #dcfce7;
  color: #166534;
}
.preview-status.is-disabled {
  background: #fee2e2;
  color: #991b1b;
}
.mine-entry-config {
  display: grid;
  gap: 14px;
}
.entry-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mine-entry-two-col {
  gap: 14px;
}
.mine-upload-box {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px dashed #c7dbf8;
  border-radius: 12px;
  background: #f8fbff;
}
.mine-menu-footer-note {
  margin-top: 4px;
}
.mine-menu-actions {
  margin-bottom: 0;
  justify-content: flex-start;
}


.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-layout {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.08fr 420px;
  gap: 24px;
  align-items: stretch;
}

.login-showcase,
.login-card {
  border-radius: 30px;
  border: 1px solid rgba(194, 209, 233, 0.3);
  box-shadow: var(--shadow-lg);
}

.login-showcase {
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #132746 0%, #1b4272 52%, #2563eb 100%);
}

.login-showcase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
    letter-spacing: 0;
  font-size: 12px;
  font-weight: 700;
}

.login-showcase h1 {
  margin: 0;
  max-width: 520px;
  font-size: 42px;
  line-height: 1.08;
}

.login-showcase p {
  margin: 0;
  max-width: 520px;
  color: rgba(231, 239, 250, 0.84);
  font-size: 16px;
}

.login-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.login-showcase-grid article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-showcase-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.login-showcase-grid span {
  display: block;
  color: rgba(231, 239, 250, 0.76);
}

.login-card {
  width: 100%;
  display: grid;
  gap: 16px;
  align-content: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.login-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.login-card p {
  margin: -4px 0 6px;
  color: var(--muted);
}

@media (max-width: 1440px) {
  .app-shell {
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
  }
  .main {
    width: 100%;
  }
  .settings-summary-grid,
  .modern-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px;
  }
  .sidebar {
    position: static;
    min-height: auto;
    max-height: none;
  }
  .sidebar-nav {
    grid-template-columns: 1fr;
  }
  .topbar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .topbar h1 {
    font-size: 28px;
  }
  .topbar-card {
    padding: 18px;
  }
  .section-tabs {
    align-items: stretch;
    width: 100%;
    position: static;
  }
  .section-tabs-title {
    padding: 0 4px;
  }
  .section-tabs-list {
    display: grid;
    grid-template-columns: 1fr;
  }
  .section-tab {
    width: 100%;
  }
  .operator-card {
    width: 100%;
  }
  .topbar-side {
    width: 100%;
  }
  .stats-grid,
  .two-col,
  .three-col,
  .tool-form-grid,
  .tool-form-grid.wide,
  .tool-create-bottom,
  .tool-card-main,
  .tool-card-head,
  .tool-card-extra,
  .login-layout,
  .login-showcase-grid {
    grid-template-columns: 1fr;
  }
  .tool-cover-frame {
    width: 92px;
  }
  .tool-card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .settings-head,
  .settings-savebar {
    align-items: stretch;
    flex-direction: column;
  }
  .tool-page-head {
    flex-direction: column;
  }
  .admin-list-head {
    flex-direction: column;
  }
  .admin-head-actions {
    justify-content: flex-start;
  }
  .tool-head-actions {
    justify-content: flex-start;
  }
  .admin-table-head {
    display: none;
  }
  .admin-row-card,
  .users-grid,
  .records-grid,
  .urls-grid,
  .banners-grid,
  .dashboard-platform-grid,
  .parse-config-grid,
  .rate-config-grid,
  .settings-config-grid {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .mine-content-row-grid,
  .site-platform-grid,
  .site-section-tabs {
    grid-template-columns: 1fr;
  }
  .mine-section-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .mine-section-toolbar .tool-head-actions {
    justify-content: stretch;
  }
  .mine-section-toolbar .ghost-button {
    width: 100%;
  }
  .site-logo-editor {
    grid-template-columns: 1fr;
    margin: 18px;
  }
  .admin-avatar,
  .admin-thumb,
  .admin-banner-thumb {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .admin-row-actions {
    grid-column: 2;
  }
  .tool-table-head {
    display: none;
  }
  .tool-row-summary {
    grid-template-columns: 56px 1fr;
  }
  .tool-row-summary > span {
    min-width: 0;
  }
  .tool-row-id {
    grid-column: 1;
  }
  .tool-row-cover {
    grid-column: 1;
    grid-row: 2 / span 2;
  }
  .tool-row-title,
  .tool-row-appid,
  .tool-row-actions {
    grid-column: 2;
  }
  .tool-editor-grid,
  .tool-editor-grid .span-2 {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
  .tool-editor-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .tool-edit-modal {
    padding: 12px;
    align-items: end;
  }
  .tool-modal-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }
  .tool-modal-head {
    padding: 22px 18px 16px;
  }
  .tool-modal-head p {
    font-size: 13px;
  }
  .tool-modal-panel > .settings-field-grid,
  .tool-modal-panel > .settings-choice,
  .tool-modal-panel > .modern-switch-list,
  .tool-modal-panel > .upload-panel,
  .tool-modal-panel > .preview,
  .tool-modal-panel > form > .settings-field-grid,
  .tool-modal-panel > form > .settings-choice,
  .tool-modal-panel > form > .modern-switch-list,
  .tool-modal-panel > form > .upload-panel,
  .tool-modal-panel > form > .preview,
  .tool-modal-panel > form > .tool-editor-grid,
  .tool-modal-panel > form > .tool-form-grid,
  .tool-modal-panel > form > .two-col,
  .tool-modal-panel > form > .three-col {
    margin: 18px 18px 0;
  }
  .tool-editor-actions {
    padding: 16px 18px 18px;
  }
  .modern-switch-list,
  .settings-field-grid,
  .settings-field-grid.three,
  .settings-field-grid.single {
    grid-template-columns: 1fr;
  }
  .settings-summary-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-field-grid,
  .settings-field-grid.three,
  .settings-field-grid.single,
  .modern-switch-list {
    grid-template-columns: 1fr;
  }
  .record-history-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .record-cover,
  .record-cover img {
    width: 86px;
    height: 86px;
  }
  .record-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .record-sub-grid {
    grid-template-columns: 1fr;
  }
  .records-toolbar {
    align-items: stretch;
  }
  .site-logo-row {
    grid-template-columns: 1fr;
  }
  .settings-savebar {
  }
  .radio-row {
    flex-direction: column;
    gap: 10px;
  }
  table {
    border-spacing: 0 10px;
  }
  th,
  td {
    padding: 12px 10px;
  }
}

.mine-content-page form {
  max-width: 1180px;
}
.mine-content-hero {
  align-items: flex-start;
}
.section-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.fixed-entry-tag.muted {
  color: #475569;
  background: #eef2f7;
}
.content-page-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .05);
  backdrop-filter: blur(10px);
}
.content-page-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: #1d2b44;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  background: #f8fbff;
  border: 1px solid transparent;
}
.content-page-nav a:hover {
  color: var(--primary);
  border-color: #c7dbf8;
  background: #eef6ff;
}
.content-page-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
}
.sync-content-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}
.sync-content-summary article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #dbe7f5;
}
.sync-content-summary strong {
  color: #1d2b44;
  font-size: 15px;
}
.sync-content-summary span {
  color: var(--muted);
  font-size: 13px;
}
.mine-content-grid {
  display: grid;
  gap: 24px;
}
.content-editor-card {
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid #dbe5f1;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
  overflow: hidden;
}
.sync-section {
  position: relative;
  border-radius: 18px;
}
.sync-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: var(--primary);
}
.sync-section-problem::before {
  background: #14b8a6;
}
.sync-section-about::before {
  background: #f59e0b;
}
.content-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid #e5edf7;
  background:
    linear-gradient(135deg, rgba(22, 119, 217, .08), transparent 42%),
    #ffffff;
}
.content-editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-select {
  display: grid;
  gap: 6px;
  min-width: 120px;
}
.editor-list {
  display: grid;
  gap: 18px;
  padding: 18px 20px 20px;
}
.editor-item {
  display: grid;
  gap: 14px;
  padding: 0 0 16px;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
  overflow: hidden;
}
.editor-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  background: #f8fbff;
  border-bottom: 1px solid #e5edf7;
}
.editor-item-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.editor-item-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
}
.editor-item-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.editor-empty {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px dashed #c7dbf8;
  border-radius: 16px;
  color: #64748b;
  background: #f8fbff;
  font-size: 14px;
  font-weight: 800;
}
.editor-item > .two-col,
.editor-item > label,
.editor-item > .upload-row {
  margin: 0 16px;
}
.editor-item label {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}
.editor-item input,
.editor-item textarea,
.editor-item select {
  border-radius: 12px;
  background: #fff;
}
.editor-item textarea {
  min-height: 118px;
}
.upload-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #c7dbf8;
  border-radius: 14px;
  background: #f8fbff;
}
.mine-content-submit {
  margin-top: 4px;
  margin-bottom: 0;
  justify-content: flex-start;
  padding: 0 2px;
}
.mine-content-list-head {
  margin-bottom: 16px;
}
.content-config-table {
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.content-config-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(150px, .7fr) minmax(260px, 1.15fr) 86px;
  align-items: center;
  gap: 18px;
}
.content-config-table .admin-table-head {
  padding: 0 18px 8px;
  color: #526581;
  background: transparent;
  border: 0;
}
.content-config-row {
  min-height: 92px;
  padding: 20px 18px;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .045);
}
.content-config-name {
  min-width: 0;
}
.content-config-name small {
  color: #64748b;
}
.content-config-icon {
  background: #eef6ff;
  color: #1d4ed8;
}
.content-status-stack {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-direction: column;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.status-pill.success {
  color: #047857;
  background: #dff8eb;
}
.status-pill.muted {
  color: #64748b;
  background: #eef2f7;
}
.content-page-link {
  display: inline-flex;
  margin-left: 8px;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}
.content-page-link:hover {
  text-decoration: underline;
}
.content-modal-panel {
  width: min(960px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
}
.content-page-modal {
  overflow-x: hidden;
}
.content-modal-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5edf7;
  background: #f8fbff;
}
.content-modal-list {
  max-height: min(58vh, 620px);
  overflow: auto;
  padding: 18px;
}
.content-modal-list .editor-item,
.content-modal-list input,
.content-modal-list textarea,
.content-modal-list select {
  max-width: 100%;
  box-sizing: border-box;
}
.content-modal-list textarea {
  resize: vertical;
}
.content-modal-actions {
  position: sticky;
  bottom: 0;
  padding: 14px 18px;
  border-top: 1px solid #e5edf7;
  background: #fff;
}
.content-editor-shell {
  display: grid;
  gap: 18px;
}
.content-editor-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(22, 119, 217, .08), rgba(255, 255, 255, 0) 46%),
    #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
}
.editor-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  color: #1d4ed8;
  background: #f8fbff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.editor-back-link span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  color: #fff;
  background: #1677d9;
  font-size: 20px;
  line-height: 1;
}
.editor-back-link:hover {
  border-color: #c7dbf8;
  background: #eef6ff;
}
.content-editor-title {
  min-width: 0;
}
.content-editor-breadcrumb {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}
.content-editor-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.content-editor-topbar .ghost-button,
.content-editor-bottom .ghost-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #dbe7f5;
  background: #f8fbff;
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
}
.content-editor-topbar .ghost-button:hover,
.content-editor-bottom .ghost-button:hover {
  background: #eef6ff;
}
.content-editor-topbar h2 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 22px;
}
.content-editor-topbar p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 760;
}
.content-editor-page {
  display: grid;
  gap: 14px;
}
.content-editor-control {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .04);
  backdrop-filter: blur(10px);
}
.content-editor-section-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.content-editor-section-meta em {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #1d4ed8;
  background: #eef6ff;
  font-style: normal;
  font-weight: 900;
}
.content-editor-section-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.content-editor-section-meta strong {
  color: #172033;
  font-size: 14px;
}
.content-editor-section-meta small {
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-editor-help {
  padding: 13px 15px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  color: #52657d;
  background: #f8fbff;
  font-size: 13px;
  font-weight: 760;
}
.content-editor-list {
  padding: 0;
}
.content-editor-list .editor-item {
  border-radius: 16px;
}
.editor-image-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 16px;
}
.editor-image-preview a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #dbe7f5;
  background: #f8fbff;
}
.editor-image-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.content-editor-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 0 0;
}
@media (max-width: 860px) {
  .content-editor-head {
    flex-direction: column;
  }
  .content-page-nav {
    grid-template-columns: 1fr;
    position: static;
  }
  .sync-content-summary {
    grid-template-columns: 1fr;
  }
  .content-config-grid {
    grid-template-columns: 1fr;
  }
  .content-config-table .admin-table-head {
    display: none;
  }
  .content-config-row {
    gap: 12px;
  }
  .content-editor-topbar {
    grid-template-columns: 1fr;
  }
  .content-editor-top-actions {
    justify-content: stretch;
  }
  .content-editor-top-actions .ghost-button,
  .content-editor-top-actions button {
    width: 100%;
  }
  .content-editor-control {
    position: static;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .editor-image-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-modal-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
.mine-config-page form {
  max-width: 100%;
}
.mine-config-head {
  margin-bottom: 12px;
}
.mine-config-list {
  display: grid;
  gap: 12px;
}
.mine-config-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.mine-config-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  cursor: pointer;
}
.mine-config-summary::-webkit-details-marker {
  display: none;
}
.mine-config-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.mine-config-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  flex: 0 0 auto;
}
.mine-config-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.mine-config-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mine-config-title-row strong {
  font-size: 16px;
}
.mine-config-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.mine-config-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}
.mine-config-status.is-enabled {
  background: #dcfce7;
  color: #166534;
}
.mine-config-status.is-disabled {
  background: #fee2e2;
  color: #991b1b;
}
.mine-config-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  min-width: 0;
}
.mine-config-path {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.mine-config-arrow {
  color: var(--primary);
  font-size: 13px;
  flex: 0 0 auto;
}
.mine-config-body {
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
  display: grid;
  gap: 14px;
  background: #fafcff;
}
.mine-subpanel {
  border: 1px solid #e8eef7;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.mine-subpanel-head {
  display: grid;
  gap: 4px;
}
.mine-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.compact-box {
  padding: 10px 12px;
  border-radius: 10px;
}
.mine-editor-toolbar {
  display: flex;
  justify-content: flex-end;
}
.compact-list {
  gap: 10px;
}
.compact-editor {
  padding: 12px;
  border-radius: 10px;
  background: #fbfdff;
}
.compact-note {
  margin-top: 12px;
}
@media (max-width: 860px) {
  .mine-config-summary,
  .mine-config-right,
  .mine-config-left,
  .mine-inline-grid {
    grid-template-columns: 1fr;
  }
  .mine-config-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .mine-config-right {
    width: 100%;
    justify-content: space-between;
  }
  .mine-config-path {
    max-width: none;
  }
}
.mine-modal-page form {
  max-width: 100%;
}
.mine-modal-head {
  margin-bottom: 12px;
}
.mine-page-hero {
  align-items: flex-start;
  padding-bottom: 4px;
}
.mine-page-hero h2 {
  font-size: 24px;
}
.mine-page-hero-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.mine-fixed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}
.mine-fixed-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 244px;
  padding: 18px;
  border: 1px solid rgba(194, 209, 233, 0.48);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}
.mine-fixed-card-top,
.mine-fixed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mine-fixed-meta {
  color: #64748b;
  font-size: 12px;
  flex-wrap: wrap;
}
.mine-fixed-meta b {
  color: var(--text);
}
.mine-fixed-path {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #475569;
  background: #f1f6fd;
  border: 1px solid #e2ebf7;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.mine-fixed-edit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: none;
}
.mine-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mine-card-actions .ghost-button {
  color: var(--text);
}
.list-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}
.list-status.is-enabled {
  background: #dcfce7;
  color: #166534;
}
.list-status.is-disabled {
  background: #fee2e2;
  color: #991b1b;
}
.mine-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}
.mine-modal.show {
  display: flex;
}
.mine-modal-dialog {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}
.mine-modal-dialog.wide {
  width: min(1180px, 100%);
}
.mine-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mine-modal-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
}
.mine-modal-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}
.mine-modal-body.single {
  grid-template-columns: 1fr;
}
.mine-modal-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5edf7;
  border-radius: 10px;
  background: #fbfdff;
}
.mine-modal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mine-modal-upload {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-settings-hero {
  margin-top: 24px;
}
.site-settings-list-head {
  margin: 24px 0 14px;
}
.site-settings-list-head.first {
  margin-top: 0;
}
.site-config-grid {
  margin-top: 12px;
}
.site-config-table {
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.site-config-row-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(140px, .62fr) minmax(300px, 1.35fr) 82px;
  align-items: center;
  gap: 18px;
}
.site-config-table .admin-table-head {
  padding: 0 18px 8px;
  color: #526581;
  background: transparent;
  border: 0;
}
.site-config-row {
  min-height: 92px;
  padding: 20px 18px;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .045);
}
.site-config-row .admin-wrap {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.6;
}
.site-config-row .admin-row-actions {
  justify-content: flex-end;
}
.platform-summary-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.platform-summary-inline b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #475569;
  background: #f8fbff;
  border: 1px solid #e2ebf7;
  font-size: 12px;
}
.platform-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.platform-editor-list {
  display: grid;
  gap: 14px;
}
.platform-editor-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(194, 209, 233, 0.48);
  border-radius: 18px;
  background: #f8fbff;
}
.platform-editor-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  color: var(--platform-color, #111827);
  background: var(--platform-bg, #f4f4f5);
  font-weight: 900;
}
.platform-editor-icon img,
.platform-editor-icon span {
  grid-area: 1 / 1;
}
.platform-editor-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.platform-editor-fields {
  display: grid;
  gap: 12px;
}
.platform-summary-list {
  min-height: 42px;
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f6fd;
  border: 1px solid #e2ebf7;
}
.platform-summary-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  border: 1px solid #e2ebf7;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 860px) {
  .mine-modal {
    padding: 12px;
  }
  .mine-modal-header,
  .mine-modal-card-head,
  .mine-modal-upload {
    flex-direction: column;
    align-items: flex-start;
  }
  .platform-editor-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .platform-editor-row > .link {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .site-config-row-grid {
    grid-template-columns: 1fr;
  }
  .site-config-table .admin-table-head {
    display: none;
  }
}
.mine-config-table .thumb-cell img,
.table-icon-image {
  width: 48px;
  height: 48px;
  max-height: none;
  object-fit: cover;
  border-radius: 10px;
}
.table-icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.table-icon-fallback {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}
.actions-cell {
  text-align: left;
  white-space: nowrap;
}
.actions-cell .link {
  display: inline-block;
}
.mine-config-table th:last-child,
.mine-config-table td:last-child {
  width: 110px;
}
.mine-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
@media (max-width: 860px) {
  .mine-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
.page-head-plain {
  margin-bottom: 14px;
}
.mine-config-compact {
  table-layout: fixed;
}
.mine-config-compact th:nth-child(1) { width: 24%; }
.mine-config-compact th:nth-child(2) { width: 88px; }
.mine-config-compact th:nth-child(3) { width: 110px; }
.mine-config-compact th:nth-child(5) { width: 100px; }
.mine-config-compact th:nth-child(6) { width: 90px; }
.mine-config-compact td {
  vertical-align: middle;
}
.mine-entry-name {
  display: grid;
  gap: 4px;
}
.mine-entry-name strong {
  font-size: 15px;
  line-height: 1.4;
}
.table-icon-box {
  margin: 0 auto 0 0;
}
.actions-cell {
  vertical-align: middle;
}
.actions-cell .link {
  padding: 0;
  min-height: auto;
}
.mine-modal-card .field-title {
  margin-bottom: 2px;
}
.mine-item-form {
  margin: 0;
}
.fixed-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fixed-entry-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}
.success-text {
  color: #166534;
}
.danger-text {
  color: #b91c1c;
}
@media (max-width: 860px) {
  .mine-config-compact {
    table-layout: auto;
  }
  .mine-page-hero,
  .mine-fixed-card-top,
  .mine-fixed-meta {
    align-items: flex-start;
  }
  .mine-page-hero {
    flex-direction: column;
  }
  .mine-fixed-grid {
    grid-template-columns: 1fr;
  }
  .mine-card-actions {
    grid-template-columns: 1fr;
  }
}
