:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #17202a;
  background: #fff;
  font-size: 14px;
  --muted: #7b8792;
  --line: #edf0f2;
  --blue: #1d9bf0;
  --soft: #f6f8fa;
  --ink: #131a20;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button {
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #eef3f7;
}
button:active {
  transform: translateY(1px);
}
.shell {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 238px minmax(0, 650px) 340px;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 24px 20px 15px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
  padding: 0 12px 30px;
  color: var(--ink);
}
.brand img {
  width: 33px;
  height: 33px;
}
.brand span {
  font-weight: 500;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.7px;
  margin-left: 3px;
  align-self: end;
  padding-bottom: 4px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav button {
  display: flex;
  gap: 17px;
  align-items: center;
  width: 100%;
  text-align: left;
  border-radius: 28px;
  padding: 13px 17px;
  font-size: 16px;
  white-space: nowrap;
}
.nav button.active {
  color: var(--blue);
  font-weight: 650;
  background: #eaf6fe;
}
.nav button svg {
  width: 23px;
  height: 23px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #9aa3ac;
  margin: 24px 16px 8px;
}
.primary {
  background: var(--blue);
  color: white;
  font-weight: 650;
  border-radius: 24px;
  padding: 11px 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.primary:hover {
  background: #168bd8;
}
.primary svg {
  width: 17px;
  height: 17px;
}
.sidebar > .primary {
  margin: 23px 6px 0;
  padding: 14px;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 25px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  width: 100%;
  border-radius: 30px;
  text-align: left;
}
.user-chip .grow {
  overflow: hidden;
}
.user-chip strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip small {
  font-size: 11px;
  color: var(--muted);
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #eaf4fb;
  color: #487793;
  font-size: 17px;
  font-weight: 650;
  object-fit: cover;
}
.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 22px;
}
.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 11px;
}
.small {
  font-size: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row.wrap {
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.column {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.main {
  border-right: 1px solid var(--line);
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  background: #ffffffed;
  backdrop-filter: blur(12px);
  z-index: 3;
  border-bottom: 1px solid var(--line);
  padding: 22px 26px 17px;
  min-height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-title { min-width: 0; }
.topbar-tools { flex-shrink: 0; gap: 10px; }
.topbar-heading > .icon-btn, .topbar-tools > .icon-btn { flex-shrink: 0; }
.topbar h1 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
.topbar p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.4px;
}
.topbar select {
  border: 1px solid #e7ebee;
  background: white;
  border-radius: 20px;
  max-width: 160px;
  padding: 8px 28px 8px 12px;
  font-size: 12px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.rightbar {
  padding: 28px 20px 20px 27px;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow: auto;
}
.search-box {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
}
.search-box svg {
  width: 17px;
  color: #8c969e;
}
.search-box input {
  min-width: 0;
  flex: 1;
  width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 12px;
}
.widget {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 19px;
  margin-top: 22px;
}
.widget h3 {
  font-size: 15px;
}
.widget .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #34b583;
  border-radius: 50%;
  margin-right: 5px;
}
.badge {
  font-size: 10px;
  color: #218f68;
  background: #effaf4;
  border: 1px solid #daf1e5;
  padding: 4px 8px;
  border-radius: 10px;
  display: inline-block;
  white-space: nowrap;
}
.badge.blue {
  color: #208ccf;
  background: #edf7fd;
  border-color: #dcf0fb;
}
.badge.gray {
  color: #75818b;
  background: #f4f6f8;
  border-color: #edf0f2;
}
.badge.orange {
  color: #b77922;
  background: #fff9ed;
  border-color: #fbebcc;
}
.badge.red {
  color: #bd5960;
  background: #fff1f1;
  border-color: #f9dede;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.metric strong {
  font-size: 27px;
  font-weight: 650;
  display: block;
  letter-spacing: -1px;
}
.metric span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.widget-note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.trend {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: block;
  color: inherit;
  text-align: left;
  width: 100%;
}
.trend:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.trend .label {
  font-size: 10px;
  color: #919ca6;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.trend strong {
  font-size: 12px;
  line-height: 1.6;
  font-weight: 550;
}
.widget-empty {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.text-btn {
  color: var(--blue);
  font-size: 12px;
  padding: 5px 0;
  border-radius: 4px;
}
.right-footer {
  padding: 20px 6px;
  color: #a0a8af;
  font-size: 10px;
  line-height: 2;
}
.right-footer b {
  color: #818d96;
  font-weight: 500;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  flex: 1;
  padding: 18px 8px;
  color: var(--muted);
  font-size: 13px;
  position: relative;
}
.tabs button.active {
  color: var(--ink);
  font-weight: 650;
}
.tabs button.active:after {
  position: absolute;
  bottom: 0;
  left: calc(50% - 22px);
  content: "";
  width: 44px;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
}
.quick-compose {
  padding: 23px 26px 18px;
  border-bottom: 8px solid #f6f8fa;
  display: flex;
  gap: 13px;
}
.quick-compose textarea {
  width: 100%;
  border: 0;
  resize: vertical;
  min-height: 69px;
  padding: 9px 0;
  font-size: 17px;
  outline: none;
}
.quick-compose textarea::placeholder {
  color: #a0a8b0;
}
.composer-footer {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
}
.toolbar .text-btn {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  margin-left: 4px;
}
.toolbar svg {
  width: 18px;
  height: 18px;
}
.compose-hint {
  font-size: 10px;
  color: #9ca6ae;
  margin-top: 10px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 27px 13px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.6px;
}
.feed-card {
  padding: 21px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  transition: background 0.15s;
}
.feed-card:hover {
  background: #fcfdfe;
}
.post-heading {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.6;
}
.post-heading b {
  font-size: 13px;
}
.post-heading span {
  font-size: 11px;
  color: var(--muted);
}
.post-text {
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 7px;
}
.post-open { display: block; color: inherit; }
.post-open:hover { text-decoration: none; }
.post-open:focus-visible { outline: 2px solid var(--blue); border-radius: 4px; }
.focal-post { background: #fff; padding-top: 28px; padding-bottom: 24px; }
.focal-post .post-text { font-size: 18px; line-height: 1.85; margin: 12px 0 16px; }
.focal-post .post-actions { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.thread-context { background: #fafcfd; }
.thread-context .feed-card { padding-top: 12px; padding-bottom: 16px; }
.replies-heading { padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.replies-heading h2 { font-size: 16px; }
.replies-heading p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.replies-heading > button { flex-shrink: 0; font-size: 12px; }
#post-replies { scroll-margin-top: 100px; }
.feed-end { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }
.post-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 4px;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
}
.post-media img,
.post-media video {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}
.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  color: #8e9ba5;
  gap: 5px;
}
.post-actions button,
.post-actions a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  padding: 6px;
  border-radius: 15px;
  color: inherit;
}
.post-actions svg {
  width: 16px;
  height: 16px;
}
.post-actions .chosen {
  color: var(--blue);
}
.post-actions .liked {
  color: #e75c8c;
}
.post-source {
  font-size: 11px;
  color: var(--blue);
  margin-top: 9px;
}
.empty {
  padding: 45px 32px;
  text-align: center;
}
.empty .empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f8fc;
  color: #559dc9;
  border: 1px solid #e3f0f8;
  width: 61px;
  height: 61px;
  border-radius: 20px;
  margin: 0 auto 19px;
}
.empty svg {
  width: 27px;
  height: 27px;
}
.empty h2 {
  font-size: 19px;
  margin-bottom: 10px;
}
.empty p {
  max-width: 330px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.9;
  font-size: 12px;
}
.empty .primary {
  margin-top: 23px;
  font-size: 12px;
}
.onboarding {
  margin: 27px;
  border: 1px solid #e1edf7;
  border-radius: 19px;
  background: linear-gradient(140deg, #f8fcff, #fff);
  padding: 27px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #70a1be;
  font-weight: 650;
  margin-bottom: 13px;
}
.onboarding h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
  line-height: 1.5;
}
.onboarding > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin-top: 12px;
  max-width: 380px;
}
.steps {
  display: flex;
  gap: 17px;
  margin: 25px 0;
  align-items: center;
}
.step {
  font-size: 11px;
  color: #8393a0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.step i {
  font-style: normal;
  border: 1px solid #e0e9f0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #4e91ba;
  font-size: 10px;
}
.steps > svg {
  width: 12px;
  color: #b6c8d4;
}
.page-pad {
  padding: 25px;
}
.page-intro {
  display: flex;
  align-items: start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 23px;
}
.page-intro h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.page-intro p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.secondary {
  border: 1px solid #dde4e9;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 550;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.secondary svg {
  width: 16px;
  height: 16px;
}
.danger {
  color: #c15660;
}
.card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 15px;
}
.card h3 {
  font-size: 14px;
}
.card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 9px;
}
.card .actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card .actions button {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 15px;
  color: var(--blue);
  background: #f0f8fd;
}
.card .actions button.danger {
  color: #bf5360;
  background: #fff3f3;
}
.proxy-path {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6c879a;
  margin-top: 15px;
  background: #f6f9fb;
  border-radius: 8px;
  padding: 10px;
}
.proxy-path svg {
  width: 14px;
}
.notice {
  background: #f3f8fc;
  border: 1px solid #e2eef7;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.85;
  color: #638098;
  margin: 14px 0;
}
.notice.warning {
  background: #fffaf0;
  border-color: #f8eccf;
  color: #a77f3c;
}
.error-box {
  background: #fff4f4;
  border: 1px solid #f8dddd;
  color: #b94f5a;
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.8;
  margin: 20px 25px;
}
.error-box button {
  color: inherit;
  text-decoration: underline;
}
.form-error {
  color: #bf5360;
  background: #fff4f4;
  padding: 11px 14px;
  border-radius: 8px;
  line-height: 1.7;
  font-size: 12px;
  display: none;
}
.form-error.show {
  display: block;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 17px;
}
.field label {
  font-size: 12px;
  font-weight: 550;
}
.field input,
.field select,
.field textarea,
.control {
  border: 1px solid #dde5ea;
  border-radius: 9px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.control:focus {
  outline: 2px solid #cfeaff;
  border-color: #90c8ed;
}
.field small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
}
.check input {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
}
.check small {
  color: var(--muted);
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 18px;
}
.form-footer .primary {
  font-size: 12px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.job-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 160px;
  overflow: hidden;
  color: #34424d;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
}
.job-meta {
  color: var(--muted);
  font-size: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.job-result {
  font-size: 11px;
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.job-error {
  font-size: 11px;
  color: #ba6e53;
  margin-top: 11px;
  line-height: 1.7;
}
.source-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.source-entry h3 {
  font-size: 14px;
  line-height: 1.8;
  margin: 8px 0;
}
.source-entry p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.source-entry .row {
  margin-top: 12px;
}
.profile-banner {
  height: 100px;
  background: linear-gradient(120deg, #e5f2fc, #f3f7fa);
}
.profile-info {
  padding: 0 26px 22px;
}
.profile-info > .avatar {
  margin-top: -26px;
  border: 4px solid white;
  width: 70px;
  height: 70px;
}
.profile-info h2 {
  margin: 13px 0 4px;
  font-size: 19px;
}
.profile-info p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 10px;
}
.profile-info .row {
  margin-top: 10px;
}
.login-layout {
  min-height: 100vh;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  padding: 10vh 9vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f0f7fc;
  border-right: 1px solid #e4edf4;
  position: relative;
}
.login-story .brand {
  padding: 0;
  margin-bottom: 70px;
}
.login-story h1 {
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.4;
  letter-spacing: -2px;
}
.login-story h1 em {
  font-style: normal;
  color: var(--blue);
}
.login-story > p {
  font-size: 14px;
  line-height: 2;
  color: #7b91a1;
  margin-top: 22px;
}
.login-feature {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  color: #63839b;
  font-size: 12px;
  align-items: center;
}
.login-feature svg {
  width: 18px;
}
.login-foot {
  margin-top: 90px;
  color: #8fa5b5;
  font-size: 10px;
  letter-spacing: 1px;
}
.login-form-wrap {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-form {
  width: 350px;
  max-width: 100%;
}
.login-form h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
}
.login-form > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin: 12px 0 28px;
}
.login-form .primary {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
}
.login-form .tiny {
  margin-top: 20px;
  line-height: 1.9;
}
.login-form code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.boot {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.spinner {
  width: 25px;
  height: 25px;
  border: 2px solid #e5f1f9;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.loading {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #17232e;
  color: #fff;
  border-radius: 14px;
  padding: 14px 23px;
  font-size: 12px;
  box-shadow: 0 8px 30px #0e223b25;
  z-index: 30;
  max-width: 90vw;
  line-height: 1.7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 680px;
  width: calc(100% - 30px);
  padding: 0;
  box-shadow: 0 20px 100px #13253730;
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #172d415e;
  backdrop-filter: blur(3px);
}
.modal-head {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 17px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.modal-head h2 {
  font-size: 17px;
}
.modal-body {
  padding: 24px;
}
.modal-body .tabs {
  margin: -15px 0 23px;
}
.compose-text {
  font-size: 16px !important;
  min-height: 180px !important;
  line-height: 1.9 !important;
}
.ai-box {
  background: #f5faff;
  border: 1px solid #e1effa;
  border-radius: 12px;
  padding: 17px;
  margin-bottom: 18px;
}
.ai-box h3 {
  font-size: 12px;
  color: #598bac;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}
.ai-box h3 svg {
  width: 17px;
  height: 17px;
}
.ai-box textarea {
  min-height: 62px;
  font-size: 12px;
}
.upload-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 9px 0;
}
.upload-item {
  border: 1px solid #e5edf3;
  background: #f6f9fc;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11px;
  color: #68879d;
  display: flex;
  gap: 8px;
  align-items: center;
}
.upload-item button {
  font-size: 15px;
  padding: 0 2px;
}
.upload-item code {
  font-size: 9px;
}
.weight {
  font-size: 11px;
  color: var(--muted);
}
.weight.over {
  color: #d37d42;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 400px;
  overflow: auto;
  background: #f7f9fb;
  border-radius: 9px;
  padding: 14px;
  line-height: 1.7;
}
.source-picks {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 14px;
}
.mobile-brand {
  display: none;
}
.load-more {
  display: block;
  margin: 25px auto;
}
.search-page {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.search-page form { display: grid; gap: 18px; }
.search-page .search-box { border-radius: 14px; min-height: 50px; padding: 6px 8px 6px 15px; }
.search-page .search-box input { font-size: 13px; }
.search-submit { flex: 0 0 auto; white-space: nowrap; min-width: 60px; min-height: 36px; padding: 8px 16px; border-radius: 10px; font-size: 12px; }
.search-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.search-filters .field { margin: 0; gap: 8px; }
.search-filters label { color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search-page .row {
  margin-top: 12px;
}
.stat-chip {
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--soft);
  font-size: 10px;
  color: var(--muted);
}
details {
  font-size: 12px;
}
summary {
  cursor: pointer;
  color: var(--muted);
  padding: 10px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 13px 7px;
}
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.scroll-table {
  overflow: auto;
}
.no-wrap {
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  .shell {
    max-width: 1310px;
    grid-template-columns: 248px minmax(0, 680px) 340px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 85px minmax(0, 650px) minmax(250px, 310px);
  }
  .sidebar {
    padding: 27px 12px;
  }
  .brand {
    padding: 0 10px 27px;
  }
  .sidebar .brand b,
  .sidebar .brand span,
  .nav button span,
  .nav-label,
  .sidebar > .primary span,
  .sidebar-foot .grow,
  .sidebar-foot > .user-chip > svg {
    display: none;
  }
  .nav {
    gap: 10px;
  }
  .nav button {
    padding: 15px;
    justify-content: center;
  }
  .sidebar > .primary {
    padding: 15px;
    margin: 22px 0;
  }
  .sidebar > .primary svg {
    width: 23px;
    height: 23px;
  }
  .sidebar .user-chip {
    padding: 6px;
  }
  .rightbar {
    padding: 27px 16px;
  }
}
@media (max-width: 900px) {
  .shell {
    max-width: 750px;
    grid-template-columns: 85px minmax(0, 1fr);
  }
  .rightbar {
    display: none;
  }
  .main {
    border-right: 0;
  }
}
@media (max-width: 600px) {
  .shell {
    display: block;
    padding-bottom: 76px;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    height: 64px;
    width: 100%;
    z-index: 10;
    background: #fffffffa;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 4px 8px;
    display: block;
  }
  .sidebar .brand,
  .sidebar > .primary,
  .sidebar-foot,
  .nav-label {
    display: none;
  }
  .nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
  }
  .nav button {
    width: auto;
    padding: 15px 13px;
    border-radius: 12px;
  }
  .nav button.mobile-hide {
    display: none;
  }
  .nav button svg {
    width: 23px;
  }
  .topbar {
    padding: 17px 18px;
    min-height: 78px;
  }
  .topbar h1 {
    font-size: 18px;
  }
  .topbar select {
    max-width: 130px;
  }
  .topbar p {
    font-size: 10px;
  }
  .quick-compose {
    padding: 20px 17px;
  }
  .feed-card {
    padding: 19px 17px;
    gap: 10px;
  }
  .page-pad {
    padding: 20px 17px;
  }
  .onboarding {
    margin: 20px 17px;
    padding: 23px;
  }
  .onboarding h2 {
    font-size: 23px;
  }
  .steps {
    gap: 8px;
  }
  .step {
    gap: 5px;
    font-size: 10px;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-body {
    padding: 20px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 38px 30px 30px;
    border: 0;
  }
  .login-story .brand {
    margin-bottom: 24px;
  }
  .login-story h1 {
    font-size: 29px;
    letter-spacing: -1px;
  }
  .login-story > p {
    font-size: 12px;
    margin-top: 12px;
  }
  .login-feature,
  .login-foot {
    display: none;
  }
  .login-form-wrap {
    padding: 32px 30px;
  }
  .login-form {
    width: 100%;
  }
  .login-form h2 {
    font-size: 22px;
  }
  .post-actions {
    gap: 0;
  }
  .post-actions button {
    gap: 4px;
    padding: 5px;
  }
  .tabs button {
    font-size: 12px;
    padding: 16px 5px;
  }
  .modal-head {
    padding: 15px 20px;
  }
  .mobile-brand {
    display: block;
  }
  .search-page {
    padding: 18px;
  }
  .form-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.conversation-form {
  margin-top: 20px;
}
.page-pad > h3 {
  margin-bottom: 14px;
}
.profile-info .avatar {
  position: relative;
}
.card > h3 {
  margin-top: 12px;
}
.avatar + div .muted {
  line-height: 1.7;
}
.onboarding-note {
  padding: 6px 28px 20px;
  align-items: flex-start;
  color: #9aaab6;
  font-size: 12px;
  line-height: 1.9;
}
.onboarding-note svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.onboarding-note span {
  font-size: 11px;
  color: #a4afb7;
}
.onboarding-shortcuts {
  padding-top: 4px;
  padding-bottom: 25px;
}
@media (max-width: 600px) {
  .onboarding-note {
    padding: 0 21px 19px;
  }
  .onboarding-shortcuts {
    padding-top: 0;
  }
}
.policy-card {
  margin-top: 16px;
  padding: 14px;
  background: #f7fafc;
  border: 1px solid #e6eef4;
  border-radius: 11px;
}
.policy-card p {
  font-size: 12px;
  color: #5f7788;
  line-height: 1.8;
  margin: 10px 0 5px;
}
.keyword-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.keyword-tags span {
  background: #f0f6fa;
  border: 1px solid #e6eef4;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 11px;
  color: #668498;
}
.post-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
.login-progress {
  position: sticky;
  top: 62px;
  z-index: 2;
  background: #edf7ff;
  border: 1px solid #b8dff8;
  color: #2879a9;
  padding: 14px 15px;
  border-radius: 10px;
  margin: 0 0 15px;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 550;
  box-shadow: 0 3px 14px #ffffffba;
}
.login-progress.failed {
  background: #fff1f1;
  border-color: #f3b8be;
  color: #ba4c57;
}
.request-log {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.maintenance-log { padding: 20px 0; border-bottom: 1px solid var(--border, #e5e9ed); }
.maintenance-log p { margin: 10px 0; }
.maintenance-log summary { cursor: pointer; font-size: 13px; padding: 10px 0; }
.trace-summary { margin: 12px 0; padding: 12px; background: #f5f9fc; border-radius: 10px; font-size: 12px; line-height: 1.9; }
.trace-request { padding: 14px 0; border-bottom: 1px solid #edf0f3; }
.log-path {
  font:
    11px ui-monospace,
    SFMono-Regular,
    monospace;
  overflow-wrap: anywhere;
  color: #688095;
  margin: 8px 0;
  line-height: 1.7;
}

/* Keep a consistent inset for every native select, including modal forms. */
select,
.field select,
select.control,
.topbar select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23748290' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px 15px;
  padding-right: 42px;
  cursor: pointer;
  text-overflow: ellipsis;
}
select:disabled { opacity: .55; cursor: not-allowed; background-color: var(--soft); }
.topbar select { min-height: 38px; min-width: 116px; max-width: 176px; padding-left: 14px; }
.field select, select.control { min-height: 44px; padding-left: 14px; }
@media (max-width: 600px) {
  .topbar { gap: 12px; padding: 16px 18px; }
  .topbar-heading { gap: 8px; }
  .topbar-tools { gap: 6px; }
  .topbar select { min-width: 108px; max-width: 142px; }
  .search-filters { gap: 12px; }
  .replies-heading { padding: 18px; flex-wrap: wrap; }
  .replies-heading > button { min-height: 36px; }
}
@media (max-width: 380px) {
  .topbar p { display: none; }
  .topbar select { max-width: 122px; }
  .search-filters { grid-template-columns: 1fr; }
}
