:root {
  --bg:#f7f7f7;
  --surface:#ffffff;
  --ink:#171717;
  --muted:#666666;
  --line:#e7e7e7;
  --accent:#111111;
  --accent-dark:#333333;
  --accent-soft:#f0f0f0;
  --radius:16px;
  --sidebar:236px;
  --player:88px;
  font-family:Inter,"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  color:var(--ink);
  font-size:16px;
  line-height:1.65;
  background:var(--bg);
}

* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,textarea,select {
  font:inherit;
}
button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:not-allowed;
  opacity:.55;
}
a {
  color:inherit;
  text-decoration:none;
}
button {
  color:inherit;
}
button svg {
  flex-shrink:0;
}
svg.icon {
  width:20px;
  height:20px;
  vertical-align:middle;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #737373;
  outline-offset:3px;
}
button span[data-icon] {
  display:inline-flex;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:28px;
  letter-spacing:-1px;
  line-height:1.4;
}
h2 {
  font-size:18px;
}
h3 {
  font-size:16px;
}
p {
  overflow-wrap:anywhere;
}
.skip-link {
  position:fixed;
  top:-60px;
  left:260px;
  background:var(--ink);
  color:white;
  padding:10px;
  z-index:20;
}
.skip-link:focus {
  top:10px;
}
.muted {
  color:var(--muted);
}
.eyebrow {
  font-size:12px;
  letter-spacing:2px;
  font-weight:700;
  color:var(--accent);
  margin-bottom:7px;
}
.text-button {
  border:0;
  background:none;
  padding:0;
  color:var(--muted);
  font-size:14px;
}
.text-button:hover {
  color:var(--accent);
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:9px 18px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  font-weight:600;
  font-size:14px;
  transition:background .15s,transform .15s;
}
.button:hover {
  background:#f6f6f6;
}
.button:active {
  transform:translateY(1px);
}
.button.primary {
  background:var(--accent);
  border-color:var(--accent);
  color:white;
}
.button.primary:hover {
  background:var(--accent-dark);
}
.button.small {
  min-height:38px;
  padding:6px 14px;
}
.button.soft {
  color:var(--accent-dark);
  background:var(--accent-soft);
  border-color:transparent;
}
.icon-button {
  width:36px;
  height:36px;
  border:0;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:var(--muted);
}
.icon-button:hover {
  background:var(--bg);
  color:var(--ink);
}
.sidebar {
  width:var(--sidebar);
  position:fixed;
  inset:0 auto var(--player) 0;
  border-right:1px solid var(--line);
  background:var(--surface);
  padding:31px 22px 20px;
  display:flex;
  flex-direction:column;
  z-index:5;
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:45px;
  font-weight:750;
  font-size:20px;
  line-height:1.13;
  letter-spacing:-.7px;
}
.brand-second {
  display:block;
  font-weight:500;
  font-size:14px;
  letter-spacing:.1px;
  margin-top:4px;
  color:var(--muted);
}
.brand-mark {
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--accent);
  color:white;
  min-width:41px;
  height:41px;
  border-radius:13px;
  font-size:25px;
  font-weight:800;
  letter-spacing:-4px;
  padding-right:3px;
}
.brand-mark span {
  position:relative;
  top:3px;
}
.nav-label {
  font-size:12px;
  color:#959595;
  padding-left:14px;
  margin-bottom:13px;
  letter-spacing:1px;
}
#navigation {
  display:grid;
  gap:7px;
}
.nav-link {
  display:flex;
  align-items:center;
  gap:13px;
  padding:12px 15px;
  border-radius:10px;
  font-size:15px;
  font-weight:500;
  color:#6e6e6e;
  min-height:48px;
}
.nav-link:hover {
  background:#f8f8f8;
}
.nav-link.active {
  background:var(--accent-soft);
  color:var(--accent-dark);
  font-weight:700;
}
.nav-link .icon {
  width:21px;
  height:21px;
}
.nav-divider {
  height:1px;
  background:var(--line);
  margin:17px 10px;
}
.side-compose {
  margin-top:24px;
  width:100%;
  box-shadow:0 5px 15px #85858515;
}
.sidebar-bottom {
  margin-top:auto;
  padding:28px 12px 0;
}
.sidebar-bottom p {
  font-size:14px;
  color:#868686;
  line-height:1.9;
  margin:20px 0 13px;
}
.prototype-label {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:12px;
  color:#7f7f7f;
}
.prototype-label svg {
  width:16px;
}
.prototype-label span:last-child {
  font-size:11px;
  background:var(--bg);
  border-radius:4px;
  padding:1px 5px;
}
.sidebar-footer {
  margin-top:24px;
  font-size:11px;
  color:#9c9c9c;
}
.workspace {
  margin-left:var(--sidebar);
  padding-bottom:calc(var(--player) + 25px);
}
.topbar {
  height:85px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px;
  border-bottom:1px solid var(--line);
  background:#ffffffd9;
}
.topbar-context {
  font-size:14px;
  color:#7a7a7a;
}
.topbar-actions {
  display:flex;
  gap:16px;
  align-items:center;
}
.demo-pill {
  font-size:12px;
  background:#f2f2f2;
  color:#727272;
  border-radius:6px;
  padding:4px 9px;
}
.mobile-brand {
  display:none;
}
.content-layout {
  display:grid;
  grid-template-columns:minmax(0,720px) 288px;
  gap:32px;
  max-width:1144px;
  margin:0 auto;
  padding:32px 36px;
}
main {
  min-width:0;
  outline:none;
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
  gap:16px;
}
.page-heading p {
  color:var(--muted);
  font-size:14px;
  margin-top:8px;
}
.card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 2px 4px #2e2e2e02;
}
.welcome {
  position:relative;
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:23px 26px;
  margin-bottom:20px;
  background:linear-gradient(110deg,#f8f8f8,#fbfbfb);
  border:1px solid #e8e8e8;
  border-radius:var(--radius);
}
.welcome h2 {
  font-size:18px;
  margin:2px 0 7px;
}
.welcome p {
  font-size:14px;
  color:#7d7d7d;
  max-width:420px;
}
.welcome-icon {
  color:var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  min-width:60px;
  height:60px;
  border-radius:50%;
  background:#f0f0f0;
}
.welcome-icon .icon {
  width:28px;
  height:28px;
}
.welcome .eyebrow {
  font-size:10px;
  letter-spacing:2px;
}
.composer {
  padding:20px 22px;
  margin-bottom:25px;
}
.composer-top {
  display:flex;
  align-items:center;
  gap:13px;
}
.compose-prompt {
  flex:1;
  border:0;
  text-align:left;
  background:#f7f7f7;
  border-radius:10px;
  padding:12px 14px;
  color:#979797;
  font-size:14px;
  min-height:46px;
}
.compose-prompt:hover {
  background:#f1f1f1;
}
.composer-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:17px;
  padding-top:15px;
  border-top:1px solid var(--line);
}
.attachments {
  display:flex;
  gap:16px;
}
.attachment-button {
  border:0;
  background:transparent;
  display:flex;
  gap:7px;
  align-items:center;
  color:#797979;
  font-size:13px;
  padding:4px 0;
}
.attachment-button .icon {
  width:18px;
  height:18px;
  color:#929292;
}
.attachment-button:hover {
  color:var(--accent);
}
.composer-hint {
  font-size:12px;
  color:#999999;
}
.topic-chips {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:22px;
}
.chip {
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  padding:7px 13px;
  font-size:13px;
  color:#7d7d7d;
  white-space:nowrap;
}
.chip:hover {
  border-color:#c2c2c2;
  color:var(--accent-dark);
}
.chip.active {
  background:var(--ink);
  color:white;
  border-color:var(--ink);
}
.feed-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}
.feed-title h2 {
  font-size:15px;
}
.feed-title span {
  font-size:12px;
  color:var(--muted);
}
.post {
  padding:24px;
  margin-bottom:16px;
}
.post-header {
  display:flex;
  gap:11px;
  align-items:center;
  margin-bottom:15px;
}
.avatar {
  width:40px;
  height:40px;
  min-width:40px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:16px;
  border:1px solid #00000004;
}
.avatar.peach {
  background:linear-gradient(145deg,#e3e3e3,#bbbbbb);
  color:#5d5d5d;
}
.avatar.purple {
  background:linear-gradient(145deg,#ececec,#c5c5c5);
  color:#6b6b6b;
}
.avatar.green {
  background:linear-gradient(145deg,#e8e8e8,#bcbcbc);
  color:#585858;
}
.avatar.blue {
  background:linear-gradient(145deg,#eeeeee,#c7c7c7);
  color:#666666;
}
.avatar.orange {
  background:var(--accent-soft);
  color:var(--accent);
}
.avatar-button {
  border:0;
  padding:0;
  border-radius:50%;
  background:none;
}
.author-name {
  font-weight:650;
  font-size:14px;
}
.author-meta {
  font-size:12px;
  color:#909090;
  margin-top:1px;
}
.post-menu {
  margin-left:auto;
}
.post-category {
  background:#f6f6f6;
  border-radius:5px;
  font-size:11px;
  padding:3px 7px;
  color:#838383;
  margin-left:8px;
}
.post-text {
  white-space:pre-wrap;
  font-size:15px;
  line-height:1.95;
  letter-spacing:.15px;
}
.tags {
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:13px;
  font-size:12px;
  color:#777777;
}
.hashtag {
  color:var(--ink);
  font-weight:600;
  overflow-wrap:anywhere;
  white-space:normal;
  text-decoration:underline;
  text-decoration-color:var(--line);
  text-underline-offset:3px;
}
.hashtag:hover {
  text-decoration-color:var(--ink);
}
.hashtag-help {
  margin-bottom:20px;
}
.search-form {
  display:flex;
  gap:10px;
  align-items:stretch;
}
.search-input-wrap {
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  min-width:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:10px;
  padding:0 12px;
}
.search-input-wrap .icon {
  flex-shrink:0;
  color:var(--muted);
}
.search-input-wrap input {
  width:100%;
  min-width:0;
  background:transparent;
  color:var(--ink);
  border:0;
  padding:12px 0;
  font-size:14px;
}
.search-note {
  margin-top:10px;
}
.search-scopes {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
}
.search-intro {
  margin-top:24px;
  padding:22px;
}
.search-intro p {
  font-size:14px;
  color:var(--muted);
  margin-top:8px;
}
.search-summary {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin:24px 0;
}
.search-summary h2 {
  font-size:16px;
  overflow-wrap:anywhere;
  min-width:0;
}
.search-summary button {
  flex-shrink:0;
}
.search-section-title {
  font-size:15px;
  margin:24px 0 14px;
}
.search-comment {
  padding:20px;
  margin-bottom:16px;
}
.search-comment-author {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
}
.search-comment p {
  margin:12px 0 16px;
  white-space:pre-wrap;
}
@media(max-width:700px) {
  #search-results .works-grid {
    grid-template-columns:1fr;
  }
}
.post-image {
  width:100%;
  max-height:400px;
  object-fit:contain;
  display:block;
  border-radius:10px;
  margin-top:15px;
  background:var(--bg);
}
.missing-file {
  padding:12px 14px;
  background:var(--bg);
  border-radius:10px;
  font-size:13px;
  color:var(--muted);
  margin-top:14px;
}
.audio-card {
  background:#f8f8f8;
  border:1px solid #eeeeee;
  border-radius:11px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:17px;
}
.audio-play {
  width:38px;
  height:38px;
  min-width:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--accent);
}
.audio-play:hover {
  background:var(--accent-soft);
}
.audio-info {
  min-width:0;
  flex:1;
}
.audio-name {
  font-size:13px;
  font-weight:600;
  overflow-wrap:anywhere;
}
.audio-note {
  font-size:11px;
  color:#969696;
  display:flex;
  justify-content:space-between;
  margin-top:4px;
}
.waveform {
  display:flex;
  gap:3px;
  align-items:center;
  height:23px;
  margin-top:6px;
  overflow:hidden;
}
.waveform i {
  display:block;
  background:#c9c9c9;
  width:3px;
  min-width:3px;
  border-radius:2px;
}
.waveform i:nth-child(4n) {
  background:#b7b7b7;
}
.post-actions {
  display:flex;
  gap:23px;
  align-items:center;
  margin-top:19px;
  padding-top:14px;
  border-top:1px solid #f1f1f1;
}
.post-actions button {
  display:flex;
  align-items:center;
  gap:6px;
  border:0;
  background:none;
  color:#8b8b8b;
  font-size:12px;
  padding:3px 0;
  min-height:30px;
}
.post-actions button .icon {
  width:18px;
  height:18px;
}
.post-actions button:hover,.post-actions .liked {
  color:var(--accent);
}
.post-actions .liked svg {
  fill:var(--accent-soft);
}
.post-actions .report-action {
  margin-left:auto;
}
.comments {
  border-top:1px solid var(--line);
  margin-top:14px;
  padding-top:15px;
}
.comment {
  display:flex;
  gap:10px;
  margin:14px 0;
}
.comment .avatar {
  width:30px;
  height:30px;
  min-width:30px;
  font-size:12px;
}
.comment-main {
  min-width:0;
  flex:1;
}
.comment .author-name {
  font-size:13px;
}
.comment p {
  font-size:14px;
  line-height:1.8;
  margin-top:2px;
  white-space:pre-wrap;
}
.comment-controls {
  display:flex;
  gap:14px;
  margin-top:5px;
}
.comment-controls button {
  font-size:12px;
}
.comment-nest {
  border-left:2px solid #eeeeee;
  margin-left:14px;
  padding-left:14px;
}
.comment-form {
  display:flex;
  gap:8px;
  margin-top:15px;
}
.comment-form input {
  width:100%;
  min-width:0;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  padding:9px 12px;
  font-size:14px;
}
.comment-form button {
  white-space:nowrap;
}
.reply-indicator {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  color:var(--accent-dark);
  margin-top:12px;
}
#right-rail {
  padding-top:2px;
}
.rail-card {
  padding:20px;
  margin-bottom:18px;
}
.rail-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:17px;
}
.rail-heading h2 {
  font-size:14px;
}
.rail-heading .text-button {
  font-size:12px;
}
.rail-heading .icon {
  color:#a9a9a9;
  width:17px;
}
.rail-work {
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:17px;
}
.rail-work:last-child {
  margin-bottom:0;
}
.mini-cover {
  width:51px;
  min-width:51px;
  height:51px;
  border-radius:9px;
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.cover-a {
  background:radial-gradient(ellipse at 30% 30%,#dadada 0%,#b4b4b4 35%,#727272 100%);
}
.cover-b {
  background:radial-gradient(ellipse at 70% 20%,#cbcbcb,#7b7b7b 45%,#373737 100%);
}
.cover-c {
  background:radial-gradient(ellipse at 20% 60%,#c3c3c3,#7f7f7f 45%,#4a4a4a);
}
.cover-d {
  background:linear-gradient(135deg,#bdbdbd,#737373);
}
.mini-cover .icon {
  width:20px;
  opacity:.8;
}
.rail-work-info {
  flex:1;
  min-width:0;
}
.rail-work-info strong {
  font-size:13px;
  display:block;
}
.rail-work-info small {
  font-size:11px;
  color:#959595;
}
.rail-work .icon-button {
  width:28px;
  height:28px;
  background:#f6f6f6;
  border-radius:50%;
  color:#828282;
}
.topic-row {
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  background:none;
  padding:8px 0;
  width:100%;
  text-align:left;
  font-size:13px;
}
.topic-number {
  color:#c2c2c2;
  font-size:12px;
  width:16px;
}
.topic-row small {
  margin-left:auto;
  font-size:11px;
  color:#a2a2a2;
}
.topic-row:hover {
  color:var(--accent);
}
.rail-rule {
  background:#f2f2f2;
  padding:20px;
  border-radius:var(--radius);
  margin-bottom:18px;
}
.rail-rule h2 {
  font-size:14px;
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.rail-rule p {
  font-size:13px;
  line-height:1.9;
  color:#818181;
}
.rail-rule .icon {
  width:17px;
  color:#979797;
}
.rail-status {
  padding:0 6px;
  color:#9c9c9c;
  font-size:11px;
  line-height:1.9;
}
.rail-status button {
  font-size:11px;
  margin-top:8px;
}
.empty {
  padding:45px 22px;
  text-align:center;
  color:var(--muted);
}
.empty .icon {
  width:32px;
  height:32px;
  margin-bottom:12px;
  color:#bbbbbb;
}
.empty h2 {
  font-size:17px;
  color:var(--ink);
  margin-bottom:7px;
}
.empty p {
  font-size:14px;
  margin-bottom:20px;
}
.notice {
  padding:12px 16px;
  background:#f1f1f1;
  border:1px solid #e8e8e8;
  color:#6e6e6e;
  border-radius:10px;
  font-size:13px;
  line-height:1.9;
  margin-bottom:20px;
}
.notice.warm {
  background:var(--accent-soft);
  color:#6c6c6c;
  border-color:#e4e4e4;
}
.notice strong {
  font-weight:650;
}
.works-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.work-card {
  overflow:hidden;
}
.work-cover {
  height:175px;
  padding:24px;
  color:white;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
}
.work-cover .cover-type {
  font-size:11px;
  letter-spacing:2px;
  opacity:.8;
}
.work-cover h2 {
  font-size:25px;
  font-weight:500;
  letter-spacing:2px;
}
.work-cover .cover-number {
  position:absolute;
  right:21px;
  bottom:17px;
  font-size:11px;
  opacity:.7;
}
.work-body {
  padding:20px;
}
.work-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.work-meta h3 {
  font-size:16px;
}
.genre {
  font-size:11px;
  color:#919191;
  background:var(--bg);
  padding:2px 7px;
  border-radius:5px;
}
.work-body p {
  font-size:13px;
  color:var(--muted);
  margin:12px 0;
  line-height:1.8;
}
.work-author {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  color:#8b8b8b;
}
.work-author .avatar {
  width:24px;
  height:24px;
  min-width:24px;
  font-size:10px;
}
.work-buttons {
  display:flex;
  gap:8px;
  margin-top:16px;
  flex-wrap:wrap;
}
.work-buttons .button {
  flex:1;
}
.profile-cover {
  height:116px;
  background:linear-gradient(110deg,#e7e7e7,#ececec);
  border-radius:var(--radius) var(--radius) 0 0;
}
.profile-content {
  padding:0 26px 24px;
}
.profile-top {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-top:-32px;
  margin-bottom:17px;
  gap:14px;
}
.profile-top .avatar {
  width:80px;
  height:80px;
  font-size:29px;
  border:5px solid white;
}
.profile-content h1 {
  font-size:24px;
}
.profile-content .handle {
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px;
}
.profile-bio {
  font-size:14px;
  line-height:1.9;
}
.profile-role {
  font-size:12px;
  color:#818181;
  margin-top:15px;
}
.profile-stats {
  display:flex;
  gap:24px;
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:15px;
  font-size:13px;
  color:var(--muted);
}
.profile-stats strong {
  color:var(--ink);
  margin-right:5px;
}
.section-heading {
  font-size:17px;
  margin:25px 0 16px;
}
.report-tabs {
  display:flex;
  gap:8px;
  margin-bottom:17px;
}
.report-card {
  padding:22px;
  margin-bottom:15px;
}
.report-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.status {
  font-size:12px;
  border-radius:5px;
  padding:4px 8px;
  color:#7e7e7e;
  background:#f5f5f5;
}
.status.done {
  color:#707070;
  background:#f2f2f2;
}
.report-card h2 {
  font-size:15px;
}
.report-card .report-reason {
  font-size:14px;
  margin:15px 0 5px;
}
.report-card p {
  font-size:13px;
  color:var(--muted);
  line-height:1.9;
}
.report-content {
  padding:13px;
  background:var(--bg);
  border-radius:8px;
  margin:15px 0;
  font-size:13px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:190px;
  overflow:auto;
}
.review-form {
  display:grid;
  gap:10px;
  margin-top:15px;
}
.review-form input {
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  width:100%;
  font-size:13px;
}
.review-buttons {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.review-buttons .button {
  font-size:13px;
}
.button.danger {
  background:#f4f4f4;
  color:#6b6b6b;
  border-color:#e5e5e5;
}
.proposal-list {
  padding-left:18px;
  font-size:14px;
  color:var(--muted);
  line-height:2;
}
.player {
  height:var(--player);
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#fffffff5;
  backdrop-filter:blur(16px);
  border-top:1px solid #e7e7e7;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 32px;
  gap:28px;
  z-index:10;
  box-shadow:0 -5px 22px #28282803;
}
.player-track {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:240px;
  max-width:350px;
}
.player-track .mini-cover {
  width:46px;
  height:46px;
  min-width:46px;
}
.player-track div:last-child {
  min-width:0;
}
.player-track strong {
  display:block;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.player-track span {
  display:block;
  font-size:11px;
  color:#919191;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.player-controls {
  display:flex;
  align-items:center;
  gap:15px;
  max-width:570px;
  flex:1;
  font-size:11px;
  color:#9a9a9a;
}
.play-button {
  width:36px;
  height:36px;
  min-width:36px;
  border-radius:50%;
  background:var(--ink);
  color:white;
  border:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.play-button .icon {
  width:17px;
  height:17px;
}
.player-controls input {
  accent-color:var(--accent);
  min-width:30px;
  flex:1;
  width:100%;
  height:4px;
  cursor:pointer;
}
.player-extra {
  display:flex;
  gap:13px;
  align-items:center;
  color:#a1a1a1;
}
.player-demo {
  font-size:11px;
}
.mobile-navigation {
  display:none;
}
dialog {
  border:1px solid var(--line);
  border-radius:20px;
  max-width:560px;
  width:calc(100% - 32px);
  padding:0;
  color:var(--ink);
  box-shadow:0 25px 80px #22222233;
  max-height:85dvh;
  overflow:auto;
}
dialog::backdrop {
  background:#21212170;
  backdrop-filter:blur(3px);
}
.modal-header {
  padding:23px 25px 17px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
}
.modal-header h2 {
  font-size:18px;
}
.modal-body {
  padding:24px 25px;
}
.modal-body .notice {
  font-size:12px;
}
.form-field {
  display:grid;
  gap:7px;
  margin-bottom:17px;
}
.form-field label {
  font-size:14px;
  font-weight:600;
}
.form-field input,.form-field textarea,.form-field select {
  border:1px solid #e2e2e2;
  border-radius:8px;
  padding:11px 12px;
  background:white;
  width:100%;
  min-width:0;
  font-size:14px;
}
.form-field textarea {
  resize:vertical;
  min-height:120px;
  line-height:1.8;
}
.form-field input[type=file] {
  font-size:12px;
  background:var(--bg);
}
.field-help {
  font-size:12px;
  color:#919191;
}
.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.modal-footer {
  display:flex;
  gap:9px;
  justify-content:flex-end;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:20px;
}
.auth-tabs {
  display:flex;
  gap:9px;
  margin-bottom:20px;
}
.auth-tabs .chip {
  flex:1;
  font-size:14px;
}
.form-error {
  color:#646464;
  font-size:13px;
  white-space:pre-wrap;
  margin-top:10px;
}
.preview-file {
  font-size:12px;
  color:var(--accent-dark);
  margin-top:8px;
}
.about-table {
  border-collapse:collapse;
  width:100%;
  font-size:13px;
  margin-top:15px;
}
.about-table th,.about-table td {
  text-align:left;
  border-bottom:1px solid var(--line);
  padding:10px 6px;
  vertical-align:top;
}
.about-table th {
  color:var(--muted);
  font-size:12px;
}
.about-table td:first-child {
  width:110px;
}
.about-intro {
  font-size:14px;
  color:var(--muted);
  line-height:1.9;
}
.about-note {
  font-size:12px;
  color:var(--muted);
  margin-top:16px;
  line-height:1.9;
}
#toast {
  position:fixed;
  left:50%;
  transform:translate(-50%,15px);
  bottom:110px;
  max-width:calc(100% - 30px);
  padding:12px 20px;
  border-radius:11px;
  background:var(--ink);
  color:white;
  font-size:14px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  z-index:30;
  box-shadow:0 5px 20px #1f1f1f22;
}
#toast.visible {
  opacity:1;
  transform:translate(-50%,0);
}
.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(min-width:1500px) {
  .content-layout {
    padding-top:40px;
    gap:38px;
  }
  .topbar {
    padding-left:calc((100vw - var(--sidebar) - 1072px)/2);
  }
}
@media(max-width:1200px) {
  :root {
    --sidebar:210px;
  }
  .sidebar {
    padding-left:16px;
    padding-right:16px;
  }
  .content-layout {
    grid-template-columns:minmax(0,1fr) 248px;
    padding:28px;
    gap:24px;
  }
  .topbar {
    padding:0 28px;
  }
  .attachments {
    gap:12px;
  }
  .player-track {
    min-width:210px;
  }
  .player-extra {
    display:none;
  }
  .rail-card {
    padding:17px;
  }
  .composer-hint {
    display:none;
  }
}
@media(max-width:1000px) {
  :root {
    --sidebar:195px;
  }
  .content-layout {
    grid-template-columns:minmax(0,1fr);
    max-width:780px;
    padding:28px 30px;
  }
  #right-rail {
    display:none;
  }
  .brand {
    font-size:19px;
  }
  .brand-second {
    font-size:12px;
  }
  .sidebar {
    padding:29px 14px 18px;
  }
  .nav-link {
    padding-left:13px;
  }
  .side-compose {
    font-size:13px;
    padding-left:8px;
    padding-right:8px;
  }
  .topbar-context {
    font-size:12px;
  }
}
@media(max-width:700px) {
  :root {
    --player:75px;
    --sidebar:0px;
  }
  .sidebar {
    display:none;
  }
  .workspace {
    margin:0;
    padding-bottom:calc(var(--player) + 80px);
  }
  .topbar {
    height:70px;
    padding:0 18px;
  }
  .topbar-context {
    display:none;
  }
  .mobile-brand {
    display:flex;
    align-items:center;
    gap:9px;
    font-size:14px;
    letter-spacing:-.4px;
  }
  .mobile-brand .brand-mark {
    min-width:32px;
    height:32px;
    border-radius:10px;
    font-size:20px;
  }
  .topbar-actions {
    gap:8px;
  }
  .demo-pill {
    display:none;
  }
  .topbar-actions .button {
    font-size:12px;
    padding:6px 9px;
    min-height:34px;
  }
  .content-layout {
    padding:24px 16px;
    gap:0;
  }
  .page-heading {
    margin-bottom:19px;
  }
  .page-heading h1 {
    font-size:25px;
  }
  .page-heading p {
    font-size:13px;
  }
  .page-heading .button {
    padding:7px 11px;
    font-size:12px;
    min-height:38px;
  }
  .welcome {
    padding:20px;
    margin-bottom:16px;
  }
  .welcome h2 {
    font-size:16px;
  }
  .welcome p {
    font-size:13px;
  }
  .welcome-icon {
    min-width:43px;
    width:43px;
    height:43px;
  }
  .welcome-icon .icon {
    width:23px;
  }
  .composer {
    padding:17px;
  }
  .composer-hint {
    display:none;
  }
  .attachments {
    gap:15px;
  }
  .attachment-button {
    font-size:12px;
  }
  .composer-bottom {
    margin-top:13px;
    padding-top:12px;
  }
  .post {
    padding:20px 18px;
    margin-bottom:14px;
  }
  .post-text {
    font-size:14px;
  }
  .post-category {
    font-size:10px;
    margin-left:4px;
    padding:3px 5px;
  }
  .post-actions {
    gap:20px;
  }
  .post-actions .report-action span:last-child {
    display:none;
  }
  .topic-chips {
    flex-wrap:nowrap;
    overflow-x:auto;
    margin-right:-16px;
    padding-right:16px;
    padding-bottom:5px;
    scrollbar-width:none;
    gap:7px;
  }
  .chip {
    padding:7px 12px;
    font-size:12px;
  }
  .audio-card {
    padding:12px;
  }
  .waveform {
    gap:3px;
  }
  .works-grid {
    gap:15px;
  }
  .work-cover {
    height:140px;
    padding:18px;
  }
  .work-cover h2 {
    font-size:21px;
  }
  .work-body {
    padding:16px;
  }
  .work-meta {
    align-items:flex-start;
    gap:5px;
    flex-wrap:wrap;
  }
  .work-body p {
    font-size:12px;
  }
  .work-buttons .button {
    font-size:12px;
    padding:7px 10px;
    min-height:38px;
  }
  .work-buttons .text-button {
    font-size:12px;
  }
  .player {
    padding:0 16px;
    gap:14px;
  }
  .player-track {
    min-width:0;
    flex:1;
    max-width:210px;
    gap:9px;
  }
  .player-track .mini-cover {
    width:39px;
    height:39px;
    min-width:39px;
  }
  .player-track strong {
    font-size:12px;
  }
  .player-track span {
    font-size:10px;
  }
  .player-controls {
    flex:1;
    gap:8px;
    max-width:210px;
  }
  .player-controls span {
    display:none;
  }
  .player-controls input {
    min-width:40px;
  }
  .player-extra {
    display:none;
  }
  .mobile-navigation {
    position:fixed;
    bottom:var(--player);
    height:61px;
    background:#fffffff5;
    backdrop-filter:blur(10px);
    border-top:1px solid var(--line);
    left:0;
    right:0;
    display:flex;
    justify-content:space-around;
    z-index:9;
  }
  .mobile-navigation a {
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#919191;
    font-size:10px;
    gap:1px;
  }
  .mobile-navigation a.active {
    color:var(--accent);
  }
  .mobile-navigation .icon {
    width:20px;
    height:20px;
  }
  #toast {
    bottom:152px;
    font-size:13px;
  }
  .skip-link {
    left:16px;
  }
  .modal-header {
    padding:18px 20px;
  }
  .modal-body {
    padding:20px;
  }
  .notice {
    font-size:12px;
    padding:11px 13px;
  }
  .form-row {
    grid-template-columns:1fr;
  }
  .profile-content {
    padding:0 22px 22px;
  }
  .comment-nest {
    margin-left:5px;
    padding-left:10px;
  }
}
@media(max-width:380px) {
  .works-grid {
    grid-template-columns:1fr;
  }
  .post-category {
    display:none;
  }
  .attachments {
    gap:10px;
  }
  .attachment-button {
    font-size:11px;
  }
  .mobile-brand strong {
    font-size:12px;
  }
  .content-layout {
    padding-left:12px;
    padding-right:12px;
  }
  .player-controls input {
    display:none;
  }
  .player-controls {
    flex:0;
  }
  .post-actions {
    gap:16px;
  }
}
html {
  scroll-padding-bottom:160px;
}
.post-text,.profile-bio {
  font-size:1rem;
}
.chip,.attachment-button,.post-actions button,.topic-row,.rail-rule p,.rail-work-info strong,.work-body p,.work-buttons .button {
  font-size:.875rem;
}
.work-cover h2 {
  line-height:1.4;
  margin-bottom:18px;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.work-cover .cover-type {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.work-cover .cover-number {
  bottom:9px;
  right:18px;
}
@media(max-width:380px) {
  .topic-chips {
    margin-right:-12px;
    padding-right:12px;
  }
  .attachments {
    flex-wrap:wrap;
    row-gap:8px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}
.google-intro h3 {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.cover-a {
  background: linear-gradient(135deg, #4a4a4a, #222222);
}
.cover-b {
  background: linear-gradient(135deg, #181818, #616161);
}
.cover-c {
  background: linear-gradient(135deg, #666666, #222222);
}
.cover-d {
  background: linear-gradient(135deg, #444444, #111111);
}
.google-intro p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 22px;
}
.google-auth {
  width: 100%;
  min-height: 52px;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 9px;
}
.google-auth:disabled {
  opacity: 1;
  color: #555555;
  background: #fafafa;
}
.google-auth .demo-pill {
  display: inline-block;
  margin-left: auto;
  flex-shrink: 0;
}
.google-letter {
  font-size: 22px;
  font-weight: 750;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0;
}
.auth-divider::before,.auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}
.demo-auth-details {
  margin-top:24px;
  font-size:14px;
}
.demo-auth-details summary {
  cursor:pointer;
  color:var(--muted);
  padding:10px 0;
}
.demo-auth-details .notice {
  margin-top:12px;
}
.member-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}
.post-image,.post-text,.comment p {
  filter: grayscale(1);
}
@media(max-width:380px) {
  .google-auth {
    flex-wrap: wrap;
    font-size: 13px;
  }
}
/* Registration and guest introduction */
.entry-mode .sidebar,.entry-mode .topbar,.entry-mode #right-rail,.entry-mode #mobile-navigation,.entry-mode #player { display:none; }
.entry-mode .workspace { margin-left:0; padding-bottom:0; }
.entry-mode .content-layout { display:block; max-width:none; padding:0; margin:0; }
.entry-mode #main { width:100%; max-width:none; min-height:100svh; padding:40px 24px; }
.entry-mode .skip-link { left:16px; }
.entry-shell { max-width:960px; margin:32px auto; background:#fff; border:1px solid var(--line); border-radius:24px; overflow:hidden; }
.login-shell { display:grid; grid-template-columns:1fr 1fr; min-height:650px; }
.entry-story { background:#111; color:#fff; padding:44px; display:flex; flex-direction:column; justify-content:space-between; gap:40px; }
.entry-brand { display:flex; align-items:center; gap:12px; font-size:20px; font-weight:750; line-height:1.1; }
.entry-brand small { font-size:13px; font-weight:450; }
.entry-story .brand-mark { border:1px solid #666; }
.entry-story .eyebrow { color:#bbb; margin-bottom:18px; }
.entry-story h1 { font-size:36px; line-height:1.5; letter-spacing:-1.5px; margin-bottom:22px; }
.entry-story p:not(.eyebrow) { color:#c7c7c7; font-size:14px; }
.entry-wave { height:85px; display:flex; justify-content:space-between; align-items:center; gap:9px; }
.entry-wave i { display:block; width:5px; border-radius:8px; height:var(--bar); background:#eee; }
.entry-footnote { font-size:12px!important; }
.entry-content { padding:48px 42px; }
.step-caption { font-size:12px; color:var(--muted); letter-spacing:1px; margin-bottom:20px; }
.entry-content h2 { font-size:30px; letter-spacing:-1px; line-height:1.4; }
.entry-description { margin:16px 0 30px; color:var(--muted); font-size:14px; }
.entry-content .google-auth { justify-content:center; }
.guest-auth { width:100%; min-height:52px; justify-content:center; margin-bottom:10px; }
.entry-note { margin-top:32px; padding-top:24px; border-top:1px solid var(--line); font-size:13px; }
.entry-note p { color:var(--muted); margin-top:8px; }
.entry-status { color:var(--muted); font-size:11px; margin-top:26px; }
.onboarding-shell { max-width:860px; margin:0 auto 30px; }
.onboarding-header { margin:36px 0 24px; display:flex; gap:20px; justify-content:space-between; align-items:flex-start; }
.onboarding-header .step-caption { margin-bottom:10px; }
.onboarding-header p:not(.step-caption) { color:var(--muted); font-size:14px; margin-top:10px; }
.onboarding-header .demo-pill { white-space:nowrap; margin-top:36px; }
.onboarding-card { padding:32px; }
.onboarding-section { padding:28px 0; border-bottom:1px solid var(--line); }
.section-step { display:flex; gap:12px; align-items:center; margin-bottom:24px; }
.section-step > span { font-size:12px; background:#f1f1f1; border-radius:9px; padding:6px 10px; font-weight:650; }
.section-step h2 { font-size:18px; }
.identity-fields { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.identity-fields .form-field { margin-bottom:0; }
.required-label,.optional-label { font-size:11px; font-weight:450; color:var(--muted); margin-left:6px; }
.handle-input { display:flex; align-items:center; background:#fafafa; border:1px solid var(--line); border-radius:10px; }
.handle-input > span { padding-left:13px; color:var(--muted); }
.handle-input input { width:100%; min-width:0; border:0; background:transparent; }
.genre-fieldset { margin:0; padding:0; min-width:0; border:0; }
.genre-fieldset legend { font-size:14px; font-weight:650; margin-bottom:6px; }
.genre-heading { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:12px; color:var(--muted); margin:22px 0 12px; }
.genre-count { color:#111; font-weight:650; }
.genre-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.genre-option { display:flex; align-items:center; gap:12px; min-height:70px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; cursor:pointer; background:#fff; }
.genre-option input { width:16px; height:16px; flex-shrink:0; accent-color:#111; }
.genre-option strong { display:block; font-size:14px; font-weight:550; }
.genre-option small { display:block; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.genre-option:has(input:checked) { border-color:#111; background:#f2f2f2; box-shadow:inset 0 0 0 1px #111; }
.genre-option:has(input:disabled) { opacity:.65; cursor:not-allowed; }
.genre-option:has(input:focus-visible) { outline:3px solid #737373; outline-offset:2px; }
.onboarding-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:24px 0 14px; }
.onboarding-footer .button { min-height:46px; }
.profile-genres { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.genre-profile-chip { font-size:12px; padding:4px 10px; border:1px solid var(--line); border-radius:20px; background:#fafafa; }
@media(max-width:700px) {
  .entry-mode #main { padding:20px 14px; }
  .entry-shell { margin:0 auto; border-radius:18px; }
  .login-shell { grid-template-columns:1fr; }
  .entry-story { padding:28px; gap:22px; }
  .entry-story h1 { font-size:28px; margin-bottom:10px; }
  .entry-story h1 br { display:none; }
  .entry-story .eyebrow { margin-bottom:10px; }
  .entry-wave { height:40px; }
  .entry-footnote { display:none; }
  .entry-content { padding:28px; }
  .entry-content h2 { font-size:26px; }
  .onboarding-shell > .entry-brand { margin:8px 2px; }
  .onboarding-header { gap:10px; margin:28px 0 20px; }
  .onboarding-header h1 { font-size:23px; }
  .onboarding-card { padding:20px; }
  .identity-fields { grid-template-columns:1fr; gap:20px; }
  .section-step h2 { font-size:16px; }
  .genre-option { padding:10px; gap:8px; }
  .genre-option strong { font-size:12px; }
}
@media(max-width:380px) {
  .genre-grid { grid-template-columns:1fr; }
  .onboarding-card { padding:16px; }
  .onboarding-header { flex-direction:column; }
  .onboarding-header .demo-pill { margin-top:0; }
  .entry-content,.entry-story { padding:24px; }
}
.avatar img { width:100%; height:100%; object-fit:cover; border-radius:inherit; filter:grayscale(1); display:block; }
.own-avatar { display:flex; flex-direction:column; align-items:center; gap:7px; border:0; padding:0; background:transparent; }
.own-avatar > span:last-child { font-size:12px; color:var(--muted); }
.avatar-preview { display:flex; justify-content:center; margin:24px 0; }
.avatar-preview .avatar { width:112px; height:112px; font-size:32px; }
.profile-top { gap:16px; }

/* Viblic: compact monochrome rail; five sections plus own avatar. */
:root { --sidebar:88px; }
.sidebar { width:var(--sidebar);padding:24px 14px 18px;align-items:center; }
.brand { margin:0 0 30px;gap:0; }
.brand-mark { letter-spacing:-1px;padding:0;min-width:40px;font-size:27px; }
#navigation { width:100%;gap:16px; }
.nav-link { position:relative;justify-content:center;width:60px;height:56px;min-height:56px;padding:12px;border-radius:15px;color:var(--ink); }
.nav-link .icon { width:27px;height:27px;stroke-width:1.85; }
.nav-link .nav-caption { position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap; }
.nav-link.active .icon-home path { fill:currentColor; }
.nav-link.active .icon-heart { fill:var(--accent-soft); }
.nav-badge { position:absolute;right:1px;top:3px;background:var(--ink);color:white;border:2px solid white;border-radius:20px;min-width:21px;height:21px;padding:0 4px;display:flex;align-items:center;justify-content:center;font-size:10px;line-height:1;font-weight:700; }
.side-compose { width:46px;min-height:46px;padding:10px;margin-top:28px;border-radius:50%;box-shadow:none; }
.sidebar-bottom { margin-top:auto;padding:20px 0 14px; }
#sidebar-profile { width:100%;display:flex;justify-content:center; }
.profile-nav { display:inline-flex;align-items:center;justify-content:center;border-radius:50%;padding:4px; }
.profile-nav.active { outline:2px solid var(--ink);outline-offset:1px; }
.profile-nav .avatar { width:35px;height:35px;min-width:35px; }
.social-wide .content-layout { grid-template-columns:minmax(0,1fr);max-width:1120px; }
.social-wide #right-rail { display:none; }
.profile-social-stats { display:flex;gap:28px;margin:18px 0;align-items:center;flex-wrap:wrap; }
.profile-social-stats button,.profile-social-stats>span { background:none;border:0;padding:0;font-size:13px;display:flex;gap:6px;align-items:baseline; }
.profile-social-stats strong { font-size:19px;color:var(--ink); }
.profile-social-stats button:hover { text-decoration:underline;text-underline-offset:4px; }
.profile-social-actions { display:flex;gap:10px;margin:18px 0 12px; }
.profile-social-actions .button { min-width:120px; }
.social-content-note { margin:18px 0; }
.social-avatar { color:var(--ink);background:var(--accent-soft);flex-shrink:0;overflow:hidden; }
.social-avatar img { width:100%;height:100%;object-fit:cover;filter:grayscale(1); }
.member-search-panel { padding:22px;margin-top:26px; }
.member-search-panel>h2 { margin-bottom:6px; }
.member-search-form { display:flex;gap:10px;margin:16px 0; }
.member-search-form input { min-width:0;flex:1;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font-size:14px; }
.member-card { width:100%;display:flex;text-align:left;align-items:center;gap:12px;background:none;border:0;border-bottom:1px solid var(--line);padding:16px 8px; }
.member-card:hover { background:var(--bg); }
.member-card>span:last-of-type { flex:1;min-width:0; }
.member-card strong,.member-card small { display:block;overflow-wrap:anywhere; }
.member-card strong { font-size:14px; }
.member-card small { font-size:12px;color:var(--muted); }
.social-error { padding:20px;color:var(--muted);font-size:14px;overflow-wrap:anywhere; }
.social-error .button { display:flex;width:max-content;margin-top:14px; }
.social-loading { padding:20px;font-size:13px; }
.social-more { margin:20px auto;display:flex; }
.message-layout { display:grid;grid-template-columns:240px minmax(0,1fr);overflow:hidden;height:min(690px,calc(100svh - 265px));min-height:390px; }
.conversation-column { min-width:0;overflow:auto;border-right:1px solid var(--line); }
.conversation-column>h2 { font-size:14px;padding:22px 20px 14px; }
.conversation-row { display:flex;gap:10px;align-items:center;width:100%;text-align:left;padding:16px 18px;border:0;background:none; }
.conversation-row:hover,.conversation-row.active { background:var(--accent-soft); }
.conversation-preview { min-width:0;flex:1; }
.conversation-preview strong { display:block;font-size:13px; }
.conversation-preview small { display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--muted);margin-top:4px; }
.unread-count { background:var(--ink);color:white;border-radius:20px;min-width:21px;padding:2px 6px;line-height:1.4;text-align:center;font-size:10px; }
.message-pane { display:flex;flex-direction:column;min-width:0;min-height:0; }
.message-pane>.empty { margin:auto; }
.message-empty-icon .icon { width:42px;height:42px;margin-bottom:12px;color:var(--ink); }
.message-header { min-height:76px;padding:14px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px; }
.message-header>div { min-width:0;flex:1; }
.message-header strong { display:block;font-size:14px;overflow-wrap:anywhere; }
.message-header small { display:block;font-size:12px;color:var(--muted); }
.message-header>.icon-button:first-child { display:none; }
.message-history { flex:1;min-height:100px;overflow:auto;overscroll-behavior:contain;padding:20px;display:flex;flex-direction:column;gap:16px; }
.message-line { max-width:85%;display:flex;flex-direction:column;align-items:flex-start;align-self:flex-start;gap:4px; }
.message-line.mine { align-self:flex-end;align-items:flex-end; }
.message-bubble { font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:14px 14px 14px 3px;background:var(--accent-soft);padding:10px 14px; }
.message-line.mine .message-bubble { background:var(--ink);color:white;border-radius:14px 14px 3px 14px; }
.message-line time { color:var(--muted);font-size:10px;padding:0 3px; }
.message-compose { display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px;padding:16px 20px;border-top:1px solid var(--line); }
.message-compose textarea { min-width:0;resize:none;max-height:150px;border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:10px 12px;font-size:14px; }
.message-compose>.button { align-self:start;padding:12px;width:46px;height:46px;border-radius:50%; }
.message-compose .form-error,.message-save-note { grid-column:1/-1; }
.message-compose .form-error:empty { display:none; }
.message-save-note { font-size:10px; }
.older-messages { flex-shrink:0;align-self:center;padding:6px;margin-bottom:10px; }
.notification-row { position:relative;display:flex;gap:14px;align-items:center;width:100%;text-align:left;padding:20px;border:0;border-bottom:1px solid var(--line);background:transparent; }
.notification-row:last-child { border-bottom:0; }
.notification-row.unread { background:#f8f8f8; }
.notification-row:hover { background:var(--accent-soft); }
.notification-row>span:nth-child(2) { flex:1;min-width:0;font-size:14px;overflow-wrap:anywhere; }
.notification-row small { display:block;font-size:11px;color:var(--muted);margin-top:3px; }
.notification-row>.icon { width:22px;height:22px;flex-shrink:0; }
.notification-dot { width:7px;height:7px;border-radius:50%;background:var(--ink);position:absolute;right:13px;top:14px; }
.work-like { flex:0 0 auto!important;min-width:64px; }
.work-like.liked .icon { fill:var(--ink); }
.messages-view .content-layout { height:calc(100dvh - 85px - var(--player));grid-template-rows:minmax(0,1fr); }
.messages-view main { display:flex;flex-direction:column;min-height:0; }
.messages-view .page-heading,.messages-view main>.notice { flex-shrink:0; }
.messages-view .message-layout { height:auto;min-height:0;flex:1;grid-template-rows:minmax(0,1fr); }
.messages-view .message-history { min-height:0; }
.message-header,.message-compose { flex-shrink:0; }
@media(max-width:850px) {
 .message-layout { grid-template-columns:1fr;min-height:380px; }
 .message-layout .message-pane { display:none; }
 .message-layout.conversation-open .message-pane { display:flex; }
 .message-layout.conversation-open .conversation-column { display:none; }
 .message-header>.icon-button:first-child { display:inline-flex; }
 .conversation-column { border-right:0; }
}
@media(max-width:700px) {
 :root { --sidebar:0px;--mobile-nav:calc(64px + env(safe-area-inset-bottom,0px)); }
 .topbar { display:flex;height:64px;padding:0 16px; }
 .topbar-context { display:none; }
 .mobile-brand { display:flex;align-items:center;gap:8px;font-size:18px; }
 .mobile-brand .brand-mark { min-width:31px;height:31px;font-size:21px;border-radius:10px; }
 .topbar-actions { gap:6px; }
 .topbar-actions>.demo-pill { display:none; }
 .mobile-navigation { bottom:0;height:var(--mobile-nav);padding-bottom:env(safe-area-inset-bottom,0px); }
 .player { bottom:var(--mobile-nav); }
 .workspace { padding-bottom:calc(var(--player) + var(--mobile-nav) + 25px); }
 #toast { bottom:calc(var(--player) + var(--mobile-nav) + 12px); }
 .mobile-navigation>a { position:relative;min-width:0;flex:1; }
 .mobile-navigation .nav-caption { display:none; }
 .mobile-navigation .icon { width:22px;height:22px; }
 .mobile-navigation .nav-badge { right:calc(50% - 22px);top:4px;min-width:17px;height:17px;font-size:9px;border-width:1px; }
 .mobile-navigation .profile-nav { border-radius:0;padding:0; }
 .mobile-navigation .profile-nav .avatar { min-width:29px;width:29px;height:29px;font-size:12px; }
 .mobile-navigation .profile-nav.active { outline:none; }
 .mobile-navigation .profile-nav.active .avatar { outline:2px solid var(--ink);outline-offset:2px; }
 .message-layout { height:calc(100svh - 325px);min-height:320px; }
 .message-header { padding:10px 12px;gap:8px;min-height:66px; }
 .message-history { padding:16px; }
 .message-compose { padding:12px; }
 .member-search-panel { padding:16px; }
 .profile-social-stats { gap:18px; }
 .profile-social-stats strong { font-size:17px; }
 .profile-social-actions .button { min-width:100px; }
 .notification-row { gap:10px;padding:16px 14px; }
 .notification-row>span:nth-child(2) { font-size:13px; }
 .works-grid { grid-template-columns:1fr; }
 .social-wide .content-layout { padding:20px 14px; }
 .messages-view .content-layout { height:calc(100dvh - 64px - var(--mobile-nav) - var(--player));padding:14px; }
 .messages-view .page-heading { margin-bottom:12px; }
 .messages-view .page-heading p { display:none; }
 .messages-view main>.notice { font-size:11px;line-height:1.6;padding:10px;margin-bottom:12px; }
}

/* Copper brand mark is the user's chosen exception to the monochrome UI. */
.brand-mark { --brand-size:41px;width:var(--brand-size);min-width:var(--brand-size);max-width:var(--brand-size);height:var(--brand-size);flex:0 0 var(--brand-size);aspect-ratio:1;overflow:hidden;background:#000; }
.brand-mark img { display:block;width:100%;height:100%;object-fit:contain; }
.sidebar>.brand { width:41px;flex-shrink:0; }
@media(max-width:700px) {
 .mobile-brand .brand-mark { --brand-size:31px; }
}
.entry-story .brand-mark { border:0; }
/***** Installed web app: keep controls below the system status bar. *****/
@media(display-mode:standalone) {
 :root { --app-top-inset:env(safe-area-inset-top,0px); }
 .workspace { padding-top:var(--app-top-inset); }
 .sidebar { top:var(--app-top-inset); }
 .entry-mode #main { padding-top:calc(40px + var(--app-top-inset)); }
 .entry-mode .workspace { padding-top:0; }
 .messages-view .content-layout { height:calc(100dvh - var(--app-top-inset) - 85px - var(--player)); }
 @media(max-width:700px) {
  .messages-view .content-layout { height:calc(100dvh - var(--app-top-inset) - 64px - var(--mobile-nav) - var(--player)); }
 }
}

/* Closing the player also releases the space reserved for it on every page. */
body.player-closed { --player:0px; }
body.player-closed .player { display:none; }
.player { padding-right:76px; }
.player-close { position:absolute;top:4px;right:4px;width:44px;height:44px;min-width:44px;color:var(--muted); }
.player-close .icon { width:18px;height:18px; }
@media(max-width:700px) {
 .player { padding-right:56px; }
}

.order-controls { display:flex;align-items:center;gap:12px; }
.order-controls .selected { color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:5px; }
.feed-title { flex-wrap:wrap;gap:10px; }
.recommend-reason { font-size:11px;color:var(--muted);margin:12px 0; }
.preference-toggle { display:flex;align-items:center;gap:10px;font-weight:600;margin-bottom:15px; }
.preference-toggle input { accent-color:var(--ink); }
.comment-form { flex-wrap:wrap; }
.comment-form>input[name="text"] { flex:1;min-width:100px; }
.comment-time { flex:0 0 100%;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:12px; }
.comment-time input { width:75px;min-width:0;border:1px solid var(--line);border-radius:7px;padding:6px; }
.comment-time .field-help { flex-basis:100%; }
.comment-form .form-error { flex-basis:100%; }
.timestamp-link { display:inline;padding:3px 7px;border:1px solid var(--line);border-radius:6px;background:var(--accent-soft);color:var(--ink);font-size:12px;font-weight:600; }
.poll-editor { border:1px solid var(--line);border-radius:12px;padding:14px;margin:18px 0; }
.poll-editor summary { cursor:pointer;font-weight:600; }
.poll-editor[open] summary { margin-bottom:16px; }
.poll-card { margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px; }
.poll-card h3 { font-size:14px;margin:0 0 12px; }
.poll-choice { margin-bottom:10px; }
.poll-choice .audio-card { margin:10px 0 6px; }
.poll-option { width:100%;display:flex;justify-content:space-between;gap:12px;align-items:center;text-align:left;padding:12px;border:1px solid var(--line);border-radius:9px;background:white;font-size:13px; }
.poll-option span:first-child { min-width:0;overflow-wrap:anywhere; }
.poll-option span:last-child { flex-shrink:0;font-size:11px; }
.poll-option.voted { border-color:var(--ink);background:var(--accent-soft);font-weight:600; }
@media(max-width:700px) {
 .order-controls { gap:10px; }
 .feed-title h2 { font-size:16px; }
 .feed-title>span { font-size:10px; }
 .poll-card { padding:12px; }
 .comment-time { gap:6px; }
}

.poll-editor [hidden] { display:none; }

/* Visible only while pulling or fetching; the music/player navigation stays fixed. */
.feed-view { overscroll-behavior-y:contain; }
.pull-refresh { height:var(--pull-height,0px);overflow:hidden;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:12px; }
.pull-refresh[aria-hidden="true"] { visibility:hidden; }
.refresh-spinner { display:block;width:20px;height:20px;border:2px solid var(--line);border-top-color:var(--ink);border-radius:50%; }
.pull-refresh[data-phase="loading"] .refresh-spinner { animation:refresh-spin .7s linear infinite; }
.pull-refresh[data-phase="armed"] .refresh-spinner { border-color:var(--ink); }
@keyframes refresh-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .pull-refresh[data-phase="loading"] .refresh-spinner { animation:none; } }

body:not(.feed-view) .pull-refresh { display:none; }

/* Independent, verified administrator session; no member navigation is reused. */
.admin-page { display:block; }
.admin-top { display:flex;align-items:center;gap:14px;padding:16px 24px;background:var(--surface);border-bottom:1px solid var(--line); }
.admin-top img { display:block;border-radius:10px; }
.admin-top>button { margin-left:auto; }
.admin-shell { max-width:1100px;margin:0 auto;padding:32px 20px 70px; }
.admin-login { max-width:450px;margin:30px auto;padding:28px; }
.admin-login form { margin:24px 0; }
.admin-tabs { display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px; }
.admin-stats { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px; }
.admin-stats .card { padding:22px; }
.admin-stats strong { display:block;font-size:30px; }
.admin-stats span { font-size:13px;color:var(--muted); }
.admin-note,.admin-member { padding:24px;margin:16px 0;overflow-wrap:anywhere; }
.admin-note p,.admin-member p { margin:12px 0; }
.admin-pages { display:flex;justify-content:center;align-items:center;gap:14px;margin:20px 0; }
.admin-page audio { max-width:100%; }
@media(max-width:700px) { .admin-stats {grid-template-columns:repeat(2,minmax(0,1fr));}.admin-top {padding:12px;gap:10px;}.admin-top strong {font-size:14px;}.admin-shell {padding:24px 16px;} }
.member-inline { display:flex;align-items:center;gap:10px;min-width:0;text-align:left;border:0;background:none;padding:0;cursor:pointer; }
.member-inline>span:last-child { display:flex;flex-direction:column;min-width:0; }
.member-inline strong,.member-inline small { overflow-wrap:anywhere; }
.member-inline small { color:var(--muted);font-size:12px; }
.cloud-card .post-header>small { margin-left:auto;white-space:nowrap;font-size:11px;color:var(--muted); }
.cloud-card .post-text { white-space:pre-wrap;overflow-wrap:anywhere; }
.cloud-card .post-image { max-width:100%;height:auto; }
#member-published { margin-top:24px; }
#member-published>.cloud-card { margin-top:16px; }
.cloud-progress { overflow-wrap:anywhere; }
@media(max-width:420px) { .cloud-card .post-header { flex-wrap:wrap;gap:8px; } .cloud-card .post-header>small { white-space:normal; } }

/* Member settings and balanced content footer. */
.post-actions { justify-content:space-between;flex-wrap:nowrap;gap:8px; }
.post-actions-left,.post-actions-right { display:flex;align-items:center;gap:16px;min-width:0; }
.post-actions-right { margin-left:auto;flex:none; }
.post-actions button { min-width:36px;min-height:44px;justify-content:center; }
.post-actions .saved { color:var(--ink); }
.post-actions .saved svg { fill:currentColor; }
.settings-layout { display:grid;grid-template-columns:235px minmax(0,1fr);gap:24px;align-items:start; }
.settings-nav { padding:8px;position:sticky;top:96px; }
.settings-link { display:flex;align-items:center;gap:12px;padding:16px 12px;color:var(--ink);text-decoration:none;border-radius:9px; }
.settings-link.selected,.settings-link:hover { background:var(--accent-soft); }
.settings-link .icon-next { margin-left:auto;width:16px; }
.settings-panel { min-width:0; }
.settings-panel>div>h2 { margin:0 0 20px; }
.settings-box { padding:22px;margin-bottom:20px; }
.settings-box p { overflow-wrap:anywhere; }
.settings-back { display:none; }
.settings-controls { display:flex;gap:12px;flex-wrap:wrap;margin:18px 0; }
.settings-tabs { display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px; }
.settings-tabs a { text-decoration:none; }
.settings-toggle { display:flex;gap:18px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);cursor:pointer; }
.settings-toggle span { flex:1;min-width:0; }
.settings-toggle small,.settings-person-name small { display:block;color:var(--muted);font-size:12px;margin-top:6px; }
.settings-toggle input { width:22px;height:22px;flex:none;accent-color:var(--ink); }
.settings-person { display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:16px 0;border-bottom:1px solid var(--line); }
.settings-person .member-inline { flex:1;min-width:120px; }
.settings-person-name { overflow-wrap:anywhere;min-width:0; }
.settings-person-controls { display:flex;gap:10px;flex-wrap:wrap;margin-top:8px; }
.settings-empty { padding:20px;color:var(--muted); }
.settings-search { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line); }
.settings-search>a { display:flex;gap:10px;overflow-wrap:anywhere;min-width:0;color:var(--ink); }
.activity-comment { padding:20px;margin-bottom:16px;overflow-wrap:anywhere; }
.message-compose[hidden] { display:none; }
@media(max-width:900px) {
 .settings-layout { grid-template-columns:200px minmax(0,1fr);gap:16px; }
}
@media(max-width:700px) {
 .settings-layout { display:block; }
 .settings-nav { position:static; }
 .settings-panel { display:none; }
 .settings-layout.section-open .settings-nav { display:none; }
 .settings-layout.section-open .settings-panel { display:block; }
 .settings-back { display:flex;align-items:center;gap:8px;margin:0 0 24px; }
 .settings-box { padding:16px; }
 .post-actions-left { gap:8px; }
 .post-actions-right { gap:4px; }
 .post-actions button { font-size:11px; }
}
.setup-page { padding:24px;margin:0; }
.setup-sheet { max-width:800px;margin:24px auto;padding:24px;background:#fff;border:1px solid var(--line);border-radius:16px; }
.setup-sheet h1 { margin:24px 0; }
.setup-sheet p,.setup-sheet li { line-height:1.8; }
.setup-sheet a { color:var(--ink); }
.setup-sheet details { margin-top:24px; }
.setup-sheet pre { white-space:pre;overflow:auto;max-height:60vh;font-size:12px;padding:16px;background:#f5f5f5; }
