/* 源库 · 设置中心 + 四方向导航栏自定义布局 */

/* ==================== 四方向导航栏适配 ==================== */

/* 右侧竖排 */
html[data-nav-pos="right"] body {
  padding-left: 0;
  padding-right: 196px;
}
html[data-nav-pos="right"] body > header {
  inset: 0 0 0 auto;
  box-shadow: inset 1px 0 0 rgba(210, 222, 246, 0.14), -8px 0 36px rgba(0, 0, 0, 0.55);
}
html[data-nav-pos="right"] body > header nav::before {
  left: auto;
  right: 0;
}

/* 顶部横排 & 底部横排共用 */
html[data-nav-pos="top"] body,
html[data-nav-pos="bottom"] body {
  padding-left: 0;
  padding-right: 0;
}
html[data-nav-pos="top"] body {
  padding-top: 74px;
}
html[data-nav-pos="bottom"] body {
  padding-bottom: 84px;
}

html[data-nav-pos="top"] body > header,
html[data-nav-pos="bottom"] body > header {
  width: 100%;
  height: 74px;
  padding: 0 28px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
html[data-nav-pos="top"] body > header {
  inset: 0 0 auto 0;
  box-shadow: inset 0 -1px 0 rgba(210, 222, 246, 0.14), 0 8px 32px rgba(0, 0, 0, 0.52);
}
html[data-nav-pos="bottom"] body > header {
  inset: auto 0 0 0;
  box-shadow: inset 0 1px 0 rgba(210, 222, 246, 0.14), 0 -8px 32px rgba(0, 0, 0, 0.52);
}

html[data-nav-pos="top"] .brand,
html[data-nav-pos="bottom"] .brand {
  flex: none;
  gap: 1px;
}
html[data-nav-pos="top"] header strong,
html[data-nav-pos="bottom"] header strong {
  font-size: 24px;
  gap: 8px;
}
html[data-nav-pos="top"] .brand-logo,
html[data-nav-pos="bottom"] .brand-logo {
  width: 24px;
  height: 24px;
}
html[data-nav-pos="top"] .brand-tag,
html[data-nav-pos="bottom"] .brand-tag {
  font-size: 10px;
  letter-spacing: .04em;
}

html[data-nav-pos="top"] body > header nav,
html[data-nav-pos="bottom"] body > header nav {
  margin-block: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  flex: 1;
  min-width: 0;
  overflow: visible;
  scrollbar-width: none;
  padding: 4px 0;
}
html[data-nav-pos="top"] body > header nav::-webkit-scrollbar,
html[data-nav-pos="bottom"] body > header nav::-webkit-scrollbar {
  display: none;
}

html[data-nav-pos="top"] body > header nav button,
html[data-nav-pos="bottom"] body > header nav button {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 14px;
  white-space: nowrap;
  flex: none;
  gap: 6px;
  justify-content: center;
  text-align: center;
}

html[data-nav-pos="top"] body > header nav::before,
html[data-nav-pos="bottom"] body > header nav::before {
  left: 0;
  width: var(--marker-width, 0);
  height: 2px;
  transform: translateX(var(--marker-x, 0));
  transition: transform .32s, width .32s;
}
html[data-nav-pos="top"] body > header nav::before {
  top: auto;
  bottom: 0;
}
html[data-nav-pos="bottom"] body > header nav::before {
  top: 0;
  bottom: auto;
}

html[data-nav-pos="top"] .header-foot,
html[data-nav-pos="bottom"] .header-foot {
  margin-top: 0;
  width: auto;
  flex: none;
}
html[data-nav-pos="top"] #account,
html[data-nav-pos="bottom"] #account {
  width: 42px;
  height: 42px;
  min-height: 42px;
}

@media (max-width: 960px) {
  html[data-nav-pos="top"] .brand-tag,
  html[data-nav-pos="bottom"] .brand-tag {
    display: none;
  }
}

@media (max-width: 650px) {
  html[data-nav-pos="right"] body {
    padding-left: 0;
    padding-right: 76px;
  }
  html[data-nav-pos="top"] body {
    padding-left: 0;
    padding-top: 62px;
  }
  html[data-nav-pos="bottom"] body {
    padding-left: 0;
    padding-bottom: 68px;
  }
  html[data-nav-pos="top"] body > header,
  html[data-nav-pos="bottom"] body > header {
    width: 100%;
    height: 62px;
    padding: 0 12px;
    gap: 10px;
  }
  html[data-nav-pos="top"] header strong,
  html[data-nav-pos="bottom"] header strong {
    font-size: 18px;
  }
  html[data-nav-pos="bottom"] .brand {
    display: none;
  }
  html[data-nav-pos="top"] body > header nav,
  html[data-nav-pos="bottom"] body > header nav {
    justify-content: flex-start;
  }
  html[data-nav-pos="top"] body > header nav button,
  html[data-nav-pos="bottom"] body > header nav button {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 34px;
  }
  html[data-nav-pos="top"] #account,
  html[data-nav-pos="bottom"] #account {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }
}

/* ==================== 设置中心页面 ==================== */
.set-page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.set-hero {
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(6, 9, 17, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.set-hero small {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}
.set-hero h1 {
  font: 500 32px/1.25 var(--serif);
  margin: 4px 0 6px;
}
.set-hero p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.set-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(6, 9, 17, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
}
.set-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.set-card-head h2 {
  font: 500 22px/1.3 var(--serif);
  margin: 0 0 4px;
}
.set-card-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.set-tag {
  flex: none;
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(215, 226, 248, 0.28);
  color: #cfd9ec;
  background: rgba(215, 226, 248, 0.08);
}

/* 模块一：自定义背景 */
.set-bg-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.set-bg-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(215, 226, 248, 0.24);
  background: radial-gradient(circle at 24% 40%, rgba(120, 148, 210, 0.28), rgba(4, 6, 12, 0.96) 65%);
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
}
.set-bg-preview-img {
  position: absolute;
  inset: -12px;
  background-size: cover;
  background-position: center;
  transition: filter .2s ease;
}
.set-bg-preview-dim {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 11, 0.45);
  transition: background .2s ease;
}
.set-bg-preview-label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: #e6ecf8;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 9, 17, 0.72);
  border: 1px solid rgba(215, 226, 248, 0.22);
}

.set-bg-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.set-dropzone {
  border: 1px dashed rgba(215, 226, 248, 0.34);
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(10, 14, 26, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  transition: border-color .2s, background .2s;
}
.set-dropzone.over {
  border-color: #edf2fb;
  background: rgba(215, 228, 252, 0.12);
}
.set-dropzone-text strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.set-dropzone-text small {
  font-size: 12px;
  color: var(--muted);
}
.set-bg-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.set-bg-actions button {
  min-height: 38px;
  padding: 6px 18px;
  font-size: 13px;
}
.set-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.set-slider-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(215, 226, 248, 0.14);
  background: rgba(10, 14, 26, 0.38);
}
.set-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}
.set-slider-top small {
  font-size: 12px;
  color: #cfd9ec;
}
.set-slider-item input[type="range"] {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #dce6f8;
  cursor: pointer;
}
.set-slider-item input[type="range"]:focus {
  box-shadow: none;
}

/* 模块二：导航栏位置 */
.set-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.set-nav-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 26, 0.44);
  color: var(--ink);
  min-height: 0;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.set-nav-opt:hover {
  border-color: rgba(226, 236, 255, 0.44);
  background: rgba(215, 228, 252, 0.09);
}
.set-nav-opt.on {
  border-color: rgba(232, 240, 255, 0.72);
  background: linear-gradient(155deg, rgba(220, 232, 255, 0.16), rgba(10, 14, 26, 0.62));
  box-shadow: 0 0 22px rgba(190, 212, 255, 0.22);
}
.set-nav-opt strong {
  font-size: 14px;
  font-weight: 500;
}
.set-nav-opt small {
  font-size: 12px;
  color: var(--muted);
}

/* 迷你排版示意图 */
.set-nav-mock {
  position: relative;
  width: 100%;
  max-width: 132px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border: 1px solid rgba(215, 226, 248, 0.22);
  background: rgba(4, 6, 13, 0.76);
  overflow: hidden;
}
.set-nav-mock i {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, #eef3fc, #9cb4dd);
  border-radius: 2px;
}
.set-nav-mock.pos-left i { left: 4px; top: 4px; bottom: 4px; width: 18px; }
.set-nav-mock.pos-right i { right: 4px; top: 4px; bottom: 4px; width: 18px; }
.set-nav-mock.pos-top i { left: 4px; right: 4px; top: 4px; height: 14px; }
.set-nav-mock.pos-bottom i { left: 4px; right: 4px; bottom: 4px; height: 14px; }

/* 模块三：给 Founder 提建议 */
.set-fb-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.set-fb-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.set-fb-cat {
  min-height: 34px;
  padding: 4px 14px;
  font-size: 13px;
  border-radius: 999px;
}
.set-fb-cat.on {
  background: #edf2fb;
  color: #070a12;
  border-color: #edf2fb;
  font-weight: 600;
}
.set-fb-form textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.65;
}
.set-fb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.set-fb-contact {
  flex: 1;
  min-width: 220px;
  max-width: 380px;
  min-height: 40px;
  font-size: 13px;
}
.set-fb-submit {
  min-height: 40px;
  padding: 6px 22px;
  font-size: 14px;
}
.set-fb-msg {
  margin: 0;
  font-size: 13px;
  color: #b8c9ea;
  min-height: 20px;
}
.set-fb-msg.err {
  color: #ff8478;
}

.set-fb-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(215, 226, 248, 0.16);
  background: rgba(10, 14, 26, 0.42);
}
.set-fb-login p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.set-fb-list-wrap {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.set-fb-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.set-fb-list-head h3 {
  font: 500 18px/1.3 var(--serif);
  margin: 0;
}
.set-fb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.set-fb-item {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(215, 226, 248, 0.14);
  background: rgba(8, 12, 22, 0.56);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.set-fb-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.set-fb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.set-fb-pill {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(215, 226, 248, 0.24);
  color: #cfd9ec;
  background: rgba(215, 226, 248, 0.08);
}
.set-fb-status {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 500;
}
.set-fb-status.st-open { background: rgba(242, 207, 108, 0.14); color: #f2cf6c; border: 1px solid rgba(242, 207, 108, 0.36); }
.set-fb-status.st-accepted { background: rgba(99, 184, 250, 0.14); color: #7cc4fa; border: 1px solid rgba(99, 184, 250, 0.36); }
.set-fb-status.st-done { background: rgba(71, 217, 150, 0.14); color: #5ce0a4; border: 1px solid rgba(71, 217, 150, 0.36); }
.set-fb-status.st-archived { background: rgba(154, 165, 186, 0.12); color: #9aa5ba; border: 1px solid rgba(154, 165, 186, 0.28); }
.set-fb-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #e4eaf6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.set-fb-contact-line {
  font-size: 12px;
  color: var(--muted);
}
.set-fb-reply-box {
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 2px solid #c9d4ea;
  background: rgba(215, 228, 252, 0.06);
  font-size: 13px;
  color: #dce4f4;
  white-space: pre-wrap;
}
.set-fb-reply-box small {
  display: block;
  font-size: 11px;
  color: #9fb2d4;
  margin-bottom: 3px;
}
.set-fb-admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(215, 226, 248, 0.1);
}
.set-fb-admin-bar select {
  min-height: 36px;
  padding: 4px 32px 4px 12px;
  font-size: 13px;
  width: auto;
}
.set-fb-admin-bar input {
  flex: 1;
  min-width: 180px;
  min-height: 36px;
  padding: 4px 12px;
  font-size: 13px;
}
.set-fb-admin-bar button {
  min-height: 36px;
  padding: 4px 14px;
  font-size: 13px;
}

@media (max-width: 820px) {
  .set-bg-grid { grid-template-columns: 1fr; }
  .set-nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-font-grid { grid-template-columns: 1fr; }
  .set-sliders { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .set-hero, .set-card { padding: 18px 16px; border-radius: 16px; }
  .set-hero h1 { font-size: 26px; }
}

/* ==================== 导航栏默认自动隐藏 + 贴边丝滑滑出 ==================== */
html:not([data-nav-pin="pinned"]) body {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html:not([data-nav-pin="pinned"]) body > header {
  z-index: 40;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .26s ease, box-shadow .3s ease;
  will-change: transform;
}
html:not([data-nav-pin="pinned"]):not([data-nav-pos="right"]):not([data-nav-pos="top"]):not([data-nav-pos="bottom"]) body > header,
html:not([data-nav-pin="pinned"])[data-nav-pos="left"] body > header {
  transform: translateX(-102%);
  opacity: 0;
  pointer-events: none;
}
html:not([data-nav-pin="pinned"])[data-nav-pos="right"] body > header {
  transform: translateX(102%);
  opacity: 0;
  pointer-events: none;
}
html:not([data-nav-pin="pinned"])[data-nav-pos="top"] body > header {
  transform: translateY(-102%);
  opacity: 0;
  pointer-events: none;
}
html:not([data-nav-pin="pinned"])[data-nav-pos="bottom"] body > header {
  transform: translateY(102%);
  opacity: 0;
  pointer-events: none;
}

html:not([data-nav-pin="pinned"]).nav-open body > header,
html:not([data-nav-pin="pinned"]) body > header:has(:focus-visible) {
  transform: translate(0, 0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* 屏幕边缘感应热区 + 极克制的星光提示拉手 */
#nav-edge-trigger {
  position: fixed;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .24s ease;
}
html[data-nav-pin="pinned"] #nav-edge-trigger,
html.nav-open #nav-edge-trigger {
  opacity: 0;
  pointer-events: none;
}
#nav-edge-trigger::after {
  content: "";
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226, 218, 255, 0.25), rgba(206, 194, 255, 0.72), rgba(226, 218, 255, 0.25));
  box-shadow: 0 0 12px rgba(188, 170, 255, 0.45);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
#nav-edge-trigger:hover::after {
  background: rgba(238, 232, 255, 0.92);
  box-shadow: 0 0 16px rgba(204, 186, 255, 0.8);
}

/* 左侧热区（默认） */
html:not([data-nav-pos="right"]):not([data-nav-pos="top"]):not([data-nav-pos="bottom"]) #nav-edge-trigger,
html[data-nav-pos="left"] #nav-edge-trigger {
  inset: 0 auto 0 0;
  width: 18px;
}
html:not([data-nav-pos="right"]):not([data-nav-pos="top"]):not([data-nav-pos="bottom"]) #nav-edge-trigger::after,
html[data-nav-pos="left"] #nav-edge-trigger::after {
  width: 3px;
  height: 58px;
  margin-right: auto;
  margin-left: 3px;
}

/* 右侧热区 */
html[data-nav-pos="right"] #nav-edge-trigger {
  inset: 0 0 0 auto;
  width: 18px;
}
html[data-nav-pos="right"] #nav-edge-trigger::after {
  width: 3px;
  height: 58px;
  margin-left: auto;
  margin-right: 3px;
}

/* 顶部热区 */
html[data-nav-pos="top"] #nav-edge-trigger {
  inset: 0 0 auto 0;
  height: 18px;
}
html[data-nav-pos="top"] #nav-edge-trigger::after {
  width: 58px;
  height: 3px;
  margin-bottom: auto;
  margin-top: 3px;
  background: linear-gradient(90deg, rgba(226, 218, 255, 0.25), rgba(206, 194, 255, 0.72), rgba(226, 218, 255, 0.25));
}

/* 底部热区 */
html[data-nav-pos="bottom"] #nav-edge-trigger {
  inset: auto 0 0 0;
  height: 18px;
}
html[data-nav-pos="bottom"] #nav-edge-trigger::after {
  width: 58px;
  height: 3px;
  margin-top: auto;
  margin-bottom: 3px;
  background: linear-gradient(90deg, rgba(226, 218, 255, 0.25), rgba(206, 194, 255, 0.72), rgba(226, 218, 255, 0.25));
}

/* 设置页：导航栏显示方式开关条 */
.set-nav-mode-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(215, 222, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.set-nav-mode-row > div strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.set-nav-mode-row > div small {
  font-size: 12px;
  color: var(--muted);
}
.set-nav-mode-btns {
  display: inline-flex;
  gap: 8px;
}
.set-nav-mode-btns button {
  min-height: 36px;
  padding: 5px 16px;
  font-size: 13px;
}
.set-nav-mode-btns button.on {
  background: #edf2fb;
  color: #080b14;
  border-color: #edf2fb;
  font-weight: 600;
}

/* 模块：字体大小（大字模式） */
.set-font-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.set-font-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 26, 0.44);
  color: var(--ink);
  text-align: left;
  min-height: 0;
}
.set-font-opt.on {
  border-color: rgba(232, 240, 255, 0.72);
  background: linear-gradient(155deg, rgba(220, 232, 255, 0.16), rgba(10, 14, 26, 0.62));
  box-shadow: 0 0 22px rgba(190, 212, 255, 0.22);
}
.set-font-sample {
  font-family: var(--serif);
  color: #f3f0ff;
  line-height: 1.25;
}
.set-font-sample.sz-normal { font-size: 18px; }
.set-font-sample.sz-large { font-size: 21px; }
.set-font-sample.sz-xlarge { font-size: 24px; }
.set-font-opt strong { font-size: 14px; font-weight: 500; }
.set-font-opt small { font-size: 12px; color: var(--muted); }

/* 模块：账号安全与绑定 */
.set-sec-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.set-sec-box {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(215, 224, 248, 0.14);
  background: rgba(9, 13, 24, 0.52);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.set-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.set-sec-head h3 {
  font: 500 17px/1.3 var(--serif);
  margin: 0;
  color: #f2f4fb;
}
.set-sec-badge {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(215, 224, 248, 0.24);
  color: var(--muted);
  background: rgba(215, 224, 248, 0.06);
}
.set-sec-badge.ok {
  color: #5ce0a4;
  border-color: rgba(92, 224, 164, 0.38);
  background: rgba(92, 224, 164, 0.12);
}
.set-sec-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.set-sec-val {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.set-sec-val strong {
  font-size: 14.5px;
  font-weight: 500;
  color: #eef2fa;
  letter-spacing: .02em;
}
.set-sec-mini-btn {
  min-height: 30px !important;
  padding: 3px 12px !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  border-color: rgba(215, 224, 248, 0.22) !important;
  background: rgba(215, 224, 248, 0.05) !important;
}
.set-sec-mini-btn:hover {
  color: #ffffff !important;
  border-color: rgba(215, 224, 248, 0.48) !important;
}
.set-sec-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(215, 224, 248, 0.12);
}
.set-sec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.set-sec-row input {
  flex: 1;
  min-width: 190px;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 13.5px;
}
.set-sec-row input.code-in {
  flex: 0 1 160px;
  min-width: 130px;
  letter-spacing: .16em;
}
.set-sec-row button {
  min-height: 40px;
  padding: 6px 18px;
  font-size: 13px;
  white-space: nowrap;
}
.set-sec-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.auth-switch-link {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}
.auth-switch-link button {
  min-height: 28px;
  padding: 2px 6px;
  border: 0;
  background: transparent !important;
  color: #c8d6f0;
  font-size: 13px;
  box-shadow: none !important;
}
.auth-switch-link button:hover {
  color: #ffffff;
  text-decoration: underline;
  transform: none !important;
}
