.memory-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.memory-heading h2{margin:0 0 8px;font:500 32px/1.5 var(--serif);color:#ebd2e2}.memory-heading p{color:#bca8ba;font-size:14px;margin:0}.memory-heading>span{border:1px solid #d7b8cc35;border-radius:20px;padding:5px 12px;color:#c8a5bb;font-size:13px;white-space:nowrap}
.memory-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:25px;align-items:start}.memory-directory{position:sticky;top:22px;display:grid;gap:7px;padding:15px;border:1px solid #d7b8cc22;border-radius:18px;background:#382e403d}.memory-directory button{border:0;border-radius:10px;background:transparent;text-align:left;color:#cab4c4;padding:10px;font-size:14px}.memory-directory button:hover{background:#d5adc31c}
.memory-chapter{position:relative;padding:27px 30px;margin-bottom:22px;border:1px solid #d7b8cc25;border-radius:22px;background:linear-gradient(125deg,#49354d66,#30293688);scroll-margin-top:25px}.memory-chapter>h3{font:500 25px/1.6 var(--serif);margin:0 0 18px;color:#edd4e3}.memory-record{padding:17px 0;border-top:1px solid #d7b8cc22}.memory-record:first-of-type{border-top:0}.memory-record>h4{font-size:15px;font-weight:500;margin:0 0 14px;color:#bfa6ba}.memory-record>summary,.memory-act>summary{font-size:16px;color:#dec0d5;cursor:pointer;padding:3px 0}.memory-original{white-space:pre-wrap;overflow-wrap:anywhere;font:16px/2.1 var(--serif);margin:20px 0;color:#e5d2df}.memory-condition{font-size:13px;color:#bca6bb;margin:14px 0 0}.memory-source{display:inline-block;font-size:13px;color:#caa8be;text-underline-offset:4px}.memory-stages{padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 0}.memory-stage{padding:17px 18px;border:1px solid #d7b8cc20;border-radius:13px;background:#271f3433}.stage-code{font-size:12px;letter-spacing:1px;color:#b89bb3}.memory-stage h4{font:500 18px/1.65 var(--serif);margin:6px 0 12px;color:#e1c9da}.stage-links{display:flex;gap:17px;flex-wrap:wrap}.memory-act{border-top:1px solid #d7b8cc22;margin-top:18px;padding-top:17px}
.office-quiet .memory-chapter,.office-quiet .memory-directory{background:#fffbfdd9;border-color:#d9c6d1}.office-quiet .memory-heading h2,.office-quiet .memory-chapter>h3,.office-quiet .memory-original,.office-quiet .memory-stage h4,.office-quiet .memory-record>summary,.office-quiet .memory-act>summary{color:#624756}.office-quiet .memory-source,.office-quiet .memory-directory button,.office-quiet .memory-condition{color:#78566e}.office-quiet .memory-stage{background:#f2e9ee}
@media(max-width:900px){.memory-layout{grid-template-columns:1fr}.memory-directory{position:static;display:flex;flex-wrap:wrap;padding:9px;gap:4px}.memory-directory button{padding:8px 10px}.memory-chapter{padding:23px}}
@media(max-width:680px){.memory-heading{display:block}.memory-heading h2{font-size:27px}.memory-heading>span{display:inline-block;margin-top:13px}.memory-chapter{padding:22px 19px}.memory-stages{grid-template-columns:1fr}.memory-chapter>h3{font-size:24px}.memory-original{font-size:16px}}

body.arknights-terminal .memory-record>h4,body.arknights-terminal .memory-act>h4{color:var(--ink);font:500 18px/1.7 var(--serif);margin:0 0 14px}
