@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;700;800&display=swap');

:root { --ink: #24232c; --muted: #77727f; --paper: #f5eff7; --card: #fffaff; --line: #e3d9e6; --pink: #df5c86; --lavender: #dcd4f4; --yellow: #f8df91; --blue: #cfe4ed; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Manrope', sans-serif; }
body::before { position: fixed; inset: 0; z-index: -1; content: ''; pointer-events: none; background: linear-gradient(135deg, rgba(248,223,145,.32), transparent 38%), radial-gradient(circle at 88% 12%, rgba(207,228,237,.6), transparent 26%); }
.mood-page { width: min(1120px, calc(100% - 48px)); margin: auto; padding: 56px 0 90px; }
.mood-header { position: relative; padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.compact-header { padding-bottom: 42px; }
.back-link, .manage-link { color: var(--ink); font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .06em; text-decoration: none; }
.back-link { display: inline-block; border-bottom: 1px solid var(--ink); }
.manage-link { position: absolute; top: 0; right: 0; color: var(--pink); font-family: 'Manrope', sans-serif; font-weight: 700; }
.kicker, .section-label { color: var(--pink); font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .12em; }
.kicker { margin: 50px 0 22px; }
.mood-header h1 { max-width: 800px; margin: 0; font-size: clamp(52px, 9vw, 108px); line-height: .91; letter-spacing: -.07em; }
.mood-header h1 span { color: var(--pink); }
.header-copy { margin: 30px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.mood-layout { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 70px; padding-top: 34px; }
.section-label { display: flex; gap: 13px; align-items: center; margin-bottom: 28px; }
.section-label span { color: var(--ink); }
.mood-form, .mood-wall { min-width: 0; }
fieldset { margin: 0 0 30px; padding: 0; border: 0; }
legend, label { display: block; margin-bottom: 13px; color: var(--muted); font-size: 12px; font-weight: 700; }
.mood-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mood-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mood-tile { display: flex; min-height: 92px; flex-direction: column; justify-content: center; align-items: center; gap: 7px; color: var(--muted); background: rgba(255,250,255,.65); border: 1px solid var(--line); cursor: pointer; font-size: 11px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.mood-choice:nth-child(1) .mood-tile { background: rgba(248,223,145,.28); }
.mood-choice:nth-child(2) .mood-tile { background: rgba(223,92,134,.08); }
.mood-choice:nth-child(3) .mood-tile { background: rgba(207,228,237,.38); }
.mood-choice:nth-child(4) .mood-tile { background: rgba(220,212,244,.42); }
.mood-choice:nth-child(5) .mood-tile { background: rgba(207,228,237,.3); }
.mood-choice:nth-child(6) .mood-tile { background: rgba(248,223,145,.2); }
.mood-choice input:checked + .mood-tile { border: 2px solid var(--pink); transform: translateY(-3px); box-shadow: 0 7px 0 rgba(223,92,134,.12); }
.mood-choice input:focus-visible + .mood-tile { outline: 3px solid rgba(223,92,134,.3); outline-offset: 2px; }
.mood-emoji { font-size: 29px; line-height: 1; }
input:not([type='radio']), textarea { width: 100%; padding: 14px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); outline: none; font: inherit; }
label { margin: 22px 0 8px; }
textarea { min-height: 120px; resize: vertical; }
input:not([type='radio']):focus, textarea:focus { border-color: var(--pink); }
button { border: 0; cursor: pointer; font: inherit; }
.mood-form > button { width: 100%; margin-top: 30px; padding: 16px 18px; color: #fff; background: var(--pink); text-align: left; font-size: 14px; font-weight: 800; }
.mood-form > button span { float: right; font-size: 20px; line-height: 12px; }
.mood-form > button:hover { background: #bc3e69; }
.wall-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 27px; }
.wall-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: -.06em; }
.wall-mark { color: var(--pink); font-size: 42px; line-height: .7; transform: rotate(15deg); }
.mood-list { border-top: 1px solid var(--line); }
.mood-entry { position: relative; padding: 21px 0; border-bottom: 1px solid var(--line); }
.mood-entry-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.entry-emoji { display: grid; width: 43px; height: 43px; place-items: center; background: var(--yellow); border-radius: 50%; font-size: 23px; }
.mood-entry:nth-child(3n) .entry-emoji { background: var(--lavender); }
.mood-entry:nth-child(3n + 2) .entry-emoji { background: var(--blue); }
.mood-entry strong { display: block; font-size: 14px; }
time { display: block; margin-top: 3px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 11px; }
.mood-entry p { margin: 0; padding-left: 55px; color: #5c5762; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.empty-state { padding: 30px 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.notice { margin: -10px 0 20px; padding: 12px 14px; font-size: 13px; }
.notice.success { color: #53684a; background: #e4efd6; }
.notice.error { color: #8d3f59; background: #f7dce5; }
.admin-page { max-width: 900px; }
.login-panel { width: min(100%, 520px); margin: 48px auto 0; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: baseline; }
.admin-toolbar .section-label { margin-bottom: 28px; }
.admin-entry { padding-right: 65px; }
.admin-entry > form { position: absolute; top: 23px; right: 0; }
.delete-button { padding: 5px 0; color: var(--pink); background: transparent; font-size: 12px; font-weight: 700; }

@media (max-width: 760px) {
    .mood-page { width: min(100% - 32px, 560px); padding-top: 34px; }
    .mood-header { padding-bottom: 38px; }
    .manage-link { position: static; display: inline-block; margin-left: 16px; }
    .kicker { margin-top: 42px; }
    .mood-layout { grid-template-columns: 1fr; gap: 58px; }
    .mood-picker { gap: 6px; }
    .mood-tile { min-height: 82px; }
}
