/* Writing Studio: dark, like the Webnovel writer screens. Only pages that add body.wn are dark. */
body.wn { --on-ink: #000; --ink-hover: #d4d4d8; --card: #212123; --glass: rgba(0,0,0,.9); --shine: rgba(255,255,255,.04); --blue-text: #9db8ff; --danger: #f87171; --danger-bg: #2a1212; --info-bg: #0f1b36; background: #000; color: #fff; color-scheme: dark; --ink: #fff; --ink-soft: #9b9ba1; --paper: #2a2a2c; --mist: #2c2c2e; --line: #3a3a3c; --blue: #2f6bff; --blue-hover: #1f55d8; }
body.wn .pd-nav, body.wn .pd-fab { display: none; }
body.wn .pd-wrap, body.wn .pd-main { background: #000; }
body.wn input, body.wn textarea, body.wn select { background: #2a2a2c; color: #fff; border-color: #3a3a3c; }
body.wn .cv-btn.ghost { background: #2c2c2e; color: #fff; border-color: #3a3a3c; }
body.wn .muted { color: #9b9ba1; }
.wn-head { display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px; background: #000; position: sticky; top: 0; z-index: 5; }
.wn-head h1 { flex: 1; margin: 0; min-width: 0; font: 700 1.15rem var(--font-display); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-b { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; padding: 4px 6px; cursor: pointer; }
.wn-pill { display: inline-block; background: #262628; color: #fff; border: 0; border-radius: 12px; padding: 10px 14px; font: 600 .9rem var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.wn-pill.sm { padding: 8px 12px; font-size: .8rem; }
.wn-tabs { display: flex; gap: 22px; padding: 4px 16px 12px; overflow-x: auto; }
.wn-tabs button { background: none; border: 0; padding: 6px 0; color: #9b9ba1; font: 700 1rem var(--font-body); white-space: nowrap; cursor: pointer; }
.wn-tabs button.on { color: #fff; }
.wn-panel { background: #212123; border-radius: 28px 28px 0 0; margin: 0 8px; padding: 18px 16px 40px; min-height: calc(100vh - 150px); }
.wn-empty { text-align: center; padding: 90px 0 30px; }
.wn-empty p { margin: 16px 0 4px; font: 600 1.05rem var(--font-body); }
.wn-empty small { color: #9b9ba1; }
.wn-foot { text-align: center; color: #9b9ba1; font-size: .85rem; margin: 40px 24px 0; line-height: 1.5; }
.wn-row { display: flex; gap: 8px; align-items: center; padding: 14px 0; border-bottom: 1px solid #333335; }
.wn-row .t { flex: 1; min-width: 0; }
.wn-row .t b { display: block; }
.wn-row .t small { color: #9b9ba1; }
.stp .cv-box { background: #212123; border: 0; border-radius: 20px; margin: 0 8px 12px; }
.stp .cv-box h2 { color: #fff; }
.st-stats { display: flex; gap: 20px; margin: 4px 0 6px; }
.st-stats b { display: block; font: 700 1.2rem var(--font-display); }
.st-stats small { color: #9b9ba1; }
.st-card { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: inherit; text-decoration: none; }
.st-card .t { flex: 1; min-width: 0; }
.st-card .t b { display: block; }
.st-card .t small { display: block; color: #9b9ba1; margin-top: 2px; }
.st-cover { width: 56px; height: 75px; flex: none; border-radius: 8px; object-fit: cover; background: #333335; }
.st-bar { height: 10px; border-radius: 9999px; background: #333335; overflow: hidden; margin: 6px 0; }
.st-bar i { display: block; height: 100%; background: var(--blue); }
.wn-r { display: flex; align-items: center; gap: 8px; }
.wn-pill.primary { background: #2f6bff; }
.wn-ico { color: #fff; text-decoration: none; font-size: 1.3rem; padding: 6px 4px; }
.wn-when { color: #9b9ba1; white-space: nowrap; }
.wn-row a.t { color: inherit; text-decoration: none; }
.wn-empty .cv-btn { margin-top: 16px; }
.st-lbl { margin: 14px 0 4px; color: #9b9ba1; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.st-pen, .st-more { background: none; border: 0; color: #5b8cff; cursor: pointer; font: 600 .85rem var(--font-body); }
.st-abs { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 4px; line-height: 1.5; }
.st-abs.open { -webkit-line-clamp: unset; }
.st-tiles { display: flex; gap: 8px; margin-top: 14px; }
.st-tile { flex: 1; background: #2c2c2e; border-radius: 14px; padding: 12px; text-align: center; color: #fff; text-decoration: none; }
.st-tile small { display: block; color: #9b9ba1; font-size: .75rem; }
.st-tile b { display: block; margin-top: 2px; }
.st-sch { color: #ffb84d; font-size: .85rem; }
.st-count { margin-left: 6px; font-style: normal; font-size: .75rem; color: #5b8cff; }
.st-cp { display: flex; gap: 14px; align-items: flex-end; }
.st-cover.big { display: block; width: 150px; height: 200px; overflow: hidden; border-radius: 10px; background: #333335; }
.st-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border: 1px solid #3a3a3c; border-radius: 12px; background: #2a2a2c; }
.st-chip { background: #3a1d22; color: #ff6b7a; border-radius: 9999px; padding: 6px 10px; font-weight: 600; font-size: .85rem; }
.st-chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1rem; padding: 0 0 0 6px; }
.st-chips .st-tagin { flex: 1; min-width: 90px; border: 0; background: transparent; color: #fff; outline: none; padding: 6px; }
.st-sug { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.st-sug button { background: #2c2c2e; border: 0; color: #cfcfd4; border-radius: 9999px; padding: 6px 12px; font-size: .8rem; cursor: pointer; }
.st-ti { width: 100%; font: 700 1.3rem var(--font-display); background: transparent; border: 0; border-bottom: 1px solid #3a3a3c; border-radius: 0; padding: 10px 0; color: #fff; }
.st-tb { display: flex; gap: 8px; margin: 12px 0; }
.st-tb button { width: 40px; height: 36px; border-radius: 8px; border: 1px solid #3a3a3c; background: #2c2c2e; color: #fff; cursor: pointer; }
.st-body { width: 100%; min-height: 50vh; font: 1.02rem/1.7 Georgia, serif; resize: vertical; border-radius: 12px; padding: 14px; margin-bottom: 12px; }

/* Dark Writing Studio: pickers, sheets and pop-ups were white with white text, so words were hidden. */
body.wn .sel-btn { background: #2a2a2c; color: #fff; border-color: #3a3a3c; }
body.wn .sel-btn.is-empty { color: #9b9ba1; }
body.wn .sel-btn:disabled { background: #2c2c2e; }
body.wn .sel-sheet, body.wn .sh { background: #212123; color: #fff; }
body.wn .sel-grip, body.wn .sh .grip { background: #555; }
body.wn .sel-title, body.wn .sh .hd h2 { color: #fff; }
body.wn .sel-find { background: #2a2a2c; color: #fff; border-color: #3a3a3c; }
body.wn .sel-opt { color: #fff; border-top-color: #3a3a3c; }
body.wn .sel-opt:hover { background: #2c2c2e; }
body.wn .sel-opt[aria-selected=true] { color: #7aa2ff; }
body.wn .sel-none, body.wn .sh .sub, body.wn .sh .muted, body.wn .cv-check small { color: #9b9ba1; }
body.wn .sh .x { color: #fff; border-color: #3a3a3c; }
body.wn .sh .btn2 { background: #2c2c2e; color: #fff; border-color: #3a3a3c; }
body.wn .sh .btn2.pri { background: var(--blue); border-color: var(--blue); color: #fff; }
body.wn .sh input, body.wn .sh textarea { background: #2a2a2c; color: #fff; border-color: #3a3a3c; }

.er-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid #2c2c30; font-size: .94rem; color: #fff; }
.er-row:first-of-type { border-top: 0; } .er-row span { min-width: 0; } .er-row b { flex: none; font-weight: 600; }
.er-row small { display: block; margin-top: 2px; color: #9b9ba1; font-size: .78rem; }
