@import url("./tokens.css");
:root {
  font-family: var(--font-ui);
  color: var(--ink);
  font-size: var(--font-size-body);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--line);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.48;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--red-pale);
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--red-pale);
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: var(--font-size-h1);
  letter-spacing: -0.6px;
  line-height: 1.4;
}
h2 {
  font-size: var(--font-size-h2);
  line-height: 1.4;
}
h3 {
  font-size: var(--font-size-h3);
  line-height: 1.5;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
  font-size: var(--font-size-meta);
}
.app-shell {
  max-width: 960px;
  margin: auto;
  background: var(--bg);
  min-height: 100dvh;
  position: relative;
  padding-bottom: 100px;
}
.topbar {
  background: var(--paper);
  padding: var(--space-5) var(--space-5) var(--space-4);
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--bg);
}
.brand-row,
.row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.between {
  justify-content: space-between;
}
.brand {
  font-size: var(--font-size-h1);
  font-weight: 850;
  letter-spacing: -1.1px;
}
.brand i {
  display: inline-block;
  background: var(--red);
  height: 7px;
  width: 7px;
  border-radius: 50%;
  margin-left: 3px;
}
.tagline {
  font-size: var(--font-size-meta);
  color: var(--muted);
  margin-left: var(--space-2);
}
.round-btn {
  height: 36px;
  min-width: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: var(--font-size-h3);
  position: relative;
  background: var(--paper);
}
.dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  border-radius: var(--radius-image);
  color: var(--paper);
  background: var(--red);
  font-size: var(--font-size-micro);
  padding: 1px var(--space-1);
}
.search-row {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.city {
  font-size: var(--font-size-h3);
  font-weight: 700;
  border: 0;
  background: var(--paper);
  max-width: 105px;
}
.search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-pill);
  padding: 0 var(--space-3);
  flex: 1;
}
.search-wrap span {
  font-size: var(--font-size-h1);
  color: var(--muted);
}
.search-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: var(--space-3) var(--space-2);
  font-size: var(--font-size-meta);
  outline: none;
}
.content {
  padding: var(--space-5);
}
.headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.headline small {
  white-space: nowrap;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.quick {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-2);
  text-align: left;
  border: 1px solid transparent;
  min-height: 82px;
}
.quick span {
  display: block;
  font-size: var(--font-size-meta);
  color: var(--muted);
  margin-bottom: var(--space-1);
}
.quick b {
  font-size: var(--font-size-h1);
  line-height: 1.1;
  font-weight: 750;
}
.quick.active {
  background: var(--ink);
  color: var(--paper);
}
.quick.active span {
  color: var(--color-border);
}
.quick:hover {
  border-color: var(--line);
}
.quick .near {
  font-size: var(--font-size-h2);
  font-weight: 400;
}
.alert-banner {
  background: var(--red-pale);
  border: 1px solid var(--red-pale);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-card);
  margin: 0 0 var(--space-6);
}
.alert-banner strong {
  font-size: var(--font-size-meta);
}
.alert-banner p {
  font-size: var(--font-size-meta);
  color: var(--color-neutral);
  margin-top: 3px;
}
.text-btn {
  font-size: var(--font-size-meta);
  white-space: nowrap;
  color: var(--red);
  font-weight: 600;
  padding: var(--space-1);
}
.chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: 2px 0 var(--space-2);
  margin-bottom: var(--space-3);
  scrollbar-width: none;
}
.chip {
  white-space: nowrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-meta);
}
.chip.selected {
  color: var(--red);
  background: var(--red-pale);
  border-color: var(--red-pale);
}
.feed-heading {
  margin: var(--space-3) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.roll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.roll-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  position: relative;
  border: 1px solid transparent;
  min-width: 0;
}
.roll-card:hover {
  border-color: var(--line);
}
.card-title {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  justify-content: space-between;
}
.card-title h3 {
  font-size: var(--font-size-h3);
  overflow-wrap: anywhere;
}
.bookmark {
  color: var(--muted);
  font-size: var(--font-size-h1);
  line-height: 1;
  padding: 0 0 var(--space-1) var(--space-2);
  flex-shrink: 0;
}
.bookmark.on {
  color: var(--red);
}
.when {
  font-size: var(--font-size-meta);
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: var(--space-2) 0 var(--space-4);
}
.tag {
  padding: var(--space-1) var(--space-2);
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-size: var(--font-size-caption);
  line-height: 1.4;
}
.tag.red {
  background: var(--red-pale);
  color: var(--red);
}
.creator-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-1) 0 var(--space-3);
  font-size: var(--font-size-meta);
}
.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: var(--font-size-meta);
  font-weight: 700;
}
.verified {
  color: var(--color-success);
  font-size: var(--font-size-micro);
  margin-left: auto;
}
.unverified {
  color: var(--muted);
  font-size: var(--font-size-micro);
  margin-left: auto;
}
.meta-line {
  border-top: 1px solid var(--bg);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-caption);
  color: var(--muted);
}
.interest-link {
  font-size: var(--font-size-caption);
  padding: 0;
  color: var(--muted);
}
.interest-link.on {
  color: var(--red);
}
.expiry {
  color: var(--red);
  font-size: var(--font-size-caption);
  margin-top: var(--space-2);
}
.card-source {
  font-size: var(--font-size-micro);
  color: var(--muted);
  margin-top: var(--space-2);
}
.demo-badge {
  font-size: var(--font-size-micro);
  color: var(--color-warning);
  margin-right: var(--space-1);
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 960px);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--space-2) var(--space-2)
    max(var(--space-2), env(safe-area-inset-bottom));
  z-index: 10;
  height: 78px;
}
.nav-item {
  flex: 1;
  text-align: center;
  font-size: var(--font-size-caption);
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: var(--space-1);
  max-width: 120px;
}
.nav-item .glyph {
  font-size: var(--font-size-h1);
  line-height: 26px;
  font-weight: 400;
}
.nav-item.active {
  color: var(--ink);
  font-weight: 700;
}
.nav-item.add .glyph {
  width: 40px;
  height: 32px;
  background: var(--red);
  color: var(--paper);
  border-radius: 11px;
  font-size: var(--font-size-display);
  line-height: 30px;
}
.nav-item.add {
  color: var(--red);
}
.page-head {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  background: var(--paper);
  border-bottom: 1px solid var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}
.page-head h1 {
  font-size: var(--font-size-h3);
  letter-spacing: 0;
}
.back {
  font-size: var(--font-size-body);
  color: var(--muted);
  padding: var(--space-2) 0;
  min-width: 48px;
}
.section {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.intro {
  margin: var(--space-1) 0 var(--space-5);
}
.intro h1 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--space-2);
}
.intro p {
  font-size: var(--font-size-meta);
  color: var(--muted);
}
.step-line {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--font-size-caption);
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.step-line .current {
  color: var(--red);
}
.step-line .line {
  height: 1px;
  background: var(--line);
  flex: 1;
  max-width: 45px;
}
.tabs {
  display: flex;
  background: var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-1);
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.tabs button {
  flex: 1;
  border-radius: var(--radius-image);
  padding: var(--space-2) var(--space-1);
  font-size: var(--font-size-meta);
  color: var(--muted);
}
.tabs button.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  font-weight: 650;
}
.field {
  display: block;
  margin-bottom: var(--space-4);
}
.field > span {
  display: block;
  font-size: var(--font-size-meta);
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-image);
  background: var(--paper);
  padding: var(--space-3);
  min-height: 44px;
  font-size: var(--font-size-body);
}
.field textarea {
  min-height: 130px;
  line-height: 1.75;
  resize: vertical;
}
.field .big-text {
  border: 0;
  background: var(--bg);
  min-height: 180px;
  padding: var(--space-4);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-3);
}
.field-grid .wide {
  grid-column: 1/-1;
}
.primary,
.secondary {
  width: 100%;
  border-radius: var(--radius-card);
  min-height: 47px;
  font-weight: 650;
  font-size: var(--font-size-body);
  padding: var(--space-3) var(--space-4);
}
.primary {
  color: var(--paper);
  background: var(--red);
}
.secondary {
  background: var(--bg);
  color: var(--muted);
}
.secondary.dark {
  background: var(--ink);
  color: var(--paper);
}
.action-row {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}
.action-row > * {
  flex: 1;
}
.helper {
  font-size: var(--font-size-meta);
  color: var(--muted);
  margin: var(--space-2) 0;
  line-height: 1.7;
}
.notice {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-image);
  background: var(--line);
  color: var(--color-warning);
  font-size: var(--font-size-meta);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.notice.neutral {
  background: var(--line);
  color: var(--muted);
}
.notice.success {
  background: var(--line);
  color: var(--color-success);
}
.upload {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 180px;
  border: 1.5px dashed var(--line);
  background: var(--paper);
  border-radius: var(--radius-card);
  cursor: pointer;
  gap: var(--space-2);
}
.upload .upload-icon {
  font-size: var(--font-size-display);
  color: var(--muted);
}
.upload input {
  max-width: 230px;
  font-size: var(--font-size-meta);
}
.preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-image);
  object-fit: contain;
  margin: var(--space-3) auto;
  display: block;
}
.form-note {
  font-size: var(--font-size-caption);
  text-align: center;
  color: var(--muted);
  margin: var(--space-3) 0;
}
.checkline {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--font-size-meta);
  line-height: 1.7;
  margin: var(--space-4) 0;
  color: var(--muted);
}
.checkline input {
  accent-color: var(--red);
  margin-top: var(--space-1);
}
.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-2) 0 var(--space-4);
}
.check-group label {
  padding: var(--space-2) var(--space-2);
  background: var(--bg);
  border-radius: 8px;
  font-size: var(--font-size-meta);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.check-group input {
  accent-color: var(--red);
}
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-body);
  font-weight: 700;
}
.section-title .num {
  color: var(--red);
  font-size: var(--font-size-caption);
}
.confidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.confidence b {
  font-size: var(--font-size-h1);
  color: var(--red);
}
.confidence small {
  font-size: var(--font-size-caption);
}
.empty {
  text-align: center;
  padding: 42px var(--space-4);
  background: var(--paper);
  border-radius: var(--radius-card);
}
.empty .symbol {
  font-size: var(--font-size-display);
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.empty h3 {
  margin-bottom: var(--space-2);
}
.empty p {
  font-size: var(--font-size-meta);
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.empty button {
  width: auto;
  padding: var(--space-3) var(--space-5);
}
.detail-title {
  font-size: var(--font-size-h1);
}
.detail-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--font-size-body);
  color: var(--muted);
  line-height: 1.9;
}
.detail-data {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: var(--space-4) var(--space-2);
  font-size: var(--font-size-meta);
  line-height: 1.65;
}
.detail-data dt {
  color: var(--muted);
}
.detail-data dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-actions {
  position: sticky;
  bottom: 0;
  padding: var(--space-4);
  background: var(--bg);
  display: flex;
  gap: var(--space-2);
  z-index: 4;
}
.detail-actions .secondary {
  width: 35%;
}
.trust-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  font-size: var(--font-size-meta);
  color: var(--muted);
}
.source-link {
  display: inline-block;
  color: var(--red);
  font-size: var(--font-size-meta);
  margin-top: var(--space-3);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  text-align: center;
  margin: var(--space-5) 0;
}
.stat-grid b {
  font-size: var(--font-size-h1);
  display: block;
}
.stat-grid span {
  font-size: var(--font-size-meta);
  color: var(--muted);
}
.menu-item {
  width: 100%;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--bg);
  display: flex;
  justify-content: space-between;
  text-align: left;
  font-size: var(--font-size-body);
}
.menu-item:last-child {
  border: 0;
}
.inline-error {
  color: var(--red);
  font-size: var(--font-size-meta);
  margin: var(--space-2) 0;
  line-height: 1.6;
  white-space: pre-wrap;
}
.duplicate {
  border: 1px solid var(--color-warning-soft);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin: var(--space-3) 0;
  background: var(--paper) cf5;
}
.duplicate h3 {
  font-size: var(--font-size-body);
  margin-bottom: var(--space-2);
}
.duplicate .dupe-roll {
  padding: var(--space-3);
  background: var(--paper);
  border-radius: var(--radius-image);
  font-size: var(--font-size-meta);
  margin: var(--space-2) 0;
}
.duplicate .dupe-actions {
  display: flex;
  gap: var(--space-3);
  font-size: var(--font-size-meta);
  flex-wrap: wrap;
}
.duplicate .dupe-actions button,
.duplicate .dupe-actions a {
  color: var(--color-warning);
  padding: var(--space-2) 0;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.profile-head .avatar {
  width: 58px;
  height: 58px;
  font-size: var(--font-size-h1);
}
.notification {
  display: block;
  padding: var(--space-4);
  background: var(--paper);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-2);
}
.notification.unread {
  border-left: 3px solid var(--red);
}
.notification p {
  font-size: var(--font-size-meta);
  margin-bottom: var(--space-1);
}
.subtle-link {
  color: var(--muted);
  font-size: var(--font-size-meta);
}
.sticky-submit {
  position: sticky;
  bottom: 0;
  background: rgba(246, 246, 247, 0.98);
  padding: var(--space-3) 0;
  z-index: 4;
}
dialog {
  border: 0;
  border-radius: 22px 22px 0 0;
  position: fixed;
  top: auto;
  bottom: 0;
  max-width: 520px;
  width: 100%;
  padding: var(--space-3) var(--space-6) var(--space-8);
  margin: 0 auto;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.04);
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(17, 17, 17, 0.36);
}
.handle {
  width: 38px;
  height: 4px;
  border-radius: 3px;
  background: var(--line);
  margin: 0 auto var(--space-5);
}
.sheet-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}
.sheet-title button {
  font-size: var(--font-size-h1);
  color: var(--muted);
}
.entry {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  background: var(--bg);
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-card);
  margin-top: var(--space-3);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.entry .entry-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: var(--font-size-h1);
}
.entry strong {
  font-size: var(--font-size-h3);
}
.entry p {
  font-size: var(--font-size-meta);
  color: var(--muted);
  margin-top: var(--space-1);
}
.entry .arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--font-size-h1);
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-card);
  z-index: 100;
  font-size: var(--font-size-meta);
  max-width: 90%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
#toast.show {
  opacity: 1;
}
.load {
  padding: 65px;
  text-align: center;
  color: var(--muted);
}
.footnote {
  text-align: center;
  font-size: var(--font-size-caption);
  color: var(--muted);
  padding: var(--space-6) 0;
}
.district-panel {
  padding: var(--space-2) 0 var(--space-3);
}
.no-bottom {
  padding-bottom: var(--space-2);
}
.compact-content {
  max-width: 650px;
  margin: auto;
}
.saved-state {
  font-size: var(--font-size-caption);
  color: var(--muted);
  margin-top: var(--space-1);
}
.read-notice {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.draft-list a {
  display: block;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  body {
    background: var(--bg);
  }
  .app-shell {
    max-width: 520px;
  }
  .topbar {
    padding: var(--space-4) var(--space-4) var(--space-4);
  }
  .brand {
    font-size: var(--font-size-h1);
  }
  .tagline {
    font-size: var(--font-size-caption);
  }
  .content {
    padding: var(--space-5) var(--space-4);
  }
  .roll-grid {
    grid-template-columns: 1fr;
  }
  .quick-grid {
    gap: var(--space-2);
  }
  .quick {
    padding: var(--space-3) var(--space-3);
    min-height: 78px;
  }
  .quick b {
    font-size: var(--font-size-h1);
  }
  .quick span {
    font-size: var(--font-size-caption);
  }
  .roll-card {
    padding: var(--space-4);
  }
  .headline h1 {
    font-size: var(--font-size-h2);
  }
  .section {
    padding: var(--space-4);
  }
  .page-head {
    padding: 0 var(--space-4);
  }
  .alert-banner {
    padding: var(--space-3);
  }
  .trust-list {
    font-size: var(--font-size-caption);
  }
  .search-row {
    gap: var(--space-2);
  }
  .search-wrap {
    padding: 0 var(--space-2);
  }
  .search-wrap input {
    font-size: var(--font-size-meta);
    padding: var(--space-3) var(--space-1);
  }
  .city {
    font-size: var(--font-size-body);
    max-width: 82px;
  }
  .field-grid {
    gap: 0 var(--space-2);
  }
  .tagline {
    display: none;
  }
  .detail-title {
    font-size: var(--font-size-h1);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.review-block {
  background: var(--paper);
  border-radius: var(--radius-card);
  margin: var(--space-2) 0;
  overflow: hidden;
}
.review-block summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-4) var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.review-block summary::-webkit-details-marker {
  display: none;
}
.review-label {
  font-size: var(--font-size-meta);
  color: var(--muted);
  width: 56px;
  flex-shrink: 0;
  padding-top: 2px;
}
.review-value {
  flex: 1;
  font-size: var(--font-size-meta);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.review-value b {
  font-weight: 600;
}
.review-value small {
  display: block;
}
.review-block .chevron {
  color: var(--muted);
  font-size: var(--font-size-h3);
}
.review-block[open] .chevron {
  transform: rotate(90deg);
}
.review-fields {
  padding: var(--space-4) var(--space-4) 0;
  border-top: 1px solid var(--bg);
}
.review-fields .section {
  padding: 0;
  margin: 0;
}
.review-fields .section-title {
  display: none;
}
.review-help {
  text-align: center;
  font-size: var(--font-size-caption);
  color: var(--muted);
  margin: var(--space-4) 0;
}
.detail-title {
  margin-top: var(--space-4);
}
.sticky-submit > .secondary {
  margin-top: var(--space-2);
  min-height: 38px;
  padding: var(--space-2);
}
/* Creative Network additions retain the existing compact C-end layout. */
.discovery-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: 0 0 var(--space-5);
  gap: var(--space-6);
}
.discovery-tabs a {
  padding: var(--space-3) 2px;
  font-size: var(--font-size-body);
  color: var(--muted);
  position: relative;
  font-weight: 700;
}
.discovery-tabs a.selected {
  color: var(--ink);
  border-bottom: 3px solid var(--red);
}
.discovery-tabs a > span {
  font-size: var(--font-size-micro);
  color: var(--red);
  margin-left: var(--space-1);
  vertical-align: super;
}
.network-intro h1 {
  font-size: var(--font-size-h1);
}
.beta-note {
  padding: var(--space-4) var(--space-4);
  background: var(--red-pale);
  border-radius: var(--radius-card);
  margin: var(--space-4) 0;
}
.beta-note strong {
  font-size: var(--font-size-meta);
  color: var(--red);
}
.beta-note p {
  font-size: var(--font-size-meta);
  color: var(--color-neutral);
  margin-top: var(--space-1);
}
.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.creator-card {
  margin: 0;
  min-width: 0;
}
.creator-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  font-size: var(--font-size-h2);
  overflow: hidden;
}
.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.creator-meta {
  margin: var(--space-4) 0 var(--space-3);
}
.availability {
  font-size: var(--font-size-caption);
  color: var(--muted);
  background: var(--bg);
  padding: var(--space-1) var(--space-2);
  border-radius: 6px;
}
.availability.available {
  color: var(--color-success);
  background: var(--line);
}
.creator-bio {
  font-size: var(--font-size-meta);
  color: var(--muted);
  line-height: 1.8;
}
.creator-card .tags {
  margin-bottom: var(--space-3);
}
.people-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-5) 0;
}
.people-filters input,
.people-filters select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-image);
  padding: var(--space-3);
  font-size: var(--font-size-meta);
  min-width: 0;
}
.people-filters input:first-child {
  flex: 2;
  min-width: 140px;
}
.people-filters input[name="city"] {
  width: 100px;
}
.people-filters select {
  flex: 1;
  min-width: 105px;
}
.profile-cta {
  display: block;
  text-align: center;
  color: var(--red);
  font-size: var(--font-size-meta);
  padding: var(--space-6);
}
.coming-soon {
  background: var(--paper);
  border-radius: var(--radius-pill);
  text-align: center;
  padding: 55px var(--space-5);
}
.coming-label {
  font-size: var(--font-size-caption);
  letter-spacing: 2px;
  color: var(--muted);
}
.coming-soon h2 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: var(--font-size-h2);
}
.coming-soon p {
  font-size: var(--font-size-display);
  color: var(--muted);
  margin: var(--space-2);
}
.coming-soon small {
  display: block;
  line-height: 1.9;
}
.coming-soon a {
  display: block;
  width: 180px;
  margin: var(--space-6) auto 0;
}
.portfolio-link {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--bg);
  font-size: var(--font-size-meta);
}
.portfolio-link span {
  color: var(--red);
}
.developed-section {
  margin-top: var(--space-5);
}
.collection-switch {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
  font-size: var(--font-size-body);
}
.collection-switch a {
  padding: var(--space-3) 0;
  color: var(--muted);
}
.collection-switch a.selected {
  border-bottom: 2px solid var(--red);
  color: var(--ink);
  font-weight: 650;
}
.collection-switch b {
  font-size: var(--font-size-caption);
  color: var(--red);
}
.add-inspiration summary {
  font-size: var(--font-size-meta);
  cursor: pointer;
  color: var(--muted);
}
.add-inspiration form {
  margin-top: var(--space-4);
}
.inspiration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.inspiration-card {
  margin: 0;
  min-width: 0;
}
.inspiration-card h3 {
  margin-top: var(--space-4);
  font-size: var(--font-size-body);
}
.inspiration-card .tags {
  margin: var(--space-3) 0;
}
.inspiration-image {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-image);
  margin-top: var(--space-4);
}
.concept-note {
  border-left: 3px solid var(--red-pale);
  padding-left: var(--space-3);
  color: var(--muted);
  font-size: var(--font-size-meta);
  line-height: 1.8;
  margin: var(--space-3) 0;
}
.roll-type-label {
  font-size: var(--font-size-micro);
  letter-spacing: 0.8px;
  color: var(--color-neutral);
  margin-bottom: var(--space-1);
}
@media (max-width: 640px) {
  .people-grid,
  .inspiration-grid {
    grid-template-columns: 1fr;
  }
  .network-intro h1 {
    font-size: var(--font-size-h2);
  }
  .discovery-tabs {
    gap: var(--space-6);
  }
  .creator-card {
    padding: var(--space-4);
  }
}

/* Reference translation: compact Chinese consumer App, editorial brand details. */
body {
  background: var(--bg);
}
.app-shell {
  max-width: var(--app-width);
  padding-bottom: calc(
    var(--nav-height) + env(safe-area-inset-bottom) + var(--space-5)
  );
}
.app-shell.no-bottom {
  padding-bottom: var(--space-6);
}
h1 {
  font-size: var(--font-size-h1);
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--font-size-h2);
}
h3 {
  font-size: var(--font-size-h3);
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
.grid-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-block;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--red);
}
.brand-word {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand-word b {
  font: 900 40px/0.95 var(--font-display);
  letter-spacing: -0.065em;
}
.brand-word > span {
  font-size: var(--font-size-micro);
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-top: var(--space-2);
}
.contact-sheet {
  width: 76px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
.contact-sheet i {
  aspect-ratio: 1;
  background: var(--line);
}
.contact-sheet .filled {
  background: var(--red);
}
.content {
  padding: var(--space-4);
}
.compact-content {
  max-width: var(--app-width);
}
.topbar {
  padding: calc(var(--space-4) + env(safe-area-inset-top)) var(--space-4)
    var(--space-2);
  background: var(--bg);
  border: 0;
  position: relative;
}
.city-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.city {
  font-size: var(--font-size-h3);
  background: transparent;
  max-width: 120px;
  height: 36px;
}
.round-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 0;
  background: transparent;
  justify-content: center;
}
.search-row {
  display: block;
  margin-top: var(--space-2);
}
.search-wrap {
  background: var(--line);
  border-radius: var(--radius-pill);
  padding: 0 var(--space-3);
  height: 40px;
}
.search-wrap > .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.search-wrap input {
  font-size: var(--font-size-meta);
  padding: var(--space-2);
  height: 40px;
}
.search-wrap .text-btn {
  color: var(--muted);
  font-weight: 400;
}
.home-content {
  padding-top: var(--space-2);
}
.quick-grid {
  display: flex;
  gap: var(--space-2);
  overflow: auto;
  scrollbar-width: none;
  margin-bottom: var(--space-4);
}
.quick {
  padding: var(--space-2) var(--space-3);
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--line);
  white-space: nowrap;
}
.quick span,
.quick b {
  font-size: var(--font-size-caption);
  line-height: 1.3;
  display: inline;
  margin: 0;
  color: inherit;
}
.quick b {
  font-weight: 600;
}
.quick.active {
  background: var(--red-pale);
  color: var(--red);
}
.quick.active span {
  color: inherit;
}
.home-content > .headline {
  margin-bottom: var(--space-3);
  align-items: center;
}
.home-content > .headline h1 {
  font-size: var(--font-size-h2);
}
.home-tools {
  margin: var(--space-4) 0;
}
.home-tools > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: var(--font-size-meta);
  color: var(--muted);
  cursor: pointer;
  padding: var(--space-2) 0;
}
.home-tools > summary::-webkit-details-marker {
  display: none;
}
.home-tools[open] > summary {
  margin-bottom: var(--space-2);
}
.chips {
  gap: var(--space-2);
  margin: 0;
  padding-bottom: var(--space-2);
}
.chip {
  padding: var(--space-2) var(--space-3);
  background: var(--line);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-caption);
}
.chip.selected {
  color: var(--red);
  background: var(--red-pale);
}
.alert-banner {
  border: 0;
  border-radius: var(--radius-card);
  padding: var(--space-3);
  background: var(--paper);
  margin: var(--space-3) 0;
}
.alert-banner p {
  color: var(--muted);
}
.feed-heading {
  margin: var(--space-3) 0;
}
.roll-grid {
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.roll-card {
  border: var(--border);
  padding: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: none;
}
.roll-card:hover {
  border-color: var(--line);
}
.roll-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg);
  isolation: isolate;
}
.roll-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.roll-media img[hidden] {
  display: none;
}
.roll-media .media-fallback[hidden] {
  display: none;
}
.roll-card .roll-media {
  margin: var(--space-2) var(--space-2) 0;
  border-radius: var(--radius-image);
}
.roll-media.archive-cover {
  aspect-ratio: auto;
  height: 188px;
}
.media-fallback {
  position: absolute;
  inset: 0;
  padding: var(--space-5);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--bg);
}
.media-fallback .contact-sheet {
  width: 92px;
  opacity: 0.9;
}
.archive-caption {
  writing-mode: vertical-rl;
  line-height: 1.9;
  font-size: var(--font-size-body);
  letter-spacing: 0.16em;
}
.archive-category {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-5);
  font-size: var(--font-size-micro);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.roll-number {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-4);
  font-family: var(--font-display);
  color: var(--ink);
  animation: number-in var(--motion-image) var(--ease) both;
}
.roll-number > span {
  font-size: var(--font-size-meta);
  letter-spacing: 0.08em;
}
.roll-number b {
  font-weight: 700;
  font-size: var(--font-size-display);
  line-height: 1.1;
}
.has-photo .roll-number {
  color: var(--paper);
  background: rgba(17, 17, 17, 0.4);
  padding: var(--space-2);
  border-radius: var(--radius-image);
}
.card-body {
  padding: var(--space-3);
}
.card-title {
  gap: var(--space-2);
}
.card-title h3 {
  line-height: 1.5;
  font-size: var(--font-size-h3);
  font-weight: 650;
}
.bookmark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
}
.bookmark.on {
  color: var(--red);
}
.bookmark.on .icon {
  fill: var(--red-pale);
}
.roll-meta {
  display: grid;
  gap: var(--space-1);
  margin: var(--space-2) 0;
  font-size: var(--font-size-meta);
  color: var(--muted);
}
.roll-meta span {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  line-height: 1.65;
}
.roll-meta .icon {
  width: 14px;
  height: 14px;
}
.tags {
  gap: var(--space-2);
  margin: var(--space-2) 0 var(--space-3);
}
.tag {
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-caption);
  background: var(--bg);
  color: var(--muted);
}
.tag.red {
  color: var(--ink);
  background: var(--bg);
}
.roll-status {
  font-size: var(--font-size-micro);
  border-radius: var(--radius-pill);
  background: var(--line);
  color: var(--muted);
  padding: var(--space-1) var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.roll-status.is-open {
  background: var(--color-success-soft);
  color: var(--color-success);
}
.roll-status i {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.media-status {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}
.roll-type-label {
  font-size: var(--font-size-micro);
  letter-spacing: 0.06em;
  color: var(--red);
  margin: 0;
}
.creator-line {
  font-size: var(--font-size-caption);
  margin: var(--space-3) 0;
  gap: var(--space-2);
}
.avatar {
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--line);
  border: var(--border);
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.verified {
  color: var(--red);
}
.unverified {
  color: var(--muted);
}
.meta-line {
  border-top: var(--border);
  padding-top: var(--space-2);
  font-size: var(--font-size-caption);
  color: var(--muted);
}
.interest-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-caption);
  color: var(--muted);
  min-height: 32px;
}
.interest-link .icon {
  width: 14px;
  height: 14px;
}
.interest-link.on {
  color: var(--red);
}
.expiry,
.card-source {
  font-size: var(--font-size-micro);
  color: var(--muted);
  margin: 0;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-1);
}
.bottom-nav {
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  width: min(100%, var(--app-width));
  padding: var(--space-2) var(--space-2)
    calc(var(--space-2) + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: var(--border);
  z-index: var(--z-navigation);
}
.nav-item {
  font-size: var(--font-size-micro);
  gap: var(--space-1);
  color: var(--muted);
  min-height: 44px;
  justify-content: center;
}
.nav-item .glyph {
  height: 24px;
  display: grid;
  place-items: center;
}
.nav-item .glyph .icon {
  width: 22px;
  height: 22px;
}
.nav-item.active {
  color: var(--red);
  font-weight: 600;
}
.nav-item.add {
  position: relative;
  gap: 2px;
  color: var(--muted);
}
.nav-item.add .glyph {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: var(--red);
  margin-top: -12px;
}
.nav-item.add .icon {
  width: 24px;
  height: 24px;
}
.page-head {
  height: calc(60px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--space-4) 0;
  background: var(--bg);
  border: 0;
  z-index: var(--z-header);
}
.page-head .back {
  color: var(--ink);
  width: 40px;
  min-width: 40px;
}
.page-head h1 {
  font-size: var(--font-size-h3);
}
.section {
  padding: var(--space-4);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-4);
}
.primary,
.secondary {
  border-radius: var(--radius-button);
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  font-size: var(--font-size-body);
  font-weight: 600;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
}
.primary {
  background: var(--red);
  color: var(--paper);
}
.secondary {
  background: var(--paper);
  border: var(--border);
  color: var(--ink);
}
.field input,
.field textarea,
.field select {
  padding: var(--space-3);
  border: var(--border);
  border-radius: var(--radius-image);
}
.field {
  margin-bottom: var(--space-4);
}
.field > span {
  color: var(--muted);
}
.section-title {
  font-size: var(--font-size-body);
  margin-bottom: var(--space-4);
}
.sticky-submit {
  background: var(--bg);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
}
.tabs {
  background: var(--bg);
  border-radius: var(--radius-image);
}
.tabs button.active {
  color: var(--red);
  box-shadow: none;
}
.empty {
  background: transparent;
  border: 0;
  border-radius: var(--radius-card);
  padding: var(--space-10) var(--space-4);
}
.empty .contact-sheet {
  margin: 0 auto var(--space-6);
  width: 68px;
}
.empty h3 {
  font-size: var(--font-size-h3);
  font-weight: 500;
}
.empty p {
  font-size: var(--font-size-meta);
  line-height: 1.8;
  max-width: 270px;
  margin: var(--space-2) auto var(--space-5);
}
.empty a {
  display: inline-flex;
  width: auto;
}
.publish-page {
  padding: var(--space-4) var(--space-6);
}
.publish-page h1 {
  font-size: var(--font-size-h1);
  margin: var(--space-2) 0 var(--space-10);
}
.entry {
  padding: var(--space-5) var(--space-4);
  gap: var(--space-3);
  background: var(--paper);
  border-radius: var(--radius-card);
  margin-top: var(--space-4);
  min-height: 96px;
}
.entry .entry-icon {
  background: var(--red-pale);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  flex: none;
}
.entry-icon .grid-mark {
  width: 24px;
  height: 24px;
}
.entry-icon .icon {
  width: 24px;
  height: 24px;
}
.entry strong {
  font-size: var(--font-size-body);
}
.entry p {
  font-size: var(--font-size-meta);
  line-height: 1.65;
  color: var(--muted);
}
.entry .entry-arrow {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--muted);
}
.publish-note {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
  font-size: var(--font-size-meta);
  color: var(--muted);
}
.publish-note a {
  padding: var(--space-3);
}
dialog {
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  box-shadow: var(--shadow-soft);
  background: var(--bg);
  max-width: var(--app-width);
  padding: var(--space-4) var(--space-6)
    calc(var(--space-6) + env(safe-area-inset-bottom));
}
.detail-cover {
  height: 36dvh;
  min-height: 260px;
  max-height: 380px;
  aspect-ratio: auto;
}
.detail-cover.archive-cover {
  height: 36dvh;
}
.detail-cover .roll-number {
  left: var(--space-6);
  bottom: var(--space-6);
}
.detail-cover .media-fallback {
  padding: var(--space-6);
}
.detail-cover .contact-sheet {
  margin-top: var(--space-10);
  width: 120px;
}
.detail-cover .archive-caption {
  margin-top: var(--space-10);
}
.detail-cover img {
  animation: photo-in var(--motion-image) var(--ease) both;
}
.detail-topbar {
  position: absolute;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-topbar > a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
}
.detail-topbar .detail-count {
  font-size: var(--font-size-micro);
  color: var(--muted);
}
.detail-body {
  padding: 0 var(--space-4) calc(88px + env(safe-area-inset-bottom));
}
.detail-lead {
  padding: var(--space-4) 0;
  margin-bottom: 0;
  background: transparent;
}
.detail-title {
  font-size: var(--font-size-h2);
  line-height: 1.45;
  margin: 0 0 var(--space-2);
}
.detail-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.detail-data {
  grid-template-columns: 52px 1fr;
  gap: var(--space-2) var(--space-3);
  font-size: var(--font-size-meta);
  margin: var(--space-3) 0;
}
.detail-data dt {
  font-size: var(--font-size-micro);
  letter-spacing: 0.04em;
  line-height: 2;
  color: var(--muted);
}
.detail-data dd {
  line-height: 1.8;
}
.creator-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}
.creator-mini .profile-head {
  gap: var(--space-3);
  min-width: 0;
}
.creator-mini .avatar {
  width: 44px;
  height: 44px;
  font-size: var(--font-size-h3);
}
.creator-mini strong {
  font-size: var(--font-size-body);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.creator-mini small {
  display: block;
  margin-top: var(--space-1);
}
.creator-mini .text-btn {
  font-size: var(--font-size-caption);
}
.verified-mark {
  background: var(--red);
  color: var(--paper);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: inline-grid;
  place-items: center;
}
.verified-mark .icon {
  width: 10px;
  height: 10px;
}
.detail-body > .section {
  padding: var(--space-4) 0;
  border-top: var(--border);
  background: transparent;
  border-radius: 0;
  margin: 0;
}
.detail-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--app-width));
  padding: var(--space-3) var(--space-4)
    calc(var(--space-3) + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: var(--border);
  z-index: var(--z-navigation);
  gap: var(--space-4);
  align-items: center;
}
.detail-actions .primary {
  flex: 1;
  border-radius: var(--radius-pill);
}
.detail-actions .icon-action {
  width: 40px;
  flex: none;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--font-size-micro);
  padding: 0;
}
.detail-actions .icon-action.on {
  color: var(--red);
}
.detail-actions .primary[aria-pressed="true"] {
  animation: signal var(--motion-normal) ease-out;
}
.detail-actions [data-save][aria-pressed="true"] .icon {
  fill: var(--red-pale);
}
.discovery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) var(--space-4) var(--space-3);
}
.discovery-head h1 {
  font-size: var(--font-size-h1);
}
.discovery-content {
  padding-top: 0;
}
.discovery-tabs {
  gap: 0;
  justify-content: space-between;
  margin: 0 0 var(--space-2);
  border-bottom: var(--border);
}
.discovery-tabs a {
  padding: var(--space-3) var(--space-1);
  font-size: var(--font-size-meta);
  font-weight: 400;
  color: var(--muted);
}
.discovery-tabs a.selected {
  border-bottom: 2px solid var(--red);
  color: var(--ink);
  font-weight: 600;
}
.discovery-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: var(--border);
  min-height: 88px;
}
.discovery-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.discovery-row h3 {
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: 1.5;
}
.discovery-row p {
  font-size: var(--font-size-meta);
  color: var(--muted);
  margin-top: var(--space-1);
}
.discovery-row > .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.discovery-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-image);
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--line);
  color: var(--muted);
}
.discovery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.discovery-thumb .grid-mark {
  width: 24px;
  height: 24px;
}
.discovery-row:nth-child(3n + 1) .discovery-thumb {
  background: var(--red-pale);
  color: var(--red);
}
.discovery-row:nth-child(3n + 2) .discovery-thumb {
  background: var(--ink);
  color: var(--paper);
}
.people-grid {
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.creator-card {
  border: var(--border);
  padding: var(--space-4);
}
.creator-card .creator-meta {
  margin: var(--space-3) 0;
}
.profile-cover {
  position: relative;
  height: 232px;
  background: var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
}
.profile-cover > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.cover-words {
  font: var(--font-size-meta)/1.9 var(--font-display);
  letter-spacing: 0.12em;
}
.profile-cover > .grid-mark {
  width: 76px;
  height: 76px;
  color: var(--bg);
}
.creator-profile-header {
  padding: 0 var(--space-4);
}
.creator-profile-header .creator-mini {
  align-items: flex-end;
  padding: 0;
}
.creator-profile-header .profile-head {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: -32px;
  z-index: 1;
}
.creator-profile-header .avatar {
  width: 68px;
  height: 68px;
  border: 3px solid var(--bg);
  font-size: var(--font-size-h1);
}
.creator-profile-header strong {
  font-size: var(--font-size-h2);
}
.creator-profile-header .primary {
  width: auto;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-meta);
  min-height: 32px;
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-8);
}
.profile-content {
  padding-top: var(--space-3);
}
.profile-content > .section {
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.profile-content .stat-grid {
  margin: var(--space-4) 0;
}
.stat-grid b {
  font-size: var(--font-size-h2);
  font-weight: 600;
}
.stat-grid span {
  font-size: var(--font-size-caption);
}
.profile-content .detail-description {
  font-size: var(--font-size-meta);
}
.profile-content .creator-meta {
  margin: var(--space-3) 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.portfolio-tile {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-image);
  background: var(--line);
}
.portfolio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-empty {
  padding: var(--space-6) 0;
  border-top: var(--border);
  color: var(--muted);
  font-size: var(--font-size-meta);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.portfolio-empty .grid-mark {
  width: 28px;
  height: 28px;
  color: var(--line);
}
.film-strip {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-3);
  background: var(--ink);
  color: var(--paper);
  overflow: auto;
  border-block: 6px dotted var(--bg);
}
.film-strip a {
  min-width: 160px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--font-size-meta);
}
.film-strip span {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
}
.splash {
  position: fixed;
  inset: 0;
  z-index: var(--z-dialog);
  width: min(100%, var(--app-width));
  margin: auto;
  background: var(--red);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.splash .brand-logo {
  color: var(--paper);
  flex-direction: column;
  gap: var(--space-4);
}
.splash .grid-mark {
  width: 64px;
  height: 64px;
}
.splash .brand-word b {
  font-size: 52px;
}
.splash .brand-word > span {
  font-size: var(--font-size-meta);
  letter-spacing: 0.35em;
}
.splash-caption {
  position: absolute;
  bottom: calc(var(--space-10) + env(safe-area-inset-bottom));
  text-align: center;
}
.splash-caption p {
  font-size: var(--font-size-h3);
  letter-spacing: 0.12em;
}
.splash-caption small {
  color: inherit;
  font-size: var(--font-size-micro);
  letter-spacing: 0.16em;
  display: block;
  margin-top: var(--space-2);
}
.splash .grid-mark rect {
  animation: grid-in 700ms var(--ease) both;
}
[aria-busy="true"] .grid-mark {
  width: 18px;
  height: 18px;
}
[aria-busy="true"] .grid-mark rect {
  animation: grid-in 800ms ease infinite alternate;
}
[aria-busy="true"] .grid-mark rect:nth-child(3n) {
  animation-delay: 200ms;
}
[aria-busy="true"] .grid-mark rect:nth-child(3n + 1) {
  animation-delay: 400ms;
}
.footnote {
  color: var(--muted);
  font-size: var(--font-size-micro);
  padding: var(--space-6) 0;
}
@keyframes grid-in {
  from {
    opacity: 0.15;
  }
  to {
    opacity: 1;
  }
}
@keyframes number-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes photo-in {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.02);
  }
}
@keyframes signal {
  50% {
    opacity: 0.75;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 700px) {
  .app-shell {
    border-inline: var(--border);
  }
  .bottom-nav {
    border-inline: var(--border);
  }
}
.home-content > .home-tools {
  margin: 0 0 var(--space-2);
}
.home-tools > summary {
  padding: var(--space-1) 0;
}
.home-tools > summary > .icon {
  width: 14px;
  height: 14px;
}
.primary > .grid-mark {
  width: 18px;
  height: 18px;
}
@media (max-width: 380px) {
  .publish-page {
    padding-inline: var(--space-4);
  }
  .entry {
    padding: var(--space-4) var(--space-3);
  }
}
button:disabled {
  cursor: not-allowed;
}
button[aria-busy="true"] {
  cursor: wait;
}
/* Reference logo uses the display optical size; UI text stays in Inter/PingFang. */
.brand-word b {
  font-optical-sizing: none;
  font-variation-settings:
    "opsz" 72,
    "SOFT" 0,
    "WONK" 1;
}
.roll-number {
  font-optical-sizing: auto;
}
