:root {
  color-scheme:dark;
  --bg:#0c1320;
  --field:#0b1627;
  --accent-light:#ffd28d;
  font-family:Inter,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  color:#f1f3f7;
  background:#0c1320;
  line-height:1.7;
  font-synthesis:none;
  --ink:#f1f3f7;
  --muted:#a3aec2;
  --line:#253249;
  --accent:#f6bc61;
  --reaction:#e3a4b3;
  --paper:#121e30;
  --soft:#18263b
}
* {
  box-sizing:border-box
}
body {
  background:radial-gradient(ellipse at 75% 0%,#18243b44,transparent 45%) var(--bg);
  margin:0
}
a {
  color:inherit;
  text-decoration:none
}
button,input,select,textarea {
  font:inherit
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  opacity:.55;
  cursor:wait
}
button,input,textarea,select,a {
  outline-offset:4px
}
:focus-visible {
  outline:3px solid #f6bc61
}
img {
  max-width:100%
}
[hidden] {
  display:none!important
}
h1,h2,h3,p {
  margin:0
}
h1 {
  line-height:1.5;
  letter-spacing:-.04em;
  font-weight:650;
  overflow-wrap:anywhere
}
h2,h3 {
  line-height:1.6
}
p {
  overflow-wrap:anywhere
}
.skip {
  position:fixed;
  top:-80px;
  left:16px;
  background:var(--accent);
  color:#20180d;
  padding:10px;
  z-index:20
}
.skip:focus {
  top:10px
}
.top {
  position:sticky;
  top:0;
  background:#0c1320f5;
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
  z-index:5
}
.top-inner {
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:36px;
  padding:18px 28px
}
.brand {
  font-size:27px;
  font-weight:800;
  letter-spacing:-1.3px;
  white-space:nowrap
}
.brand i {
  font-style:normal;
  color:var(--accent)
}
.brand small {
  font-weight:400;
  font-size:10px;
  letter-spacing:1px;
  margin-left:12px;
  color:var(--muted)
}
.navigation {
  display:flex;
  align-items:center;
  gap:22px;
  margin-left:auto;
  font-size:13px
}
.navigation a {
  padding:7px 0;
  color:var(--muted);
  border-bottom:2px solid transparent
}
.navigation a.active {
  color:var(--accent);
  border-color:var(--accent);
  font-weight:700
}
.account-link {
  font-size:12px
}
.container {
  max-width:1160px;
  margin:auto;
  padding:38px 28px 70px
}
.source-bar {
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  max-width:1160px;
  margin:auto;
  padding:10px 28px 0;
  color:var(--muted);
  font-size:11px
}
.demo-banner {
  padding:12px 16px;
  background:#28231b;
  border:1px solid #6c5839;
  border-radius:8px;
  margin-bottom:24px;
  font-size:12px
}
.eyebrow {
  display:block;
  font-size:10px;
  font-weight:700;
  letter-spacing:2px;
  color:var(--accent);
  text-transform:uppercase
}
.hero {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
  gap:40px;
  align-items:center;
  padding:30px 0 45px;
  border-bottom:1px solid var(--line);
  margin-bottom:32px
}
.hero h1 {
  font-size:clamp(29px,4vw,49px);
  margin:14px 0 18px
}
.hero p {
  font-size:14px;
  color:var(--muted);
  max-width:540px;
  line-height:2
}
.hero-aside {
  border-left:1px solid #33435e;
  padding:16px 0 16px 28px
}
.hero-aside ol {
  margin:0;
  padding-left:22px;
  display:grid;
  gap:14px;
  font-size:13px
}
.hero-aside p {
  font-size:11px;
  margin-top:18px
}
.actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px
}
.button,button {
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--ink);
  border-radius:7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 16px;
  min-height:42px;
  font-weight:600;
  font-size:12px;
  line-height:1.5
}
.button:hover,button:hover {
  border-color:#60718c;
  background:#203049
}
.primary {
  color:#20180d;
  background:var(--accent);
  border-color:var(--accent)
}
.primary:hover {
  background:var(--accent-light);
  color:#20180d
}
.quiet {
  background:transparent
}
.danger {
  color:#ffb4b6;
  border-color:#824448
}
.small {
  padding:7px 11px;
  min-height:36px;
  font-size:11px
}
.page-title {
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-end;
  margin-bottom:25px
}
.page-title h1 {
  font-size:30px;
  margin-top:7px
}
.page-title p {
  color:var(--muted);
  font-size:12px;
  margin-top:9px
}
.section-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin:26px 0 18px
}
.section-title h2 {
  font-size:19px;
  font-weight:600
}
.section-title span {
  font-size:11px;
  color:var(--muted)
}
.tabs {
  display:flex;
  gap:25px;
  border-bottom:1px solid var(--line);
  margin-bottom:25px
}
.tabs a {
  padding:10px 2px 13px;
  font-size:13px;
  color:var(--muted);
  border-bottom:2px solid transparent
}
.tabs a.active {
  color:var(--accent);
  border-color:var(--accent);
  font-weight:700
}
.feed-layout {
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(230px,1fr);
  gap:32px;
  align-items:start
}
.feed {
  display:grid;
  gap:18px
}
.board-thread-list,.board-post-list {
  display:grid;
  gap:14px;
}
.board-thread-card h2 {
  font-size:18px;
  overflow-wrap:anywhere;
}
.board-thread-card h2 a:hover {
  color:var(--accent);
}
.board-excerpt {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  margin:10px 0 16px;
  font-size:13px;
  color:var(--muted);
}
.board-thread-meta,.board-author {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 18px;
  font-size:11px;
  color:var(--muted);
}
.board-thread-meta a,.board-author .author {
  color:var(--ink);
}
.board-thread-meta a {
  overflow-wrap:anywhere;
}
.board-message-body {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:14px;
  line-height:1.9;
  margin:18px 0;
}
.board-message-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.board-root,.board-compose,.board-replies {
  margin-bottom:28px;
}
.board-compose .actions {
  margin-top:14px;
}
.board-form>.primary {
  margin-top:12px;
}
.board-admin-reports {
  margin-top:24px;
}
.board-message:focus {
  outline:2px solid var(--accent);
  outline-offset:3px;
}
.panel,.review,.empty,.auth-card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px;
  min-width:0
}
.panel h2 {
  font-size:19px;
  margin-bottom:15px
}
.aside-note {
  position:sticky;
  top:110px
}
.aside-note h2 {
  font-size:16px
}
.aside-note p {
  color:var(--muted);
  font-size:12px;
  line-height:2;
  margin-top:12px
}
.aside-note a {
  color:var(--accent);
  font-weight:600
}
.review-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px
}
.author {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0
}
.avatar {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  flex:none;
  border-radius:50%;
  background:var(--soft);
  color:var(--accent);
  font-weight:700;
  font-size:14px
}
.author-name {
  font-size:13px;
  font-weight:700;
  overflow-wrap:anywhere
}
.handle {
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:400
}
.review time {
  font-size:10px;
  color:var(--muted);
  white-space:nowrap
}
.review-work {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  background:#18263b;
  border-radius:7px;
  margin-bottom:16px;
  min-width:0
}
.review-work img {
  width:64px;
  height:43px;
  object-fit:cover;
  border-radius:3px;
  flex:none
}
.review-work h3 {
  font-size:12px;
  font-weight:600;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden
}
.review-work small {
  font-size:9px;
  color:var(--muted)
}
.review-body {
  white-space:pre-wrap;
  line-height:2.05;
  font-size:14px;
  overflow-wrap:anywhere
}
.rating {
  color:#f6bc61;
  font-size:13px;
  letter-spacing:2px;
  margin:10px 0
}
.review-meta {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  color:var(--muted);
  font-size:10px;
  margin:14px 0
}
.review-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:18px;
  padding-top:15px;
  border-top:1px solid #253249
}
.react[aria-pressed=true] {
  color:var(--reaction);
  background:#3a2637;
  border-color:#825565
}
.review-actions .report {
  margin-left:auto;
  color:var(--muted);
  font-weight:400
}
.privacy {
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:10px;
  border-radius:4px;
  padding:3px 7px;
  background:#1c293d;
  color:#c1ccdd
}
.privacy.public {
  background:#f6bc6114;
  color:#f6bc61
}
.privacy.hidden {
  background:#322b22;
  color:#ffd28d
}
.empty {
  padding:40px 25px;
  text-align:center
}
.empty h2 {
  font-size:19px
}
.empty p {
  color:var(--muted);
  font-size:12px;
  max-width:440px;
  margin:12px auto 20px;
  line-height:2
}
.empty .button {
  margin:0 auto
}
.search-form {
  display:flex;
  gap:10px;
  align-items:end;
  margin-bottom:25px
}
.search-form label {
  flex:1
}
.search-form input {
  margin-top:8px
}
.field-label,label {
  font-size:12px;
  font-weight:600
}
input,textarea,select {
  display:block;
  width:100%;
  border:1px solid #41526c;
  border-radius:7px;
  background:var(--field);
  color:var(--ink);
  padding:11px 12px;
  min-height:43px;
  font-size:14px
}
input:focus,textarea:focus,select:focus {
  border-color:var(--accent)
}
textarea {
  resize:vertical;
  line-height:1.8
}
label small {
  font-size:10px;
  color:var(--muted);
  font-weight:400
}
.field {
  display:grid;
  gap:8px;
  margin:18px 0
}
.hint {
  font-size:11px;
  color:var(--muted);
  line-height:1.9
}
.search-result {
  color:var(--muted);
  font-size:11px;
  margin-bottom:18px
}
.catalog-display-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px 20px;
  margin:-9px 0 18px;
}
.catalog-display-bar .search-result {
  margin:0;
}
.catalog-image-switch {
  display:flex;
  align-items:center;
  gap:4px;
  margin-left:auto;
}
.catalog-image-switch>span {
  color:var(--muted);
  font-size:11px;
  margin-right:5px;
}
.catalog-image-switch button {
  min-height:36px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--paper);
  color:var(--muted);
  font-size:11px;
}
.catalog-image-switch button[aria-pressed=true] {
  border-color:var(--accent);
  background:#f6bc6114;
  color:var(--accent);
}
.work-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px
}
.work-grid[data-image-mode=portrait] {
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
}
.work-grid[data-image-mode=portrait] .work-card-body {
  padding:10px;
}
.work-grid[data-image-mode=portrait] .work-code {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.work-grid[data-image-mode=portrait] .work-card-body h2 {
  font-size:12px;
  line-height:1.7;
}
.work-grid[data-image-mode=portrait] .work-card-body p {
  margin:8px 0 0;
  line-height:1.6;
}
.work-card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  min-width:0
}
.work-image {
  display:block;
  aspect-ratio:3/2;
  background:#18263b;
  overflow:hidden
}
.work-image img {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block
}
.work-grid[data-image-mode=portrait] .work-image {
  aspect-ratio:2/3;
}
.demo-cover {
  display:grid;
  place-items:center;
  height:100%;
  background:linear-gradient(125deg,#133d62,#94555f);
  color:#f1f3f7;
  font-family:Georgia,serif;
  font-size:38px
}
.work-card-body {
  padding:15px
}
.work-card-body h2 {
  font-size:13px;
  line-height:1.8;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  overflow-wrap:anywhere
}
.work-card-body p {
  font-size:10px;
  color:var(--muted);
  margin:10px 0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.work-card-body .button {
  width:100%;
  margin-top:8px
}
.work-code {
  display:block;
  font-size:9px;
  letter-spacing:1px;
  color:var(--muted);
  margin-bottom:6px;
  overflow-wrap:anywhere
}
.work-preview {
  max-width:960px;
  margin:0 auto 24px;
}
.preview-stage {
  aspect-ratio:16/9;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
  background:#080d16;
}
.preview-stage video,.preview-play {
  display:block;
  width:100%;
  height:100%;
  border:0;
}
.preview-stage video {
  object-fit:contain;
}
.preview-play {
  position:relative;
  padding:0;
  background:#080d16;
}
.preview-play img,.preview-play .demo-cover {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.preview-play-label {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:12px;
  color:var(--ink);
  background:#080d1644;
  text-shadow:0 1px 6px #080d16;
  font-size:13px;
}
.preview-play-label>span {
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  padding-left:4px;
  border:1px solid var(--accent);
  border-radius:50%;
  color:var(--accent);
  background:#0c1320dd;
  font-size:24px;
}
.preview-play:hover .preview-play-label>span {
  color:var(--bg);
  background:var(--accent);
}
.preview-caption {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:6px 16px;
  margin-top:8px;
  font-size:11px;
  color:var(--muted);
}
.preview-caption a {
  color:var(--accent);
}
.preview-unavailable {
  margin-bottom:16px;
}
.work-hero {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:30px;
  margin:22px 0 30px;
  align-items:start
}
.work-hero img {
  display:block;
  width:100%;
  height:auto;
  max-height:500px;
  object-fit:contain
}
.work-description {
  margin-top:16px;
  font-size:13px;
  line-height:1.9;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.work-hero .demo-cover {
  min-height:240px;
  border-radius:10px
}
.work-hero h1 {
  font-size:26px;
  margin:12px 0 16px
}
.tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px
}
.tag {
  font-size:10px;
  border:1px solid var(--line);
  padding:4px 7px;
  border-radius:4px;
  background:var(--paper)
}
.tag:hover {
  border-color:var(--accent)
}
.metadata {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 20px;
  margin:20px 0
}
.metadata>div {
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:8px;
  border-top:1px solid var(--line);
  padding-top:10px
}
.metadata dt {
  font-size:10px;
  color:var(--muted);
  padding-top:4px
}
.metadata dd {
  margin:0;
  font-size:10px;
  min-width:0
}
.work-samples {
  margin:0 0 32px;
}
.work-samples .section-title {
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:0;
}
.sample-controls {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
  margin-left:auto;
}
.sample-gallery {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.sample-tile {
  display:block;
  padding:0;
  cursor:zoom-in;
  min-width:0;
  aspect-ratio:3/2;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
}
.sample-tile img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.work-layout {
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  gap:28px;
  align-items:start
}
.record-panel {
  position:sticky;
  top:115px
}
.record-panel h2 {
  margin:0
}
.record-heading {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px
}
.record-form fieldset {
  border:0;
  padding:0;
  margin:20px 0
}
.record-form legend {
  font-size:12px;
  font-weight:600;
  margin-bottom:10px
}
.visibility-options {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.visibility-options label {
  display:flex;
  gap:7px;
  align-items:center;
  padding:11px 9px;
  border:1px solid #41526c;
  border-radius:7px;
  font-size:12px
}
.visibility-options label:has(input:checked) {
  background:var(--soft);
  border-color:var(--accent)
}
input[type=radio],input[type=checkbox] {
  width:17px;
  height:17px;
  min-height:0;
  flex:none;
  accent-color:var(--accent);
  margin:0
}
.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}
.record-form .primary {
  width:100%;
  margin-top:12px
}
.scope-note {
  border-radius:7px;
  padding:10px 12px;
  font-size:11px;
  line-height:1.9;
  background:#18263b
}
.scope-note.public {
  background:#f6bc6114;
  color:#ffd28d
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
.record-form .star-rating {
  display:flex;
  align-items:center;
  gap:6px;
  margin:6px 0 10px;
}
.star-options {
  display:flex;
  gap:2px;
}
.star-option {
  position:relative;
  display:grid;
  place-items:center;
  width:32px;
  height:44px;
  cursor:pointer;
}
.star-option input {
  position:absolute;
  z-index:1;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
}
.star-option span {
  font-size:32px;
  line-height:1;
  color:#41526c;
}
.star-option:has(input:checked) span,.star-option:has(~ .star-option input:checked) span {
  color:var(--accent);
}
.star-option:has(input:focus-visible) {
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:4px;
}
.rating-value {
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}
.rating-clear {
  width:28px;
  height:32px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:18px;
}
.review-composer {
  position:relative;
}
.review-composer textarea,.review-composer textarea:focus {
  min-height:128px;
  padding:8px 0;
  border:0;
  border-radius:0;
  outline:0;
  box-shadow:none;
  background:transparent;
  caret-color:var(--accent);
  resize:none;
}
.review-composer:has(textarea:placeholder-shown):not(:focus-within)::before {
  content:"";
  position:absolute;
  top:12px;
  left:0;
  height:1.2em;
  border-left:2px solid var(--accent);
  pointer-events:none;
  animation:composer-caret 1.1s steps(1,end) infinite;
}
@keyframes composer-caret {
  50% { opacity:0; }
}
@media(prefers-reduced-motion:reduce) {
  .review-composer:has(textarea:placeholder-shown):not(:focus-within)::before {
    animation:none;
  }
}
.record-form .publish-private {
  width:100%;
  margin-top:8px;
}
.form-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:15px
}
.form-footer button {
  font-size:10px
}
.auth-card {
  max-width:460px;
  margin:24px auto;
  padding:30px
}
.auth-card h1 {
  font-size:27px;
  margin:10px 0
}
.auth-card>p {
  font-size:12px;
  color:var(--muted);
  line-height:2
}
.auth-card .primary {
  width:100%;
  margin-top:14px
}
.auth-card strong { overflow-wrap:anywhere }
.verification-code { letter-spacing:.35em; font-size:24px; font-variant-numeric:tabular-nums }
.password-toggle { margin-top:4px; font-size:12px }
.check-label {
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:12px;
  font-weight:400;
  line-height:1.9;
  margin:20px 0
}
.auth-switch {
  text-align:center;
  font-size:12px;
  margin-top:25px
}
.auth-switch a {
  color:var(--accent);
  text-decoration:underline
}
.gate {
  max-width:520px;
  margin:70px auto
}
.gate .brand {
  display:block;
  margin-bottom:30px
}
.gate h1 {
  font-size:32px
}
.gate .panel {
  margin-top:25px
}
body.age-confirming {
  overflow:hidden;
  padding-bottom:0;
}
.age-preview {
  height:100dvh;
  overflow:hidden;
  pointer-events:none;
  user-select:none;
}
.age-preview-heading h2 {
  font-size:32px;
  letter-spacing:-.04em;
}
dialog.age-gate {
  width:min(520px,calc(100% - 36px));
  max-width:520px;
  max-height:calc(100dvh - 36px);
  margin:auto;
  padding:32px;
  border:1px solid #40506b;
  border-radius:20px;
  color:var(--ink);
  background:rgba(18,30,48,.95);
  box-shadow:0 24px 90px #0008;
  overflow-y:auto;
}
.age-gate::backdrop {
  background:rgba(4,9,17,.58);
  backdrop-filter:blur(2px);
}
.age-gate .gate {
  max-width:none;
  margin:0;
}
.age-gate .gate .brand {
  margin-bottom:20px;
}
.age-gate .gate .panel {
  padding:20px;
  margin-top:20px;
  background:#0c132099;
}
@media(max-width:640px) {
  dialog.age-gate {padding:24px 20px;}
  .age-gate .gate h1 {font-size:26px;}
  .age-gate .gate .panel {padding:18px;}
}
.profile-header {
  display:flex;
  align-items:start;
  gap:18px;
  margin:20px 0 30px
}
.profile-header .avatar {
  width:60px;
  height:60px;
  font-size:24px
}
.profile-header h1 {
  font-size:28px
}
.profile-bio {
  white-space:pre-wrap;
  max-width:650px;
  font-size:13px;
  margin-top:16px;
  line-height:2
}
.settings-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:24px;
  align-items:start
}
.settings-layout .panel {
  margin-bottom:22px
}
.notification {
  display:flex;
  gap:13px;
  align-items:start;
  padding:20px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper)
}
.notification.unread {
  border-left:3px solid var(--accent)
}
.notification-content {
  flex:1;
  min-width:0
}
.notification p {
  font-size:13px;
  line-height:1.9
}
.notification small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin:8px 0 12px
}
.import-item {
  border-top:1px solid var(--line);
  padding:16px 0
}
.import-item>label {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  overflow-wrap:anywhere
}
.import-item textarea {
  font-size:12px;
  min-height:75px;
  margin-top:10px
}
.import-item .hint {
  margin-top:8px
}
.blocked-user {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid var(--line);
  padding:12px 0;
  font-size:12px
}
.metric-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
  margin:25px 0
}
.metric {
  padding:20px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:10px
}
.metric strong {
  display:block;
  font-size:30px;
  font-weight:600;
  color:var(--accent)
}
.metric span {
  font-size:11px;
  color:var(--muted)
}
.report-item {
  border-top:1px solid var(--line);
  padding:18px 0
}
.report-item p {
  font-size:12px;
  line-height:1.9;
  white-space:pre-wrap;
  margin-bottom:12px
}
.report-item small {
  font-size:10px;
  color:var(--muted)
}
.back {
  display:inline-block;
  font-size:12px;
  color:var(--accent);
  margin-bottom:12px
}
.warning,.error {
  border:1px solid #824448;
  background:#c4454915;
  color:#ffb4b6;
  padding:13px 16px;
  border-radius:7px;
  font-size:12px;
  line-height:1.9;
  margin-bottom:20px
}
.error:empty {
  display:none
}
.loading {
  padding:60px 20px;
  text-align:center;
  color:var(--muted);
  font-size:13px
}
.load-more {
  display:flex;
  margin:25px auto
}
.footer {
  max-width:1104px;
  margin:0 auto;
  padding:25px 0;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:10px
}
.footer a {
  text-decoration:underline
}
#toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  z-index:20;
  background:#1a273b;
  color:var(--ink);
  border:1px solid #45536b;
  border-radius:8px;
  padding:12px 20px;
  max-width:calc(100% - 28px);
  font-size:12px;
  box-shadow:0 6px 20px #0007;
  pointer-events:none
}
#toast:empty {
  display:none
}
dialog {
  background:var(--paper);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:12px;
  max-width:460px;
  width:calc(100% - 36px);
  padding:28px
}
dialog::backdrop {
  background:#050b16bb
}
dialog h2 {
  font-size:21px
}
dialog p {
  font-size:12px;
  color:var(--muted);
  margin:14px 0;
  line-height:2
}
body.sample-modal-open {
  overflow:hidden;
}
#sample-dialog {
  width:min(1200px,calc(100% - 24px));
  height:min(880px,calc(100dvh - 32px));
  max-width:none;
  max-height:none;
  padding:12px;
}
#sample-dialog[open] {
  display:flex;
  flex-direction:column;
  gap:10px;
}
#sample-dialog::backdrop {
  background:#050b16e8;
}
.sample-dialog-header {
  display:flex;
  align-items:center;
  gap:12px;
}
.sample-dialog-header h2 {
  font-size:15px;
}
.sample-counter {
  margin-left:auto;
  color:var(--muted);
  font-size:12px;
}
.sample-dialog-header button {
  min-height:44px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--soft);
  color:var(--ink);
  font-size:12px;
}
.sample-viewer {
  position:relative;
  flex:1;
  min-height:0;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:8px;
  background:#080d16;
}
.sample-viewer img {
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain;
}
.sample-viewer .sample-load-error {
  position:absolute;
  margin:0;
  padding:0 56px;
  text-align:center;
}
.sample-prev,.sample-next {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #41526c;
  border-radius:50%;
  background:#0c1320dd;
  color:var(--ink);
  font-size:30px;
  line-height:1;
}
.sample-prev {
  left:8px;
}
.sample-next {
  right:8px;
}
.sample-prev:hover,.sample-next:hover {
  color:var(--accent);
  border-color:var(--accent);
}
.mobile-nav {
  display:none
}
@media(max-width:900px) {
  .brand small {
    display:none
  }
  .navigation {
    gap:15px
  }
  .top-inner {
    gap:20px;
    padding-inline:22px
  }
  .container {
    padding-inline:22px
  }
  .hero {
    gap:25px
  }
  .feed-layout {
    grid-template-columns:minmax(0,1fr) 240px;
    gap:22px
  }
  .work-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .work-grid[data-image-mode=portrait] {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .work-layout {
    grid-template-columns:minmax(0,1fr)
  }
  .sample-gallery {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .record-panel {
    position:static;
    grid-row:1
  }
  .record-panel .record-form {
    max-width:none
  }
  .metadata {
    grid-template-columns:minmax(0,1fr)
  }
  .settings-layout {
    grid-template-columns:minmax(0,1fr)
  }
}
@media(max-width:640px) {
  body {
    padding-bottom:72px
  }
  .top-inner {
    padding:15px 18px
  }
  .brand {
    font-size:25px
  }
  .navigation {
    display:none
  }
  .account-link {
    margin-left:auto;
    font-size:11px
  }
  .container {
    padding:24px 18px 35px
  }
  .source-bar {
    padding:10px 18px 0;
    font-size:10px
  }
  .source-bar>span {
    max-width:170px
  }
  .hero {
    grid-template-columns:minmax(0,1fr);
    padding:15px 0 28px;
    gap:20px;
    margin-bottom:24px
  }
  .hero h1 {
    font-size:32px
  }
  .hero p {
    font-size:12px
  }
  .hero-aside {
    padding:16px 18px;
    background:#18263b;
    border:0;
    border-radius:8px
  }
  .hero-aside ol {
    font-size:12px;
    gap:7px
  }
  .hero-aside p {
    display:none
  }
  .page-title h1 {
    font-size:26px
  }
  .page-title .button {
    font-size:10px;
    padding:9px 11px
  }
  .feed-layout {
    grid-template-columns:minmax(0,1fr)
  }
  .aside-note {
    position:static;
    order:2
  }
  .review,.panel {
    padding:19px
  }
  .review-body {
    font-size:14px;
    line-height:2
  }
  .review-header {
    gap:8px
  }
  .author-name {
    font-size:12px
  }
  .review time {
    font-size:9px
  }
  .review-actions {
    gap:7px
  }
  .review-actions .report {
    font-size:10px;
    padding-inline:9px
  }
  .empty {
    padding:30px 18px
  }
  .search-form {
    gap:8px
  }
  .search-form .button {
    padding-inline:14px
  }
  .work-grid {
    grid-template-columns:minmax(0,1fr);
    gap:12px
  }
  .work-grid[data-image-mode=portrait] {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .work-grid[data-image-mode=portrait] .work-card-body {
    padding:8px;
  }
  .work-grid[data-image-mode=portrait] .work-card-body h2 {
    font-size:11px;
  }
  .work-card-body {
    padding:11px
  }
  .work-card-body h2 {
    font-size:12px
  }
  .work-card-body .button {
    font-size:10px;
    padding:9px 6px;
    min-height:37px
  }
  .work-card-body p {
    font-size:9px
  }
  .work-hero {
    grid-template-columns:minmax(0,1fr);
    gap:20px;
    margin-top:10px
  }
  .work-hero h1 {
    font-size:24px
  }
  .work-layout {
    gap:22px
  }
  .sample-gallery {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .form-row {
    gap:10px
  }
  .visibility-options {
    gap:8px
  }
  .record-form input,.record-form textarea,.record-form select,.settings-layout input,.settings-layout textarea,.auth-card input,.search-form input {
    font-size:16px
  }
  .auth-card {
    margin:10px auto;
    padding:23px
  }
  .gate {
    margin:35px 18px
  }
  .gate h1 {
    font-size:28px
  }
  .gate>p {
    font-size:13px
  }
  .gate .panel {
    padding:22px
  }
  .profile-header h1 {
    font-size:25px
  }
  .profile-header .avatar {
    width:48px;
    height:48px
  }
  .notification {
    padding:17px
  }
  .metric-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .metric {
    padding:15px
  }
  .footer {
    margin:0 18px;
    font-size:9px;
    flex-wrap:wrap
  }
  .mobile-nav {
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#0c1524f5;
    backdrop-filter:blur(12px);
    border-top:1px solid var(--line);
    padding:7px 8px calc(7px + env(safe-area-inset-bottom));
    z-index:10
  }
  .mobile-nav a {
    display:flex;
    flex:1;
    flex-direction:column;
    align-items:center;
    gap:3px;
    font-size:9px;
    color:var(--muted);
    padding:5px 0
  }
  .mobile-nav .symbol {
    font-size:20px;
    line-height:1.3
  }
  .mobile-nav a.active {
    color:var(--accent);
    font-weight:700
  }
  #toast {
    bottom:85px
  }
  .form-footer {
    flex-wrap:wrap
  }
  .record-panel {
    top:auto
  }
  .import-item textarea {
    font-size:16px
  }
}
@media(prefers-reduced-motion:no-preference) {
  button,a {
    transition:background-color .15s,border-color .15s
  }
}
#record-editor,#work-reviews {
  scroll-margin-top:105px
}

input::placeholder,textarea::placeholder {
  color:#8391a8;
}

/* The home timeline pairs each work with its newest public comments. */
.timeline-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:54px;
  align-items:start;
  max-width:1060px;
  margin:0 auto;
}
.timeline-shell {
  min-width:0;
}
.timeline-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:24px;
}
.timeline-heading h1 {
  font-size:28px;
}
.timeline-heading p {
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}
.timeline-tabs {
  gap:28px;
  align-items:center;
  margin-bottom:0;
}
.timeline-tabs a {
  flex:none;
}
.timeline-order {
  margin-left:auto;
  color:var(--muted);
  font-size:10px;
  white-space:nowrap;
}
.timeline-order>[aria-hidden] {
  color:var(--accent);
}
.timeline-aside {
  min-width:0;
}
.timeline-invitation {
  border-top:2px solid var(--accent);
  padding-top:24px;
}
.timeline-quote {
  display:block;
  height:40px;
  color:var(--accent);
  font:52px/1 Georgia,serif;
}
.timeline-invitation h2 {
  margin:5px 0 14px;
  font-size:20px;
  font-weight:600;
  line-height:1.7;
  letter-spacing:-.5px;
}
.timeline-invitation p,.timeline-guide p {
  color:var(--muted);
  font-size:11px;
  line-height:1.9;
}
.timeline-invitation>.button {
  width:100%;
  margin-top:23px;
  text-align:center;
}
.timeline-guide {
  margin-top:35px;
  border-top:1px solid var(--line);
  padding-top:20px;
}
.timeline-guide h3 {
  font-size:11px;
  margin-bottom:10px;
}
.timeline-guide p {
  font-size:10px;
}
.timeline-compose {
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 0;
}
.timeline-compose p {
  flex:1;
  color:var(--muted);
  font-size:12px;
}
.timeline-feed {
  display:grid;
  gap:0;
}
.timeline-entry {
  min-width:0;
  padding:25px 0 24px;
  border-bottom:1px solid var(--line);
}
.timeline-work-section {
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  margin-bottom:23px;
}
.timeline-work {
  display:block;
}
.timeline-image {
  aspect-ratio:34/48;
  overflow:hidden;
  border-radius:3px;
  background:var(--soft);
}
.timeline-image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.timeline-work-info {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.timeline-work-copy {
  display:block;
  min-height:0;
  overflow:hidden;
}
.timeline-work-info .work-code {
  line-height:1.4;
  margin-bottom:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.timeline-work-info h2 {
  font-size:12px;
  font-weight:600;
  line-height:1.5;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.timeline-description {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:1;
  overflow:hidden;
  font-size:11px;
  line-height:1.55;
  margin-top:4px;
  color:#c6d0e0;
}
.timeline-cast {
  font-size:10px;
  line-height:1.5;
  color:var(--muted);
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.timeline-work-copy .hint {
  font-size:10px;
  line-height:1.5;
}
.work-stats {
  display:grid;
  grid-template-columns:1.15fr repeat(4,minmax(0,1fr));
  align-items:stretch;
  gap:4px;
  padding:0;
  margin:16px 0 0;
}
.timeline-work-info>.work-stats {
  margin-top:auto;
  max-width:300px;
  flex-shrink:0;
}
.timeline-work-info .work-stat {
  align-items:flex-start;
}
.work-stat {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-width:0;
  min-height:44px;
  padding:3px 1px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--ink);
}
.work-stat-rating {
  align-items:flex-start;
  color:var(--accent);
}
.work-stat-main {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:14px;
  font-variant-numeric:tabular-nums;
}
.work-stat-icon {
  flex:none;
}
.work-mark[aria-pressed=true] {
  color:var(--accent);
}
.work-mark[aria-pressed=true] .icon-like {
  color:var(--reaction);
  fill:currentColor;
}
.work-mark[aria-pressed=true] .icon-favorite {
  fill:currentColor;
}
a.work-stat:hover,.work-mark:hover {
  background:var(--soft);
}
.saved-tabs {
  gap:20px;
}
.timeline-comments {
  padding:0;
}
.timeline-comments .review {
  position:relative;
  display:flex;
  flex-direction:column;
  padding:0 0 0 48px;
  border:0;
  border-radius:0;
  background:transparent;
}
.timeline-comments .review+.review {
  margin-top:28px;
}
.timeline-comments .review+.review::before {
  content:"";
  position:absolute;
  left:16px;
  top:-24px;
  height:20px;
  width:1px;
  background:var(--line);
}
.timeline-comments .avatar {
  position:absolute;
  left:0;
  top:0;
  width:34px;
  height:34px;
  font-size:13px;
}
.timeline-comments .review-header {
  gap:8px;
  min-width:0;
  margin-bottom:3px;
  line-height:1.5;
}
.timeline-comments .author {
  overflow:hidden;
}
.timeline-comments .author-name {
  display:flex;
  align-items:baseline;
  gap:6px;
  min-width:0;
  font-size:12px;
}
.timeline-comments .display-name,.timeline-comments .handle {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.timeline-comments .display-name {
  min-width:0;
}
.timeline-comments .handle {
  display:inline;
  max-width:13ch;
  flex-shrink:2;
}
.timeline-comments .review-body {
  font-size:14px;
  line-height:1.7;
  overflow-wrap:anywhere;
}
.timeline-comments .review-actions {
  flex-wrap:wrap;
  gap:16px;
  border-top:0;
  padding-top:0;
  margin-top:10px;
  min-height:32px;
}
.timeline-comments .rating {
  font-size:11px;
  letter-spacing:1px;
  margin:0 8px 0 0;
}
.timeline-comments .comment-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:44px;
  min-height:44px;
  padding:6px 4px;
  border:0;
  border-radius:16px;
  background:transparent;
  color:var(--muted);
  font-size:11px;
  font-weight:400;
  line-height:1.4;
}
.timeline-comments .comment-action:hover {
  background:var(--soft);
  color:var(--accent);
}
.timeline-comments .react[aria-pressed=true] {
  color:var(--reaction);
}
.timeline-comments .comment-action>[aria-hidden] {
  font-size:17px;
}
.timeline-comments .comment-reaction-count {
  color:var(--muted);
  font-size:11px;
}
.timeline-more {
  display:block;
  width:fit-content;
  margin:18px 0 0 48px;
  padding:6px 0;
  color:var(--accent);
  font-size:11px;
}
.timeline-more:hover {
  text-decoration:underline;
}
@media(max-width:800px) {
  .timeline-layout {
    display:block;
    max-width:660px;
  }
  .timeline-aside {
    display:none;
  }
}
@media(max-width:640px) {
  .work-stat-main {
    gap:4px;
    font-size:12px;
  }
  .work-stat-icon {
    width:16px;
    height:16px;
  }
  .saved-tabs {
    gap:14px;
  }
  .timeline-heading h1 {
    font-size:24px;
  }
  .timeline-heading {
    margin-bottom:17px;
  }
  .timeline-heading p {
    font-size:10px;
  }
  .timeline-compose {
    display:grid;
    grid-template-columns:36px minmax(0,1fr);
    gap:10px;
  }
  .timeline-compose>.button {
    grid-column:2;
    justify-self:start;
  }
  .timeline-compose:not(:has(.avatar))>* {
    grid-column:1/-1;
  }
  .timeline-feed {
    gap:0;
  }
  .timeline-entry {
    padding:19px 0 20px;
  }
  .timeline-work-section {
    grid-template-columns:30px minmax(0,1fr) auto;
    gap:10px;
    margin-bottom:19px;
  }
  .timeline-work-info {
    height:auto;
  }
  .timeline-work-info>.work-stats {
    margin-top:8px;
  }
  .timeline-image {
    aspect-ratio:30/42;
  }
  .timeline-description {
    -webkit-line-clamp:2;
  }
  .timeline-comments {
    padding:0;
  }
  .timeline-comments .review {
    padding-left:40px;
  }
  .timeline-comments .avatar {
    width:29px;
    height:29px;
    font-size:12px;
  }
  .timeline-comments .review+.review::before {
    left:14px;
  }
  .timeline-comments .review-header {
    align-items:flex-start;
  }
  .timeline-comments .author-name {
    font-size:11px;
  }
  .timeline-comments .review-body {
    font-size:13px;
    line-height:1.8;
  }
  .timeline-more {
    margin-left:40px;
    font-size:10px;
  }
  .timeline-order {
    font-size:9px;
  }
}

/* Replies stay within their original review and use the same compact colors. */
.reply-toggle,.reply-actions .comment-action {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-width:32px;
  min-height:32px;
  padding:3px 6px;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:11px;
}
.reply-toggle:hover,.reply-toggle[aria-expanded=true],.reply-actions .comment-action:hover {
  color:var(--accent);
  background:var(--soft);
}
.review-replies {
  min-width:0;
  padding:4px 0 4px 12px;
  margin-top:6px;
  border-left:1px solid var(--line);
}
.reply-message {
  min-width:0;
  padding:8px 0;
}
.reply-header {
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:space-between;
}
.reply-author {
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
}
.reply-author>span:last-child {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.reply-author small {
  margin-left:5px;
  font-size:10px;
  color:var(--muted);
}
.review-replies .reply-author .avatar {
  position:static;
  flex:none;
  width:22px;
  height:22px;
  font-size:10px;
}
.reply-header time {
  flex:none;
  font-size:10px;
  color:var(--muted);
}
.reply-body {
  font-size:13px;
  line-height:1.65;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin-top:4px;
}
.reply-actions,.reply-pages,.reply-compose-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.review-reply-form {
  margin-top:8px;
}
.review-reply-form textarea {
  display:block;
  width:100%;
  resize:vertical;
  min-height:60px;
  font-size:16px;
}
.reply-compose-actions {
  justify-content:space-between;
  margin-top:6px;
}
.review-replies .reply-error {
  margin:0;
}
@media(max-width:640px) {
  .reply-author small {
    display:none;
  }
}

.metadata-contribute {
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:3px 0;
  border:0;
  background:transparent;
  color:var(--accent);
  font-size:10px;
  text-align:left;
}
.metadata-contribute:hover {
  text-decoration:underline;
}
.community-info-label {
  color:var(--muted);
  font-size:9px;
  align-self:center;
}
.info-source {
  color:var(--accent);
  font-size:11px;
}

.work-related {
  margin-top:40px;
  min-width:0;
}
.work-related>section+section {
  margin-top:30px;
}
.related-strip {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:140px;
  justify-content:start;
  gap:16px;
  list-style:none;
  padding:0 0 12px;
  margin:0;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  overscroll-behavior-inline:contain;
}
.related-strip>li {
  min-width:0;
  scroll-snap-align:start;
}
.related-card {
  min-width:0;
}
.related-cover {
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:2/3;
  border-radius:8px;
  overflow:hidden;
  background:var(--paper);
}
.related-cover img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.related-card-info {
  min-width:0;
  padding-top:8px;
}
.related-card h3 {
  font-size:12px;
  line-height:1.6;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
}
.related-cast {
  margin-top:5px;
  font-size:10px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.related-explanation {
  margin-bottom:8px;
}
.related-reasons {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
  font-size:9px;
  color:var(--muted);
}
.related-reasons span {
  border:1px solid var(--line);
  border-radius:4px;
  padding:3px 7px;
}
@media(max-width:640px) {
  .related-strip {
    grid-auto-columns:120px;
    gap:12px;
  }
  .work-related .section-title {
    align-items:flex-start;
    flex-wrap:wrap;
    gap:6px;
  }
}

.terms-page {max-width:880px;padding-bottom:72px;line-height:1.9;}
.terms-page h1 {margin-bottom:12px;}
.terms-page section {margin-top:32px;scroll-margin-top:90px;}
.terms-page h2 {font-size:18px;margin-bottom:12px;}
.terms-page p,.terms-page li {margin-bottom:12px;overflow-wrap:anywhere;}
.terms-page ul {padding-left:24px;}
.terms-summary,.auth-terms-summary {padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--soft);}
.terms-page nav {margin-top:24px;}
.auth-card .check-label a {color:var(--accent);text-decoration:underline;text-underline-offset:3px;}
.info-existing {margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:8px;}
.info-post-status {color:var(--accent);font-size:12px;font-weight:700;margin:10px 0;}
.board-message[data-info-kind=thanks] {border-color:var(--accent);}
.work-discussion-link {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0;}
.search-methods {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.search-methods button,.finder-kana button {
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--muted);
  border-radius:7px;
  min-height:38px;
  padding:7px 12px;
  font-size:11px;
}
.search-methods [aria-pressed=true],.finder-kana [aria-pressed=true] {
  color:var(--accent);
  border-color:var(--accent);
  background:var(--soft);
}
.catalog-finder {
  padding:18px;
  margin-bottom:18px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
}
.finder-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px 12px;
  margin-bottom:12px;
}
.finder-heading h2 {
  font-size:16px;
}
.finder-input {
  display:block;
  max-width:420px;
}
.finder-input input {
  display:block;
  width:100%;
  margin-top:6px;
  font-size:16px;
}
.finder-kana {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:12px;
}
.finder-kana button {
  min-width:36px;
  padding-inline:10px;
}
.finder-kana-note {
  margin-top:6px;
}
.facet-options {
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  gap:8px;
  margin-top:14px;
}
.facet-choice {
  display:flex;
  align-items:center;
  gap:10px;
  max-width:100%;
  min-height:40px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--field);
  color:var(--ink);
  text-align:left;
  font-size:12px;
}
.facet-choice>span {
  min-width:0;
  overflow-wrap:anywhere;
}
.facet-choice small {
  flex:none;
  color:var(--muted);
  font-size:10px;
}
.facet-choice[aria-pressed=true],.facet-choice:hover {
  border-color:var(--accent);
  color:var(--accent);
}
.search-controls {
  margin-bottom:18px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
}
.search-controls>summary {cursor:pointer;font-size:13px;font-weight:700;}
.search-controls[open]>summary {margin-bottom:14px;}
.search-controls .catalog-finder {margin-top:14px;margin-bottom:0;scroll-margin-top:20px;}
#facet-pagination .pagination {margin-top:16px;}
.search-active-filters {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}
.search-filter {
  display:inline-flex;
  align-items:center;
  gap:10px;
  max-width:100%;
  min-height:36px;
  padding:6px 10px;
  border-radius:7px;
  background:var(--soft);
  color:var(--accent);
  font-size:11px;
  overflow-wrap:anywhere;
}
.search-filter span {
  flex:none;
  font-size:16px;
}
.search-clear {
  font-size:11px;
  color:var(--muted);
  padding:6px;
}
@media(max-width:640px) {
  .catalog-finder {
    padding:14px;
  }
  .search-methods {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
  }
  .search-methods button {
    flex:1;
    padding-inline:4px;
    font-size:10px;
  }
}

.entity-ratings {
  margin:0 0 22px;
}
.entity-ratings .finder-heading h2 {
  font-size:14px;
}
.entity-rating-cards {
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:10px 0;
}
.entity-rating-card {
  position:relative;
  flex:1 0 260px;
  min-width:0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper);
}
.entity-rating-card h3 {
  font-size:13px;
  overflow-wrap:anywhere;
}
.entity-average {
  margin-top:7px;
  color:var(--accent);
  font-size:15px;
}
.entity-average small {
  margin-left:8px;
  color:var(--muted);
  font-size:10px;
}
.entity-rating-card .star-rating {
  padding:0;
  margin:8px 0;
  border:0;
}
.entity-rating-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:32px;
}
.entity-rating-actions button {
  padding:4px 7px;
  font-size:10px;
}
.entity-rating-card .entity-rating-error {
  margin:0;
}
.entity-rating-journal {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.entity-rating-journal>.empty {
  grid-column:1/-1;
}
.entity-rating-note {
  margin-bottom:16px;
}
.saved-tabs,.rating-kind-tabs {
  overflow-x:auto;
  white-space:nowrap;
}
.saved-tabs a,.rating-kind-tabs a {
  flex:none;
}
@media(max-width:900px) {
  .entity-rating-journal {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:640px) {
  .entity-rating-journal {
    grid-template-columns:minmax(0,1fr);
  }
  .rating-kind-tabs {
    gap:18px;
  }
}

.actress-profile {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,300px);
  gap:24px;
  padding:24px;
  margin:0 0 24px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
}
.actress-profile-main,.actress-profile-rating {
  min-width:0;
}
.actress-heading {
  display:flex;
  align-items:center;
  gap:16px;
}
.actress-heading>div {
  min-width:0;
}
.actress-heading h1 {
  font-size:clamp(22px,3vw,32px);
  line-height:1.3;
  margin:4px 0 8px;
  overflow-wrap:anywhere;
}
.actress-avatar {
  display:grid;
  place-items:center;
  flex:none;
  width:68px;
  height:68px;
  border-radius:50%;
  background:var(--bg);
  border:1px solid var(--line);
  color:var(--accent);
  font-size:27px;
}
.actress-profile-details {
  margin-top:20px;
}
.actress-avatar {overflow:hidden;}
.actress-avatar img {display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%;}
.actress-photo-credit {font-size:12px;}
.actress-choice-icon {display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;overflow:hidden;background:var(--bg);}
.actress-choice-icon img {display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%;}
.actress-avatar img[data-crop=tight],.actress-choice-icon img[data-crop=tight] {transform:scale(2);transform-origin:50% 35%;}
.actress-choice-credits {grid-column:1 / -1;font-size:12px;}
.actress-facts {
  display:flex;
  flex-wrap:wrap;
  gap:12px 32px;
  margin:0;
}
.actress-facts dt {
  color:var(--muted);
  font-size:11px;
  margin-bottom:4px;
}
.actress-facts dd {
  margin:0;
  font-size:14px;
}
.actress-profile-source {
  margin:16px 0 0;
  overflow-wrap:anywhere;
}
.actress-profile-rating>.hint {
  margin:8px 2px 0;
  font-size:10px;
}
@media(max-width:640px) {
  .actress-profile {
    grid-template-columns:minmax(0,1fr);
    gap:18px;
    padding:18px;
  }
  .actress-avatar {
    width:52px;
    height:52px;
    font-size:23px;
  }
}
.actress-field-source {
  color:var(--muted);
  font-size:11px;
}
.actress-extra-note {
  margin-top:10px;
  font-size:11px;
}
.entity-activity {margin-top:14px;border-top:1px solid var(--line);padding-top:10px;}
.entity-mark-row {display:flex;flex-wrap:wrap;gap:4px;align-items:center;}
.entity-mark-row .work-stat {min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:6px;color:var(--muted);}
.entity-mark-row .work-stat[aria-pressed=true] {color:var(--accent);background:var(--bg);}
.entity-discussion-link {display:block;margin-top:8px;font-size:11px;color:var(--accent);}
.entity-page-rating {max-width:380px;margin-bottom:24px;}
.entity-discussion {margin-bottom:28px;}
.entity-discussion h2 {font-size:18px;margin-bottom:16px;}
.entity-comment-total {font-size:13px;color:var(--muted);margin-left:6px;}
#entity-comment-form {margin-bottom:22px;}
#entity-comment-form textarea {display:block;width:100%;resize:vertical;min-height:70px;border:0;background:transparent;border-bottom:1px solid var(--line);border-radius:0;}
#entity-comment-list {margin-top:18px;}
.entity-comment .review-body {white-space:pre-wrap;overflow-wrap:anywhere;}
.entity-comment-target {display:block;font-size:12px;color:var(--accent);margin:10px 0;overflow-wrap:anywhere;}
.entity-works>.finder-heading {margin-bottom:16px;}
.entity-works h2 {font-size:18px;}
.entity-works h2 small {font-size:12px;color:var(--muted);}
.info-picker-options {max-height:220px;overflow-y:auto;padding:3px 0;}
.info-picker-options>.hint {width:100%;}
.info-picker-new {margin-top:12px;}
.info-picker-new button {white-space:normal;text-align:left;overflow-wrap:anywhere;}
.info-picker-selected {display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 20px;}
.info-picker-chip {display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:5px 9px;border:1px solid var(--line);border-radius:20px;background:var(--paper);font-size:12px;overflow-wrap:anywhere;}
.info-picker-chip small {font-size:9px;color:var(--accent);}
.info-picker-chip button {border:0;background:transparent;min-width:28px;min-height:28px;padding:0;}
.pagination {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:28px 0 12px;}
.pagination>a,.pagination>button,.pagination-current,.pagination-disabled {display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:var(--paper);font-size:13px;}
.pagination>a:hover,.pagination>button:hover {border-color:var(--accent);color:var(--accent);}
.pagination-current {background:var(--accent);color:var(--bg);border-color:var(--accent);font-weight:700;}
.pagination-disabled {color:var(--muted);opacity:.5;}
.pagination-gap {color:var(--muted);padding:0 3px;}
.entity-tabs {display:flex;gap:24px;margin:20px 0;border-bottom:1px solid var(--line);}
.entity-tabs>button {min-height:48px;padding:10px 4px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-size:14px;}
.entity-tabs>button[aria-selected=true] {border-bottom-color:var(--accent);color:var(--accent);}
.entity-tabs span {font-size:11px;margin-left:6px;}
.entity-works[hidden],.entity-discussion[hidden] {display:none;}
.entity-guide {margin:0 0 24px;padding:22px 24px;background:var(--paper);border:1px solid var(--line);border-radius:12px;min-width:0;}
.entity-guide h2 {margin:0 0 12px;font-size:17px;line-height:1.6;overflow-wrap:anywhere;}
.entity-guide-description {margin:0;line-height:1.9;font-size:14px;white-space:pre-line;overflow-wrap:anywhere;}
.entity-official-links {display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;}
.entity-official-links a {display:inline-flex;align-items:center;gap:6px;padding:9px 13px;border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--accent);overflow-wrap:anywhere;}
.entity-official-links a:hover {background:var(--bg);}
.entity-guide-sources {display:flex;flex-wrap:wrap;gap:3px 6px;margin-top:14px;font-size:11px;overflow-wrap:anywhere;}
.entity-guide-sources a {color:var(--muted);}
.entity-guide-checked {flex-basis:100%;margin-top:4px;}
.actress-profile .entity-guide {margin:20px 0 0;padding:0;border:0;border-radius:0;background:transparent;}
@media(max-width:640px) {.entity-guide {padding:18px 16px;}}
.moderation-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0;}
.moderation-summary .metric {display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--paper);}
.moderation-summary .metric.selected {border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);}
.moderation-summary .metric span {font-size:13px;color:var(--muted);}
.moderation-summary .metric strong {font-size:30px;}
.moderation-filters {display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;border-bottom:1px solid var(--line);padding-bottom:20px;}
.moderation-filters .field {flex:1 1 180px;margin:0;min-width:0;}
.moderation-filters select {width:100%;}
.moderation-queue .report-item {padding:24px 0;min-width:0;}
.report-heading {display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;color:var(--muted);}
.report-heading time {margin-left:auto;}
.report-status {border-radius:20px;padding:4px 10px;background:var(--bg);}
.report-status.open {color:var(--accent);border:1px solid var(--accent);}
.report-item h3 {font-size:15px;margin:14px 0 8px;}
.report-body,.report-note {white-space:pre-wrap;overflow-wrap:anywhere;}
.report-body {border-left:2px solid var(--line);padding-left:14px;line-height:1.8;}
.report-note {font-size:13px;color:var(--muted);margin:16px 0;}
.report-source {font-size:13px;color:var(--accent);}
.moderation-empty {padding:36px 0;text-align:center;}
.moderation-metrics {margin-top:24px;}
.moderation-metrics summary {cursor:pointer;font-weight:600;min-height:32px;}
.moderation-metrics .metric-grid {margin-top:20px;}
@media(max-width:480px) {.moderation-summary {gap:8px;}.moderation-summary .metric {padding:12px;}.moderation-summary .metric strong {font-size:25px;}.report-heading time {margin-left:0;flex-basis:100%;}.moderation-queue .actions {align-items:stretch;}.moderation-queue .actions button {white-space:normal;}}

.admin-auth-panel {max-width:560px;margin:24px auto;}
.admin-auth-panel p {line-height:1.8;}
.admin-auth-panel form {margin:24px 0;}
.admin-auth-qr {display:block;width:240px;height:240px;max-width:100%;margin:20px auto;}
.admin-auth-secret {display:block;overflow-wrap:anywhere;user-select:all;padding:16px;background:var(--bg);margin:12px 0;}
.admin-recovery-codes {font-size:12px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);padding:14px;user-select:all;}
.admin-auth-controls {margin:20px 0;justify-content:flex-end;}
#admin-auth-finish-form {margin-top:20px;}

/* Compact work context keeps public comments visible near the top of the feed. */
.timeline-review-count{font-size:10px;line-height:1.5;color:var(--muted);white-space:nowrap}
.timeline-comments .timeline-review-rating{align-self:flex-start;font-size:11px;margin:5px 0 7px;letter-spacing:1px}
.timeline-review-body{min-width:0}
.timeline-review-body .review-body{margin:0}
.timeline-review-body .review-body-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
.review-read-more{display:block;min-height:44px;margin-top:2px;padding:6px 0;border:0;background:transparent;color:var(--accent);font-size:13px;text-align:left}
.review-read-more:hover{text-decoration:underline}
.timeline-comments .report{margin-left:auto;font-size:11px}
@media(max-width:640px){
  .timeline-heading>.button{flex-shrink:0}
  .timeline-comments .review-header{flex-wrap:wrap;gap:2px 8px}
  .timeline-comments .review-header time{font-size:10px}
  .timeline-review-count{font-size:9px}
}

/* Inline mentions keep the existing palette and fit above the mobile keyboard. */
.mention-composer{position:relative;min-width:0}.mention-composer textarea{width:100%}.mention-insert{font-weight:700;margin-top:4px}.mention-picker{position:absolute;z-index:40;top:100%;left:0;width:min(100%,520px);max-height:340px;background:#152238;border:1px solid #334760;border-radius:10px;box-shadow:0 10px 30px #0007;padding:8px}.mention-types{display:flex;gap:4px;overflow-x:auto;padding-bottom:6px}.mention-types button{white-space:nowrap;padding:5px 8px;font-size:12px}.mention-types [aria-pressed=true]{border-color:var(--accent,#efb26e)}.mention-results{max-height:220px;overflow-y:auto}.mention-results button{display:flex;align-items:baseline;gap:8px;width:100%;text-align:left;padding:8px;background:transparent;border:0}.mention-results [aria-selected=true]{background:#24364c}.mention-results span{overflow-wrap:anywhere;min-width:0}.mention-results small{white-space:nowrap;color:#a9bad0}.post-mention{color:#edbc82;text-decoration:none;overflow-wrap:anywhere}.post-mention:hover{text-decoration:underline}
.shelf-tree{list-style:none;padding:0}.shelf-tree li{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0;padding:12px;border:1px solid #293a50;border-radius:10px}.shelf-tree li>a:first-child{font-weight:700;overflow-wrap:anywhere}.shelf-form{display:grid;gap:12px}.shelf-tree .hint{font-size:12px}
.actress-detail-link{margin-top:8px}

.mention-picker-above{top:auto;bottom:100%}.shelf-tree li.shelf-depth-2{margin-left:16px}.shelf-tree li.shelf-depth-3{margin-left:32px}
.notification-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:0 .3rem;margin-left:.3rem;border-radius:999px;background:#a62445;color:#fff;font-size:.7rem;font-weight:700;line-height:1}.notification-count[hidden]{display:none}.reply-message:focus{outline:2px solid #a62445;outline-offset:4px}

/* Public initial HTML uses the community shell and survives API outages. */
.public-page { overflow-wrap:anywhere; }
.public-page .breadcrumbs { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.public-page .facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; }
.public-page .facts div { min-width:0; }
.public-page dt { font-size:12px; color:var(--muted); }
.public-page dd { margin:4px 0; }
.public-page .description { white-space:pre-line; }
.public-page .names { display:grid; gap:12px; list-style:none; padding:0; }
.public-page .names li { padding:12px; border:1px solid var(--line); }
.public-page .names span { margin-left:12px; }
.public-page section { margin:24px 0; }
.public-work-cover { display:block; width:100%; max-width:680px; height:auto; border-radius:12px; margin:20px 0; }

/* Shelf navigation and visible hierarchy choices. */
.shelf-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:30px; align-items:start; }
.shelf-sidebar { min-width:0; position:sticky; top:100px; max-height:calc(100dvh - 120px); overflow-y:auto; }
.shelf-sidebar h2 { font-size:14px; margin-bottom:14px; }
.shelf-sidebar .shelf-tree { margin:0; }
.shelf-sidebar .shelf-tree li { display:block; position:relative; margin:0; padding:0; border:0; border-radius:0; }
.shelf-sidebar .shelf-tree li a { display:flex; gap:8px; padding:10px 8px 2px; border-left:2px solid transparent; overflow-wrap:anywhere; }
.shelf-sidebar .shelf-tree li a[aria-current=page] { border-left-color:var(--accent); background:#f6bc6110; color:var(--accent); }
.shelf-sidebar .shelf-tree li small { display:block; padding:0 10px 10px 32px; }
.shelf-sidebar .shelf-tree li.shelf-depth-2 { margin-left:16px; }
.shelf-sidebar .shelf-tree li.shelf-depth-3 { margin-left:32px; }
.shelf-folder { color:var(--accent); flex:none; }
.shelf-tree-note { margin:20px 8px 0; padding-top:16px; border-top:1px solid var(--line); font-size:12px; }
.shelf-content { min-width:0; }
.shelf-breadcrumbs { display:flex; flex-wrap:wrap; gap:8px; font-size:12px; color:var(--muted); margin-bottom:18px; overflow-wrap:anywhere; }
.shelf-breadcrumbs [aria-current=page] { color:var(--ink); }
.shelf-heading { display:flex; align-items:start; flex-wrap:wrap; justify-content:space-between; gap:14px; margin-bottom:20px; }
.shelf-heading h2 { font-size:26px; overflow-wrap:anywhere; }
.shelf-heading .actions { margin:0; }
.shelf-heading .actions button { font-size:12px; padding:7px 10px; }
.shelf-children { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.shelf-controls { border-top:1px solid var(--line); padding-top:16px; display:grid; gap:12px; }
.shelf-search { display:flex; align-items:end; gap:8px; }
.shelf-search .field { flex:1; min-width:0; margin:0; }
.shelf-sort { display:flex; flex-wrap:wrap; gap:6px; }
.shelf-sort a[aria-current=true] { border-color:var(--accent); color:var(--accent); background:#f6bc6110; }
.shelf-work-count { margin:16px 0; color:var(--muted); font-size:13px; }
.shelf-bulk { padding:14px; margin-bottom:20px; }
.shelf-bulk summary { cursor:pointer; color:var(--accent); }
.shelf-bulk[open] summary { margin-bottom:14px; }
.shelf-choices { min-width:0; margin:0; padding:0; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.shelf-choices legend { margin-left:12px; padding:0 6px; color:var(--muted); font-size:13px; }
.shelf-choice { display:flex; gap:10px; align-items:center; padding:11px 12px; border-bottom:1px solid var(--line); cursor:pointer; font-size:14px; }
.shelf-choice:last-child { border:0; }
.shelf-choice > span { min-width:0; overflow-wrap:anywhere; }
.shelf-choice small { margin-left:auto; white-space:nowrap; font-size:11px; }
.shelf-choice input { flex:none; width:16px; height:16px; margin:0; accent-color:var(--accent); }
.shelf-choice[data-depth="2"] { padding-left:28px; }
.shelf-choice[data-depth="3"] { padding-left:44px; }
.shelf-choice:has(input:checked) { background:#f6bc6110; }
.shelf-work { min-width:0; }
.shelf-work-select { display:flex; align-items:start; gap:8px; font-size:12px; overflow-wrap:anywhere; margin-bottom:8px; }
.shelf-work > button { margin-top:8px; }
.shelf-content .work-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.shelf-content .work-grid[data-image-mode=portrait] { grid-template-columns:repeat(4,minmax(0,1fr)); }
.shelf-list-link { display:none; }
#dialog:has(#shelf-form) { max-height:90dvh; overflow-y:auto; }
.shelf-form .field { margin:0; }
@media(max-width:1000px) and (min-width:701px) {
 .shelf-layout { grid-template-columns:190px minmax(0,1fr); gap:20px; }
 .shelf-content .work-grid { grid-template-columns:minmax(0,1fr); }
 .shelf-content .work-grid[data-image-mode=portrait] { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
 .shelf-layout { display:block; }
 .shelf-sidebar { position:static; max-height:none; }
 .shelf-index:not(.shelf-editing) .shelf-content, .shelf-detail .shelf-sidebar, .shelf-editing .shelf-sidebar { display:none; }
 .shelf-sidebar .shelf-tree li { border-bottom:1px solid var(--line); }
 .shelf-sidebar .shelf-tree li a { padding-top:14px; }
 .shelf-list-link { display:inline-flex; margin-bottom:18px; }
 .shelf-content .work-grid { grid-template-columns:minmax(0,1fr); }
 .shelf-content .work-grid[data-image-mode=portrait] { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .shelf-heading h2 { font-size:23px; }
 .shelf-sort .button { font-size:11px; padding:7px 9px; }
}
