:root {
  color-scheme: light;
  --ink: #142c35;
  --muted: #5c7279;
  --teal: #086c65;
  --teal-dark: #04574f;
  --line: #d9e3df;
  --paper: #f5f7f2;
  --card: #fff;
  --danger: #a53232;
  --soft: #e8f1ed;
  --gold: #986321;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.35;
}
button:hover,
a.button:hover {
  border-color: var(--teal);
  text-decoration: none;
}
button.primary,
a.primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}
button.primary:hover,
a.primary:hover {
  background: var(--teal-dark);
}
button.danger {
  color: var(--danger);
  border-color: #e6c8c8;
}
button.link {
  border: 0;
  padding: 0;
  min-height: 32px;
  color: var(--teal);
  background: transparent;
  text-align: left;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
:focus-visible {
  outline: 3px solid #28a795;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: 0.06em;
  font-size: 15px;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--teal);
  color: #fff;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 25px;
  letter-spacing: -3px;
  padding-right: 3px;
}
.topbar .domain-label {
  font-size: 12px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
}
.shell {
  max-width: 1320px;
  margin: auto;
  padding: 42px 28px 70px;
}
.eyebrow {
  color: var(--teal);
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  font-weight: 700;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 700px;
}
.subtle {
  color: var(--muted);
  font-size: 13px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  background: var(--soft);
  color: var(--teal);
  font-size: 12px;
  padding: 3px 10px;
  white-space: nowrap;
}
.pill.warn {
  background: #fff0d9;
  color: var(--gold);
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  padding: 26px;
  min-width: 0;
}
.panel h2 {
  font-size: 18px;
  margin: 0 0 15px;
}
.panel h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stack {
  display: grid;
  gap: 20px;
}
.notice {
  padding: 13px 16px;
  border: 1px solid #c4dcd3;
  background: #edf5f0;
  color: #255a47;
  border-radius: 9px;
  margin: 0 0 20px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.notice.error {
  border-color: #e7c7c2;
  background: #fff0ed;
  color: #8f312a;
}
.notice.warn {
  border-color: #ebd9b3;
  background: #fff8e9;
  color: #886126;
}
.empty {
  padding: 38px 18px;
  text-align: center;
  color: var(--muted);
}
.empty h2 {
  color: var(--ink);
  font-size: 19px;
  margin-bottom: 8px;
}
.form {
  display: grid;
  gap: 16px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.form input,
.form select,
.form textarea,
.toolbar input,
.toolbar select {
  border: 1px solid #cbd7d2;
  background: #fff;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.form textarea {
  resize: vertical;
  min-height: 85px;
}
.form .hint {
  margin: -5px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.form .actions {
  margin-top: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.section-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 50px;
  align-items: start;
  max-width: 1080px;
  margin: 38px auto;
}
.account-story {
  padding: 30px 22px 0 0;
}
.account-story h1 {
  font-size: 42px;
  line-height: 1.35;
  letter-spacing: -0.04em;
  max-width: 470px;
  margin: 0 0 22px;
}
.account-story p {
  color: var(--muted);
  max-width: 430px;
}
.story-rule {
  height: 1px;
  background: var(--line);
  margin: 35px 0 23px;
  max-width: 400px;
}
.story-items {
  display: grid;
  gap: 18px;
}
.story-items span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.story-number {
  display: inline-block;
  min-width: 28px;
  color: var(--teal);
  font-family: Georgia, serif;
}
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 22px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  background: transparent;
  white-space: nowrap;
}
.tabs button[aria-selected="true"] {
  color: var(--teal);
  background: var(--soft);
}
.detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
}
.detail-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid #eef2ef;
}
.detail-list dt {
  color: var(--muted);
  font-size: 13px;
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.portal {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
  color: var(--ink);
}
.portal:hover {
  border-color: var(--teal);
  background: var(--paper);
  text-decoration: none;
}
.portal strong {
  display: block;
  font-size: 15px;
}
.portal span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.quota-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #edf2eb;
  border: 1px solid #dce5d8;
  border-radius: 10px;
  padding: 13px 18px;
  margin-bottom: 26px;
  font-size: 12px;
  color: var(--muted);
}
.quota-strip strong {
  color: var(--ink);
  font-size: 13px;
}
.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}
.sidebar {
  align-self: start;
  position: sticky;
  top: 22px;
}
.sidebar h2 {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 12px;
}
.channel-list {
  display: grid;
  gap: 5px;
  margin-bottom: 28px;
}
.channel-list button {
  justify-content: space-between;
  text-align: left;
  border: 0;
  padding: 11px 12px;
  background: transparent;
  font-size: 13px;
}
.channel-list button[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
}
.sidebar .mini-note {
  border-top: 1px solid var(--line);
  padding: 20px 10px 0;
  color: var(--muted);
  font-size: 12px;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 15px;
}
.filter-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 20px;
}
.filter-row label {
  font-size: 11px;
  color: var(--muted);
}
.filter-row input,
.filter-row select {
  padding: 8px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
  min-width: 0;
}
.feed-list {
  display: grid;
  gap: 13px;
}
.article-card {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 9px;
}
.article-card h2 {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 9px;
}
.article-title {
  display: block;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 650;
  line-height: inherit;
  min-height: 0;
  color: var(--ink);
}
.article-title:hover {
  color: var(--teal);
}
.article-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 9px;
  white-space: pre-wrap;
}
.article-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 13px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
}
.reader-panel {
  max-width: 900px;
  margin: auto;
}
.reader-panel h1 {
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin: 20px 0 14px;
}
.article-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.95;
  font-size: 16px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
}
.article-content p {
  margin: 0 0 1.25em;
}
.media-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.media-list img {
  display: block;
  max-width: 100%;
  max-height: 1000px;
  object-fit: contain;
  border-radius: 6px;
}
.media-list figcaption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.media-list figure {
  margin: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 14px;
  border-bottom: 1px solid #edf1ed;
  vertical-align: top;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
td .link {
  font-size: 13px;
  min-height: 24px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.table-wrap .empty {
  min-width: 300px;
}
.panel.table-panel {
  padding: 8px 12px 18px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.panel-header h2 {
  margin: 0;
}
.dialog {
  width: min(790px, calc(100vw - 32px));
  max-height: calc(100vh - 44px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  color: var(--ink);
  background: #fff;
  overflow: auto;
  box-shadow: 0 30px 80px #102b3833;
}
.dialog::backdrop {
  background: #102b386b;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.dialog h2 {
  font-size: 21px;
  margin: 0;
}
.dialog .close {
  padding: 5px 10px;
  font-size: 20px;
  font-weight: 400;
  min-width: 40px;
}
.consent-wrap {
  max-width: 690px;
  margin: 35px auto;
}
.consent-wrap h1 {
  font-size: 27px;
  line-height: 1.4;
  margin: 15px 0;
}
.consent-permissions {
  border-radius: 9px;
  background: var(--paper);
  padding: 20px;
  margin: 24px 0;
}
.consent-permissions ul {
  padding-left: 20px;
  margin: 8px 0 0;
}
.step-status {
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  background: #fff7e8;
  font-size: 13px;
  margin-bottom: 20px;
}
.footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  margin-top: 45px;
  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;
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .channel-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
  }
  .sidebar .mini-note {
    display: none;
  }
  .account-layout {
    gap: 25px;
  }
  .account-story h1 {
    font-size: 34px;
  }
  .filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .topbar {
    height: auto;
    min-height: 66px;
    padding: 14px 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .topbar .domain-label {
    padding-left: 12px;
  }
  .topbar nav {
    gap: 12px;
  }
  .shell {
    padding: 28px 16px 40px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .account-layout {
    display: flex;
    flex-direction: column;
    margin: 0;
  }
  .account-story {
    padding: 0;
  }
  .account-story h1 {
    font-size: 30px;
  }
  .account-story .story-items,
  .account-story .story-rule {
    display: none;
  }
  .account-layout > .panel {
    width: 100%;
  }
  .panel {
    padding: 20px;
  }
  .panel.table-panel {
    padding: 5px 3px 15px;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .reader-panel h1 {
    font-size: 25px;
  }
  .article-card {
    padding: 18px;
  }
  .article-content {
    font-size: 16px;
  }
  .footer {
    flex-direction: column;
    gap: 4px;
  }
  .detail-list > div {
    grid-template-columns: 85px 1fr;
  }
  .dialog {
    padding: 20px;
  }
  .filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .topbar nav:empty {
    display: none;
  }
}

.author-identity { display: inline-flex; align-items: center; gap: 7px; }
.author-avatar { display: inline-flex; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--soft); overflow: hidden; }
.author-avatar img { display: block; width: 32px; height: 32px; object-fit: cover; }
