.koto-selfbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.koto-status-menu{position:relative}.koto-status-menu>summary{display:flex;gap:10px;align-items:center;cursor:pointer;list-style:none;min-height:48px;padding:4px;border-radius:6px}.koto-status-menu summary::-webkit-details-marker{display:none}.koto-status-menu summary strong{font-size:14px}.koto-status-menu summary small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.koto-status-menu>div{position:absolute;top:54px;left:0;z-index:60;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 28px #0002;width:min(270px,calc(100vw - 40px));padding:7px}.koto-status-menu>div button{display:flex;align-items:center;gap:10px;width:100%;border:0;text-align:left;min-height:44px;font-size:13px}.koto-status-menu>div p{font-size:10px;color:var(--muted);margin:8px}.koto-avatar-wrap{display:inline-block;position:relative;flex:0 0 38px;width:38px;height:38px}.koto-avatar-wrap img{width:38px;height:38px;border-radius:50%;object-fit:cover;display:block}.koto-avatar-wrap .koto-avatar{margin:0}.presence-mark{position:absolute;bottom:-1px;right:-1px;width:13px;height:13px;border-radius:50%;border:2px solid var(--panel);background:#7c8791}.koto-avatar-wrap[data-status=online] .presence-mark,.status-swatch[data-status=online]{background:#36865f}.koto-avatar-wrap[data-status=writing] .presence-mark,.status-swatch[data-status=writing]{background:#4b7cb4}.koto-avatar-wrap[data-status=writing] .presence-mark:after{content:'✎';font-size:9px;font-style:normal;color:#fff;position:absolute;top:-3px;left:0}.koto-avatar-wrap[data-status=away] .presence-mark,.status-swatch[data-status=away]{background:#c39337}.koto-avatar-wrap[data-status=hidden] .presence-mark{background:var(--panel);border:2px solid var(--muted)}.status-swatch{display:inline-block;width:10px;height:10px;border-radius:50%;background:#84909b}.koto-avatar-link{padding:0;border:0;border-radius:50%;background:transparent;min-height:38px;display:inline-flex;align-items:center;flex-shrink:0}.koto-person>span:last-child{min-width:0}.koto-section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.koto-section-heading h2{margin:0}.koto-section-heading button{font-size:12px;min-height:40px;padding:7px 10px}.book-read-label{display:block;font-size:11px;color:var(--accent);margin-top:12px}.social-save-state{font-size:11px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.social-save-state.danger{color:#b94343}.profile-link-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,2fr) auto;align-items:end;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.profile-link-row label{margin:0}.profile-link-row button{margin-bottom:1px;min-height:42px}.profile-public-links{display:flex;flex-direction:column;gap:14px;margin-top:22px}.profile-public-links a{color:var(--accent);overflow-wrap:anywhere}.friend-profile p{white-space:pre-wrap;font-size:14px;line-height:1.8}.friend-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover}.koto-data-management>summary{cursor:pointer;font-size:16px;padding:5px 0;min-height:40px}.koto-data-management>details{margin-top:22px;border-top:1px solid var(--line);padding-top:16px}.koto-data-management summary{cursor:pointer}.koto-data-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.koto-data-actions button{font-size:12px;min-height:42px}.koto-reading{padding:20px}.reading-top{display:flex;justify-content:space-between;gap:10px}.reading-top button{font-size:12px;min-height:40px}.reading-heading{margin:20px 0}.reading-heading h2{font-size:1.45rem;line-height:1.6;margin-bottom:12px}.reading-heading .koto-intro{margin-top:16px;font-size:.9rem;line-height:1.8}.koto-reading .koto-reader-layout{gap:24px;margin-top:18px}.reading-main{min-width:0}.reading-main>h3{font-size:1.2rem;margin:0 0 18px}.koto-reading .koto-reader-body{font-size:1.125rem;line-height:1.95;max-width:42em;min-height:160px;line-break:strict;word-break:normal}.koto-reading .koto-reader-body.vertical{max-width:100%;height:65dvh;padding:12px}.reading-pagination{display:flex;gap:10px;justify-content:space-between;margin-top:24px}.reading-pagination button{font-size:12px;min-height:42px}.reading-comments{margin-top:36px;padding-top:22px;border-top:1px solid var(--line)}.reading-comments h3{font-size:1.1rem}.reading-comments .koto-comment p{font-size:1rem;line-height:1.8}.reading-comments form>label{font-size:14px}.reading-comments textarea{font-size:1rem}.koto-reader-layout nav .active{background:var(--hover);border-color:var(--accent)}.koto-reader-layout nav small{display:block;color:var(--muted);font-size:10px}
@media(max-width:700px){.koto-selfbar{margin:10px 0;align-items:flex-start}.koto-selfbar .social-save-state{max-width:130px}.koto-status-menu summary strong{font-size:13px}.koto-status-menu summary small{font-size:10px}.koto-section-heading h2{font-size:16px}.koto-section-heading button{font-size:11px;padding:6px 8px;white-space:nowrap}.profile-link-row{grid-template-columns:minmax(0,1fr) auto;gap:10px}.profile-link-row label:first-child{grid-column:1/-1}.profile-link-row input{font-size:16px}.profile-link-row button{font-size:11px;padding:8px;min-width:44px}.koto-reading{padding:14px}.reading-top button{font-size:11px;padding:6px 9px}.reading-heading{margin:16px 0}.reading-heading h2{font-size:1.25rem}.koto-reading .koto-reader-layout{margin-top:14px}.koto-reading .koto-reader-body{font-size:1rem;line-height:1.9}.koto-reading .koto-reader-layout nav{margin-bottom:18px}.koto-reading .koto-reader-layout nav button{min-width:120px;font-size:12px;min-height:44px}.reading-comments{margin-top:26px;padding-top:18px}.reading-comments textarea{font-size:16px}.koto-data-actions{flex-direction:column}.koto-data-actions button{text-align:left}.friend-profile .actions{margin-top:20px}}

.koto.is-reading>.heading,.koto.is-reading>.koto-import-notice,.koto.is-reading>.koto-selfbar{display:none}.koto.is-reading>#kotoSync{display:none}.koto.is-reading>#kotoSync:has(.danger,button){display:block}.koto.is-reading>.koto-tabs{margin:0 0 12px}.koto.is-reading>.koto-reading{margin-top:0}.reading-intro{margin-top:14px;font-size:12px;color:var(--muted)}.reading-intro summary{cursor:pointer;min-height:32px;padding:6px 0}.reading-intro p{color:var(--text)}
