.leo-account { --member-ink: #29231f; --member-muted: #64594f; --member-rule: #e2d9ce; }
.leo-account header { position: relative; z-index: 4; }
.member-menu { position: relative; padding: 0; border: 0; }
.member-menu summary { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; padding: 6px 13px; border: 1px solid #d5c9bc; border-radius: 30px; color: var(--member-ink); font-size: .88rem; font-weight: 650; }
.member-menu summary::-webkit-details-marker { display: none; }
.member-menu summary svg:first-child { width: 18px; }
.member-menu summary svg:last-child { width: 15px; }
.member-menu[open] summary { margin: 0; background: #f0e9df; }
.member-menu[open] summary svg:last-child { transform: rotate(180deg); }
.member-menu > div { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); min-width: 185px; padding: 6px; border: 1px solid var(--member-rule); border-radius: 15px; background: white; box-shadow: 0 10px 32px #432d171a; }
.account-nav .member-menu a { display: flex; padding: 0 12px; border-radius: 9px; }
.member-menu a:hover { background: #f7f2eb; text-decoration: none; }
.member-desk, .member-detail { color: var(--member-ink); }
.member-desk { max-width: 1120px; padding-block: clamp(17px,3vw,40px) clamp(36px,6vw,80px); }
.member-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.9fr); align-items: center; min-height: 280px; border: 1px solid #eadbc9; border-radius: 25px; background: linear-gradient(110deg,#f9f1e7 4%,#f7eadd 62%,#f2dfc9); }
.member-hero::before, .member-hero::after { content: ""; z-index: -1; position: absolute; top: -25%; bottom: -25%; right: 6%; width: 11%; transform: skewX(-26deg); background: linear-gradient(180deg,#fff8ebbb,#fff4e766); }
.member-hero::after { right: -4%; width: 7%; background: #dfab7f40; }
.member-intro { z-index: 1; padding: clamp(22px,3.8vw,48px); }
.member-intro h1 { margin: 0; font-size: clamp(2.95rem,5.6vw,4.95rem); line-height: .98; letter-spacing: -.075em; font-weight: 720; }
.member-intro h1 em { display: block; color: #a03e18; font: italic 1.06em/.98 Georgia, "Times New Roman", serif; letter-spacing: -.062em; }
.member-intro p { max-width: 39ch; margin: 18px 0 22px; color: #55483d; font-size: 1rem; line-height: 1.45; }
.member-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 47px; padding: 0 21px; border-radius: 30px; background: #a93d12; box-shadow: 0 4px 11px #8f3a191a; color: #fff; text-decoration: none; font-size: .95rem; font-weight: 680; }
.member-primary:hover { background: #87300e; }
.member-art { align-self: stretch; position: relative; display: grid; align-items: center; justify-items: center; margin-left: -9%; mix-blend-mode: multiply; }
.member-art .leo-portrait { position: absolute; width: min(100%,345px); max-width: none; justify-self: center; }
.member-columns { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: clamp(28px,4.2vw,58px); margin-top: clamp(28px,3.5vw,45px); align-items: start; }
.member-columns h2, .member-transcript h2 { font-size: clamp(1.35rem,2.2vw,1.68rem); letter-spacing: -.05em; line-height: 1.18; margin: 0 0 17px; }
.member-list, .member-transcript ol { list-style: none; padding: 0; margin: 0; }
.member-record { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 15px; background: white; border: 1px solid var(--member-rule); border-radius: 17px; padding: 20px; color: var(--member-ink); text-decoration: none; box-shadow: 0 4px 14px #4c342506; }
.member-list li + li { margin-top: 9px; }
.record-icon, .tool-icon { display: inline-grid; place-items: center; flex: none; border-radius: 12px; }
.record-icon { width: 43px; height: 46px; background: #f9ecdc; color: #9c431a; }
.record-copy { display: grid; justify-items: start; gap: 6px; }
.record-meta, .member-tool small { color: var(--member-muted); font-weight: 440; font-size: .8rem; line-height: 1.45; }
.record-copy strong { font-size: clamp(1.05rem,1.5vw,1.27rem); line-height: 1.25; letter-spacing: -.037em; overflow-wrap: anywhere; }
.record-state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 20px; background: #efebe5; color: #564d43; font-size: .72rem; font-weight: 650; line-height: 1.45; }
.record-state::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.state-done { color: #326048; background: #e7f2e9; }
.state-open { color: #904716; background: #fff0d9; }
.record-action, .member-back { display: inline-flex; align-items: center; gap: 7px; color: #92380e; font-weight: 670; font-size: .84rem; }
.record-action svg, .member-tool > svg { width: 16px; height: 16px; }
.member-record:hover { border-color: #bf9579; }
.member-record:hover .record-action, .member-tool:hover strong, .member-back:hover { text-decoration: underline; text-underline-offset: .2em; }
.member-tools { padding-left: clamp(20px,3vw,38px); border-left: 1px solid var(--member-rule); }
.member-tools h2 { margin-bottom: 5px; }
.member-tool { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 0; text-decoration: none; color: var(--member-ink); }
.member-tool + .member-tool { border-top: 1px solid var(--member-rule); }
.tool-icon { width: 35px; height: 37px; background: #efe9df; color: #614b39; }
.member-tool strong, .member-tool small { display: block; }
.member-tool strong { font-size: .97rem; letter-spacing: -.023em; }
.member-tool small { margin-top: 2px; }
.member-tool > svg { color: #76675a; }
.member-pages { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; }
.member-pages a, .member-back { align-content: center; min-height: 44px; text-underline-offset: 3px; }
.member-empty { padding: 20px; border: 1px dashed #cbbeb0; color: var(--member-muted); border-radius: 15px; }
.member-detail { max-width: 900px; padding-block: clamp(20px,3vw,40px) 55px; }
.member-record-row { display: flex; align-items: stretch; background: white; border: 1px solid var(--member-rule); border-radius: 17px; }
.member-record-row:focus-within, .member-record-row:hover { border-color: #bf9579; }
.member-record-row .member-record { flex: 1; min-width: 0; border: 0; box-shadow: none; }
.call-delete-link { display: inline-flex; gap: 5px; align-items: center; justify-content: center; align-self: center; min-height: 44px; padding-inline: 8px; color: #854036; text-decoration: none; font-size: .82rem; }
.call-delete-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.member-record-row .call-delete-link { margin-right: 8px; }
.call-delete-link:hover { color: #86261c; text-decoration: underline; }
.member-detail-actions, .call-delete-confirm form { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.call-delete-confirm { max-width: 680px; }
.call-delete-confirm .detail-intro { margin-block: 14px; }
.call-delete-confirm .detail-intro h2 { margin: 4px 0 0; overflow-wrap: anywhere; }
.call-delete-confirm button.member-primary { cursor: pointer; border: 0; background: #932e25; color: white; }
.call-delete-notice { padding: 10px 14px; border-left: 3px solid #47745b; background: #ecf4ee; }
.member-back { text-decoration: none; }
.detail-intro { margin-block: 14px 28px; padding: clamp(22px,3vw,35px); background: #f6ebdd; border-radius: 20px; }
.member-detail h1 { max-width: 26ch; margin: 10px 0 16px; font-size: clamp(2rem,4vw,3.45rem); overflow-wrap: anywhere; }
.detail-intro p { margin: 12px 0 0; color: var(--member-muted); }
.member-transcript { margin: 24px 0; }
.member-transcript ol { display: grid; gap: 10px; }
.member-transcript li { width: fit-content; max-width: 88%; padding: 12px 18px; border: 1px solid var(--member-rule); border-radius: 15px 15px 15px 4px; background: white; overflow-wrap: anywhere; }
.member-transcript li.from-user { justify-self: end; border-color: #e5ceba; background: #f9eee2; border-radius: 15px 15px 4px 15px; }
.member-transcript li strong { color: #84411d; font-size: .8rem; }
.member-transcript li p { margin: 4px 0 0; }
@media (max-width: 800px) {
    .member-columns { grid-template-columns: minmax(0,1fr); gap: 28px; }
    .member-tools { border-left: 0; padding: 0; }
}
@media (max-width: 560px) {
    .member-desk { padding-inline: 16px; }
    .member-hero { grid-template-columns: 1fr; min-height: 0; border-radius: 19px; }
    .member-intro { padding: 23px 20px 21px; }
    .member-intro h1 { max-width: 67%; font-size: clamp(2.5rem,10vw,3.35rem); }
    .member-intro p { width: 65%; margin: 13px 0 17px; font-size: .91rem; }
    .member-art { position: absolute; z-index: -1; top: 8%; right: -1%; bottom: 11%; width: 39%; margin: 0; }
    .member-art .leo-portrait { width: 115%; }
    .member-columns h2 { margin-bottom: 12px; }
    .member-record { grid-template-columns: 35px minmax(0,1fr); gap: 9px 12px; padding: 15px; }
    .record-icon { width: 35px; height: 39px; align-self: start; }
    .record-action { grid-column: 2; justify-self: start; }
    .member-tools h2 { margin-bottom: 1px; }
}
@media (prefers-reduced-motion: no-preference) {
    .member-primary, .member-record { transition: background-color .15s, border-color .15s; }
    .record-action svg, .member-tool > svg { transition: transform .15s; }
    .member-record:hover .record-action svg, .member-tool:hover > svg { transform: translateX(2px); }
}
