@font-face{font-family:JlinkReviewHand;src:url('/assets/fonts/nanum-pen/NanumPenScript-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
.rv-page,.rv-admin,.rv-home{--rv-ink:#15213b;--rv-muted:#64748b;--rv-accent:#002c83;--rv-soft:#f1f6ff;--rv-surface:#fff;--rv-border:#dfe6f0;--rv-star:#b97b15;color:var(--rv-ink);font-family:'Noto Sans KR','Malgun Gothic',sans-serif;line-height:1.7}
.rv-admin{--rv-ink:var(--admin-text,#15213b);--rv-muted:var(--admin-muted,#64748b);--rv-accent:var(--admin-accent,#002c83);--rv-soft:var(--admin-surface-soft,#f1f6ff);--rv-surface:var(--admin-surface-solid,#fff);--rv-border:var(--admin-border,#dfe6f0);--rv-star:var(--admin-warning,#b97b15)}
.rv-page *,.rv-admin *,.rv-home *{box-sizing:border-box}.rv-page [hidden],.rv-admin [hidden],.rv-home [hidden]{display:none!important}
.rv-page{max-width:1160px;margin:auto;padding:150px 28px 90px;min-height:75vh}.rv-detail-inner{max-width:920px;margin-inline:auto}.rv-admin .container{max-width:1320px}.rv-back{margin-bottom:26px}.rv-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:8px 0 34px}.rv-heading h1{font-size:clamp(25px,3vw,36px);letter-spacing:-1.3px;margin:0 0 8px;line-height:1.35;color:var(--rv-ink)}.rv-heading p{margin:0}.rv-kicker{font:700 11px/1.5 'Montserrat',sans-serif;letter-spacing:2.2px;color:var(--rv-accent);margin:0 0 12px!important}.rv-muted,.rv-help{color:var(--rv-muted)}.rv-help{font-size:12px;line-height:1.8;margin:16px 0}.rv-help small{font:inherit}.rv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:30px}.rv-card{display:block;background:var(--rv-surface);border:1px solid var(--rv-border);border-radius:16px;padding:27px;text-decoration:none;color:var(--rv-ink);min-width:0}.rv-card h2{font-size:21px;letter-spacing:-.6px;margin:18px 0 15px}.rv-label{font-size:11px;color:var(--rv-muted);font-weight:600;display:block}.rv-badge{font-size:11px;font-weight:700;border:1px solid var(--rv-border);background:var(--rv-soft);border-radius:6px;padding:4px 9px;white-space:nowrap;display:inline-block;color:var(--rv-ink)}.rv-badge[data-state='공개 중']{color:#14734a;background:#e7f5ed;border-color:#b5dfc8}.rv-badge[data-state='검토 대기']{color:#8b5a09;background:#fff6e3;border-color:#ecd7ae}.rv-row{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.rv-stars{display:inline-flex;align-items:center;gap:2px;color:var(--rv-star);font-size:18px;line-height:1.5;white-space:nowrap}.rv-star{position:relative;display:inline-block;color:#d1d9e4;line-height:1;flex-shrink:0}.rv-star-fill{position:absolute;left:0;top:0;overflow:hidden;color:var(--rv-star);white-space:nowrap;height:100%}.rv-stars b{font:600 12px/1.5 sans-serif;color:var(--rv-muted);margin-left:8px}.rv-excerpt{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-line;font-size:14px;line-height:1.9;margin:20px 0 26px}.rv-handwriting{font-family:JlinkReviewHand,'Malgun Gothic',cursive!important;font-size:25px!important;font-weight:400;line-height:1.55!important;letter-spacing:.1px}.rv-my-card .rv-actions{margin-top:22px}.rv-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rv-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:8px;border:1px solid var(--rv-accent);background:var(--rv-accent);color:#fff;font:600 13px/1.5 sans-serif;font-family:inherit;cursor:pointer;text-decoration:none;white-space:nowrap}.rv-admin .rv-btn{background:var(--admin-accent,#002c83);color:var(--admin-accent-contrast,#fff)}.rv-btn.rv-secondary{background:var(--rv-surface);color:var(--rv-ink);border-color:var(--rv-border)}.rv-btn.rv-danger{background:#a33a43;color:#fff;border-color:#a33a43}.rv-btn:hover{filter:brightness(.94)}.rv-btn:disabled{opacity:.5;cursor:not-allowed}.rv-text-btn{background:none;border:0;color:var(--rv-muted);text-decoration:underline;text-underline-offset:4px;padding:8px 2px;min-height:40px;font:inherit;font-size:12px;cursor:pointer}.rv-page :focus-visible,.rv-admin :focus-visible,.rv-home :focus-visible{outline:3px solid #70a3ec;outline-offset:4px}.rv-empty{text-align:center;padding:50px 24px;border:1px dashed var(--rv-border);border-radius:14px;background:var(--rv-soft);margin:24px 0}.rv-empty h2{font-size:21px;margin:0 0 10px}.rv-empty p{font-size:14px;color:var(--rv-muted);margin:12px 0 24px}.rv-empty-small{font-size:13px;padding:25px}.rv-notice{border:1px solid #b2dbc6;border-radius:9px;background:#eff9f3;color:#176441;padding:15px 18px;margin:20px 0;font-size:13px}.rv-error{border-color:#edc3c3;color:#94383b;background:#fff2f2}.rv-pagination{display:flex;justify-content:center;gap:24px;align-items:center;padding:28px;font-size:13px}.rv-pagination a{color:var(--rv-accent)}
.rv-admin-note{border:1px solid var(--rv-border);padding:18px 22px;background:var(--rv-soft);border-radius:8px;margin-bottom:25px}.rv-admin-note strong{font-size:14px}.rv-admin-note p{color:var(--rv-muted);font-size:12px;margin:5px 0 0}.rv-panel{border:1px solid var(--rv-border);border-radius:12px;background:var(--rv-surface);overflow:hidden}.rv-toolbar{display:flex;align-items:center;gap:14px;padding:22px;flex-wrap:wrap;border-bottom:1px solid var(--rv-border);font-size:13px}.rv-toolbar label{display:flex;gap:12px;align-items:center}.rv-toolbar select{border:1px solid var(--rv-border);background:var(--rv-soft);color:var(--rv-ink);border-radius:6px;padding:10px;font:inherit}.rv-toolbar>a{margin-left:auto;color:var(--rv-accent)}.rv-admin-item{display:flex;justify-content:space-between;gap:28px;text-decoration:none;color:var(--rv-ink);padding:25px;border-bottom:1px solid var(--rv-border)}.rv-admin-item:hover{background:var(--rv-soft)}.rv-admin-item>div:first-child{min-width:0}.rv-admin-item h2{font-size:16px;margin:12px 0 7px}.rv-admin-item .rv-excerpt{-webkit-line-clamp:2;margin:8px 0;font-size:13px}.rv-item-end{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;flex-shrink:0;font-size:12px;color:var(--rv-accent)}.rv-full-review .rv-review-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:2;margin:32px 0}.rv-full-review .rv-actions{margin-top:24px}.rv-comments{margin-top:40px}.rv-comments h2{font-size:19px}.rv-comment{border-top:1px solid var(--rv-border);padding:24px 4px}.rv-comment>.rv-row{font-size:13px}.rv-comment>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9}.rv-comment>.rv-badge{margin-top:10px}.rv-staff-comment{background:var(--rv-soft);padding-inline:22px;border-radius:10px;margin-block:12px}.rv-history{border-top:1px solid var(--rv-border);margin-top:35px;padding-top:25px;font-size:12px}.rv-history summary{cursor:pointer;font-size:15px;font-weight:700}.rv-history article{border-bottom:1px solid var(--rv-border);padding:18px 0}.rv-history article p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--rv-muted);max-height:200px;overflow:auto}
/* Native dialogs retain focus, fixed chrome and one scrolling content area. */
.rv-dialog{inset:0;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 36px);margin:auto;padding:0;border:1px solid var(--rv-border);border-radius:16px;background:var(--rv-surface);color:var(--rv-ink);box-shadow:0 25px 100px #071b4c40;overflow:hidden;font:inherit}.rv-dialog-small{width:min(470px,calc(100vw - 32px))}.rv-dialog:not([open]){display:none}.rv-dialog[open]{display:flex;flex-direction:column}.rv-dialog::backdrop{background:rgba(9,20,42,.6);backdrop-filter:blur(4px)}.rv-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 28px;border-bottom:1px solid var(--rv-border);flex-shrink:0}.rv-dialog h2{font-size:22px;line-height:1.4;letter-spacing:-.5px;margin:0}.rv-close{flex-shrink:0;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--rv-border);border-radius:9px;background:var(--rv-soft);color:var(--rv-ink);font:400 26px/1 sans-serif;cursor:pointer}.rv-dialog>form{display:flex;flex-direction:column;min-height:0;margin:0;overflow:hidden}.rv-dialog-body{padding:26px 28px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.rv-dialog footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:18px 28px;border-top:1px solid var(--rv-border);flex-shrink:0;margin:0;background:var(--rv-surface)}.rv-field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin:0 0 20px;color:var(--rv-ink)}.rv-field small{font-weight:400;color:var(--rv-muted);font-size:11px}.rv-dialog input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.rv-dialog select,.rv-dialog textarea{display:block;width:100%;min-width:0;margin:0;border:1px solid var(--rv-border);border-radius:8px;background:var(--rv-soft);color:var(--rv-ink);font:400 14px/1.7 sans-serif;font-family:inherit;padding:11px 13px;box-shadow:none;min-height:44px}.rv-dialog textarea{resize:vertical;line-height:1.8;max-height:350px}.rv-dialog input[type=hidden]{display:none}.rv-check{display:flex;align-items:flex-start;gap:10px;margin:12px 0;font-size:12px;font-weight:500;line-height:1.8}.rv-check input{appearance:auto;flex-shrink:0;width:18px;height:18px;margin:2px 0 0;accent-color:var(--rv-accent)}.rv-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.rv-count{text-align:right;font-variant-numeric:tabular-nums}html:has(.rv-dialog[open]){overflow:hidden;scrollbar-gutter:stable}
.rv-home{background:#f4f7fc;overflow:hidden;padding:48px 0!important;border-block:1px solid #e5ebf5}
.rv-home .jh-section-heading{margin-bottom:40px}.rv-home .jh-section-heading h2{margin:0;color:var(--rv-accent)}
.rv-marquee{overflow:hidden;padding:6px 0}.rv-track{display:flex;width:max-content;will-change:transform}.rv-track-group{display:flex;gap:18px;padding-right:18px}.rv-marquee[data-ready=true] .rv-track{animation:rv-travel var(--rv-duration,45s) linear infinite}.rv-marquee:is(:hover,:focus-within,[data-paused=true]) .rv-track{animation-play-state:paused}
.rv-story{display:flex;flex-direction:column;flex:0 0 340px;width:340px;padding:20px;border:1px solid #e0e7f1;border-radius:12px;background:#fff;color:#15213b;text-decoration:none;box-shadow:0 3px 10px #18376806}.rv-story:nth-child(even){background:#fdfcf8}.rv-story:hover{border-color:#9eafd0}.rv-plan{align-self:flex-start;display:inline-block;font-size:16px;font-weight:700;line-height:1.5;letter-spacing:-.4px}.rv-plan-basic{color:#2459a8}.rv-plan-premium{color:#946019}.rv-story .rv-stars{margin-top:7px}.rv-story .rv-handwriting{height:116.25px;margin:12px 0 14px;-webkit-line-clamp:3}.rv-story-footer{display:flex;align-items:center;margin-top:auto;border-top:1px solid #edf0f6;padding-top:11px;font-size:12px}.rv-static .rv-track{width:100%;justify-content:center}.rv-static .rv-track-group{padding:0}.rv-static .rv-story{width:min(560px,calc(100vw - 48px));flex-basis:auto}.rv-static .rv-story .rv-handwriting{height:auto}
@keyframes rv-travel{to{transform:translateX(-50%)}}
@media(max-width:980px){.rv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rv-heading{align-items:flex-start}}
@media(max-width:640px){.rv-page{padding:115px 20px 60px}.rv-heading{flex-direction:column;gap:20px;margin-bottom:26px}.rv-grid{grid-template-columns:1fr;gap:16px}.rv-card{padding:23px}.rv-dialog>header{padding:20px}.rv-dialog h2{font-size:20px}.rv-dialog-body{padding:20px}.rv-dialog footer{padding:16px 20px}.rv-form-grid{grid-template-columns:1fr}.rv-admin-item{padding:20px;flex-direction:column;gap:12px}.rv-item-end{flex-direction:row;align-items:center}.rv-toolbar{padding:18px;gap:10px}.rv-toolbar>a{margin-left:0}.rv-full-review .rv-row{align-items:flex-start;flex-direction:column}.rv-home{padding:34px 0!important}.rv-story{width:290px;flex-basis:290px;padding:18px}.rv-home .jh-section-heading{margin-bottom:32px}.rv-track-group{gap:15px;padding-right:15px}.rv-comment .rv-row{align-items:flex-start;gap:5px}.rv-history .rv-row{align-items:flex-start;gap:5px}}
@media(prefers-reduced-motion:reduce){.rv-marquee[data-ready=true] .rv-track{animation:none;transform:none;will-change:auto}.rv-marquee{overflow-x:auto}.rv-track-group[aria-hidden=true]{display:none}}
/* Public header's button reset is scoped to .jlink-home; retain review control geometry. */
.rv-page .rv-btn,.rv-admin .rv-btn{padding:10px 18px;border:1px solid var(--rv-accent);background:var(--rv-accent);color:var(--admin-accent-contrast,#fff);font-family:inherit;font-size:13px;font-weight:600;line-height:1.5}
.rv-page .rv-btn.rv-secondary,.rv-admin .rv-btn.rv-secondary{background:var(--rv-surface);color:var(--rv-ink);border-color:var(--rv-border)}
.rv-page .rv-btn.rv-danger,.rv-admin .rv-btn.rv-danger{background:#a33a43;border-color:#a33a43;color:#fff}
.rv-page .rv-close,.rv-admin .rv-close{padding:0;border:1px solid var(--rv-border);color:var(--rv-ink);font:400 26px/1 sans-serif}
.rv-toolbar label{white-space:nowrap}.rv-comment-pending{display:inline-block;margin-left:9px;font-size:11px;font-weight:600;color:var(--rv-accent)}.rv-draft{padding:18px;border:1px solid var(--rv-border);border-radius:9px;background:var(--rv-soft);margin:18px 0;font-size:12px}.rv-draft summary{cursor:pointer;font-weight:700}.rv-draft textarea{width:100%;padding:12px;font:inherit;background:var(--rv-surface);color:var(--rv-ink);border:1px solid var(--rv-border);border-radius:6px}

/* Review pages have no fixed mobile CTA; let normal flow keep the footer at the bottom. */
body.jlink-home.rv-layout{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;padding-bottom:0}
.rv-layout>.rv-page{flex:1 0 auto;width:100%;min-height:0;margin:0 auto;box-sizing:border-box}
.rv-layout>.jh-footer{flex-shrink:0;margin-top:auto}
.rv-review-grid{gap:20px}.rv-review-grid>.rv-story{width:auto;min-width:0;flex:auto}
.rv-load-more{display:flex;justify-content:center;margin:32px 0 0}.rv-load-more .rv-btn{min-width:180px}
.rv-load-status{text-align:center;margin:12px 0 0;min-height:0}.rv-load-status:empty{display:none}.rv-load-status[data-error=true]{color:#94383b}

/* Keep modal titles, action rows and form controls usable at narrow widths. */
.rv-dialog > header > :first-child { min-width:0; overflow-wrap:anywhere; }
.rv-dialog > form { flex:1 1 auto; }
.rv-dialog-body { flex:1 1 auto; overflow-x:hidden; }
.rv-dialog footer { flex-wrap:wrap; }
.rv-page .rv-close,.rv-admin .rv-close { width:44px; height:44px; min-width:44px; min-height:44px; }
.rv-dialog footer .rv-btn { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
@media(max-width:420px) {
  .rv-dialog footer .rv-btn { flex:1 1 auto; }
  .rv-admin .rv-toolbar label { width:100%; min-width:0; justify-content:space-between; }
  .rv-admin .rv-toolbar select { min-width:0; max-width:100%; }
}

/* Match the reserved scrollbar gutter to the admin theme. */
html:has(.rv-admin) { background:#edf2f8; color-scheme:light; }
html[data-admin-theme=dark]:has(.rv-admin) { background:#0b1120; color-scheme:dark; }

/* Admin input defaults reserve 42px; checkbox geometry must stay aligned with its label. */
.rv-admin .rv-check input,.rv-page .rv-check input { min-width:18px; min-height:18px; width:18px; height:18px; padding:0; flex:0 0 18px; }

/* One continuous star row; native radios retain form validation and keyboard access. */
.rv-rating{border:0;padding:0;margin:22px 0 26px;min-width:0}
.rv-rating legend{display:flex;align-items:center;gap:10px;width:100%;font-size:13px;font-weight:600;margin-bottom:12px;padding:0}
.rv-rating legend small{color:var(--rv-muted);font-size:11px;font-weight:400}
.rv-rating-surface{display:flex;flex-direction:column;align-items:center;padding:22px 12px 16px;border:1px solid var(--rv-border);border-radius:14px;background:var(--rv-soft)}
.rv-rating-stars{display:flex;justify-content:center;width:100%;max-width:264px;gap:6px}
.rv-rating-option{position:relative;cursor:pointer;margin:0}
.rv-rating input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-width:0;min-height:0;padding:0;margin:0}
.rv-rating-option{display:grid;place-items:center;flex:1 1 0;min-width:0;max-width:48px;height:52px;touch-action:manipulation}
.rv-rating-glyph{display:grid;place-items:center;width:100%;height:100%;font:46px/1 Arial,sans-serif;color:#cbd5e4;transition:color .16s ease,transform .16s ease,filter .16s ease;border-radius:9px;user-select:none}
.rv-rating-option.is-filled .rv-rating-glyph,.rv-rating-option:has(input:checked) .rv-rating-glyph{color:#e9a721;filter:drop-shadow(0 2px 2px #ba79141f)}
.rv-rating.is-previewing .rv-rating-option:has(input:checked):not(.is-filled) .rv-rating-glyph{color:#cbd5e4;filter:none}
.rv-rating-option.is-selected .rv-rating-glyph{transform:translateY(-2px) scale(1.08)}
.rv-rating-option input:focus-visible+.rv-rating-glyph{outline:3px solid #70a3ec;outline-offset:3px}
.rv-rating-feedback{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;min-height:28px;margin:12px 0 4px;text-align:center}
.rv-rating-feedback strong{font-size:20px;line-height:1.5;color:var(--rv-ink);font-variant-numeric:tabular-nums}
.rv-rating-feedback>span{font-size:13px;color:var(--rv-muted)}
@media(max-width:420px){.rv-rating-stars{gap:2px}.rv-rating-option{max-width:42px;height:48px}.rv-rating-glyph{font-size:40px}.rv-rating-feedback{flex-direction:column;gap:0}.rv-rating-surface{padding:16px 8px 10px}}
@media(prefers-reduced-motion:reduce){.rv-rating-glyph{transition:none}.rv-rating-option.is-selected .rv-rating-glyph{transform:none}}

/* Review actions, threaded conversation and administrator-only visibility controls. */
.rv-review-actions { width:100%; }
.rv-review-actions .rv-review-delete { margin-inline-start:auto; }
.rv-admin-summary { flex:1; min-width:0; color:inherit; text-decoration:none; }
.rv-admin-item .rv-item-end { gap:18px; justify-content:flex-start; }
.rv-comments-heading { margin-bottom:18px; gap:12px; }
.rv-comments-heading h2 { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0; }
.rv-comment-count { display:inline-grid; place-items:center; min-width:26px; padding:2px 8px; border-radius:20px; color:var(--rv-accent); background:var(--rv-soft); font-size:12px; }
.rv-comment-list { display:grid; gap:12px; }
.rv-comment-list > .rv-comment { min-width:0; margin-block:0; padding:20px; border:1px solid var(--rv-border); border-radius:12px; background:var(--rv-surface); }
.rv-comment-list > .rv-staff-comment { background:var(--rv-soft); }
.rv-comment[data-depth="1"] { margin-inline-start:26px; }
.rv-comment[data-depth="2"] { margin-inline-start:52px; }
.rv-comment-header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:10px 12px; }
.rv-comment-author { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; font-size:13px; }
.rv-comment-author strong { min-width:0; overflow-wrap:anywhere; }
.rv-comment-date { justify-self:end; white-space:nowrap; font-size:11px; line-height:1.7; font-variant-numeric:tabular-nums; }
.rv-comment-header > .rv-publication-form { grid-column:1 / -1; justify-self:end; }
.rv-staff-label { border:1px solid var(--rv-border); border-radius:5px; padding:1px 6px; font-size:10px; color:var(--rv-accent); }
.rv-comment .rv-reply-to { margin:14px 0 0; color:var(--rv-accent); font-size:11px; }
.rv-comment .rv-comment-body { margin:12px 0 16px; font-size:14px; line-height:1.85; }
.rv-comment-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.rv-page .rv-comment-action,.rv-admin .rv-comment-action { display:inline-flex; justify-content:center; align-items:center; min-height:36px; padding:6px 12px; border:1px solid var(--rv-border); border-radius:7px; color:var(--rv-ink); background:var(--rv-surface); font-weight:600;line-height:1.5; font-family:inherit; font-size:12px; cursor:pointer; }
.rv-page .rv-comment-remove,.rv-admin .rv-comment-remove { margin-inline-start:auto; color:#a33a43; border-color:#dfbcc0; background:#fff5f5; }
.rv-comment-action:hover { filter:brightness(.96); }
.rv-publication-form { display:flex; align-items:center; gap:9px; margin:0; font-size:12px; white-space:nowrap; }
.rv-admin .rv-visibility-toggle { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:5px 7px; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--rv-muted); font-family:inherit; cursor:pointer; }
.rv-toggle-track { display:inline-block; position:relative; flex:0 0 38px; width:38px; height:22px; border-radius:20px; background:#a4adbc; transition:background .15s; }
.rv-toggle-track::after { content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #13234430; transition:transform .15s; }
.rv-visibility-toggle[aria-checked=true] .rv-toggle-track,.rv-visibility-setting input:checked + .rv-toggle-track { background:var(--rv-accent); }
.rv-visibility-toggle[aria-checked=true] .rv-toggle-track::after,.rv-visibility-setting input:checked + .rv-toggle-track::after { transform:translateX(16px); }
.rv-toggle-state { font-size:11px; font-weight:700; min-width:23px; }
.rv-visibility-toggle[aria-checked=true] { color:var(--rv-accent); }
.rv-visibility-toggle:disabled { opacity:.45; cursor:not-allowed; }
.rv-visibility-setting { display:flex; position:relative; align-items:center; gap:10px; padding:14px 16px; margin:0 0 22px; border:1px solid var(--rv-border); border-radius:10px; font-size:13px; cursor:pointer; }
.rv-visibility-setting > span:first-child { margin-inline-end:auto; }
.rv-admin .rv-visibility-setting input { position:absolute; width:1px; height:1px; min-width:0; min-height:0; padding:0; margin:0; opacity:0; }
.rv-visibility-setting input:focus-visible + .rv-toggle-track { outline:3px solid #70a3ec; outline-offset:3px; }
.rv-visibility-setting input:disabled ~ span { opacity:.45; }
.rv-toggle-choice::after { content:"OFF"; font-size:11px; font-weight:700; }
.rv-visibility-setting input:checked ~ .rv-toggle-choice::after { content:"ON"; }
.rv-reply-context { padding:14px 16px; margin-bottom:20px; border:1px solid var(--rv-border); border-radius:9px; background:var(--rv-soft); font-size:12px; }
.rv-reply-context strong { color:var(--rv-accent); }
.rv-reply-context p { white-space:pre-line; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; margin:5px 0 0; color:var(--rv-muted); }
@media(max-width:640px) {
  .rv-comment-list > .rv-comment { padding:16px; }
  .rv-comment[data-depth="1"] { margin-inline-start:12px; }
  .rv-comment[data-depth="2"] { margin-inline-start:24px; }
  .rv-admin-item .rv-item-end { justify-content:space-between; flex-wrap:wrap; }
  .rv-comments-heading h2 { font-size:18px; }
}
@media(prefers-reduced-motion:reduce) { .rv-toggle-track,.rv-toggle-track::after { transition:none; } }

/* Homepage-wide publication is separate from each review's approval. */
.rv-home-visibility{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;margin-bottom:20px;border:1px solid var(--rv-border);border-radius:12px;background:var(--rv-surface)}
.rv-home-visibility-copy{min-width:0}.rv-home-visibility h2{margin:0 0 6px;font-size:18px;line-height:1.5;letter-spacing:-.4px;color:var(--rv-ink)}
.rv-home-visibility p{margin:0 0 8px;font-size:14px;color:var(--rv-ink)}.rv-home-visibility small{display:block;font-size:12px;line-height:1.8;color:var(--rv-muted)}
.rv-home-visibility form{margin:0;flex-shrink:0}.rv-home-visibility .rv-visibility-toggle{min-height:48px;padding:10px 14px;border-color:var(--rv-border);background:var(--rv-soft)}
@media(max-width:640px){
  .rv-home-visibility{padding:20px;gap:16px;flex-wrap:wrap}.rv-home-visibility form{margin-left:auto}
  /* 70% of the previous speed: 45s becomes approximately 64.3s. */
  .rv-marquee[data-ready=true] .rv-track{animation-duration:calc(var(--rv-duration,45s) / .7)}
}

/* Homepage: wider editorial cards, with the rating aligned to the top right. */
.rv-home .rv-story{width:476px;flex-basis:476px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto 1fr;column-gap:12px;row-gap:0;padding:24px}
.rv-home .rv-plan{grid-column:1;grid-row:1;font-size:21px}
.rv-home .rv-story>.rv-stars{grid-column:2;grid-row:1;margin:0;font-size:24px;align-self:center}
.rv-home .rv-stars b{font-size:15px;margin-left:5px}
.rv-home .rv-story-footer{grid-column:1 / -1;grid-row:2;border:0;padding:0;margin:0;font-size:16px;line-height:1.4}
.rv-home .rv-story .rv-handwriting{grid-column:1 / -1;grid-row:3;margin:14px 0 0}
.rv-home .rv-marquee[data-ready=true] .rv-track{animation-duration:var(--rv-home-duration,89s)}
@media(max-width:640px){
 .rv-home .rv-marquee{overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-left:20px;padding:6px 20px 12px;scrollbar-width:none;overscroll-behavior-x:contain}
 .rv-home .rv-marquee::-webkit-scrollbar{display:none}
 .rv-home .rv-track{animation:none!important;transform:none!important;will-change:auto}
 .rv-home .rv-track-group{gap:12px;padding-right:calc(10vw + 12px)}
 .rv-home .rv-story{width:calc((100vw - 32px) / 1.1);flex-basis:calc((100vw - 32px) / 1.1);scroll-snap-align:start;padding:20px;column-gap:8px}
 .rv-home .rv-plan{font-size:18px}
 .rv-home .rv-story>.rv-stars{font-size:19px;gap:1px}
 .rv-home .rv-stars b{font-size:13px;margin-left:3px}
 .rv-home .rv-story-footer{font-size:15px}
 .rv-home .rv-static .rv-track-group{padding:0}
 .rv-home .rv-static .rv-story{width:calc(100vw - 40px);flex-basis:auto}
}
