/* ==========================================================================
   久存网 · 记忆空间
   一个人的时间档案：回忆、思绪、人生节点与永久留存。
   ========================================================================== */

.memory-hero {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    padding: 46px 0 42px;
    color: #fff;
    background:
        radial-gradient(900px 500px at 78% 20%, rgba(128, 205, 255, 0.35), transparent 60%),
        linear-gradient(135deg, #4aa4f8 0%, #2f7cf6 48%, #246fd7 100%);
    isolation: isolate;
}

.memory-hero.has-cover {
    background-image:
        linear-gradient(120deg, rgba(8, 38, 78, 0.8) 0%, rgba(13, 55, 105, 0.5) 48%, rgba(15, 61, 112, 0.28) 100%),
        var(--memory-cover);
    background-size: cover;
    background-position: center;
}

.memory-theme-sky {
    background-color: #4aa4f8;
}

.memory-theme-paper {
    background-color: #69ace4;
}

.memory-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 28, 57, 0.1), rgba(5, 28, 57, 0.32));
}

.memory-hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.6px, transparent 0.6px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 82%);
}

.memory-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.memory-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.memory-kicker i {
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
}

.memory-kicker-mark {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.memory-kicker-mark .icon {
    width: 13px;
    height: 13px;
    color: #dff3ff;
}

.memory-seal {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 102px;
    height: 102px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: rotate(7deg);
}

.memory-seal-ring {
    position: absolute;
    inset: 7px;
    border: 1px dashed rgba(255, 255, 255, 0.32);
    border-radius: 50%;
}

.memory-seal-icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-bottom: 1px;
    color: #d9f1ff;
}

.memory-seal-icon .icon {
    width: 17px;
    height: 17px;
}

.memory-seal-text {
    font-family: "Songti SC", "STSong", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-align: center;
}

.memory-seal small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 6px;
    letter-spacing: 0.2em;
}

.memory-identity {
    display: flex;
    align-items: center;
    gap: 21px;
    margin-top: auto;
    padding: 34px 0 28px;
    max-width: 860px;
}

.memory-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
}

.memory-avatar {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(4, 26, 54, 0.25);
}

.memory-avatar-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
}

.memory-avatar-ring {
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.memory-identity-copy {
    min-width: 0;
}

.memory-owner {
    display: inline-flex;
    align-items: center;
    margin-bottom: 5px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.08);
    font-size: 9.5px;
    letter-spacing: 0.02em;
}

.memory-identity h1 {
    margin-bottom: 8px;
    color: #fff;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.035em;
    text-shadow: 0 4px 25px rgba(4, 27, 56, 0.18);
}

.memory-identity-copy p {
    max-width: 670px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.8;
}

.memory-hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.memory-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 27px;
}

.memory-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 70px;
}

.memory-stat strong {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.memory-stat strong small {
    margin-left: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
}

.memory-stat > span:last-child {
    color: rgba(255, 255, 255, 0.5);
    font-size: 9.5px;
}

.memory-stat-permanent {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.memory-stat-permanent > span:last-child {
    color: rgba(255, 255, 255, 0.78);
    font-size: 10.5px;
    line-height: 1.5;
}

.memory-stat-permanent small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 8.5px;
}

.permanent-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7df0d0;
    box-shadow: 0 0 0 5px rgba(125, 240, 208, 0.12);
}

.memory-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.memory-hero-actions .btn {
    min-height: 46px;
    padding-inline: 19px;
    font-size: 12.5px;
}

.memory-public-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 9.5px;
    white-space: nowrap;
}

.memory-public-link:hover {
    color: #fff;
}

.memory-public-link .icon {
    width: 11px;
    height: 11px;
}

/* Tabs -------------------------------------------------------------------- */
.memory-tabbar {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.memory-tabbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 60px;
}

.memory-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
}

.memory-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 60px;
    padding: 0 17px;
    border-bottom: 2px solid transparent;
    color: #6e86a0;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.2s;
}

.memory-tabs a .icon {
    width: 15px;
    height: 15px;
    color: #98acc1;
}

.memory-tabs a:hover {
    color: var(--blue-600);
}

.memory-tabs a.is-active {
    color: var(--blue-700);
    border-bottom-color: var(--blue-500);
    font-weight: 600;
}

.memory-tabs a.is-active .icon {
    color: var(--blue-500);
}

.memory-tabbar-side {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #98aabd;
    font-size: 9.5px;
    white-space: nowrap;
}

.memory-tabbar-side .icon {
    width: 12px;
    height: 12px;
    color: var(--blue-400);
}

.memory-tabbar-side a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--blue-600);
}

.memory-tabbar-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c0cfdf;
}

.memory-manage-note {
    border-bottom: 1px solid #e8f2fb;
    background: #f8fcff;
}

.memory-manage-note-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
    color: #8197ac;
    font-size: 9px;
}

.memory-manage-note-inner > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.memory-manage-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--blue-700);
    background: #eaf5ff;
    font-weight: 600;
}

.memory-manage-badge .icon {
    width: 10px;
    height: 10px;
}

.memory-manage-note-inner > a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    color: var(--blue-600);
    font-weight: 500;
}

.memory-manage-note-inner > a .icon {
    width: 11px;
    height: 11px;
}

/* Layout ------------------------------------------------------------------ */
.memory-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 306px;
    gap: 52px;
    align-items: start;
    padding-top: 46px;
    padding-bottom: 86px;
}

.memory-main {
    min-width: 0;
}

.memory-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.memory-section-head .eyebrow {
    margin-bottom: 6px;
}

.memory-section-head h2 {
    margin-bottom: 6px;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.memory-section-head p {
    max-width: 610px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.memory-write-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid #d7e9fc;
    border-radius: 8px;
    color: var(--blue-600);
    background: #f8fcff;
    font-size: 10.5px;
    font-weight: 600;
}

.memory-write-link:hover {
    border-color: var(--blue-200);
    background: var(--blue-50);
}

.memory-write-link .icon {
    width: 14px;
    height: 14px;
}

/* Timeline ---------------------------------------------------------------- */
.memory-year-list {
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.memory-year-group {
    scroll-margin-top: 100px;
}

.memory-year-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.memory-year-number {
    color: #a9bfd5;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.memory-year-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #dcebfa, transparent);
}

.memory-year-count {
    color: #9aacbf;
    font-size: 9px;
    white-space: nowrap;
}

.memory-stream {
    position: relative;
    margin-left: 86px;
    padding-left: 30px;
    border-left: 1px solid #dceafa;
}

.memory-card {
    position: relative;
    margin-bottom: 24px;
    scroll-margin-top: 110px;
}

.memory-card:last-child {
    margin-bottom: 0;
}

.memory-card::before {
    content: "";
    position: absolute;
    top: 26px;
    left: -36px;
    z-index: 2;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--blue-400);
    box-shadow: 0 0 0 3px #e5f2ff;
}

.memory-card-thought::before {
    background: var(--cyan-500);
    box-shadow: 0 0 0 3px #e7fafc;
}

.memory-card-milestone::before {
    background: var(--premium);
    box-shadow: 0 0 0 3px #fff7e7;
}

.memory-card-date {
    position: absolute;
    top: 17px;
    left: -106px;
    width: 70px;
    text-align: right;
}

.memory-card-date strong {
    display: block;
    color: #7089a3;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
}

.memory-card-date span {
    color: #a3b5c7;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
}

.memory-card-main {
    position: relative;
    overflow: hidden;
    padding: 21px 22px 15px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 61, 110, 0.025);
    transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}

.memory-card-main:hover {
    border-color: #cfe4fb;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.memory-card-thought .memory-card-main {
    border-color: #dceff8;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(84, 200, 218, 0.07), transparent 65%),
        #fbfeff;
}

.memory-card-milestone .memory-card-main {
    border-color: #f1e2c7;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(240, 162, 46, 0.07), transparent 65%),
        #fffdf9;
}

.memory-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.memory-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 5px;
    color: var(--blue-700);
    background: var(--blue-75);
    font-size: 8.5px;
    font-weight: 700;
}

.memory-type .icon {
    width: 11px;
    height: 11px;
}

.memory-type-thought {
    color: #147b8b;
    background: #edfafb;
}

.memory-type-milestone {
    color: #956216;
    background: #fff7e9;
}

.memory-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #879bb0;
    font-size: 8.5px;
}

.memory-meta-chip .icon {
    width: 10px;
    height: 10px;
}

.memory-era-chip {
    padding: 2px 6px;
    border: 1px solid #e6eff9;
    border-radius: 4px;
    color: #7990a8;
    background: #fbfdff;
}

.memory-card-title {
    margin-bottom: 10px;
    color: #17324f;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.025em;
}

.memory-card-title a:hover {
    color: var(--blue-600);
}

.memory-card-content {
    display: block;
}

.memory-card-content.has-cover {
    display: grid;
    grid-template-columns: 166px minmax(0, 1fr);
    gap: 15px;
    align-items: stretch;
}

.memory-card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 116px;
    border-radius: 9px;
    background: #e7f2fd;
}

.memory-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.memory-card-main:hover .memory-card-cover img {
    transform: scale(1.035);
}

.memory-card-cover > span {
    position: absolute;
    right: 7px;
    bottom: 7px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    background: rgba(7, 30, 57, 0.45);
    backdrop-filter: blur(5px);
}

.memory-card-cover > span .icon {
    width: 11px;
    height: 11px;
}

.memory-card-text p {
    color: #607a95;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 13.5px;
    line-height: 1.9;
}

.memory-read-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 8px;
    color: var(--blue-600);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 9.5px;
    font-weight: 500;
}

.memory-read-link .icon {
    width: 11px;
    height: 11px;
}

.memory-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.memory-card-tags span {
    color: #8ba0b6;
    font-size: 8.5px;
}

.memory-card-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid #f0f6fc;
    color: #a0b1c3;
    font-size: 8.5px;
}

.memory-card-foot > span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.memory-card-foot .icon {
    width: 10px;
    height: 10px;
}

.memory-archive-no {
    font-family: "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.01em;
}

.memory-permanent {
    color: #5b9e8a;
}

.memory-visibility {
    color: #96aabd;
}

.memory-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.memory-card-actions a,
.memory-card-actions button {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #8da2b7;
    font-size: 8.5px;
}

.memory-card-actions a:hover,
.memory-card-actions button:hover {
    color: var(--blue-600);
}

.memory-card-actions form {
    display: inline-flex;
}

/* Generic empty ----------------------------------------------------------- */
.memory-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 25px;
    border: 1px dashed #cfe2f7;
    border-radius: 20px;
    background:
        radial-gradient(380px 200px at 50% 0%, rgba(126, 198, 255, 0.12), transparent 70%),
        #fbfdff;
    text-align: center;
}

.memory-empty-mark {
    display: grid;
    place-items: center;
    width: 57px;
    height: 57px;
    margin-bottom: 15px;
    border: 1px solid #d7e9fc;
    border-radius: 16px;
    color: var(--blue-500);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.memory-empty-mark .icon {
    width: 25px;
    height: 25px;
}

.memory-empty .eyebrow {
    margin-bottom: 7px;
}

.memory-empty h2 {
    margin-bottom: 9px;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 27px;
    line-height: 1.45;
}

.memory-empty p {
    max-width: 430px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.85;
}

/* Sidebar ----------------------------------------------------------------- */
.memory-sidebar {
    position: sticky;
    top: 94px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.memory-permanent-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 19px;
    color: #fff;
    background:
        radial-gradient(300px 220px at 100% 0%, rgba(149, 221, 255, 0.34), transparent 65%),
        linear-gradient(145deg, #57acff, #2f7cf6);
    box-shadow: 0 18px 40px rgba(47, 124, 246, 0.18);
}

.memory-permanent-orbit {
    position: absolute;
    top: -70px;
    right: -60px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.memory-permanent-orbit::after {
    content: "";
    position: absolute;
    inset: 31px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.memory-permanent-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
}

.memory-permanent-icon .icon {
    width: 19px;
    height: 19px;
}

.memory-permanent-card .eyebrow {
    color: rgba(255, 255, 255, 0.56);
    font-size: 8px;
}

.memory-permanent-card h3 {
    margin: 6px 0 9px;
    color: #fff;
    font-family: "Songti SC", "STSong", serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.memory-permanent-card > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    line-height: 1.8;
}

.memory-permanent-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 9px;
    margin-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.52);
    font-size: 8px;
}

.memory-permanent-meta strong {
    color: rgba(255, 255, 255, 0.9);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 500;
}

.memory-permanent-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 13px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #d9fff4;
    background: rgba(255, 255, 255, 0.1);
    font-size: 8px;
}

.memory-permanent-status .icon {
    width: 11px;
    height: 11px;
}

.memory-side-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.memory-side-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}

.memory-side-head .eyebrow {
    font-size: 8px;
    margin-bottom: 3px;
}

.memory-side-head h3 {
    font-size: 17px;
    letter-spacing: -0.03em;
}

.memory-side-icon {
    width: 18px;
    height: 18px;
    color: var(--blue-300);
}

.memory-social-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
}

.memory-social-side-grid div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.memory-social-side-grid strong {
    color: #4d7397;
    font-size: 15px;
    font-weight: 700;
}

.memory-social-side-grid span {
    color: #9bafc2;
    font-size: 7.5px;
}

.memory-era-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.memory-era-list a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 0;
    border-top: 1px solid #f2f7fc;
}

.memory-era-list a:first-child {
    border-top: 0;
    padding-top: 0;
}

.memory-era-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue-300);
}

.memory-era-list strong {
    color: #56708b;
    font-size: 10.5px;
    font-weight: 500;
}

.memory-era-list small {
    margin-left: auto;
    color: #a3b4c6;
    font-size: 8.5px;
}

.memory-era-list a:hover strong {
    color: var(--blue-600);
}

.memory-recent-thoughts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.memory-recent-thoughts a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 10px;
    border-left: 2px solid #e2f1ff;
}

.memory-recent-thoughts a:hover {
    border-left-color: var(--blue-400);
}

.memory-recent-thoughts span {
    color: #9aacbf;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
}

.memory-recent-thoughts strong {
    color: #5c7691;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
}

.memory-side-empty {
    color: #9aacbf;
    font-size: 9.5px;
    line-height: 1.8;
}

.memory-side-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 12px;
    color: var(--blue-600);
    font-size: 9px;
    font-weight: 500;
}

.memory-side-link .icon {
    width: 11px;
    height: 11px;
}

.memory-write-card {
    border-color: #d9eaff;
    background:
        radial-gradient(200px 130px at 100% 0%, rgba(118, 194, 255, 0.17), transparent 65%),
        linear-gradient(145deg, #f4faff, #fcfdff);
}

.memory-write-card .eyebrow {
    font-size: 8px;
}

.memory-write-card h3 {
    margin: 4px 0 6px;
    color: #294d73;
    font-family: "Songti SC", "STSong", serif;
    font-size: 19px;
    line-height: 1.5;
}

.memory-write-card p {
    margin-bottom: 11px;
    color: #8096ac;
    font-size: 9.5px;
    line-height: 1.7;
}

.memory-side-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #8095ab;
    font-size: 9.5px;
    line-height: 1.7;
}

.memory-side-hint > .icon {
    width: 14px;
    height: 14px;
    color: var(--blue-400);
}

/* Journey ----------------------------------------------------------------- */
.journey-intro {
    margin-bottom: 30px;
}

.journey-intro .eyebrow {
    margin-bottom: 7px;
}

.journey-intro h2 {
    margin-bottom: 9px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 32px;
    line-height: 1.45;
    letter-spacing: -0.03em;
}

.journey-intro p {
    max-width: 580px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.8;
}

.journey-track {
    position: relative;
    padding: 8px 0 10px;
}

.journey-track-line {
    position: absolute;
    top: 25px;
    bottom: 20px;
    left: 155px;
    width: 1px;
    background: linear-gradient(180deg, #cfe5fb, #e8f4ff);
}

.journey-stop {
    position: relative;
    display: grid;
    grid-template-columns: 112px 42px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    scroll-margin-top: 100px;
}

.journey-year {
    padding-top: 16px;
    text-align: right;
}

.journey-year strong {
    display: block;
    color: #97adc3;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.journey-year span {
    color: #b1c0d0;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
}

.journey-dot {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-top: 12px;
    border: 4px solid #f7fbff;
    border-radius: 50%;
    color: #fff;
    background: var(--blue-500);
    box-shadow: 0 0 0 1px #cfe5fb;
}

.journey-dot .icon {
    width: 13px;
    height: 13px;
}

.journey-card {
    padding: 19px 21px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.journey-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 7px;
}

.journey-card h3 {
    margin-bottom: 7px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 20px;
    line-height: 1.45;
}

.journey-card h3 a:hover {
    color: var(--blue-600);
}

.journey-card p {
    color: #667f99;
    font-size: 10.5px;
    line-height: 1.8;
}

.journey-card-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #f1f6fc;
    color: #9badc0;
    font-size: 8px;
}

.journey-card-foot span,
.journey-card-foot a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.journey-card-foot a {
    color: var(--blue-600);
}

.journey-card-foot .icon {
    width: 10px;
    height: 10px;
}

.journey-card-foot a:first-of-type {
    margin-left: auto;
}

.journey-years {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.journey-years-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 13px;
}

.journey-years-head .eyebrow {
    font-size: 8px;
}

.journey-years-head strong {
    font-size: 16px;
}

.journey-year-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.journey-year-chip {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.journey-year-chip strong {
    color: #5d7894;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 14px;
}

.journey-year-chip span {
    color: #a0b1c3;
    font-size: 8px;
}

.journey-year-chip:hover {
    border-color: var(--blue-200);
    background: var(--blue-50);
}

.journey-empty {
    margin-top: 10px;
}

/* Thoughts ---------------------------------------------------------------- */
.thoughts-intro {
    margin-bottom: 27px;
}

.thoughts-intro .eyebrow {
    margin-bottom: 7px;
}

.thoughts-intro h2 {
    margin-bottom: 9px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 31px;
    line-height: 1.45;
    letter-spacing: -0.03em;
}

.thoughts-intro p {
    max-width: 600px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.8;
}

.thought-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.thought-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 21px;
    border: 1px solid #dceff6;
    border-radius: 16px;
    background:
        radial-gradient(260px 170px at 100% 0%, rgba(75, 198, 216, 0.08), transparent 65%),
        #fbfeff;
    scroll-margin-top: 100px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.thought-card:hover {
    border-color: #bde4eb;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.thought-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.thought-date {
    color: #8ea4ba;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8.5px;
}

.thought-quote {
    position: absolute;
    top: 15px;
    right: 17px;
    color: rgba(40, 171, 193, 0.15);
}

.thought-quote .icon {
    width: 32px;
    height: 32px;
}

.thought-card h3 {
    margin: 3px 0 8px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 19px;
    line-height: 1.5;
}

.thought-card h3 a:hover {
    color: var(--blue-600);
}

.thought-card > p {
    flex: 1;
    color: #5d7993;
    font-family: "Songti SC", "STSong", serif;
    font-size: 11.5px;
    line-height: 1.9;
}

.thought-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.thought-tags span {
    color: #8ea3b7;
    font-size: 8.5px;
}

.thought-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 13px;
    padding-top: 9px;
    border-top: 1px solid #edf6fb;
    color: #a0b1c3;
    font-size: 8px;
}

.thought-foot span,
.thought-foot a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.thought-foot a {
    margin-left: auto;
    color: var(--blue-600);
}

.thought-foot .icon {
    width: 10px;
    height: 10px;
}

/* Public owner ribbon ----------------------------------------------------- */
.memory-owner-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    padding: 10px 13px;
    border: 1px solid #d8eaff;
    border-radius: 8px;
    color: #7189a2;
    background: #f7fbff;
    font-size: 9.5px;
}

.memory-owner-ribbon span,
.memory-owner-ribbon a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.memory-owner-ribbon a {
    color: var(--blue-600);
    font-weight: 600;
}

.memory-owner-ribbon .icon {
    width: 12px;
    height: 12px;
}

/* Form -------------------------------------------------------------------- */
.memory-form-page,
.memory-settings-page {
    padding: 42px 0 86px;
    background:
        radial-gradient(720px 320px at 90% 0%, rgba(129, 199, 255, 0.1), transparent 65%),
        #f7fbff;
    min-height: 70vh;
}

.memory-form-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

.memory-form-head .eyebrow {
    margin-bottom: 6px;
}

.memory-form-head h1 {
    margin-bottom: 5px;
    font-size: clamp(30px, 3.2vw, 39px);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.memory-form-head p {
    color: var(--muted);
    font-size: 11.5px;
}

.memory-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    color: #7b92aa;
    font-size: 10.5px;
}

.memory-back-link:hover {
    color: var(--blue-600);
}

.memory-back-link .icon {
    width: 13px;
    height: 13px;
}

.memory-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 324px;
    gap: 22px;
    align-items: start;
}

.memory-form-main,
.memory-form-aside {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.memory-form-card {
    padding: 22px;
    border: 1px solid #e2eefb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 61, 110, 0.025);
}

.memory-form-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
    color: #2b4a68;
    font-size: 12px;
    font-weight: 700;
}

.memory-form-section-label small {
    color: #9eb0c2;
    font-size: 8.5px;
    font-weight: 400;
}

.memory-type-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.memory-type-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px;
    border: 1px solid #e3eefb;
    border-radius: 9px;
    background: #fbfdff;
    cursor: pointer;
    transition: all 0.16s;
}

.memory-type-option input,
.memory-theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.memory-type-option.is-checked,
.memory-type-option:has(input:checked) {
    border-color: #a9d2fb;
    background: #f2f9ff;
    box-shadow: 0 0 0 2px rgba(47, 124, 246, 0.07);
}

.memory-type-option-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    border-radius: 7px;
    color: var(--blue-500);
    background: #e9f5ff;
}

.memory-type-option-icon .icon {
    width: 14px;
    height: 14px;
}

.memory-type-option > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.memory-type-option strong {
    color: #49647f;
    font-size: 10px;
}

.memory-type-option small {
    color: #9cadc0;
    font-size: 8px;
    line-height: 1.4;
}

.memory-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.memory-form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.memory-form-card .field {
    margin-bottom: 15px;
}

.memory-form-card .field:last-child {
    margin-bottom: 0;
}

.memory-form-card .field textarea {
    min-height: 250px;
    font-family: "Songti SC", "STSong", "PingFang SC", serif;
    font-size: 13px;
    line-height: 1.9;
}

.memory-current-cover {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #e7f1fb;
    border-radius: 9px;
    background: #fbfdff;
}

.memory-current-cover img {
    width: 134px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.memory-current-cover > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.memory-current-cover span {
    color: #8ea2b7;
    font-size: 9px;
}

.memory-remove-cover {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #b36b74;
    font-size: 9px;
    cursor: pointer;
}

.memory-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 126px;
    padding: 18px;
    border: 1px dashed #bcdcfb;
    border-radius: 10px;
    background: #f8fcff;
    color: #8198af;
    text-align: center;
    cursor: pointer;
    transition: all 0.16s;
}

.memory-upload:hover {
    border-color: var(--blue-400);
    background: #f0f8ff;
}

.memory-upload > span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    color: var(--blue-500);
    background: #e9f5ff;
}

.memory-upload > span .icon {
    width: 17px;
    height: 17px;
}

.memory-upload strong {
    color: #5b7590;
    font-size: 10.5px;
}

.memory-upload small {
    color: #a0b1c3;
    font-size: 8.5px;
}

.memory-upload-preview {
    width: 100%;
    max-height: 180px;
    margin-bottom: 7px;
    border-radius: 8px;
    object-fit: cover;
}

.memory-form-promise {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 17px;
    color: #fff;
    background:
        radial-gradient(300px 200px at 100% 0%, rgba(152, 225, 255, 0.32), transparent 65%),
        linear-gradient(145deg, #57acff, #2f7cf6);
    box-shadow: 0 16px 35px rgba(47, 124, 246, 0.16);
}

.memory-form-promise-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
}

.memory-form-promise-icon .icon {
    width: 19px;
    height: 19px;
}

.memory-form-promise .eyebrow {
    color: rgba(255, 255, 255, 0.55);
    font-size: 8px;
}

.memory-form-promise h3 {
    margin: 5px 0 9px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 23px;
    line-height: 1.45;
}

.memory-form-promise p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 9.5px;
    line-height: 1.8;
}

.memory-promise-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 8.5px;
}

.memory-promise-list span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.memory-promise-list .icon {
    width: 11px;
    height: 11px;
    color: #c9f5e7;
}

.memory-form-archive {
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-size: 8px;
}

.memory-form-archive strong {
    color: rgba(255, 255, 255, 0.86);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 500;
}

.memory-form-options {
    padding: 17px;
}

.memory-switch {
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
}

.memory-switch > span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.memory-switch strong {
    color: #46627d;
    font-size: 10.5px;
}

.memory-switch small {
    color: #9aacbf;
    font-size: 8.5px;
    line-height: 1.55;
}

.memory-switch input {
    display: none;
}

.memory-switch i {
    position: relative;
    flex: 0 0 auto;
    width: 35px;
    height: 20px;
    border-radius: 999px;
    background: #dce8f4;
    transition: background 0.2s;
}

.memory-switch i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(23, 50, 79, 0.15);
    transition: transform 0.2s;
}

.memory-switch input:checked + i {
    background: var(--blue-500);
}

.memory-switch input:checked + i::after {
    transform: translateX(15px);
}

.memory-form-hint {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 10px;
    color: #a0b1c3;
    font-size: 8.5px;
    line-height: 1.6;
}

.memory-form-hint .icon {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.memory-form-submit {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 2px;
}

.memory-form-submit .btn {
    min-height: 48px;
}

.memory-form-cancel {
    color: #91a5ba;
    font-size: 9.5px;
    text-align: center;
}

.memory-form-cancel:hover {
    color: var(--blue-600);
}

/* Settings ---------------------------------------------------------------- */
.memory-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 322px;
    gap: 22px;
    align-items: start;
}

.memory-settings-form,
.memory-settings-aside {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.memory-theme-picker {
    display: flex;
    gap: 9px;
}

.memory-theme-option {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    padding: 10px;
    border: 1px solid #e4effb;
    border-radius: 8px;
    background: #fbfdff;
    cursor: pointer;
}

.memory-theme-option.is-checked,
.memory-theme-option:has(input:checked) {
    border-color: #a9d2fb;
    background: #f3f9ff;
}

.theme-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(20, 50, 85, 0.06);
}

.theme-option-mist .theme-swatch {
    background: linear-gradient(135deg, #c8e6ff, #2f7cf6);
}

.theme-option-sky .theme-swatch {
    background: linear-gradient(135deg, #dff6ff, #32b9d4);
}

.theme-option-paper .theme-swatch {
    background: linear-gradient(135deg, #f4efe4, #c5b08a);
}

.memory-theme-option strong {
    color: #5c7590;
    font-size: 10px;
}

.memory-public-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #f0f6fc;
}

.memory-public-address span {
    color: #9aacbf;
    font-size: 8.5px;
}

.memory-public-address a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    color: var(--blue-600);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memory-public-address .icon {
    width: 10px;
    height: 10px;
}

.memory-settings-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 3px;
}

.memory-settings-actions .btn {
    min-height: 43px;
    font-size: 11px;
}

.memory-settings-links {
    display: flex;
    flex-direction: column;
    margin-top: 11px;
}

.memory-settings-links a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    border-top: 1px solid #f1f7fc;
    color: #607b96;
    font-size: 9.5px;
}

.memory-settings-links a:first-child {
    border-top: 0;
}

.memory-settings-links a:hover {
    color: var(--blue-600);
}

.memory-settings-links .icon {
    width: 13px;
    height: 13px;
    color: #8ca3b9;
}

.memory-settings-links a .icon:last-child {
    width: 10px;
    height: 10px;
    margin-left: auto;
    color: #b4c3d3;
}

.memory-settings-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 13px;
    border: 1px solid #e6f0fa;
    border-radius: 10px;
    color: #8da2b7;
    background: rgba(255, 255, 255, 0.55);
    font-size: 8.5px;
    line-height: 1.7;
}

.memory-settings-note .icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: var(--blue-400);
}

/* Entry ------------------------------------------------------------------- */
.memory-entry-page {
    padding-bottom: 80px;
}

.memory-entry-header {
    padding: 42px 0 26px;
    background:
        radial-gradient(700px 320px at 90% 0%, rgba(129, 199, 255, 0.1), transparent 65%),
        #fbfdff;
    border-bottom: 1px solid #edf5fc;
}

.memory-entry-head-inner {
    max-width: 930px;
}

.memory-entry-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 15px;
}

.memory-entry-kicker > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--blue-600);
    font-size: 9.5px;
    font-weight: 600;
}

.memory-entry-kicker .icon {
    width: 11px;
    height: 11px;
}

.memory-entry-date {
    color: #91a5ba;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8.5px;
}

.memory-entry-header h1 {
    margin-bottom: 13px;
    color: #142e4b;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(34px, 4.2vw, 51px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.memory-entry-deck {
    max-width: 760px;
    margin-bottom: 15px;
    color: #627d99;
    font-family: "Songti SC", "STSong", serif;
    font-size: 15px;
    line-height: 1.8;
}

.memory-entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid #eaf3fc;
    color: #8fa3b8;
    font-size: 9px;
}

.memory-entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.memory-entry-meta .icon {
    width: 11px;
    height: 11px;
}

.memory-entry-cover {
    margin-top: 25px;
}

.memory-entry-cover img {
    width: 100%;
    max-height: 580px;
    object-fit: cover;
    border-radius: 16px;
}

.memory-entry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 298px;
    gap: 50px;
    align-items: start;
    padding-top: 30px;
}

.memory-entry-main {
    min-width: 0;
    max-width: 850px;
}

.memory-prose {
    color: #34516f;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 16.5px;
    line-height: 2.15;
    word-break: break-word;
}

.memory-prose > br + br {
    display: block;
    content: "";
    margin-top: 0.8em;
}

.memory-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eef5fc;
}

.memory-entry-tags a {
    padding: 4px 8px;
    border: 1px solid #e6eff9;
    border-radius: 5px;
    color: #869cb2;
    font-size: 9px;
}

.memory-entry-tags a:hover {
    color: var(--blue-600);
    border-color: var(--blue-200);
}

.memory-entry-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.memory-entry-actions .btn {
    min-height: 37px;
    padding-inline: 13px;
    font-size: 10.5px;
}

.memory-entry-actions form {
    margin: 0;
}

.memory-entry-permanent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid #d8eee8;
    border-radius: 11px;
    background: #f6fcfa;
}

.memory-entry-permanent > span {
    color: #4ba68c;
}

.memory-entry-permanent .icon {
    width: 20px;
    height: 20px;
}

.memory-entry-permanent strong {
    display: block;
    color: #2f7c67;
    font-size: 11px;
}

.memory-entry-permanent p {
    margin-top: 2px;
    color: #7e9b92;
    font-size: 9px;
    line-height: 1.7;
}

.memory-entry-side {
    position: sticky;
    top: 95px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.memory-entry-owner {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 11px;
    border-bottom: 1px solid #eef5fc;
    margin-bottom: 8px;
}

.memory-entry-owner > div {
    display: flex;
    flex-direction: column;
}

.memory-entry-owner strong {
    font-size: 11px;
}

.memory-entry-owner span {
    color: #9aacbf;
    font-size: 8.5px;
}

.memory-entry-info {
    display: flex;
    flex-direction: column;
}

.memory-entry-info div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-top: 1px solid #f1f7fc;
    font-size: 8.5px;
}

.memory-entry-info div:first-child {
    border-top: 0;
}

.memory-entry-info span {
    color: #98aabd;
}

.memory-entry-info strong {
    color: #5e7994;
    font-weight: 500;
    text-align: right;
}

.memory-info-permanent {
    color: #379b80 !important;
}

/* Private ----------------------------------------------------------------- */
.memory-private {
    display: flex;
    align-items: center;
    min-height: 61vh;
    padding: 70px 0;
    background:
        radial-gradient(700px 350px at 50% 0%, rgba(127, 199, 255, 0.14), transparent 65%),
        #f8fcff;
}

.memory-private-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 650px;
    text-align: center;
}

.memory-private-mark {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    border: 1px solid #d9eaff;
    border-radius: 50%;
    color: var(--blue-500);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.memory-private-mark .icon {
    width: 27px;
    height: 27px;
}

.memory-private .eyebrow {
    margin-bottom: 8px;
}

.memory-private h1 {
    margin-bottom: 12px;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(30px, 3.7vw, 43px);
    line-height: 1.4;
    letter-spacing: -0.035em;
}

.memory-private p {
    max-width: 490px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.memory-private-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.memory-private-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    color: #a0b2c4;
    font-size: 8.5px;
}

.memory-private-note .icon {
    width: 11px;
    height: 11px;
}

/* Memory space social: visitors, guestbook, likes, gifts, tips ------------ */
.space-social {
    padding: 58px 0 68px;
    border-top: 1px solid #e8f2fb;
    background:
        radial-gradient(700px 330px at 92% 0%, rgba(141, 204, 255, 0.12), transparent 65%),
        #f7fbff;
}

.space-social-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.space-social-title .eyebrow {
    margin-bottom: 6px;
    font-size: 8px;
}

.space-social-title h2 {
    margin-bottom: 6px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 31px;
    letter-spacing: -0.03em;
}

.space-social-title p {
    max-width: 470px;
    color: #849ab0;
    font-size: 10px;
    line-height: 1.8;
}

.space-social-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    flex: 0 0 auto;
}

.space-social-stats div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.space-social-stats strong {
    color: #3d6487;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.space-social-stats span {
    color: #9aafc2;
    font-size: 8px;
}

.space-social-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5f1fb;
}

.space-like-form {
    display: inline-flex;
}

.space-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cfe5fa;
    border-radius: 7px;
    color: #6489aa;
    background: #fff;
    font-family: "PingFang SC", sans-serif;
    font-size: 9.5px;
    cursor: pointer;
}

.space-like-btn .icon {
    width: 14px;
    height: 14px;
}

.space-like-btn em {
    margin-left: 2px;
    padding-left: 6px;
    border-left: 1px solid #e6f0fa;
    color: #93a9bc;
    font-style: normal;
}

.space-like-btn:hover,
.space-like-btn.is-active {
    border-color: #f3b7c4;
    color: #d06278;
    background: #fff8fa;
}

.space-like-btn.is-active .icon {
    fill: #e47e92;
}

.space-social-owner-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8ba1b5;
    font-size: 9px;
}

.space-social-owner-note .icon {
    width: 12px;
    height: 12px;
    color: #63a693;
}

.space-social-jump {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #8ca3b8;
    font-size: 9px;
}

.space-social-jump .icon {
    width: 12px;
    height: 12px;
}

.space-social-jump:hover {
    color: var(--blue-600);
}

.space-social-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 16px;
    align-items: start;
}

.space-guestbook,
.space-support {
    padding: 22px;
    border: 1px solid #e1eefb;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-xs);
    scroll-margin-top: 100px;
}

.space-social-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.space-social-card-head .eyebrow {
    font-size: 7.5px;
    margin-bottom: 2px;
}

.space-social-card-head h3 {
    font-size: 18px;
    letter-spacing: -0.025em;
}

.space-social-count {
    color: #9db0c2;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
}

.space-message-form {
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid #e6f1fb;
    border-radius: 9px;
    background: #fbfdff;
}

.space-message-form textarea {
    width: 100%;
    min-height: 72px;
    padding: 0;
    border: 0;
    outline: 0;
    resize: vertical;
    color: #5c7791;
    background: transparent;
    font-family: "Songti SC", "STSong", serif;
    font-size: 11px;
    line-height: 1.8;
}

.space-message-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 7px;
    border-top: 1px solid #edf5fc;
}

.space-message-form-foot span {
    color: #a7b7c7;
    font-size: 7.5px;
}

.space-message-form-foot .btn {
    min-height: 29px;
    font-size: 8.5px;
}

.space-login-prompt {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
    padding: 12px;
    border: 1px dashed #d7e9fa;
    border-radius: 8px;
    color: #90a6ba;
    font-size: 9px;
}

.space-login-prompt .icon {
    width: 14px;
    height: 14px;
    color: var(--blue-400);
}

.space-login-prompt a {
    margin-left: auto;
    color: var(--blue-600);
    font-weight: 600;
}

.space-message-list {
    display: flex;
    flex-direction: column;
}

.space-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #f0f7fd;
}

.space-message:first-child {
    border-top: 0;
    padding-top: 0;
}

.space-message > .avatar {
    flex: 0 0 auto;
}

.space-message-body {
    flex: 1;
    min-width: 0;
}

.space-message-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 2px;
}

.space-message-meta strong {
    color: #51708c;
    font-size: 9.5px;
}

.space-message-meta span {
    color: #a4b5c5;
    font-size: 7.5px;
}

.space-message-body p {
    color: #6f879e;
    font-family: "Songti SC", "STSong", serif;
    font-size: 10.5px;
    line-height: 1.75;
}

.space-message-delete {
    flex: 0 0 auto;
    padding: 3px;
    color: #b4c2d0;
    background: transparent;
}

.space-message-delete .icon {
    width: 11px;
    height: 11px;
}

.space-message-delete:hover {
    color: #bd6b74;
}

.space-social-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 23px 10px;
    color: #a2b3c4;
    text-align: center;
}

.space-social-empty .icon {
    width: 23px;
    height: 23px;
    margin-bottom: 5px;
    color: #c8d9e9;
}

.space-social-empty p {
    font-size: 9px;
}

.space-gift-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.space-gift-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    border: 1px solid #e7f1fb;
    border-radius: 7px;
    background: #fbfdff;
    cursor: pointer;
    transition: all 0.15s;
}

.space-gift-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.space-gift-option:has(input:checked) {
    border-color: #b8dafa;
    background: #f2f9ff;
    box-shadow: 0 0 0 2px rgba(47, 124, 246, 0.05);
}

.space-gift-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    color: #d19245;
    background: #fff8eb;
}

.space-gift-option.tone-pink .space-gift-icon {
    color: #d66f8a;
    background: #fff1f5;
}

.space-gift-option.tone-brown .space-gift-icon {
    color: #96704e;
    background: #fcf4ea;
}

.space-gift-option.tone-blue .space-gift-icon {
    color: #4e8abe;
    background: #eff8ff;
}

.space-gift-option.tone-amber .space-gift-icon {
    color: #c38c31;
    background: #fff9e9;
}

.space-gift-option.tone-violet .space-gift-icon {
    color: #8b75c6;
    background: #f5f1ff;
}

.space-gift-icon .icon {
    width: 13px;
    height: 13px;
}

.space-gift-option strong {
    color: #668098;
    font-size: 8px;
    font-weight: 500;
}

.space-gift-option small {
    color: #b19d80;
    font-size: 7px;
}

.space-support-message-row {
    display: flex;
    gap: 5px;
    margin-top: 7px;
}

.space-support-message-row input {
    flex: 1;
    min-width: 0;
    height: 31px;
    padding: 0 8px;
    border: 1px solid #e3eef9;
    border-radius: 6px;
    color: #607b94;
    background: #fbfdff;
    font-size: 8.5px;
}

.space-support-message-row .btn {
    flex: 0 0 auto;
    min-height: 31px;
    padding-inline: 9px;
    font-size: 8.5px;
}

.space-tip-details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef6fc;
}

.space-tip-details summary {
    color: #93a8bc;
    font-size: 8.5px;
    cursor: pointer;
    list-style: none;
}

.space-tip-details summary::-webkit-details-marker {
    display: none;
}

.space-tip-details summary .icon {
    width: 10px;
    height: 10px;
    margin-right: 2px;
    color: #d88391;
}

.space-tip-form {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.space-tip-form label {
    display: flex;
    align-items: center;
    gap: 1px;
    width: 82px;
    height: 29px;
    padding: 0 7px;
    border: 1px solid #e3eef9;
    border-radius: 5px;
    color: #8a775d;
    background: #fff;
    font-size: 9px;
}

.space-tip-form label input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #74634f;
    font-size: 9px;
}

.space-tip-form > input {
    flex: 1;
    min-width: 90px;
    height: 29px;
    padding: 0 7px;
    border: 1px solid #e3eef9;
    border-radius: 5px;
    font-size: 8.5px;
}

.space-tip-form .btn {
    min-height: 29px;
    padding-inline: 9px;
    font-size: 8.5px;
}

.space-owner-support {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 13px;
    border: 1px solid #d8eee7;
    border-radius: 8px;
    color: #7b9b91;
    background: #f7fcfa;
    font-size: 9px;
    line-height: 1.7;
}

.space-owner-support > span {
    color: #58a68e;
}

.space-owner-support .icon {
    width: 18px;
    height: 18px;
}

.space-owner-support strong {
    color: #3d816d;
}

.space-support-list {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eef6fc;
}

.space-support-list-title {
    display: block;
    margin-bottom: 6px;
    color: #9bafc2;
    font-size: 7.5px;
    letter-spacing: 0.05em;
}

.space-support-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 0;
}

.space-support-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    color: #c48d47;
    background: #fff8eb;
}

.space-support-icon .icon {
    width: 11px;
    height: 11px;
}

.space-support-item > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.space-support-item strong {
    overflow: hidden;
    color: #6c8499;
    font-size: 8.5px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.space-support-item small {
    overflow: hidden;
    color: #a5b5c4;
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.space-support-item em {
    color: #aa8454;
    font-size: 8.5px;
    font-style: normal;
}

/* Ranking ----------------------------------------------------------------- */
.memory-rank-hero {
    position: relative;
    overflow: hidden;
    padding: 50px 0 42px;
    color: #fff;
    background:
        radial-gradient(700px 340px at 80% 10%, rgba(150, 222, 255, 0.32), transparent 65%),
        linear-gradient(122deg, #2c6db5, #3c88d5 55%, #5aa8e8);
}

.memory-rank-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 0.6px, transparent 0.6px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 80%);
}

.memory-rank-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.memory-rank-hero .eyebrow {
    color: rgba(255, 255, 255, 0.56);
    font-size: 8px;
}

.memory-rank-hero h1 {
    margin: 8px 0 9px;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.4;
    letter-spacing: -0.035em;
}

.memory-rank-hero p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    line-height: 1.8;
}

.memory-rank-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.memory-rank-seal > span {
    color: #d7f0ff;
}

.memory-rank-seal .icon {
    width: 18px;
    height: 18px;
}

.memory-rank-seal strong {
    margin-top: 1px;
    font-size: 26px;
    line-height: 1.1;
}

.memory-rank-seal small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 7px;
}

.memory-rank-page {
    padding-top: 26px;
    padding-bottom: 65px;
}

.memory-rank-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 19px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.memory-rank-tabs a {
    padding: 7px 11px;
    border-radius: 6px;
    color: #7c93a9;
    font-size: 9.5px;
}

.memory-rank-tabs a:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.memory-rank-tabs a.is-active {
    color: #fff;
    background: var(--blue-500);
}

.memory-rank-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 13px;
}

.memory-rank-podium-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 112px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #e2eefb;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.memory-rank-podium-card.rank-1 {
    border-color: #f0dfba;
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(237, 194, 111, 0.14), transparent 70%),
        #fffdf8;
}

.memory-rank-podium-card.rank-2 {
    border-color: #dfe8f2;
    background: #fbfdff;
}

.memory-rank-podium-card.rank-3 {
    border-color: #f0dfd0;
    background: #fffaf6;
}

.memory-rank-podium-card > img {
    width: 63px;
    height: 88px;
    flex: 0 0 auto;
    border-radius: 5px;
    object-fit: cover;
}

.memory-rank-podium-number {
    position: absolute;
    top: 5px;
    right: 9px;
    color: rgba(65, 105, 143, 0.16);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 26px;
    font-weight: 700;
}

.memory-rank-podium-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.memory-rank-podium-owner {
    color: #9aafc2;
    font-size: 7.5px;
}

.memory-rank-podium-body strong {
    overflow: hidden;
    color: #3e5e7b;
    font-family: "Songti SC", "STSong", serif;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memory-rank-podium-body > span:last-child {
    margin-top: 3px;
    color: #9b8056;
    font-size: 8px;
}

.memory-rank-list-card {
    padding: 21px;
    border: 1px solid #e4effa;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.memory-rank-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.memory-rank-list-head .eyebrow {
    font-size: 7.5px;
}

.memory-rank-list-head h2 {
    margin-top: 2px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 22px;
}

.memory-rank-updated {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #a0b2c3;
    font-size: 8px;
}

.memory-rank-updated .icon {
    width: 10px;
    height: 10px;
}

.memory-rank-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 8px;
    border-top: 1px solid #f0f7fd;
    border-radius: 6px;
}

.memory-rank-row:hover {
    background: #f8fcff;
}

.memory-rank-row.is-top {
    background: #fbfdff;
}

.memory-rank-no {
    flex: 0 0 27px;
    color: #b0c0cf;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    text-align: right;
}

.memory-rank-row.is-top .memory-rank-no {
    color: #b28b4d;
    font-size: 14px;
    font-weight: 700;
}

.memory-rank-avatar {
    flex: 0 0 auto;
}

.memory-rank-avatar img,
.memory-rank-avatar i {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    color: #fff;
    font-style: normal;
    font-size: 12px;
    object-fit: cover;
}

.memory-rank-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.memory-rank-identity strong {
    overflow: hidden;
    color: #4f6d88;
    font-family: "Songti SC", "STSong", serif;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memory-rank-identity small {
    color: #a3b3c4;
    font-size: 7.5px;
}

.memory-rank-metrics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    flex: 0 0 auto;
}

.memory-rank-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #94a9bc;
    font-size: 8px;
}

.memory-rank-metrics .icon {
    width: 10px;
    height: 10px;
}

.memory-rank-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 75px;
}

.memory-rank-score strong {
    color: #3c6d99;
    font-size: 14px;
    font-weight: 700;
}

.memory-rank-score small {
    color: #a4b5c5;
    font-size: 7px;
}

.memory-rank-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #e6f0fa;
    border-radius: 9px;
    color: #9aafc2;
    background: rgba(255, 255, 255, 0.62);
    font-size: 8px;
    line-height: 1.7;
}

.memory-rank-note .icon {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    color: var(--blue-400);
}

.memory-rank-side-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e1eefb;
    border-radius: 11px;
    background: #fbfdff;
}

.memory-rank-side-link > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: #b0884d;
    background: #fff8e9;
}

.memory-rank-side-link > span .icon {
    width: 14px;
    height: 14px;
}

.memory-rank-side-link > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.memory-rank-side-link strong {
    color: #597590;
    font-size: 9px;
}

.memory-rank-side-link small {
    color: #a5b5c5;
    font-size: 7px;
}

.memory-rank-side-link > .icon {
    width: 11px;
    height: 11px;
    color: #b2c0ce;
}

/* Member center: memory space management card ---------------------------- */
.user-memory-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    gap: 26px;
    margin-bottom: 17px;
    padding: 24px;
    border: 1px solid #d8eaff;
    border-radius: 17px;
    background:
        radial-gradient(500px 230px at 100% 0%, rgba(126, 200, 255, 0.2), transparent 65%),
        linear-gradient(145deg, #f5fbff, #fcfdff);
    box-shadow: var(--shadow-xs);
}

.user-memory-main {
    min-width: 0;
}

.user-memory-main .eyebrow {
    font-size: 8px;
}

.user-memory-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 5px 0 15px;
}

.user-memory-title-row h2 {
    margin-bottom: 4px;
    color: #264865;
    font-family: "Songti SC", "STSong", serif;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.user-memory-title-row p {
    max-width: 470px;
    color: #8299af;
    font-size: 9.5px;
    line-height: 1.7;
}

.user-memory-seal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid #d5eafb;
    border-radius: 5px;
    color: #54809f;
    background: rgba(255, 255, 255, 0.8);
    font-size: 8px;
    white-space: nowrap;
}

.user-memory-seal .icon {
    width: 12px;
    height: 12px;
    color: #4ba68c;
}

.user-memory-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 13px 0;
    border-top: 1px solid #e4f1fc;
    border-bottom: 1px solid #e4f1fc;
}

.user-memory-stats div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.user-memory-stats strong {
    color: #2f5a7e;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.user-memory-stats span {
    color: #9aafc2;
    font-size: 8px;
}

.user-memory-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    padding: 9px 0 0;
    color: #93a9bc;
    font-size: 8px;
}

.user-memory-social span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.user-memory-social .icon {
    width: 10px;
    height: 10px;
    color: #88a4bc;
}

.user-memory-social a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    color: var(--blue-600);
    font-size: 8px;
}

.user-memory-social a .icon {
    width: 9px;
    height: 9px;
    color: var(--blue-500);
}

.user-memory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.user-memory-actions .btn {
    min-height: 34px;
    font-size: 9.5px;
}

.user-memory-recent {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e0eefb;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.72);
}

.user-memory-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: #597590;
    font-size: 9.5px;
}

.user-memory-recent-head a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--blue-600);
    font-size: 8.5px;
}

.user-memory-recent-list {
    display: flex;
    flex-direction: column;
}

.user-memory-recent-list a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 0;
    border-top: 1px solid #f0f7fd;
}

.user-memory-recent-list a:first-child {
    border-top: 0;
}

.user-memory-type {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: var(--blue-500);
    background: #eef8ff;
}

.user-memory-type.type-thought {
    color: #1d95a7;
    background: #eefafb;
}

.user-memory-type.type-milestone {
    color: #b17a27;
    background: #fff8ea;
}

.user-memory-type .icon {
    width: 11px;
    height: 11px;
}

.user-memory-recent-list a > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.user-memory-recent-list strong {
    overflow: hidden;
    color: #56738e;
    font-size: 9.5px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-memory-recent-list small {
    color: #a0b2c4;
    font-size: 7.5px;
}

.user-memory-recent-list > a > .icon {
    width: 10px;
    height: 10px;
    color: #b7c5d3;
}

.user-memory-empty {
    padding: 12px 0;
    color: #99adc0;
    font-size: 9px;
    line-height: 1.7;
}

/* Account sidebar additions ---------------------------------------------- */
.account-back-memory {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #d9ecff;
    border-radius: 12px;
    background:
        radial-gradient(160px 90px at 100% 0%, rgba(117, 194, 255, 0.16), transparent 65%),
        #f7fcff;
}

.account-back-memory > span:first-child {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--blue-500);
    background: #fff;
}

.account-back-memory > span:first-child .icon {
    width: 14px;
    height: 14px;
}

.account-back-memory > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.account-back-memory strong {
    color: #41607f;
    font-size: 10px;
}

.account-back-memory small {
    color: #99adc0;
    font-size: 7.5px;
}

.account-back-memory > .icon {
    width: 12px;
    height: 12px;
    color: #9cb0c4;
}

.user-nav-title {
    padding: 4px 10px 5px;
    color: #9fb2c5;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Home memory section ----------------------------------------------------- */
.home-memory-section {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    background:
        radial-gradient(800px 400px at 10% 0%, rgba(127, 199, 255, 0.16), transparent 65%),
        linear-gradient(180deg, #fbfdff, #f2f9ff);
    border-top: 1px solid #edf5ff;
    border-bottom: 1px solid #edf5ff;
}

.home-memory-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 55px;
    align-items: center;
}

.home-memory-copy .eyebrow {
    margin-bottom: 8px;
}

.home-memory-copy h2 {
    margin: 8px 0 15px;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(33px, 3.7vw, 46px);
    line-height: 1.4;
    letter-spacing: -0.04em;
}

.home-memory-copy > p {
    max-width: 470px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.home-memory-features {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 25px 0;
}

.home-memory-features > div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.home-memory-features > div > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid #dfefff;
    border-radius: 8px;
    color: var(--blue-500);
    background: #fff;
}

.home-memory-features .icon {
    width: 14px;
    height: 14px;
}

.home-memory-features strong {
    display: block;
    color: #3f5d7c;
    font-size: 11px;
}

.home-memory-features small {
    display: block;
    margin-top: 1px;
    color: #91a5ba;
    font-size: 9px;
}

.home-memory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.home-memory-card {
    position: relative;
    padding: 24px;
    border: 1px solid #dbeafa;
    border-radius: 22px;
    background:
        radial-gradient(300px 180px at 100% 0%, rgba(137, 206, 255, 0.22), transparent 65%),
        #fff;
    box-shadow: 0 26px 60px rgba(34, 84, 150, 0.12);
}

.home-memory-card::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 33px;
    width: 58px;
    height: 19px;
    border: 1px solid #d7e9fb;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.7);
    transform: rotate(-0.8deg);
}

.home-memory-window-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf5fc;
    margin-bottom: 16px;
}

.home-memory-window-head span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #5b7b99;
    font-size: 9.5px;
    font-weight: 600;
}

.home-memory-window-head .icon {
    width: 13px;
    height: 13px;
    color: var(--blue-500);
}

.home-memory-window-head small {
    color: #9bafc2;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 7.5px;
}

.home-memory-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.home-memory-identity > span {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #61b4ff, #2f7cf6);
    font-size: 14px;
    font-weight: 700;
}

.home-memory-identity div {
    display: flex;
    flex-direction: column;
}

.home-memory-identity strong {
    color: #37556f;
    font-size: 11px;
}

.home-memory-identity small {
    color: #9bafc2;
    font-size: 8px;
}

.home-memory-preview-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-memory-preview {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px 0;
    border-top: 1px solid #f3f8fd;
}

.home-memory-preview:first-child {
    border-top: 0;
}

.home-memory-preview-dot {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    color: var(--blue-500);
    background: #f0f9ff;
}

.home-memory-preview-dot .icon {
    width: 12px;
    height: 12px;
}

.home-memory-preview div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-memory-preview strong {
    overflow: hidden;
    color: #4d6781;
    font-size: 9px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-memory-preview small {
    color: #a1b2c4;
    font-size: 7.5px;
}

.home-memory-preview > span:last-child {
    color: #9bb0c3;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 7.5px;
}

.home-memory-stamp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf5fc;
    color: #92a6ba;
    font-size: 8px;
}

.home-memory-stamp span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.home-memory-stamp .icon {
    width: 11px;
    height: 11px;
    color: #4ca994;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1180px) {
    .memory-page-layout {
        gap: 34px;
    }

    .memory-hero-inner {
        min-height: 360px;
    }

    .memory-stats {
        gap: 20px;
    }

    .memory-entry-layout {
        gap: 34px;
    }

    .home-memory-layout {
        gap: 34px;
    }
}

@media (max-width: 1024px) {
    .memory-page-layout,
    .memory-settings-layout,
    .memory-form-layout,
    .memory-entry-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 26px;
    }

    .memory-form-head {
        align-items: flex-start;
    }

    .memory-stream {
        margin-left: 76px;
    }

    .memory-card-date {
        left: -101px;
        width: 70px;
    }

    .memory-card-content.has-cover {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .journey-track-line {
        left: 128px;
    }

    .journey-stop {
        grid-template-columns: 90px 38px minmax(0, 1fr);
    }

    .home-memory-layout {
        grid-template-columns: 1fr;
    }

    .home-memory-copy {
        max-width: 680px;
    }

    .home-memory-card {
        max-width: 650px;
    }
}

@media (max-width: 820px) {
    .memory-hero {
        min-height: 0;
        padding: 34px 0 28px;
    }

    .memory-hero-inner {
        min-height: 0;
    }

    .memory-kicker {
        max-width: calc(100% - 86px);
        flex-wrap: wrap;
        gap: 6px;
        font-size: 8px;
        line-height: 1.5;
    }

    .memory-kicker i {
        display: none;
    }

    .memory-seal {
        top: 0;
        right: 0;
        width: 76px;
        height: 76px;
    }

    .memory-seal-text {
        font-size: 12px;
    }

    .memory-seal small {
        font-size: 5px;
    }

    .memory-seal-icon {
        width: 14px;
        height: 14px;
        margin-bottom: 0;
    }

    .memory-seal-icon .icon {
        width: 13px;
        height: 13px;
    }

    .memory-identity {
        gap: 15px;
        padding: 34px 0 22px;
    }

    .memory-avatar-wrap,
    .memory-avatar {
        width: 65px;
        height: 65px;
    }

    .memory-avatar-fallback {
        font-size: 26px;
    }

    .memory-identity h1 {
        font-size: 31px;
    }

    .memory-identity-copy p {
        font-size: 11px;
    }

    .memory-hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 17px;
    }

    .memory-stats {
        width: 100%;
        gap: 14px;
    }

    .memory-stat strong {
        font-size: 21px;
    }

    .memory-stat-permanent {
        padding-left: 14px;
    }

    .memory-hero-actions {
        width: 100%;
    }

    .memory-hero-actions .btn {
        flex: 1;
        min-width: 140px;
    }

    .memory-tabbar-inner {
        min-height: 54px;
        overflow-x: auto;
    }

    .memory-tabbar-side {
        display: none;
    }

    .memory-tabs a {
        height: 54px;
        padding-inline: 11px;
        font-size: 11px;
    }

    .memory-page-layout,
    .memory-settings-layout,
    .memory-form-layout,
    .memory-entry-layout {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding-top: 30px;
        padding-bottom: 55px;
    }

    .memory-main,
    .memory-entry-main,
    .memory-settings-form,
    .memory-form-main {
        width: 100%;
    }

    .memory-sidebar,
    .memory-entry-side,
    .memory-settings-aside {
        position: static;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 13px;
    }

    .memory-sidebar .memory-permanent-card,
    .memory-entry-side .memory-side-card:first-child,
    .memory-settings-aside .memory-permanent-card {
        grid-column: 1 / -1;
    }

    .memory-entry-side .memory-side-card:last-child {
        grid-column: 1 / -1;
    }

    .memory-stream {
        margin-left: 0;
        padding-left: 24px;
    }

    .memory-card {
        padding-left: 0;
    }

    .memory-card::before {
        left: -31px;
    }

    .memory-card-date {
        position: static;
        display: flex;
        align-items: baseline;
        gap: 5px;
        width: auto;
        margin-bottom: 5px;
        text-align: left;
    }

    .memory-card-date strong {
        font-size: 11px;
    }

    .memory-card-date span {
        font-size: 8px;
    }

    .memory-card-main {
        padding: 17px;
    }

    .memory-card-title {
        font-size: 18px;
    }

    .memory-card-content.has-cover {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 11px;
    }

    .memory-card-cover {
        min-height: 96px;
    }

    .memory-card-text p {
        font-size: 11.5px;
    }

    .memory-card-foot {
        gap: 8px;
    }

    .memory-permanent {
        display: none;
    }

    .memory-card-actions {
        width: 100%;
        margin-left: 0;
        padding-top: 5px;
    }

    .memory-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .memory-section-head h2 {
        font-size: 27px;
    }

    .thought-grid {
        grid-template-columns: 1fr;
    }

    .journey-intro h2 {
        font-size: 27px;
    }

    .journey-track-line {
        left: 79px;
    }

    .journey-stop {
        grid-template-columns: 63px 24px minmax(0, 1fr);
        gap: 6px;
    }

    .journey-year strong {
        font-size: 17px;
    }

    .journey-dot {
        width: 23px;
        height: 23px;
        margin-top: 14px;
        border-width: 3px;
    }

    .journey-dot .icon {
        width: 10px;
        height: 10px;
    }

    .journey-card {
        padding: 15px;
    }

    .journey-card h3 {
        font-size: 17px;
    }

    .memory-type-picker {
        grid-template-columns: 1fr;
    }

    .memory-form-row,
    .memory-form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .memory-theme-picker {
        flex-direction: column;
    }

    .memory-form-head {
        flex-direction: column;
        gap: 10px;
    }

    .memory-form-head h1 {
        font-size: 29px;
    }

    .memory-entry-header {
        padding-top: 28px;
    }

    .memory-entry-header h1 {
        font-size: 30px;
    }

    .memory-entry-deck {
        font-size: 13px;
    }

    .memory-entry-meta {
        gap: 9px;
    }

    .memory-entry-cover img {
        border-radius: 12px;
    }

    .memory-prose {
        font-size: 15.5px;
        line-height: 2.05;
    }

    .memory-private {
        padding: 45px 0;
        min-height: 55vh;
    }

    .memory-private-actions {
        flex-direction: column;
        width: 100%;
        max-width: 270px;
    }

    .memory-private-actions .btn {
        width: 100%;
    }

    .home-memory-section {
        padding: 52px 0;
    }

    .home-memory-card {
        padding: 18px;
    }

    .home-memory-copy h2 {
        font-size: 31px;
    }
}

@media (max-width: 520px) {
    .memory-hero {
        padding-top: 26px;
    }

    .memory-kicker {
        max-width: calc(100% - 65px);
        font-size: 7px;
    }

    .memory-seal {
        width: 61px;
        height: 61px;
    }

    .memory-seal-text {
        font-size: 10px;
    }

    .memory-seal small {
        display: none;
    }

    .memory-seal-icon {
        display: none;
    }

    .memory-identity {
        align-items: flex-start;
        padding-top: 28px;
    }

    .memory-avatar-wrap,
    .memory-avatar {
        width: 54px;
        height: 54px;
    }

    .memory-owner {
        font-size: 8px;
    }

    .memory-identity h1 {
        font-size: 26px;
    }

    .memory-identity-copy p {
        font-size: 10px;
        line-height: 1.7;
    }

    .memory-stats {
        gap: 10px;
    }

    .memory-stat {
        min-width: 57px;
    }

    .memory-stat strong {
        font-size: 18px;
    }

    .memory-stat > span:last-child {
        font-size: 8px;
    }

    .memory-stat-permanent {
        display: none;
    }

    .memory-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .memory-hero-actions .btn {
        width: 100%;
    }

    .memory-hero-actions .memory-public-link {
        justify-content: center;
    }

    .memory-tabbar-inner {
        width: 100%;
        padding-inline: 10px;
    }

    .memory-tabs a {
        padding-inline: 9px;
        font-size: 10.5px;
    }

    .memory-tabs a .icon {
        width: 13px;
        height: 13px;
    }

    .memory-year-number {
        font-size: 22px;
    }

    .memory-stream {
        padding-left: 18px;
    }

    .memory-card::before {
        left: -25px;
        width: 9px;
        height: 9px;
    }

    .memory-card-main {
        padding: 14px;
        border-radius: 13px;
    }

    .memory-card-title {
        font-size: 16px;
    }

    .memory-card-content.has-cover {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .memory-card-cover {
        width: 100%;
        height: 160px;
    }

    .memory-card-text p {
        font-size: 11px;
        line-height: 1.8;
    }

    .memory-visibility {
        display: none !important;
    }

    .memory-sidebar,
    .memory-entry-side,
    .memory-settings-aside {
        display: flex;
        flex-direction: column;
    }

    .memory-permanent-card {
        padding: 20px;
    }

    .memory-permanent-card h3 {
        font-size: 22px;
    }

    .memory-empty {
        padding: 45px 18px;
    }

    .memory-empty h2 {
        font-size: 23px;
    }

    .thought-card {
        padding: 17px;
    }

    .thought-card h3 {
        font-size: 17px;
    }

    .journey-track-line {
        left: 58px;
    }

    .journey-stop {
        grid-template-columns: 47px 20px minmax(0, 1fr);
        gap: 4px;
    }

    .journey-year strong {
        font-size: 14px;
    }

    .journey-year span {
        font-size: 7px;
    }

    .journey-dot {
        width: 18px;
        height: 18px;
        border-width: 2px;
        margin-top: 16px;
    }

    .journey-dot .icon {
        width: 8px;
        height: 8px;
    }

    .journey-card {
        padding: 12px;
    }

    .journey-card h3 {
        font-size: 15px;
    }

    .journey-card p {
        font-size: 9.5px;
    }

    .journey-card-foot {
        gap: 7px;
    }

    .memory-form-card {
        padding: 17px;
    }

    .memory-form-page,
    .memory-settings-page {
        padding: 26px 0 55px;
    }

    .memory-form-head h1 {
        font-size: 25px;
    }

    .memory-form-head p {
        font-size: 10.5px;
    }

    .memory-type-option {
        padding: 9px;
    }

    .memory-current-cover img {
        width: 100px;
        height: 64px;
    }

    .memory-settings-actions {
        flex-direction: column;
    }

    .memory-settings-actions .btn {
        width: 100%;
    }

    .memory-entry-header {
        padding-top: 22px;
    }

    .memory-entry-header h1 {
        font-size: 26px;
    }

    .memory-entry-cover {
        width: auto;
        margin: 18px 14px 0;
    }

    .memory-entry-layout {
        padding-top: 24px;
    }

    .memory-prose {
        font-size: 15px;
        line-height: 2;
    }

    .memory-entry-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .memory-entry-actions .btn {
        width: 100%;
    }

    .memory-entry-actions form {
        width: 100%;
    }

    .memory-entry-actions form .btn {
        width: 100%;
    }

    .memory-private h1 {
        font-size: 27px;
    }

    .home-memory-card {
        margin-inline: 0;
    }

    .home-memory-preview {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .home-memory-preview > span:last-child {
        display: none;
    }

    .home-memory-actions {
        flex-direction: column;
    }

    .home-memory-actions .btn {
        width: 100%;
    }

    .account-back-memory {
        display: none;
    }
}

@media (max-width: 820px) {
    .space-social {
        padding: 38px 0 45px;
    }

    .space-social-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .space-social-title h2 {
        font-size: 25px;
    }

    .space-social-stats {
        width: 100%;
        gap: 14px;
    }

    .space-social-grid {
        grid-template-columns: 1fr;
    }

    .space-guestbook,
    .space-support {
        padding: 17px;
    }

    .space-social-actions {
        align-items: flex-start;
    }

    .space-social-jump {
        padding: 6px 0;
    }

    .memory-rank-hero {
        padding: 34px 0 29px;
    }

    .memory-rank-hero-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .memory-rank-hero h1 {
        font-size: 31px;
    }

    .memory-rank-seal {
        display: none;
    }

    .memory-rank-podium {
        grid-template-columns: 1fr;
    }

    .memory-rank-podium-card {
        min-height: 90px;
    }

    .memory-rank-podium-card > img {
        width: 50px;
        height: 70px;
    }

    .memory-rank-metrics {
        display: none;
    }

    .memory-rank-row {
        gap: 8px;
    }

    .memory-rank-score {
        flex-basis: 64px;
    }

    .memory-rank-list-card {
        padding: 15px;
    }

    .memory-rank-list-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .memory-rank-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
    }

    .memory-rank-tabs a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .space-social {
        padding: 30px 0 36px;
    }

    .space-social-stats {
        gap: 10px;
    }

    .space-social-stats strong {
        font-size: 17px;
    }

    .space-social-actions {
        gap: 4px;
    }

    .space-like-btn {
        width: 100%;
        justify-content: center;
    }

    .space-social-jump {
        flex: 1;
        justify-content: center;
        padding: 7px 0;
        border: 1px solid #e4effa;
        border-radius: 5px;
        background: #fff;
    }

    .space-gift-picker {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .space-support-message-row {
        flex-direction: column;
    }

    .space-support-message-row .btn {
        width: 100%;
    }

    .space-tip-form label {
        width: 100%;
    }

    .space-tip-form > input {
        width: 100%;
        flex-basis: 100%;
    }

    .space-tip-form .btn {
        width: 100%;
    }

    .memory-rank-page {
        padding-top: 18px;
        padding-bottom: 45px;
    }

    .memory-rank-hero h1 {
        font-size: 27px;
    }

    .memory-rank-hero p {
        font-size: 9px;
    }

    .memory-rank-list-card {
        border-radius: 11px;
    }

    .memory-rank-row {
        padding: 10px 2px;
    }

    .memory-rank-identity small {
        font-size: 7px;
    }
}

@media (max-width: 1024px) {
    .user-memory-panel {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 18px;
        padding: 20px;
    }

    .user-memory-title-row h2 {
        font-size: 21px;
    }
}

@media (max-width: 820px) {
    .user-memory-panel {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .memory-manage-note-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 9px 0;
        line-height: 1.6;
    }

    .memory-manage-note-inner > a {
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .user-memory-panel {
        padding: 16px;
        border-radius: 13px;
    }

    .user-memory-title-row {
        flex-direction: column;
        gap: 8px;
    }

    .user-memory-title-row h2 {
        font-size: 19px;
    }

    .user-memory-seal {
        align-self: flex-start;
    }

    .user-memory-stats {
        gap: 14px;
    }

    .user-memory-stats strong {
        font-size: 17px;
    }

    .user-memory-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .user-memory-actions .btn {
        width: 100%;
    }

    .memory-manage-note-inner {
        font-size: 8.5px;
    }
}
