/* Shared anime and reading editor. Status tones match every poster action. */
:root{--nx-red:#ef3159;--nx-red-2:#b81338;--nx-red-soft:#ef31591f;--nx-panel:#100c11;--nx-panel-2:#1b151c;--nx-line:#ffffff1a;--nx-text:#f7f2f4;--nx-muted:#b3a5ae;--nx-planning:#4b8cff;--nx-current:#ef3159;--nx-completed:#279e67;--nx-paused:#bb8127;--nx-dropped:#936575}
.nx18-tracker-layer{display:none!important}
.nx20-media-layer{position:fixed;inset:0;z-index:360;font:500 14px/1.45 'Nunito Sans',system-ui,sans-serif;color:var(--nx-text)}
.nx20-media-layer *{box-sizing:border-box;letter-spacing:0}
.nx20-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:#020103b8;backdrop-filter:blur(6px)}
.nx20-modal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(580px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;padding:24px;border:1px solid var(--nx-line);border-radius:8px;background:var(--nx-panel);box-shadow:0 24px 80px #0008;scrollbar-width:thin;scrollbar-color:#57414c transparent}
.nx20-media-layer button{font-family:inherit;cursor:pointer}
.nx20-media-layer button:focus-visible,.nx20-media-layer input:focus-visible{outline:2px solid #ff8fa8;outline-offset:3px}
.nx20-media-layer button:disabled{opacity:.4;cursor:default}
.nx20-media-layer svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nx20-close{position:absolute;right:16px;top:16px;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;line-height:1;border-radius:50%;border:1px solid var(--nx-line);background:var(--nx-panel-2);color:var(--nx-muted);display:grid;place-items:center;z-index:2}
.nx20-head{display:flex;gap:14px;align-items:center;padding-right:32px;min-height:88px}
.nx20-head img{flex:none;width:60px;height:86px;object-fit:cover;border-radius:5px;background:var(--nx-panel-2)}
.nx20-head>div{min-width:0}
.nx20-head small{color:#f37794;font-size:10px;font-weight:800}
.nx20-head h2{margin:4px 0 5px;font:800 20px/1.3 'Manrope',sans-serif;overflow-wrap:anywhere}
.nx20-head p{margin:0;color:var(--nx-muted);font-size:12px}
.nx20-label{display:flex;align-items:center;gap:8px;margin:20px 0 10px}
.nx20-label span{font-size:11px;font-weight:800}
.nx20-label small{color:var(--nx-muted);font-size:11px}
.nx20-statuses{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.nx20-statuses button{--tone:#999;min-width:0;height:68px;border:1px solid var(--nx-line);border-radius:7px;background:var(--nx-panel-2);color:var(--nx-muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-weight:700;transition:background .15s}
.nx20-statuses button i{height:20px;display:grid;place-items:center}
.nx20-statuses button span{font-size:12px;white-space:nowrap}
.nx20-statuses [data-tone=planning]{--tone:var(--nx-planning)}.nx20-statuses [data-tone=current]{--tone:var(--nx-current)}.nx20-statuses [data-tone=completed]{--tone:var(--nx-completed)}.nx20-statuses [data-tone=paused]{--tone:var(--nx-paused)}.nx20-statuses [data-tone=dropped]{--tone:var(--nx-dropped)}
.nx20-statuses button.active{color:#fff;background:color-mix(in srgb,var(--tone) 23%,var(--nx-panel));border-color:var(--tone)}
.nx20-statuses button.active i{color:color-mix(in srgb,var(--tone) 75%,white)}
.nx20-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:15px;border-bottom:1px solid var(--nx-line)}
.nx20-progress>div:first-child{display:grid;gap:4px}
.nx20-progress span{font-size:12px;color:var(--nx-muted)}.nx20-progress strong{font-size:14px}
.nx20-stepper{display:flex;align-items:center;gap:6px}
.nx20-stepper button{width:34px;height:36px;border-radius:7px;border:1px solid var(--nx-line);background:var(--nx-panel-2);color:var(--nx-text);display:grid;place-items:center}
.nx20-stepper input{width:58px;height:36px;padding:0 3px;text-align:center;font-family:inherit;font-size:14px;font-weight:700;border:1px solid var(--nx-line);border-radius:7px;background:var(--nx-panel-2);color:var(--nx-text)}
.nx20-reactions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.nx20-reaction{min-height:36px;padding:7px 10px;border:1px solid var(--nx-line);border-radius:7px;background:var(--nx-panel-2);color:var(--nx-muted);font-size:12px;text-align:left;line-height:1.4}
.nx20-reaction span{margin-right:7px}.nx20-reaction.extra{display:none}
.nx20-reaction.active{color:var(--nx-text);background:var(--nx-red-soft);border-color:#ef315999}
.nx20-more,.nx20-clear-score{display:block;margin:10px auto 0;padding:5px 8px;border:0;background:transparent;color:#ff8fa8;font-size:12px}
.nx20-locked{margin:0;color:var(--nx-muted);font-size:12px}
.nx20-rating-row{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:center}
.nx20-rating output{font:800 24px/1 'Manrope',sans-serif;color:#f37794;text-align:center}
.nx20-rating input{width:100%;accent-color:var(--nx-red)}.nx20-rating-row>div>div{display:flex;justify-content:space-between;font-size:11px;color:var(--nx-muted)}
.nx20-footer{position:sticky;bottom:-24px;display:flex;justify-content:space-between;gap:10px;margin:24px -24px -24px;padding:16px 24px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--nx-line);background:var(--nx-panel)}
.nx20-footer button{min-height:40px;padding:8px 15px;border-radius:7px;font-size:13px;font-weight:800}
.nx20-footer .ghost{border:1px solid var(--nx-line);background:var(--nx-panel-2);color:var(--nx-muted)}
.nx20-footer .save{min-width:116px;background:var(--nx-red);border:1px solid #fa6281;color:white}
@media(max-width:600px){
 .nx20-modal{top:auto;bottom:0;transform:translateX(-50%);width:100%;max-height:92dvh;padding:20px 16px;border-radius:8px 8px 0 0}
 .nx20-head{gap:12px}.nx20-head h2{font-size:18px}.nx20-head img{width:52px;height:74px}
 .nx20-statuses{gap:5px}.nx20-statuses button{height:64px}.nx20-statuses button span{font-size:11px}
 .nx20-reaction{font-size:12px}.nx20-footer{bottom:-20px;margin:20px -16px -20px;padding-inline:16px}
}
@media(prefers-reduced-motion:reduce){.nx20-statuses button{transition:none}}
.nx20-media-open .nx20-sync-feedback{display:none}
.nx20-sync-feedback{position:fixed;z-index:1100;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 24px);box-sizing:border-box;display:grid;gap:4px;padding:12px 44px 8px 14px;border:1px solid var(--line,#49353f);border-radius:10px;background:var(--panel,#181216);color:var(--text,#f1eaf0);box-shadow:0 8px 24px #0004;font:600 12px/1.5 Manrope,sans-serif}.nx20-sync-feedback [data-sync-controls]{display:flex;flex-wrap:wrap;gap:10px}.nx20-sync-feedback button{min-height:44px;padding:8px 0;background:none;border:0;color:inherit;font:800 12px Manrope,sans-serif;cursor:pointer}.nx20-sync-feedback .nx20-sync-dismiss{position:absolute;top:0;right:0;width:44px;height:44px;font-size:20px}.nx20-sync-feedback button:focus-visible{outline:2px solid var(--red,#e3264f);outline-offset:3px;border-radius:3px}.nx20-save-feedback{margin:10px 20px;color:var(--red,#e3264f);font-size:12px;line-height:1.5}
