/* Written discussion: author and thread first. Cosmetics shape only the paper. */
.komi-written-comment,
#watchModal #komiAnimeComments .komi-comment.komi-written-comment,
#watchModal #watchModalContent .komi-cinema-v7 #komiAnimeComments .komi-comment.komi-written-comment:not(.komi-comment-promoted):not([class*="komi-store-"]){
 --kc-paper:#141416;--kc-heading:#1b1b1e;--kc-rim:#3d3d43;--kc-mark:#85858e;--kc-rule:#ffffff14;
 position:relative;isolation:isolate;display:block;min-width:0;text-align:left;
 border:1px solid var(--kc-rim)!important;border-radius:9px!important;
 background:var(--kc-paper)!important;box-shadow:none!important;color:#eee;
 padding:0!important;overflow:hidden;min-height:0
}
.komi-written-comment[class*="komi-store-plate-"]::after{content:none!important;animation:none!important}
.komi-written-comment::before{
 content:"";position:absolute;inset:0 auto 0 0;width:2px;pointer-events:none;z-index:1;background:var(--kc-mark)
}
.komi-written-comment:not([class*="komi-store-plate-"])::before{content:none}
:is(.komi-written-comment,#watchModal #komiAnimeComments .komi-comment.komi-written-comment).komi-comment-promoted{--kc-mark:#dbb574;--kc-rim:#8e7d5b}
.komi-written-comment.komi-comment-promoted::before{content:""}
.komi-written-comment.komi-comment-promoted .komi-comment-promo-label{
 display:inline-flex;margin:7px 9px 8px 11px;min-height:0;padding:3px 7px;
 border-radius:3px;background:#282118;border-color:#6a583c;color:#f4d5a1;line-height:1.35
}
.komi-written-head,
#watchModal #komiAnimeComments .komi-comment.komi-written-comment .komi-written-head{
 position:relative;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;
 padding:8px 10px;margin:0!important;isolation:isolate;border-bottom:1px solid var(--kc-rule);
 background:var(--kc-heading)
}
.komi-written-head::after{
 content:"";position:absolute;inset:0 0 0 auto;width:min(34%,115px);z-index:-1;
 pointer-events:none;opacity:.56;background:var(--kc-etch,none)
}
.komi-written-avatar{
 flex:0 0 24px;display:grid;position:relative;place-items:center;
 width:24px;height:24px;border-radius:50%;overflow:hidden;color:#e8e8e9;background:#313137;
 border:1px solid #b8b8c45c;font:700 10px/1 Manrope,Inter,sans-serif
}
.komi-written-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.komi-written-avatar img[hidden]{display:none}
.komi-written-name,
#watchModal #komiAnimeComments .komi-comment.komi-written-comment .komi-written-name{
 font:750 13px/1.3 Manrope,Inter,sans-serif;color:#f8f8f8;
 min-width:0;max-width:100%;overflow-wrap:anywhere
}
.komi-written-time,
#watchModal #komiAnimeComments .komi-comment.komi-written-comment .komi-written-time{
 flex:none;margin:0;color:#aaaab1;font:500 11px/1.2 Manrope,Inter,sans-serif;
 white-space:nowrap;font-variant-numeric:tabular-nums
}
.komi-written-body,
#watchModal #komiAnimeComments .komi-comment.komi-written-comment .komi-written-body{
 margin:0;padding:11px 13px;max-width:74ch;white-space:pre-wrap;overflow-wrap:anywhere;
 font:500 14px/1.6 Inter,Manrope,sans-serif;color:#e0e0e3
}
.komi-written-owner-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;margin-inline-start:auto}
#watchModal #komiAnimeComments .komi-written-owner-actions button{
 min-height:30px;border-radius:6px;padding:5px 9px;font:650 11px/1.2 Manrope,Inter,sans-serif
}
.komi-written-owner-actions button:focus-visible,.komi-comment-v17-chip:focus-visible{
 outline:2px solid #f1f1f2!important;outline-offset:2px
}

/* Each plate is a restrained printing treatment behind the header, not a
   texture over the message, on both the watch page and the shop sample. */
:is(.komi-written-comment,#watchModal #komiAnimeComments .komi-comment.komi-written-comment).komi-store-plate-editor-note{
 --kc-mark:#b2b0a2;--kc-rim:#5b5a51;--kc-heading:#252521;--kc-paper:#181817;
 --kc-etch:repeating-linear-gradient(0deg,transparent 0 5px,#a7a48d40 5px 6px),linear-gradient(90deg,transparent,#89867438)
}
:is(.komi-written-comment,#watchModal #komiAnimeComments .komi-comment.komi-written-comment).komi-store-plate-train-window{
 --kc-mark:#7899ad;--kc-rim:#455d6b;--kc-heading:#19252d;--kc-paper:#151b20;
 --kc-etch:repeating-linear-gradient(90deg,transparent 0 15px,#071724 16px 19px),linear-gradient(180deg,transparent 13%,#517b8b66 14% 60%,transparent 62%)
}
:is(.komi-written-comment,#watchModal #komiAnimeComments .komi-comment.komi-written-comment).komi-store-plate-projection-booth{
 --kc-mark:#caaf79;--kc-rim:#69553a;--kc-heading:#2a231b;--kc-paper:#1b1814;
 --kc-etch:repeating-linear-gradient(90deg,transparent 0 4px,#ccae754e 5px 10px,transparent 11px 13px) bottom/100% 4px no-repeat,linear-gradient(100deg,transparent,#9d7c4160)
}
:is(.komi-written-comment,#watchModal #komiAnimeComments .komi-comment.komi-written-comment):is(.komi-store-plate-manga,.komi-store-plate-manga-bubble,.komi-store-plate-speech){
 --kc-mark:#dbd4c6;--kc-rim:#6e6a60;--kc-heading:#2b2926;--kc-paper:#191815;
 --kc-etch:radial-gradient(circle,#e6dbc175 1px,transparent 1.3px) center/5px 5px
}
:is(.komi-written-comment,#watchModal #komiAnimeComments .komi-comment.komi-written-comment).komi-store-plate-letter{
 --kc-mark:#ca7d82;--kc-rim:#674749;--kc-heading:#2b2022;--kc-paper:#1a1617;
 --kc-etch:radial-gradient(circle at 83% 52%,#ba6468 0 7px,#763442 8px 9px,transparent 10px),linear-gradient(143deg,transparent 63%,#97716d70 65% 66%,transparent 68%)
}
:is(.komi-written-comment,#watchModal #komiAnimeComments .komi-comment.komi-written-comment):is(.komi-store-plate-terminal,.komi-store-plate-isekai){
 --kc-mark:#8fb8a4;--kc-rim:#435d55;--kc-heading:#1a2724;--kc-paper:#151b19;
 --kc-etch:repeating-linear-gradient(90deg,transparent 0 7px,#86adaa53 8px 9px),repeating-linear-gradient(0deg,transparent 0 7px,#698e8057 8px 9px)
}
:is(.komi-written-comment,#watchModal #komiAnimeComments .komi-comment.komi-written-comment):is(.komi-store-plate-edge,.komi-store-plate-gradient,.komi-store-plate-subtitle){
 --kc-mark:#a4b0c3;--kc-rim:#606874;--kc-heading:#20242b;--kc-paper:#17191e;
 --kc-etch:linear-gradient(123deg,transparent 63%,#b4bfce94 64% 65%,transparent 66% 71%,#7588a076 72% 73%,transparent 74%)
}
:is(.komi-written-comment,#watchModal #komiAnimeComments .komi-comment.komi-written-comment).komi-store-plate-notebook{
 --kc-mark:#b39ab5;--kc-rim:#62516a;--kc-heading:#27232b;--kc-paper:#1b181e;
 --kc-etch:linear-gradient(90deg,transparent 50%,#c499b27d 51% 52%,transparent 54%),repeating-linear-gradient(0deg,transparent 0 7px,#a78fa457 8px 9px)
}
:is(.komi-written-comment,#watchModal #komiAnimeComments .komi-comment.komi-written-comment):is(.komi-store-plate-seigaiha,.komi-store-plate-rain,.komi-store-plate-window,.komi-store-plate-constellation){
 --kc-mark:#879baf;--kc-rim:#455868;--kc-heading:#202a35;--kc-paper:#161c23;
 --kc-etch:repeating-radial-gradient(ellipse at 68% 110%,transparent 0 6px,#9ab2cd4d 7px 8px,transparent 9px 13px)
}

/* A reaction has one identifiable mark. No shimmer or learned hover motion. */
.komi-written-comment .komi-comment-fx-row{padding:0 11px 9px;margin:0;gap:5px}
.komi-comment-v17-chip.komi-comment-fx-chip{
 --kc-react:#e7d197;--kc-react-paper:#211d16;--kc-react-ink:#372d1b;
 position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;isolation:isolate;
 flex:none;min-width:39px;min-height:28px;padding:4px 8px;border-radius:7px;
 background:var(--kc-react-paper)!important;border:1px solid #ffffff35!important;
 color:var(--kc-react)!important;box-shadow:none!important;animation:none!important;
 font:750 12px/1 Manrope,Inter,sans-serif;white-space:nowrap
}
.komi-comment-v17-chip.komi-comment-fx-chip[aria-pressed=true]{
 background:var(--kc-react-ink)!important;border-color:var(--kc-react)!important
}
button.komi-comment-v17-chip:hover:not(:disabled){background:var(--kc-react-ink)!important;border-color:var(--kc-react)!important}
button.komi-comment-v17-chip:disabled{opacity:.65;cursor:wait}
.komi-comment-v17-chip.komi-fx-commentfx-hype{--kc-react:#ffaf80;--kc-react-paper:#291b16;--kc-react-ink:#42291f;--kc-react-motion:komi-discussion-hype;--kc-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 1c2 6-3 7-2 11 1-3 4-3 5-7 4 4 5 7 5 10a9 9 0 1 1-18 0c0-3 2-6 4-8 0 3 1 4 2 4C9 7 12 6 13 1Zm0 12c-1 3-4 3-4 5a3 3 0 0 0 6 0c0-2-1-3-2-5Z' fill-rule='evenodd'/%3E%3C/svg%3E")}
.komi-comment-v17-chip.komi-fx-commentfx-heart{--kc-react:#ffadb9;--kc-react-paper:#2b1b23;--kc-react-ink:#472935;--kc-react-motion:komi-discussion-heart;--kc-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21 3 12C-2 5 7 0 12 7c5-7 14-2 9 5l-9 9Z'/%3E%3C/svg%3E")}
.komi-comment-v17-chip.komi-fx-commentfx-sparkle{--kc-react:#ffe090;--kc-react-paper:#292318;--kc-react-ink:#40341d;--kc-react-motion:komi-discussion-spark;--kc-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m10 2 2.6 6.4L19 11l-6.4 2.6L10 20l-2.6-6.4L1 11l6.4-2.6L10 2Zm8 13 1.1 2.9L22 19l-2.9 1.1L18 23l-1.1-2.9L14 19l2.9-1.1L18 15Zm2-14 1 2 2 1-2 1-1 2-1-2-2-1 2-1 1-2Z'/%3E%3C/svg%3E")}
.komi-comment-v17-chip.komi-fx-commentfx-twist{--kc-react:#c8b4f7;--kc-react-paper:#211b2c;--kc-react-ink:#38294c;--kc-react-motion:komi-discussion-twist;--kc-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4C11-2 2 5 3 13c1 8 10 10 15 5 5-4 2-11-4-11-3-1-6 1-6 4s3 4 4 3c-3-1-2-4 0-4 3-1 5 2 4 4-2 4-7 4-9 1-3-5 0-11 5-12 3-1 6 0 8 1Z'/%3E%3C/svg%3E")}
.komi-react-glyph{width:16px;height:16px;display:inline-grid;place-items:center;flex:none;font-style:normal;position:relative}
@supports (mask: url("") ){
 .komi-react-glyph{font-size:0;background:currentColor;mask:var(--kc-glyph) center/contain no-repeat}
}
.komi-react-count{font-variant-numeric:tabular-nums}
.komi-comment-v17-chip::after{
 content:"";position:absolute;width:20px;height:20px;inset:50% auto auto 6px;
 margin-top:-10px;pointer-events:none;opacity:0;
 background:radial-gradient(circle at 9% 18%,currentColor 0 1.5px,transparent 1.9px),radial-gradient(circle at 96% 34%,currentColor 0 1.2px,transparent 1.7px),radial-gradient(circle at 26% 96%,currentColor 0 1px,transparent 1.6px)
}
@media(prefers-reduced-motion:no-preference){
 :root:not([data-komi-cosmetic-intensity=off]) .komi-comment-v17-chip[data-komi-fx-playing] .komi-react-glyph{
  animation:var(--kc-react-motion) .68s cubic-bezier(.2,.75,.32,1) both
 }
 :root:not([data-komi-cosmetic-intensity=off]) .komi-comment-v17-chip[data-komi-fx-playing]::after{
  animation:komi-discussion-motes .7s ease-out both
 }
}
@keyframes komi-discussion-hype{0%{transform:translateY(2px) scale(.76)}48%{transform:translateY(-4px) scale(1.16)}100%{transform:none}}
@keyframes komi-discussion-heart{0%{transform:scale(.79)}37%{transform:scale(1.23)}66%{transform:scale(.94)}100%{transform:none}}
@keyframes komi-discussion-spark{0%{transform:scale(.53) rotate(-23deg)}51%{transform:scale(1.25) rotate(11deg)}100%{transform:none}}
@keyframes komi-discussion-twist{0%{transform:scale(.86) rotate(-120deg)}67%{transform:scale(1.10) rotate(9deg)}100%{transform:none}}
@keyframes komi-discussion-motes{0%{opacity:0;transform:scale(.57)}39%{opacity:.8}100%{opacity:0;transform:scale(1.52)}}
#shop.komi-shop-studio [data-sv9-kind] .komi-written-comment{width:100%}
#shop.komi-shop-studio [data-sv9-kind] .komi-written-head{padding:5px 6px;gap:4px 5px}
#shop.komi-shop-studio [data-sv9-kind] .komi-written-avatar{width:17px;height:17px;flex-basis:17px;font-size:8px}
#shop.komi-shop-studio [data-sv9-kind] .komi-written-name{font-size:10px}
#shop.komi-shop-studio [data-sv9-kind] .komi-written-time{font-size:8px}
#shop.komi-shop-studio [data-sv9-kind] .komi-written-body{font-size:10px;line-height:1.4;padding:6px}
#shop.komi-shop-studio [data-sv9-kind] .komi-written-comment .komi-comment-fx-row{padding:0 6px 6px}
@media(max-width:420px){
 #watchModal #komiAnimeComments .komi-comment.komi-written-comment .komi-written-head{padding:7px 8px}
 .komi-written-owner-actions{margin-inline-start:0}
}

/* The shop tile is a miniature, not the full thread. On narrow phones the
   fitting view still shows the complete sample and episode marker. */
#shop.komi-shop-studio .sv17-comment-tile .komi-written-name{
 flex:1 1 auto;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
#shop.komi-shop-studio .sv17-comment-tile .komi-written-body{
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}
@media(max-width:359px){
 #shop.komi-shop-studio .sv17-comment-tile .komi-written-time{display:none}
}
