/* ── TMY Skill Orbit · 顶部导航与新增页面样式 ─────────────────────
   与 style.css 共用同一套纸感配色与等宽小标；这里只放导航、资源、
   Agent、创建、帮助几个新页面的样式。
   ------------------------------------------------------------------ */

/* ── 顶部导航 ─────────────────────────────────────────────── */

.topbar .brand {
  flex-shrink: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid #dedcd3;
  border-radius: 999px;
  background: #faf9f4b8;
  box-shadow: 0 1px 0 #ffffffcc inset;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #7c8176;
  white-space: nowrap;
  transition: background 0.22s, color 0.22s;
}

.nav-link:hover {
  background: #ecebe3;
  color: #262926;
}

.nav-link.active {
  background: #2a2d29;
  color: #f7f6f0;
}

.nav-link.active:hover {
  background: #2a2d29;
  color: #f7f6f0;
}

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8f7fc4;
  box-shadow: 0 0 0 3px #8f7fc41f;
}

.nav-link.active .nav-dot {
  background: #cfc0ff;
  box-shadow: 0 0 0 3px #ffffff2e;
}

@media (max-width: 1180px) {
  .top-nav {
    gap: 0;
    padding: 3px;
  }
  .nav-link {
    padding: 7px 11px;
    font-size: 11px;
  }
}

@media (max-width: 820px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 78px;
    padding-top: 12px;
    padding-bottom: 12px;
    row-gap: 10px;
  }
  .topbar .top-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    border-radius: 999px;
  }
  .top-nav .nav-link {
    flex: 1;
    justify-content: center;
    padding: 8px 4px;
    font-size: 12px;
  }
  .library .topbar {
    height: auto;
    min-height: 78px;
  }
  .sidebar {
    top: 0;
  }
}

/* ── 独立页外壳 ───────────────────────────────────────────── */

.app-body {
  background: #f4f3f0;
}

.app-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.app-page .topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #f4f3f0e8;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--line);
}

.page-main {
  flex: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 52px 3.3vw 72px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.page-head .eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #959b89;
}

.page-head h1 {
  font-size: 38px;
  font-weight: 450;
  letter-spacing: -1.3px;
  margin: 12px 0 10px;
  line-height: 1.2;
}

.page-head h1 span {
  color: #8a907e;
}

.page-head p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.8;
  color: #8d9382;
  margin: 0;
  max-width: 52ch;
}

.page-head .head-note {
  font: 10px/1.9 var(--mono);
  color: #9aa18a;
  text-align: right;
  white-space: nowrap;
}

.page-foot {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 8px var(--mono);
  letter-spacing: 1.2px;
  color: #9da58a;
}

/* ── 空白占位页 ───────────────────────────────────────────── */

.blank-stage {
  min-height: 52vh;
  border: 1px dashed #d3d5c7;
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 50% 0%, #ffffffb0, transparent 62%),
    #f8f7f2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}

.blank-stage::before,
.blank-stage::after {
  content: "";
  position: absolute;
  border: 1px solid #e2e2d7;
  border-radius: 50%;
  pointer-events: none;
}

.blank-stage::before {
  width: 460px;
  height: 140px;
  transform: rotate(-24deg);
  left: 50%;
  top: 50%;
  margin: -70px 0 0 -230px;
}

.blank-stage::after {
  width: 300px;
  height: 92px;
  transform: rotate(-24deg);
  left: 50%;
  top: 50%;
  margin: -46px 0 0 -150px;
  border-color: #e8e8dc;
}

.blank-inner {
  position: relative;
  z-index: 1;
}

.blank-inner .planet-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  color: #b3aec3;
}

.blank-inner h2 {
  font-size: 26px;
  font-weight: 450;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
}

.blank-inner p {
  font-size: 13px;
  line-height: 1.9;
  color: #929882;
  margin: 0 auto;
  max-width: 34ch;
}

.blank-inner .blank-tag {
  display: inline-block;
  margin-top: 22px;
  font: 9px var(--mono);
  letter-spacing: 1.6px;
  color: #a3a995;
  border: 1px solid #dcded1;
  border-radius: 999px;
  padding: 6px 13px;
}

/* ── Agent 页 ─────────────────────────────────────────────── */

.agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.chat-card {
  border: 1px solid #dcded1;
  border-radius: 6px;
  background: #fffefa;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid #e8e8dd;
  background: #fbfaf5;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #c9c6d6;
  display: grid;
  place-items: center;
  color: #6a63a8;
  background: #f4f2fa;
  flex-shrink: 0;
}

.chat-avatar .planet-logo {
  width: 22px;
  height: 22px;
}

.chat-head h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.2px;
}

.chat-head .chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 9px var(--mono);
  letter-spacing: 0.8px;
  color: #8d947f;
  margin-top: 4px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fa86a;
}

.status-dot.remote {
  background: #7d74b8;
}

.chat-head-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.chat-head-actions .icon-button {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: #9aa18a;
}

.chat-head-actions .icon {
  width: 15px;
  height: 15px;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 24px 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  max-height: 420px;
  min-height: 280px;
}

.msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
}

.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font: 10px var(--mono);
  border: 1px solid #d8d6cb;
  background: #f5f4ee;
  color: #7d8375;
}

.msg.agent .msg-avatar {
  border-color: #c9c6d6;
  background: #f4f2fa;
  color: #6a63a8;
}

.msg-avatar .planet-logo {
  width: 16px;
  height: 16px;
}

.msg-bubble {
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.msg.agent .msg-bubble {
  background: #f6f5ee;
  border: 1px solid #e7e6da;
  color: #40453a;
  border-top-left-radius: 2px;
}

.msg.user .msg-bubble {
  background: #2b2e2a;
  color: #f7f6f0;
  border-top-right-radius: 2px;
}

.msg-bubble code {
  font-family: var(--mono);
  font-size: 11px;
  background: #ffffffb0;
  border: 1px solid #e2e2d4;
  border-radius: 3px;
  padding: 1px 5px;
}

.msg.user .msg-bubble code {
  background: #ffffff1f;
  border-color: #ffffff2e;
  color: #f0eee6;
}

.msg-time {
  font: 8px var(--mono);
  letter-spacing: 0.8px;
  color: #a8ae9b;
  margin-top: 7px;
}

.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.msg-actions a,
.msg-actions button {
  font-size: 11px;
  border: 1px solid #d3d6c6;
  border-radius: 3px;
  padding: 5px 9px;
  color: #6d765c;
  background: #fffef9;
}

.msg-actions a:hover,
.msg-actions button:hover {
  border-color: #a9a3bf;
  color: #4a4658;
}

.typing {
  display: inline-flex;
  gap: 4px;
}

.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9c95bb;
  animation: typing 1.1s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 22px 6px;
  border-top: 1px solid #eff0e6;
}

.quick-chips button {
  font-size: 11px;
  padding: 6px 11px;
  border: 1px solid #dcdfcd;
  border-radius: 999px;
  color: #7b8371;
  background: #fbfaf5;
  transition: border-color 0.2s, color 0.2s;
}

.quick-chips button:hover {
  border-color: #b0a9c6;
  color: #514c66;
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 18px 16px;
}

.composer textarea {
  flex: 1;
  resize: none;
  min-height: 46px;
  max-height: 150px;
  padding: 12px 14px;
  border: 1px solid #d9dbcc;
  border-radius: 5px;
  background: #fdfcf8;
  font-size: 13px;
  line-height: 1.7;
  outline: none;
  color: #33382e;
}

.composer textarea:focus {
  border-color: #a49ac0;
  box-shadow: 0 0 0 3px #aaa0c415;
}

.send-button {
  height: 46px;
  padding: 0 20px;
  border-radius: 5px;
  background: #2b2e2a;
  color: #f8f7f1;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.send-button:hover {
  background: #3a3e37;
}

.send-button .icon {
  width: 15px;
  height: 15px;
}

.agent-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-block {
  border: 1px solid #dcded1;
  border-radius: 6px;
  background: #fbfaf5;
  padding: 17px 16px;
}

.side-block > .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #9aa18a;
  margin-bottom: 12px;
}

.side-block h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 4px;
}

.side-block .side-note {
  font-size: 11px;
  line-height: 1.8;
  color: #949b83;
  margin: 0 0 12px;
}

.connected-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d6d3e2;
  background: #f7f5fc;
  border-radius: 5px;
  padding: 10px 11px;
  margin-bottom: 8px;
}

.connected-card .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7f76ba;
  flex-shrink: 0;
}

.connected-card strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}

.connected-card small {
  font: 9px var(--mono);
  color: #9690ae;
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.connected-card button {
  margin-left: auto;
  font-size: 10px;
  color: #9b94b0;
  border-bottom: 1px solid transparent;
  padding: 2px;
}

.connected-card button:hover {
  color: #6a63a8;
  border-color: #b6aece;
}

.connector-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.connector-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  text-align: left;
  border: 1px solid #dcdfd0;
  border-radius: 4px;
  padding: 9px 10px;
  background: #fffefa;
  transition: border-color 0.2s, transform 0.2s;
}

.connector-chip:hover {
  border-color: #b3abc8;
  transform: translateY(-1px);
}

.connector-chip strong {
  font-size: 12px;
  font-weight: 500;
}

.connector-chip span {
  font: 8px var(--mono);
  letter-spacing: 0.4px;
  color: #a3a894;
}

.connector-chip[data-mode="plugin"] span {
  color: #b0956f;
}

/* ── 创建页 ───────────────────────────────────────────────── */

.create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.editor-card {
  border: 1px solid #dcded1;
  border-radius: 6px;
  background: #fffefa;
  overflow: hidden;
}

.editor-top {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e8e8dd;
  background: #fbfaf5;
  flex-wrap: wrap;
}

.field-input {
  border: 1px solid #d9dbcc;
  border-radius: 4px;
  background: #fdfcf8;
  padding: 9px 11px;
  font-size: 13px;
  color: #33382e;
  outline: none;
  min-width: 0;
}

.field-input:focus {
  border-color: #a49ac0;
  box-shadow: 0 0 0 3px #aaa0c415;
}

.editor-top .name-field {
  flex: 1;
  min-width: 180px;
  font-family: var(--mono);
  font-size: 12px;
}

.lang-select {
  position: relative;
  display: inline-flex;
}

.lang-select select {
  appearance: none;
  border: 1px solid #d9dbcc;
  border-radius: 4px;
  background: #fdfcf8;
  padding: 9px 30px 9px 11px;
  font-size: 12px;
  color: #4c5344;
  cursor: pointer;
  outline: none;
}

.lang-select i {
  position: absolute;
  right: 12px;
  top: 15px;
  width: 5px;
  height: 5px;
  border-bottom: 1px solid #8f977f;
  border-right: 1px solid #8f977f;
  transform: rotate(45deg);
  pointer-events: none;
}

.code-area {
  width: 100%;
  min-height: 380px;
  border: 0;
  outline: none;
  resize: vertical;
  padding: 20px 22px;
  background: #fdfcf7;
  color: #34392f;
  font: 12.5px/1.9 var(--mono);
  tab-size: 2;
}

.editor-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #e8e8dd;
  background: #fbfaf5;
  flex-wrap: wrap;
}

.editor-foot .meta {
  font: 9px var(--mono);
  letter-spacing: 0.6px;
  color: #a0a78e;
  margin-right: auto;
}

.button-dark {
  background: #2b2e2a;
  color: #f8f7f1;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button-dark:hover {
  background: #3a3e37;
}

.button-dark .icon,
.button-line .icon {
  width: 14px;
  height: 14px;
}

.button-line {
  border: 1px solid #c9ccbc;
  color: #626b54;
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fdfcf8;
}

.button-line:hover {
  border-color: #a9a3bf;
  color: #4a4658;
}

.recog-card {
  border: 1px solid #dcded1;
  border-radius: 6px;
  background: #fbfaf5;
  padding: 18px;
}

.recog-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #9aa18a;
}

.recog-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 14px;
}

.recog-title h3 {
  font: 500 15px var(--mono);
  margin: 0;
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
}

.confidence {
  font: 10px var(--mono);
  color: #7f76ba;
  white-space: nowrap;
}

.meter {
  height: 3px;
  border-radius: 2px;
  background: #e6e6da;
  overflow: hidden;
  margin-bottom: 16px;
}

.meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a99ecb, #6f66ab);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.recog-rows {
  display: grid;
  gap: 9px;
  font-size: 12px;
}

.recog-row {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px dashed #e6e6da;
}

.recog-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.recog-row dt {
  font: 9px var(--mono);
  letter-spacing: 0.6px;
  color: #a3a995;
  padding-top: 2px;
}

.recog-row dd {
  margin: 0;
  color: #4d5445;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-row span {
  font: 9px var(--mono);
  border: 1px solid #dcded1;
  border-radius: 999px;
  padding: 3px 8px;
  color: #858c75;
}

.risk-row {
  color: #a2685c !important;
}

.result-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.copy-card {
  border: 1px solid #e0e2d3;
  border-radius: 5px;
  background: #fffefa;
  padding: 13px 14px;
}

.copy-card > span {
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #a3a995;
}

.copy-card h4 {
  font-size: 13px;
  font-weight: 500;
  margin: 6px 0 4px;
}

.copy-card p {
  font-size: 11px;
  line-height: 1.7;
  color: #949b83;
  margin: 0 0 10px;
}

.copy-card .copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.copy-card .copy-actions button {
  font-size: 11px;
  border: 1px solid #d3d6c6;
  border-radius: 3px;
  padding: 6px 10px;
  color: #5f6852;
  background: #fbfaf5;
}

.copy-card .copy-actions button:hover {
  border-color: #aaa3c0;
  color: #4b4659;
}

.workspace-card {
  margin-top: 24px;
  border: 1px solid #dcded1;
  border-radius: 6px;
  background: #fbfaf5;
  padding: 20px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.workspace-card .ws-copy {
  flex: 1;
  min-width: 260px;
}

.workspace-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 8px;
}

.workspace-card p {
  font-size: 12px;
  line-height: 1.85;
  color: #949b83;
  margin: 0 0 14px;
}

.workspace-card code {
  font-family: var(--mono);
  font-size: 11px;
  background: #f2f1e8;
  border: 1px solid #e2e2d4;
  border-radius: 3px;
  padding: 2px 6px;
}

.path-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.path-row .field-input {
  flex: 1;
  min-width: 200px;
  font-family: var(--mono);
  font-size: 11px;
}

/* ── 接入弹窗 ─────────────────────────────────────────────── */

.connect-dialog {
  width: min(560px, calc(100vw - 30px));
  border: 1px solid #d7d7d0;
  border-radius: 6px;
  padding: 34px 32px;
  background: #fbfaf6;
  color: var(--ink);
}

.connect-dialog::backdrop {
  background: #23251f4d;
  backdrop-filter: blur(3px);
}

.connect-dialog h2 {
  font-size: 26px;
  font-weight: 450;
  letter-spacing: -0.9px;
  margin: 12px 0 6px;
}

.connect-dialog .dialog-note {
  font-size: 12px;
  line-height: 1.8;
  color: #8d9382;
  margin: 0 0 18px;
}

.connect-form {
  display: grid;
  gap: 11px;
}

.connect-form label {
  display: grid;
  gap: 6px;
  font: 9px var(--mono);
  letter-spacing: 0.8px;
  color: #969d87;
}

.connect-form input,
.connect-form select {
  border: 1px solid #d9dbcc;
  border-radius: 4px;
  background: #fdfcf8;
  padding: 10px 11px;
  font-size: 12px;
  color: #33382e;
  outline: none;
  font-family: var(--mono);
  width: 100%;
}

.connect-form input:focus,
.connect-form select:focus {
  border-color: #a49ac0;
  box-shadow: 0 0 0 3px #aaa0c415;
}

.connect-form .field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.connect-actions {
  display: flex;
  gap: 9px;
  margin-top: 8px;
  align-items: center;
}

.plugin-block {
  border: 1px dashed #d6d8c8;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.8;
  color: #7d8474;
  background: #f8f7ef;
}

.plugin-block code {
  font-family: var(--mono);
  font-size: 11px;
  display: block;
  margin-top: 8px;
  padding: 8px 9px;
  background: #ffffff;
  border: 1px solid #e6e6d8;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

.agent-note {
  font: 9px var(--mono);
  line-height: 1.9;
  letter-spacing: 0.3px;
  color: #a3a995;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .agent-grid,
  .create-grid {
    grid-template-columns: 1fr;
  }
  .chat-log {
    max-height: none;
  }
  .page-head {
    display: block;
  }
  .page-head .head-note {
    text-align: left;
    margin-top: 14px;
  }
}

@media (max-width: 620px) {
  .page-main {
    padding: 32px 5vw 56px;
  }
  .page-head h1 {
    font-size: 30px;
  }
  .chat-card {
    min-height: 560px;
  }
  .chat-log {
    padding: 18px 15px 6px;
  }
  .msg {
    max-width: 100%;
  }
  .composer {
    padding: 10px 12px 14px;
  }
  .send-button {
    padding: 0 15px;
  }
  .connector-list {
    grid-template-columns: 1fr 1fr;
  }
  .editor-top .name-field {
    min-width: 120px;
  }
  .code-area {
    min-height: 300px;
    font-size: 11.5px;
  }
  .connect-dialog {
    padding: 26px 20px;
  }
  .connect-form .field-pair {
    grid-template-columns: 1fr;
  }
  .workspace-card {
    padding: 16px;
  }
}

/* 账号弹窗补充 */
.orbit-account-dialog .orbit-dialog-close {
  margin-top: 14px;
  font-size: 12px;
  color: #8d9382;
}

.orbit-account-dialog .primary-button {
  margin-top: 6px;
}

/* 导航占位后，落地页的私人标记让位 */
@media (max-width: 1040px) {
  .private-label {
    display: none;
  }
}

.landing .topbar > .top-nav {
  margin: 0 auto;
}

/* 顶栏三等分：品牌左、导航居中、操作右 */
@media (min-width: 821px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 20px;
  }
  .topbar > .header-actions {
    justify-self: end;
  }
  .topbar > .brand {
    justify-self: start;
  }
}

.orbit-account-dialog .primary-button {
  width: 100%;
  height: 46px;
  border-radius: 4px;
}

.orbit-account-dialog .orbit-dialog-close {
  display: block;
  margin: 14px auto 0;
  text-align: center;
}

/* 创建模式切换 */
.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #dcdfd0;
  border-radius: 999px;
  background: #f6f5ee;
  flex-shrink: 0;
}

.mode-switch button {
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #7d8474;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.mode-switch button:hover {
  color: #2a2d29;
}

.mode-switch button.active {
  background: #2b2e2a;
  color: #f7f6f0;
}

.lang-select select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
