/* Rich text is part of the optical UI, including its smallest controls. */
:is(.rich-content,.reader-body,.ed-content,.ed-read,.s3-read-body,.project-copy,.cn-text) {
  --rich-edge:#92eaff2c; --rich-ink:#c9dbe9; color:var(--rich-ink); overflow-wrap:anywhere;
  font:400 14px/1.9 'Microsoft YaHei','PingFang SC',sans-serif; text-align:left;
}
.rich-content>:first-child { margin-top:0; }
.rich-content>:last-child { margin-bottom:0; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) :is(h1,h2,h3,h4,h5,h6) { color:#edfbff; line-height:1.4; font-weight:600; letter-spacing:.025em; margin:1.8em 0 .7em; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) h1 { font-size:1.8em; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) h2 { font-size:1.45em; padding-bottom:.45em; border-bottom:1px solid var(--rich-edge); }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) h3 { font-size:1.16em; color:#b4e7f1; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read,.cn-text) p { margin:0 0 1em; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read,.cn-text) a { color:#9eeeff; text-decoration:none; border-bottom:1px solid #8eecff50; transition:color .3s cubic-bezier(.16,.9,.24,1),border-color .3s cubic-bezier(.16,.9,.24,1); }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read,.cn-text) a:hover { color:#f2c5ff; border-color:#e5a1ff; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) :is(ul,ol) { padding-left:1.5em; margin:1em 0; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) li { margin:.35em 0; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) blockquote { margin:1.4em 0; border-left:2px solid #9aeafa9c; padding:.4em 1em; color:#bad0e2; background:linear-gradient(90deg,#4da9cb12,transparent); }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) blockquote p:last-child { margin-bottom:0; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read,.cn-text) code { font: .88em/1.7 'Cascadia Mono',Consolas,'Boot Han',monospace; color:#c6f3ff; background:#70cde514; padding:.16em .35em; border:1px solid #b0edff18; border-radius:0; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read,.cn-text) pre { position:relative; padding:3.2em 1.1em 1.1em; background:#050f20bb; border:1px solid var(--rich-edge); border-left-color:#8eeaff66; border-radius:0; overflow:auto; max-width:100%; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read,.cn-text) pre code { padding:0; border:0; background:none; font-size:12px; white-space:pre; }
.md-copy.about-action { position:absolute; top:8px; right:8px; padding:4px 9px; min-height:28px; font-size:10px; }
.md-table { max-width:100%; overflow:auto; margin:1.3em 0; border:1px solid var(--rich-edge); scrollbar-width:thin; scrollbar-color:#78cbdd55 transparent; }
.md-table table { width:100%; border-collapse:collapse; margin:0; font-size:.9em; }
.md-table :is(th,td) { padding:.65em .85em; border:1px solid #8ac5dc20; white-space:normal; min-width:5em; }
.md-table th { color:#b2effa; background:#63b4d414; text-align:left; font-weight:500; }
.md-table tr:nth-child(even) td { background:#80baff05; }
.md-check { display:inline-grid; place-items:center; width:1.05em; height:1.05em; margin-right:.65em; border:1px solid #89e2ec69; color:#a0f4ff; background:#78d7ed08; font:700 .8em/1 monospace; vertical-align:baseline; }
.md-check[data-checked=true] { background:#77dff326; box-shadow:0 0 8px #77dff31a; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) details { margin:1.3em 0; border-block:1px solid var(--rich-edge); padding:.8em 0; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) summary { cursor:pointer; list-style:none; color:#acebfb; padding:.3em .3em .3em 1.6em; position:relative; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) summary::-webkit-details-marker { display:none; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) summary::before { content:'+'; position:absolute; left:.1em; color:#a7eaf8; transition:transform .35s cubic-bezier(.16,.9,.24,1); }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) details[open]>summary::before { transform:rotate(45deg); }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) details[open]>:not(summary) { animation:rich-expand .35s cubic-bezier(.16,.9,.24,1) both; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) hr { height:1px; border:0; background:linear-gradient(90deg,#99eaff66,#d298f92e,transparent); margin:1.8em 0; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) img { display:block; max-width:100%; height:auto; border:1px solid var(--rich-edge); margin:1em 0; }
:is(.rich-content,.project-copy,.reader-body,.ed-content,.ed-read) :is(a,summary,.md-copy):focus-visible,.md-table:focus-visible { outline:2px solid #a1f0ff; outline-offset:4px; }
@keyframes rich-expand { from {opacity:0;transform:translateY(-4px)} to {opacity:1;transform:none} }
@media(prefers-reduced-motion:reduce) { .rich-content *, .rich-content *::before { animation:none!important; transition:none!important; } }
