@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');
:root{--bg:#f7f5ef;--ink:#303e34;--muted:#7a8074;--line:#dfdfd4;--green:#3c5543;--serif:'Playfair Display',Georgia,serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',Arial,sans-serif}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #b391d4;outline-offset:4px}header{height:90px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 6%;gap:20px}.brand{text-decoration:none;color:var(--ink);font-family:var(--serif);font-size:29px;font-weight:600;letter-spacing:-1.5px}.brand>span:first-child{font-size:27px;color:#ad795e}.brand-dot{color:#a66e51}.private{font-size:12px;color:var(--muted)}.quiet{border:0;background:none;color:var(--green);padding:10px 0}.intro{display:flex;align-items:center;justify-content:space-between;padding:58px 0 36px}.eyebrow{font-size:10px;letter-spacing:2.1px;font-weight:700;color:#858977;margin:0 0 12px}h1{font-family:var(--serif);font-size:58px;line-height:1.12;font-weight:500;letter-spacing:-2px;margin:0}h1 em{color:#8b967e;font-weight:500}.subtitle{color:var(--muted);margin-top:20px;line-height:1.7}main{max-width:1190px;padding:0 40px;margin:auto}.intro-stamp{font-family:var(--serif);font-style:italic;text-align:center;color:#9b866e;transform:rotate(-8deg);margin-right:65px;font-size:27px}.intro-stamp span{font:12px 'DM Sans',sans-serif}.intro-stamp svg{display:block;width:90px;margin:10px auto}.board{display:grid;grid-template-columns:1.65fr 1fr;gap:24px}.mood-panel{background:#fffef9;border:1px solid var(--line);border-radius:20px;overflow:hidden}.section-heading{display:flex;justify-content:space-between;align-items:center;padding:25px 28px 0}h2{font-family:var(--serif);font-size:26px;font-weight:500;margin:0;letter-spacing:-.5px}.small-mark{font-size:32px;color:#b39b7e}.mood-pair{display:grid;grid-template-columns:1fr 1fr;margin-top:25px}.mood-person{text-align:center;padding:0 20px 22px}.friend{border-left:1px dashed var(--line)}.person-label{display:flex;gap:8px;justify-content:center;align-items:center;font-size:12px}.avatar{background:#efe7d9;border-radius:50%;width:28px;height:28px;display:inline-grid;place-items:center;color:#927a58}.badge{font-size:9px;color:#929886;background:#f1f2eb;padding:3px 6px;border-radius:4px}.heart{width:158px;height:155px;display:block;margin:15px auto 5px;filter:drop-shadow(0 7px 8px #48472a0a)}.legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 12px;font-size:11px;min-height:38px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px}.mood-note{font-family:var(--serif);font-style:italic;font-size:14px;min-height:20px;margin:12px 0 8px;overflow-wrap:anywhere}.muted,.timestamp{color:var(--muted);font-size:11px;line-height:1.8}.edit{background:none;border:1px solid #d7dccf;border-radius:30px;color:var(--green);padding:8px 16px;font-size:11px;margin-top:14px}.empty-caption{font-family:var(--serif);font-size:16px;margin:10px 0}.panel-footer{border-top:1px solid #ecece3;padding:13px 22px;font-size:10px;color:#8a8f7e;background:#fafaf4}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#9cae8c;margin-right:7px}.song-panel{background:#e9ecdf;border-radius:20px;padding:26px 30px;text-align:center;position:relative;overflow:hidden}.song-panel>.eyebrow{text-align:left}.vinyl{width:155px;height:155px;border-radius:50%;margin:20px auto;background:repeating-radial-gradient(circle,#303d33 0 1px,#354238 2px 3px,#28372e 4px 5px);box-shadow:9px 10px 15px #53604322;display:grid;place-items:center;transform:rotate(-15deg)}.record-center{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#b8c2a1;border:5px solid #cbd2b7;font-family:var(--serif);font-size:22px;color:#3d4c39}.song-panel h3{font-family:var(--serif);font-size:23px;margin:15px 0 5px;overflow-wrap:anywhere}.song-panel p{font-size:12px;line-height:1.8;color:#737e66}.song-button{padding:11px 20px;border:1px solid #b9c4a9;border-radius:30px;background:transparent;color:#42563b;font-size:12px;margin-top:12px}.song-footer{margin-top:22px;font-family:var(--serif);font-style:italic;font-size:13px;color:#7d886f}.sharing{margin-top:45px}.sharing-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.primary{border:0;background:var(--green);color:#fffdf3;padding:13px 21px;border-radius:30px;font-size:12px}.primary:hover{background:#293e2f}#count{font:11px 'DM Sans',sans-serif;color:#9a9d90;margin-left:12px}.filter-row{display:flex;justify-content:space-between;align-items:center;margin:24px 0;gap:12px}#filters{display:flex;gap:7px;flex-wrap:wrap}.filter{border:1px solid transparent;border-radius:25px;background:transparent;color:#838879;padding:9px 14px;font-size:11px}.filter.active{border-color:#d6dbcb;background:#edf0e6;color:#40563d}.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.empty-posts{grid-column:1/-1;border:1px dashed #d6d9cb;border-radius:16px;padding:36px;text-align:center;background:#fbfaf5}.empty-posts .symbol{font-family:var(--serif);font-size:36px;color:#9ca88d}.empty-posts p{color:var(--muted);font-size:12px}.post{border:1px solid var(--line);background:#fffef9;border-radius:16px;overflow:hidden}.post-art{height:105px;background:#eee7d9;display:flex;justify-content:space-between;align-items:center;padding:22px;color:#937d5a}.post-art.video{background:#e6e3ef;color:#9184ad}.post-art.podcast{background:#e4ebdf;color:#849c78}.post-art b{font-family:var(--serif);font-size:45px;font-weight:400}.post-art span{font-size:9px;letter-spacing:2px}.post-body{padding:20px}.post h3{font-family:var(--serif);font-size:20px;margin:0 0 7px;overflow-wrap:anywhere}.post p{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.post a{color:var(--green);font-size:11px;text-decoration:none}.post-actions{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:14px;margin-top:16px}.post-actions button{background:none;border:0;color:#7a876e;font-size:11px}.post-actions .liked{color:#b26d72}.post-actions button:last-child{color:#a59488}footer{border-top:1px solid var(--line);margin-top:44px;padding:24px 0;display:flex;justify-content:space-between;font-size:11px;color:#929483}footer span{font-family:var(--serif);font-style:italic}.local-note{font-size:10px;color:#96998d;text-align:center;padding:0 0 25px}dialog{border:1px solid var(--line);border-radius:22px;padding:28px;width:min(460px,92vw);max-height:90vh;color:var(--ink);background:#fffef9;box-shadow:0 25px 100px #263a3033}dialog::backdrop{background:#24352a66;backdrop-filter:blur(5px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.close{background:#f0f0e7;border:0;border-radius:50%;height:30px;width:30px;font-size:21px;color:#6e7966}.full{width:100%;margin-top:20px}label{display:block;font-size:12px;margin-top:16px}input,select,textarea{width:100%;padding:11px;border:1px solid #daddd1;border-radius:9px;background:#fbfbf6;color:var(--ink);margin-top:7px}textarea{resize:vertical;min-height:70px}input[type=range]{padding:0;accent-color:#6b815e}input[type=number]{width:67px}.mood-row{margin-bottom:12px}.row-controls{display:grid;grid-template-columns:1fr 67px 24px;gap:8px;align-items:center}.remove{border:0;background:none;font-size:20px;color:#8d9185}#mood-preview .heart{width:110px;height:105px;margin-top:-5px}#total{font-size:12px;color:#a66e51}#info-dialog p{line-height:1.9;color:var(--muted);font-size:13px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#344c3c;color:#fff;padding:12px 24px;border-radius:30px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:9;font-size:12px}#toast.visible{opacity:1}@media(min-width:1250px){.intro{padding-top:62px}}@media(max-width:800px){header{padding:0 24px;height:75px}.private{display:none}main{padding:0 22px}.intro{padding:35px 0 28px}h1{font-size:44px}.intro-stamp{margin-right:10px;font-size:21px}.board{grid-template-columns:1fr}.song-panel{padding-bottom:22px}.vinyl{width:120px;height:120px}.posts{grid-template-columns:repeat(2,1fr)}.filter-row>.muted{display:none}}@media(max-width:480px){h1{font-size:39px}.intro-stamp{display:none}.subtitle{font-size:12px}.section-heading{padding:22px 20px 0}h2{font-size:23px}.mood-person{padding:0 10px 20px}.heart{width:126px;height:132px}.person-label{gap:5px}.badge{font-size:8px}.legend{font-size:10px;gap:7px}.sharing-top{align-items:flex-start}.sharing-top .primary{padding:12px;font-size:10px;white-space:nowrap}.sharing .eyebrow{font-size:8px}.sharing h2{font-size:21px}.posts{grid-template-columns:1fr}.filter{font-size:10px;padding:8px 10px}footer{font-size:9px}.local-note{line-height:1.8}header .quiet{font-size:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.post-art.playlist { background: #dce9dd; color: #426e52; }
.heart-wave { animation: heart-flow var(--wave-duration) linear var(--wave-delay) infinite; }
@keyframes heart-flow {
  from { transform: translateX(0); }
  to { transform: translateX(100px); }
}
@media (prefers-reduced-motion: reduce) {
  .heart-wave { animation: none; }
}

[hidden] { display: none !important; }
header nav { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
header nav a { color: var(--green); text-decoration: none; padding: 8px 11px; border-radius: 20px; font-size: 12px; }
header nav a[aria-current=page] { background: #e6ecde; font-weight: 700; }
.home-heart { margin-right: 9%; }
.home-heart .heart { width: clamp(110px, 19vw, 220px); height: auto; }
.destinations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.destination { color: var(--ink); border-radius: 20px; padding: 25px; border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.destination.rose { background: #f6e7e3; }
.destination.green { background: #e5ecdd; }
.destination.violet { background: #ebe5f2; }
a.destination:hover { border-color: #8d9d82; }
.destination p, .page-heading p { line-height: 1.7; }
.destination-icon { font-size: 36px; margin-bottom: 15px; }
.destination-link { margin-top: auto; padding-top: 10px; font-weight: 700; }
.page-heading { padding: 42px 0 24px; text-align: start; }
.page-heading time { display: block; margin-top: 8px; color: var(--muted); font-weight: 650; }
#duygular .mood-panel { max-width: 750px; }
#sarkilar .song-panel { max-width: 100%; }
.idea-panel { margin-top: 28px; background: #fffef9; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.idea-suggestions button { align-self: start; margin-top: auto; }
.idea-controls { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.idea-controls input { margin: 0; min-width: 0; }
#idea-list { list-style: none; padding: 0; }
#idea-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
#idea-list label { display: flex; align-items: center; gap: 9px; margin: 0; overflow-wrap: anywhere; min-width: 0; }
#idea-list input { width: auto; margin: 0; accent-color: var(--green); }
#idea-list input:checked + span { text-decoration: line-through; color: var(--muted); }
footer a { color: var(--green); }
@media (max-width: 640px) {
  header { height: auto; flex-wrap: wrap; row-gap: 4px; padding: 12px 22px 8px; }
  header nav { order: 3; width: 100%; justify-content: flex-start; }
  header nav a { padding: 8px 9px; }
  .destinations { grid-template-columns: 1fr; gap: 12px; }
  .home-heart { margin: 0; }
  .intro { gap: 10px; }
  .page-heading { padding-top: 28px; }
}

.destination.lavender { background: #ece5f6; }
.destination.peach { background: #f5e9d8; }
.quote-card, .photo-card { max-width: 790px; margin: 0; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 5vw, 52px); }
.quote-card { background: #ede6f4; }
.quote-card blockquote { font: 500 clamp(24px, 5vw, 45px)/1.3 var(--serif); margin: 0 0 25px; }
.quote-card figcaption { display: grid; gap: 8px; }
.quote-card figcaption a { color: var(--green); }
.quote-card small, #photo-status, #photo-empty { color: var(--muted); }
.photo-card { background: #fffef9; }
.photo-card form label { margin: 0; }
.photo-card img { display: block; width: 100%; max-height: 650px; object-fit: contain; border-radius: 12px; margin-top: 20px; background: #f3efe7; }
.photo-card input[type=file] { max-width: 100%; }
@media (max-width: 420px) {
  .photo-card .idea-controls { align-items: stretch; flex-direction: column; }
}

.account-actions { display: flex; align-items: center; gap: 12px; }
.account-actions a, #share-sign-in { text-decoration: none; }
#share-sign-in { display: inline-block; }

#initial-loading { padding: 2rem; text-align: center; }
#auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; }
.auth-card { width: min(100%, 420px); padding: clamp(22px, 6vw, 38px); background: #fffef9; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 50px #3c554311; }
.auth-card h1 { font-size: clamp(32px, 6vw, 44px); margin: 22px 0 8px; }
.auth-card p { color: var(--muted); line-height: 1.6; }
#auth-status { min-height: 1em; margin: 10px 0 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 14px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-google { width: 100%; border: 1px solid var(--line); border-radius: 30px; padding: 12px; background: #fff; color: var(--ink); }
.legacy-login { display: block; text-align: center; font-size: 11px; }

#duygular .mood-panel { max-width: 960px; margin-inline: auto; }
#duygular .section-heading { justify-content: center; }
#duygular .section-heading .small-mark { display: none; }
#duygular .mood-person .heart { width: min(100%, 270px); height: auto; margin: 12px auto 4px; }
#duygular .mood-person .person-label { font-size: 15px; }
#duygular .mood-person .legend { font-size: 13px; }
#duygular .mood-pair { margin: 26px auto 0; }
#duygular .mood-person { min-width: 0; overflow-wrap: anywhere; }
#fotograf .photo-card { max-width: 100%; }
.photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-block: 22px; }
.photo-tile { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: #faf9f3; }
.photo-tile h2 { font-size: 22px; margin-bottom: 12px; }
.photo-frame { display: grid; place-items: center; min-height: 150px; border-radius: 12px; background: #f1efe6; text-align: center; }
.photo-frame img { margin: 0; width: 100%; max-height: 420px; }
.photo-frame p { padding: 12px; color: var(--muted); }
.photo-discussion h3 { margin: 18px 0 8px; }
.photo-comments { list-style: none; padding: 0; }
.photo-comments li { border-bottom: 1px solid var(--line); padding: 8px 0; overflow-wrap: anywhere; }
.photo-comments p { white-space: pre-wrap; line-height: 1.55; margin: 5px 0 0; }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.comment-status { font-size: 12px; }
#photo-form { border-top: 1px solid var(--line); padding-top: 18px; }
#legacy-photo { margin: 18px 0; }
@media(max-width: 650px) { .photo-grid { grid-template-columns: 1fr; } }

/* Bizim Köşe palette */
:root {
  --navy: #001f3f;
  --deep-blue: #003366;
  --blue: #005b99;
  --pink: #ffb6c1;
  --blush: #ffe4e1;
  --paper: #fffafa;
  --bg: #fff6f5;
  --ink: var(--navy);
  --muted: #475b73;
  --line: #d2dce8;
  --green: var(--deep-blue);
}
body { accent-color: var(--blue); }
#board-header { background: var(--navy); border-color: var(--deep-blue); color: white; }
header .brand, header nav a, header .quiet { color: white; }
header .brand > span { color: var(--pink); }
header nav a[aria-current=page] { background: var(--pink); color: var(--navy); }
header nav a:hover:not([aria-current=page]) { background: var(--deep-blue); }
.brand > span:first-child, .brand-dot { color: var(--blue); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
header :is(button,a):focus-visible { outline-color: var(--pink); }
h1 em, .eyebrow { color: var(--blue); }
#ana .intro {
  margin: 26px 0 22px;
  padding: clamp(20px, 5vw, 58px);
  border-radius: 24px;
  background: linear-gradient(120deg,var(--navy),var(--deep-blue));
  color: white;
}
#ana .intro h1 em { color: var(--pink); }
#ana .intro .subtitle { color: #e8eff7; }
.home-heart { margin-right: 0; }
.home-heart .heart { width: clamp(88px, 17vw, 215px); }
.destination.rose { background: var(--pink); }
.destination.green { background: var(--deep-blue); color: white; }
.destination.violet { background: #e3eef8; }
.destination.lavender { background: var(--blush); }
.destination.peach { background: var(--blue); color: white; }
.destination:is(.green,.peach) .destination-link { color: white; }
.destination:is(.green,.peach) .edit { color: white; border-color: #b5d1e7; }
a.destination:hover { border-color: var(--blue); }
.primary { background: var(--deep-blue); color: white; }
.primary:hover { background: var(--blue); }
.edit { border-color: #9eb8d1; }
.mood-panel, .post, .idea-panel, .photo-card, dialog { background: var(--paper); }
.photo-tile, .empty-posts { background: #f4f8fc; }
.photo-frame, .photo-card img, .close, .badge { background: #e8f0f7; color: var(--deep-blue); }
.avatar { background: var(--blush); color: var(--deep-blue); }
input, select, textarea { background: white; border-color: #aabdd0; }
input[type=range] { accent-color: var(--blue); }
.filter { color: var(--muted); }
.filter.active { background: #e2effa; border-color: #9db9d3; color: var(--deep-blue); }
.song-panel { background: var(--deep-blue); color: white; }
.song-panel p, .song-panel .quiet { color: #e4effa; }
.song-button { color: var(--navy); background: var(--pink); border-color: var(--pink); }
.vinyl { background: repeating-radial-gradient(circle,var(--navy) 0 1px,#123d63 2px 3px,#09294a 4px 5px); }
.record-center { background: var(--pink); border-color: var(--blush); color: var(--navy); }
.post-art { background: var(--blush); color: var(--deep-blue); }
.post-art.video, .post-art.playlist { background: #e0effa; color: var(--blue); }
.post-art.podcast { background: var(--pink); color: var(--navy); }
.post-actions button, .post-actions button:last-child, .timestamp, footer, .local-note { color: var(--muted); }
.post-actions .liked { color: #9b3558; }
.quote-card { background: var(--blush); }
#toast { background: var(--navy); }
#total { color: var(--blue); }
#auth-screen { background: linear-gradient(145deg,var(--navy),var(--deep-blue)); }
.auth-card { background: var(--paper); border-color: var(--blush); box-shadow: 0 18px 60px #00102066; }
.auth-google { border-color: #aabdd0; }
dialog::backdrop { background: #001f3f99; }
@media (max-width: 440px) {
  #ana .intro { align-items: flex-start; }
  #ana .intro .subtitle { margin-bottom: 0; }
}

/* Reference-inspired glass themes */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050819;
  --ink: #f7f8ff;
  --muted: #b4bfd5;
  --line: #414c66;
  --green: #cde6ff;
  --surface: #10192c;
  --surface-raised: #192641;
  --field: #111d33;
  --accent: #b9ccff;
  --button: #1957e9;
  --button-text: #ffffff;
  --button-hover: #164ac8;
  --card-start: #10172d;
  --card-end: #0d1a34;
  --light-one: #102e79;
  --light-two: #35105f;
  --light-three: #075251;
  --halo-opacity: .83;
  --light-four: #61123c;
  --halo-center: #0b204a;
  --panel-shadow: #00030f42;
  --featured: #4e36e7;
  --featured-hover: #442dcf;
  --glass: 84%;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fa;
  --ink: #10172b;
  --muted: #4b5870;
  --line: #c4cdd9;
  --green: var(--accent);
  --surface: #ffffff;
  --surface-raised: #e9eef5;
  --field: #fbfcfe;
  --accent: #94385f;
  --button: #1957e9;
  --button-text: white;
  --button-hover: #164ac8;
  --card-start: #ffffff;
  --card-end: #f9f1eb;
  --light-one: #a9cef6;
  --light-two: #e7d7fb;
  --light-three: #b4f0e2;
  --halo-opacity: .86;
  --light-four: color-mix(in srgb, var(--accent) 27%, #fff5f9);
  --halo-center: #ffdcc5;
  --panel-shadow: #23345420;
  --featured: #4e36e7;
  --featured-hover: #442dcf;
  --glass: 77%;
}
body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: var(--bg);
}
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -18%;
  pointer-events: none;
  opacity: var(--halo-opacity);
  background:
    radial-gradient(ellipse at 18% 18%, var(--light-one), transparent 34%),
    radial-gradient(ellipse at 90% 16%, var(--light-two), transparent 32%),
    radial-gradient(ellipse at 14% 84%, var(--light-three), transparent 33%),
    radial-gradient(ellipse at 91% 86%, var(--light-four), transparent 34%);
  animation: navy-light-drift 22s ease-in-out infinite alternate;
}
body::after {
  background: radial-gradient(ellipse at 51% 51%, var(--halo-center), transparent 40%);
  animation: navy-light-drift 29s ease-in-out infinite alternate-reverse;
  opacity: calc(var(--halo-opacity) * .65);
}
@keyframes navy-light-drift {
  from { transform: translate3d(-5%,-4%,0) rotate(-7deg); }
  to { transform: translate3d(6%,5%,0) rotate(9deg); }
}
#board-header { background: var(--surface); color: var(--ink); border-color: var(--line); }
header .brand, header nav a, header .quiet { color: var(--ink); }
header .brand > span:first-child, header .brand-dot, .auth-card .brand span { color: var(--accent); }
header nav a[aria-current=page] { background: var(--button); color: var(--button-text); }
header nav a:hover:not([aria-current=page]) { background: var(--surface-raised); }
h1 em, .eyebrow, #total { color: var(--accent); }
#ana .intro {
  background: linear-gradient(118deg,var(--card-start),var(--card-end));
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px #05081926;
}
#ana .intro h1 em { color: var(--accent); }
#ana .intro .subtitle { color: var(--muted); }
.destination.rose, .destination.green, .destination.violet, .destination.lavender, .destination.peach {
  background: linear-gradient(150deg,var(--card-start),var(--card-end));
  color: var(--ink);
  border-color: var(--line);
}
.destination-icon, .destination-link { color: var(--accent); }
a.destination:hover { border-color: var(--accent); }
.destination:is(.green,.peach) :is(.destination-link,.edit) { color: var(--accent); }
.destination:is(.green,.peach) .edit { border-color: var(--line); }
.song-panel, .quote-card { background: var(--surface-raised); color: var(--ink); }
.song-panel p, .song-panel .quiet { color: var(--muted); }
.record-center { background: var(--button); color: var(--button-text); border-color: var(--accent); }
.primary, .song-button { background: var(--button); color: var(--button-text); border-color: var(--button); }
.primary:hover, .song-button:hover { background: var(--button-hover); color: var(--button-text); }
.mood-panel, .post, .idea-panel, .photo-card, dialog, .auth-card { background: var(--surface); color: var(--ink); border-color: var(--line); }
.photo-tile, .empty-posts, .photo-frame, .photo-card img, .close, .badge,
.avatar, .filter.active, .auth-google { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
input, select, textarea { background: var(--field); color: var(--ink); border-color: var(--line); }
input::placeholder, textarea::placeholder { color: var(--muted); }
.post-art, .post-art.podcast, .post-art.video, .post-art.playlist { background: var(--surface-raised); color: var(--accent); }
.post-actions .liked, .empty-posts .symbol { color: var(--accent); }
.edit, .remove { color: var(--ink); border-color: var(--line); }
#auth-screen { background: transparent; }
.auth-card { box-shadow: 0 18px 60px #05081938; }
.theme-switch {
  color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: 20px; padding: 7px 10px; font-size: 11px; white-space: nowrap;
}
.auth-card .theme-switch { display: block; margin: 0 0 12px auto; }
:root[data-theme] :is(button,a,input,textarea,select):focus-visible { outline-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; transform: none; }
}
@media (max-width: 500px) {
  .account-actions { gap: 7px; }
  .theme-switch { padding: 6px 8px; }
}

/* Rounded, translucent panels and blue controls. */
:root[data-theme] {
  --serif: 'DM Sans', system-ui, sans-serif;
  --glass-surface: color-mix(in srgb, var(--surface) var(--glass), transparent);
}
#board-header {
  background: var(--glass-surface);
  backdrop-filter: blur(18px);
}
header nav {
  background: var(--glass-surface);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 5px;
}
header nav a { font-weight: 650; border-radius: 13px; }
h1, h2 { font-weight: 750; letter-spacing: -.035em; }
h1 em { font-style: normal; font-weight: inherit; }
#ana .intro, .destination.rose, .destination.green, .destination.violet,
.destination.lavender, .destination.peach, .mood-panel, .song-panel, .quote-card,
.photo-card, .idea-panel, .post, .auth-card, dialog {
  background: var(--glass-surface);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 3vw, 34px);
  box-shadow: 0 3px 5px var(--panel-shadow);
  backdrop-filter: blur(16px);
}
#ana .intro {
  background: linear-gradient(125deg,var(--glass-surface),
    color-mix(in srgb,var(--card-end) 85%,transparent));
}
#ana .intro, .auth-card {
  box-shadow: 0 10px 46px var(--panel-shadow);
}
.primary, .song-button { border-radius: 15px; font-weight: 750; }
.auth-card .primary, #daily-add {
  background: var(--featured);
  color: white;
  border-color: var(--featured);
}
.auth-card .primary:hover, #daily-add:hover { background: var(--featured-hover); }
.theme-switch {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 5px var(--panel-shadow);
}
.auth-card .theme-switch { display: grid; }
@media (max-width: 640px) {
  header nav { padding: 4px; }
  .theme-switch { width: 34px; height: 34px; padding: 0; font-size: 16px; }
}

:root[data-theme="dark"] { --heart-empty: #4c607f; --heart-edge: #9fb5d8; --heart-shadow: #00041b9c; }
:root[data-theme="light"] { --heart-empty: #c0d1e6; --heart-edge: #6c86aa; --heart-shadow: #253d6747; }
.heart-glass { filter: drop-shadow(0 12px 12px var(--heart-shadow)); }
.heart-glass.has-mood .heart-reflection { animation: heart-shimmer 9s ease-in-out infinite alternate; }
@keyframes heart-shimmer {
  from { transform: translate(-2px,-1px); opacity: .62; }
  to { transform: translate(6px,3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .heart-glass.has-mood .heart-reflection { animation: none; }
}
.today-hearts { margin-bottom: 20px; }
.today-hearts-top { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 24px 0; gap: 12px; }
.today-hearts-top a { text-decoration: none; }
.today-heart-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); text-align: center; padding: 8px 12px 20px; }
.today-heart-pair article { min-width: 0; padding: 8px 12px; overflow-wrap: anywhere; }
.today-heart-pair article + article { border-left: 1px dashed var(--line); }
.today-heart-pair h3 { margin: 4px 0 0; font-size: 15px; }
.today-heart-pair .heart { width: min(85%,206px); height: auto; margin: 0 auto; }
.today-heart-pair p { margin: 0 0 4px; font-weight: 700; }
.home-destinations { grid-template-columns: repeat(2,minmax(0,1fr)); }
#mobile-nav { display: none; }
#mood-dialog { padding: 0; overflow: hidden; max-height: min(88dvh,790px); }
#mood-form { display: flex; flex-direction: column; max-height: min(88dvh,790px); }
.mood-editor-sticky { padding: 20px 22px 10px; background: var(--surface); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.mood-editor-sticky .dialog-top { margin-bottom: 4px; }
.mood-editor-sticky #mood-preview .heart { width: clamp(64px,15dvh,108px); height: auto; margin: 0 auto; }
.mood-editor-sticky #total { margin: 4px 0; text-align: center; }
.mood-editor-fields { min-height: 0; overflow-y: auto; padding: 12px 22px 22px; overscroll-behavior: contain; }
#mood-dialog.mood-ready #save-mood { box-shadow: 0 0 0 2px var(--surface),0 0 0 4px var(--accent); }
#mood-dialog.mood-ready #total { font-weight: 750; }
@media (max-width: 760px) {
  #board-header > nav { display: none; }
  #board-main { padding-bottom: calc(88px + env(safe-area-inset-bottom,0px)); }
  #mobile-nav {
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px;
    position: fixed; z-index: 8; left: 0; right: 0; bottom: 0;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom,0px));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  #mobile-nav a {
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
    text-align: center; font-size: 10px; min-height: 44px; padding: 6px 1px; color: var(--muted);
    text-decoration: none; border-radius: 12px;
  }
  #mobile-nav a span { font-size: 19px; line-height: 1; }
  #mobile-nav a[aria-current=page] { background: var(--surface-raised); color: var(--accent); font-weight: 750; }
  #toast { bottom: calc(78px + env(safe-area-inset-bottom,0px)); }
  .home-destinations { grid-template-columns: 1fr; }
  .today-heart-pair article { padding-inline: 6px; }
}

.photo-file-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.photo-file-controls .photo-pick {
  display: inline-flex; margin: 0; padding: 9px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); color: var(--ink);
}
.photo-file-controls:focus-within .photo-pick { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-file-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; }
#photo-file-name { min-width: 0; overflow-wrap: anywhere; flex: 1 1 140px; }
.calendar-panel { margin-top: 22px; padding: clamp(15px,3vw,26px); }
.calendar-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.calendar-controls { display: flex; align-items: center; gap: 9px; font-variant-numeric: tabular-nums; }
.calendar-controls .edit { margin: 0; }
.calendar-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(16px,3vw,30px); }
.calendar-pair h3 { margin: 12px 0; }
.calendar-months { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.calendar-month { padding: 7px; border-radius: 8px; background: var(--surface-raised); }
.calendar-month h4 { margin: 0 0 5px; color: var(--muted); font-size: 11px; }
.calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; }
.calendar-cell, .calendar-pad { display: block; width: 100%; aspect-ratio: 1; }
.calendar-cell { padding: 0; border: 0; border-radius: 2px; background: var(--day-color, var(--field)); }
button.calendar-cell:hover { outline: 1px solid var(--accent); }
.calendar-legend { justify-content: flex-start; min-height: 0; }
#calendar-detail { margin-block: 12px; font-size: 12px; color: var(--muted); }
@media (max-width: 680px) { .calendar-pair { grid-template-columns: 1fr; } }

#soz .quote-card { width: min(100%,760px); margin: 0 auto; text-align: center; }
#soz figcaption { justify-items: center; }
.nickname-panel { max-width: 960px; margin: 16px auto 0; padding: 16px 20px; }
.nickname-panel label { margin: 0 0 5px; font-weight: 700; }
.nickname-panel .muted { margin: 5px 0 0; }
.post-art.has-cover { height: auto; min-height: 105px; justify-content: center; padding: 14px; }
.spotify-cover { display: block; width: min(100%,190px); aspect-ratio: 1; height: auto; object-fit: contain; }
.daily-cover { margin: 0 auto 14px; }
.song-panel:has(.daily-cover) .vinyl { display: none; }
.post-reason { overflow-wrap: anywhere; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: ease-in-out; }
@media(prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
.photo-week { display: flex; justify-content: center; align-items: center; gap: 16px; }
.photo-week .edit { margin: 0; }
.photo-week strong { min-width: 125px; text-align: center; }
.sketch-panel { max-width: 780px; margin-inline: auto; padding: clamp(14px,3vw,24px); }
.sketch-tools { display: grid; grid-template-columns: 1fr minmax(64px,.4fr) 1fr; gap: 10px; align-items: end; margin-bottom: 16px; }
.sketch-tools label { margin: 0; font-weight: 650; min-width: 0; }
.sketch-tools input[type=color] { height: 42px; padding: 4px; }
.sketch-tools input[type=range] { height: 42px; margin-bottom: 0; }
#sketch-width-value { color: var(--muted); margin-left: 4px; white-space: nowrap; }
#sketch-pad {
  display: block; width: min(100%,600px); height: auto; aspect-ratio: 1; margin-inline: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line);
  touch-action: none; cursor: crosshair;
}
.sketch-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 15px; }
.sketch-actions .edit { margin: 0; }
#sketch-status { text-align: center; min-height: 1.5em; margin: 8px 0 0; }
.sketch-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,154px),1fr)); gap: 12px; }
.sketch-card { margin: 0; padding: 9px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; min-width: 0; }
.sketch-card img { width: 100%; display: block; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 9px; }
.sketch-card figcaption { color: var(--muted); font-size: 11px; margin: 7px 0 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  #mobile-nav { grid-template-columns: repeat(6,minmax(0,1fr)); }
  #mobile-nav a { font-size: clamp(8px,2.5vw,10px); }
  .sketch-tools { grid-template-columns: minmax(0,1fr) 62px minmax(0,1fr); }
}
#board-switcher { margin-bottom: 12px; }
#board-removal { margin: 12px 0; padding: 10px 0; border-block: 1px solid var(--line); }
#board-removal p { margin: 0 0 4px; }
#new-board-label { margin-bottom: 10px; }
.sketch-tools { grid-template-columns: 1.25fr .45fr 1fr 1fr; }
.sketch-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 16px; }
.sketch-swatches button { width: 29px; height: 29px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--ink-swatch); }
.sketch-swatches button[aria-pressed=true] { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 630px) { .sketch-tools { grid-template-columns: 1fr 1fr; } }
.activity-badge { display: inline-flex; align-items: center; vertical-align: middle; gap: 4px; padding: 3px 7px; border-radius: 99px; background: var(--surface-raised); color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: 0; }
.activity-badge::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.sketch-save-state { display: table; margin: 0 auto 14px; color: var(--muted); background: var(--surface-raised); padding: 6px 12px; border-radius: 99px; font-weight: 650; font-size: 12px; }
.sketch-save-state[data-state=saved] { color: var(--accent); }
.sketch-save-state[data-state=dirty] { color: var(--ink); outline: 1px solid var(--line); }
.track-preview { display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 12px; margin: 12px 0 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.track-preview-art { position: relative; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 8px; background: var(--field); color: var(--accent); font-size: 23px; }
.track-preview-art img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.track-preview figcaption { display: grid; gap: 4px; overflow-wrap: anywhere; }
#track-preview-note { color: var(--muted); font-size: 12px; }
#track-preview-note:empty { display: none; }
.field-help { display: block; color: var(--accent); margin: 4px 0 0; }
.mood-color-controls { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.mood-color-controls label { display: flex; align-items: center; gap: 8px; margin: 0; }
.mood-color-controls input[type=color] { width: 42px; height: 30px; padding: 3px; margin: 0; }
.heart-glass {
  overflow: visible;
  transform: perspective(650px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
  transform-style: preserve-3d;
  transform-origin: 50% 52%;
  filter: drop-shadow(0 17px 13px var(--heart-shadow));
}
.glass-back { transform: translate(2px,5px); filter: blur(.35px); }
.liquid-volume {
  transform-origin: 100px 100px;
  transform: translateY(var(--liquid-lift,0px)) rotate(var(--liquid-roll,0deg));
}
.heart-glass .glass-specular {
  animation: none;
  transform: translate(var(--glint-x,0px),var(--glint-y,0px));
}
.motion-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.motion-controls .edit { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .heart-glass { transform: none; }
  .liquid-volume, .heart-glass .glass-specular { transform: none; }
}

#ambient-scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#board-header { position: relative; z-index: 2; }
#ana .today-hearts { background: color-mix(in srgb,var(--surface) 70%,transparent); backdrop-filter: blur(18px); }
#ana .destination {
  position: relative; overflow: hidden; transform: perspective(800px) rotateX(var(--card-x,0deg)) rotateY(var(--card-y,0deg));
  transition: transform .24s ease-out,border-color .24s,box-shadow .24s;
}
#ana .destination::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--shine-x,50%) var(--shine-y,50%),color-mix(in srgb,var(--accent) 12%,transparent),transparent 65%);
}
#ana .destination:hover::after { opacity: 1; }
#ana .destination:hover { box-shadow: 0 14px 34px #02081626; }
.primary, .edit, .theme-switch, .song-button { transition: transform .18s ease-out,background-color .2s; }
.primary:active, .edit:active, .song-button:active { transform: scale(.97); }
@media(prefers-reduced-motion: reduce) {
  #ana .destination { transform: none; transition: none; }
  #ana .destination::after, .primary, .edit, .theme-switch, .song-button { transition: none; }
}
#premium-brush-sample { display: block; width: 100%; height: auto; background: #101a31; border-radius: 16px; margin: 16px 0; }
#premium-dialog p { color: var(--muted); line-height: 1.6; }
.premium-price { font-size: 2rem; font-weight: 750; color: var(--ink); }
.premium-price span { display: block; color: var(--muted); font-weight: 400; font-size: .875rem; }

/* Pastel palettes retain the animated ambient background. */
:root[data-palette="lavender"] {
  --bg:#f0eafa;--surface:#faf7ff;--surface-raised:#e9def7;--field:#fdfaff;
  --ink:#302140;--muted:#665574;--accent:#684494;--line:#cbb9de;
  --button:#684494;--button-hover:#553578;--card-start:#faf7ff;--card-end:#eee5f8;
  --light-one:#d0c0f4;--light-two:#efcce7;--light-three:#d5e5f7;--light-four:#e8c9eb;--halo-center:#dfd1f4;
  --featured:#684494;--featured-hover:#553578;
}
:root[data-palette="peach"] {
  --bg:#fff0e7;--surface:#fffaf6;--surface-raised:#f9dfd3;--field:#fffcfa;
  --ink:#472b29;--muted:#795952;--accent:#94503b;--line:#e3bbab;
  --button:#94503b;--button-hover:#793f2f;--card-start:#fffaf6;--card-end:#fce5dc;
  --light-one:#f3c8b3;--light-two:#efc9dd;--light-three:#fae5bd;--light-four:#f5c8c1;--halo-center:#ffddc5;
  --featured:#94503b;--featured-hover:#793f2f;
}
:root[data-palette="mint"] {
  --bg:#e6f4ec;--surface:#f7fff9;--surface-raised:#d8eee0;--field:#fbfffc;
  --ink:#193d31;--muted:#466b5b;--accent:#276649;--line:#accdbb;
  --button:#276649;--button-hover:#1c5139;--card-start:#f7fff9;--card-end:#dff2e9;
  --light-one:#b9e2d4;--light-two:#d2dfef;--light-three:#c5ecd2;--light-four:#e3e9bc;--halo-center:#d3efd9;
  --featured:#276649;--featured-hover:#1c5139;
}
:root[data-palette="sky"] {
  --bg:#e7f1fc;--surface:#f8fcff;--surface-raised:#dce9f8;--field:#fcfeff;
  --ink:#203650;--muted:#4d6580;--accent:#345f92;--line:#afc6de;
  --button:#345f92;--button-hover:#274c79;--card-start:#f8fcff;--card-end:#e1ecfb;
  --light-one:#b6d5f5;--light-two:#ded4f6;--light-three:#c9e9ed;--light-four:#d9e4fc;--halo-center:#cbdff7;
  --featured:#345f92;--featured-hover:#274c79;
}
#theme-dialog { width:min(560px,94vw); }
.theme-options { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.theme-options button { text-align:left;display:grid;gap:12px;border:2px solid var(--line);border-radius:16px;padding:14px;background:var(--surface);color:var(--ink);font-size:14px; }
.theme-options button::before { content:"";height:44px;border-radius:9px;background:linear-gradient(120deg,var(--swatch-bg),var(--swatch-glow));box-shadow:inset 0 0 0 1px #80808022; }
.theme-options button[aria-pressed="true"] { border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 15%,transparent); }
[data-theme-preset="dark"] { --swatch-bg:#050819;--swatch-glow:#233b74; }
[data-theme-preset="light"] { --swatch-bg:#f5f7fa;--swatch-glow:#f3cee3; }
[data-theme-preset="lavender"] { --swatch-bg:#eee5fa;--swatch-glow:#c9b0e8; }
[data-theme-preset="peach"] { --swatch-bg:#fff0e7;--swatch-glow:#f4bdad; }
[data-theme-preset="mint"] { --swatch-bg:#e6f4ec;--swatch-glow:#a9d9c3; }
[data-theme-preset="sky"] { --swatch-bg:#e7f1fc;--swatch-glow:#a9c9f1; }
#custom-theme-form { border-top:1px solid var(--line);margin-top:24px;padding-top:10px; }
#custom-theme-form h3 { line-height:1.7;font-size:17px; }
.theme-color-fields { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.theme-color-fields label { font-size:14px; }
.theme-color-fields input[type="color"] { display:block;width:100%;height:48px;padding:4px;cursor:pointer; }
.custom-theme-sample { border:16px solid;margin-top:20px;padding:20px;border-radius:18px;transition:background .2s,color .2s,border-color .2s; }
.custom-theme-sample strong { font:24px var(--serif); }
.custom-theme-sample p { font-size:14px;line-height:1.7; }
.sample-button { display:inline-block;padding:10px 16px;border-radius:20px;font-size:14px; }
#custom-theme-status { font-size:14px; }

/* A quieter, more spacious rhythm across every palette. */
body { font-size:16px;line-height:1.55; }
main { max-width:1240px;padding-inline:clamp(20px,4vw,48px); }
.page-heading { padding-block:clamp(32px,5vw,64px) 30px; }
.page-heading h1 { font-size:clamp(34px,4.4vw,56px);line-height:1.13;letter-spacing:-.045em;text-wrap:balance; }
h2 { font-size:clamp(22px,2.2vw,28px);line-height:1.25; }
.home-welcome { color:var(--muted);max-width:48ch;margin:16px 0 10px; }
:is(button,input,select,textarea,label,header nav a,.destination p,.destination-link,.primary,.quiet) { font-size:14px; }
.muted,.timestamp,.legend,.post p,.song-panel p,.person-label { font-size:14px; }
.eyebrow { font-size:12px;letter-spacing:.16em; }
.destination { padding:clamp(24px,3vw,34px);gap:4px;min-height:230px; }
.destination h2 { margin-top:4px; }
.destination p { color:var(--muted);line-height:1.75; }
.latest-moment { display:flex;align-items:center;gap:18px;padding:20px 24px;margin-bottom:28px;border:1px solid var(--line);border-radius:22px;background:var(--glass-surface);color:var(--ink);text-decoration:none;backdrop-filter:blur(16px);transition:border-color .2s,transform .2s; }
.latest-moment:hover { border-color:var(--accent);transform:translateY(-2px); }
.latest-moment strong { display:block;font-size:16px;font-weight:600; }
#latest-detail { display:block;color:var(--muted);font-size:14px;margin-top:4px; }
.moment-icon { flex-shrink:0;width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:var(--surface-raised);color:var(--accent);font-size:25px; }
.moment-action { margin-left:auto;color:var(--accent);font-size:14px; }
.post,.song-panel { position:relative;isolation:isolate; }
.cover-glow::before { content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background-image:var(--cover-image);background-position:center;background-size:cover;filter:blur(46px) saturate(1.4);opacity:.19;pointer-events:none; }
.post { overflow:hidden; }
.post-body { padding:24px; }
.post h3 { line-height:1.35;font-size:23px; }
.post-art.has-cover { height:190px;background:transparent; }
.post-art.has-cover .spotify-cover { width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 9px 14px #0003);border-radius:12px; }
.post-actions { gap:10px;flex-wrap:wrap; }
.post-actions button { font-size:13px;padding:5px 0; }
.primary,.song-button { min-height:44px;box-shadow:0 3px 10px color-mix(in srgb,var(--button) 18%,transparent);transition:background .18s,box-shadow .18s; }
.primary:active { box-shadow:none; }
.photo-frame img:not([hidden]) { cursor:zoom-in;transition:filter .2s; }
.photo-frame img:hover { filter:brightness(1.04); }
#photo-viewer { width:min(1100px,96vw);max-height:94dvh;padding:22px; }
#viewer-image { display:block;max-width:100%;width:auto;max-height:67dvh;object-fit:contain;margin:0 auto;border-radius:14px; }
.viewer-caption { max-width:760px;margin:24px auto 0;font-size:14px; }
#viewer-comments { padding:0;list-style:none; }
#viewer-comments li { border-top:1px solid var(--line);padding:16px 0;overflow-wrap:anywhere; }
#viewer-comments p { white-space:pre-wrap; }
.letters-panel { margin:28px 0 0;padding:clamp(22px,4vw,36px);border:1px solid var(--line);border-radius:28px;background:var(--glass-surface);backdrop-filter:blur(16px); }
.letters-panel .today-hearts-top { padding:0; }
.letters-list { display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px;margin-top:22px;max-height:520px;overflow:auto;padding:3px; }
.letter-envelope { border:1px solid var(--line);background:linear-gradient(145deg,var(--surface),var(--surface-raised));color:var(--ink);padding:24px 20px;border-radius:18px;text-align:left;display:grid;gap:7px;transition:transform .2s,border-color .2s; }
.letter-envelope:hover { transform:translateY(-3px);border-color:var(--accent); }
.envelope-icon { color:var(--accent);font-size:32px;line-height:1.4; }
.letter-envelope small { color:var(--muted);font-size:13px; }
.letter-envelope.sealed { border-style:dashed; }
.letters-empty { grid-column:1/-1;text-align:center;padding:16px;color:var(--muted); }
.letters-empty>span { font-size:36px;color:var(--accent); }
.letters-empty p { margin:8px 0; }
.letters-empty small { font-size:14px; }
#letter-reader { background:linear-gradient(145deg,var(--surface),var(--surface-raised)); }
#letter-reader[open] { animation:unfold-letter .4s cubic-bezier(.2,.7,.2,1); }
#letter-reader-body { white-space:pre-wrap;overflow-wrap:anywhere;font:20px/1.9 'Playfair Display',Georgia,serif;margin:30px 0; }
#letter-text { min-height:160px; }
@keyframes unfold-letter { from{opacity:0;transform:translateY(18px) rotateX(-12deg) scale(.97)} to{opacity:1;transform:none} }
.haptic-option { display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-block:20px; }
.haptic-option input { width:18px;height:18px;margin:0; }
.haptic-option small { color:var(--muted);font-size:12px; }
.theme-mini-grid { display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0; }
.theme-mini-card { padding:16px 10px;border-radius:14px;display:grid;gap:8px;box-shadow:0 4px 14px #0000000c; }
.theme-mini-card b { font-size:12px; }
.theme-mini-card small { font-size:11px; }
.mini-heart { font-size:48px;line-height:1.2;color:#ed638f;filter:drop-shadow(0 4px 4px #ed638f55); }
.mini-record { font-size:30px;width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:var(--preview-accent);color:var(--preview-surface); }
#initial-loading { min-height:80dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:var(--muted); }
#initial-loading strong { color:var(--ink);font-size:26px;letter-spacing:-.04em; }
.loading-mark { font-size:56px;color:var(--accent);animation:loading-breathe 1.8s ease-in-out infinite; }
.loading-lines { display:grid;gap:12px;margin-top:15px;width:min(320px,75vw); }
.loading-lines i { height:16px;border-radius:8px;background:linear-gradient(100deg,var(--surface-raised),var(--surface),var(--surface-raised));background-size:200% 100%;animation:loading-shimmer 1.8s ease-in-out infinite; }
.loading-lines i:last-child { width:65%;justify-self:center; }
.photo-grid.is-loading .photo-frame { background:linear-gradient(100deg,var(--surface-raised),var(--surface),var(--surface-raised));background-size:200% 100%;animation:loading-shimmer 1.8s ease-in-out infinite; }
.photo-grid.is-loading .photo-frame p { visibility:hidden; }
@keyframes loading-shimmer { from{background-position:100% 0} to{background-position:-100% 0} }
@keyframes loading-breathe { 50%{opacity:.5;transform:scale(.92)} }
@media(max-width:600px) { .moment-action{display:none}.latest-moment{padding:18px;gap:12px}.letters-panel .today-hearts-top{gap:16px;align-items:center}.letters-panel .primary{white-space:nowrap;padding:12px}.letters-list{grid-template-columns:1fr 1fr}.letter-envelope{padding:18px 14px}.letter-envelope strong{font-size:14px}.theme-mini-grid{grid-template-columns:1fr}.post-art.has-cover{height:210px} }
@media(prefers-reduced-motion:reduce) { .loading-mark,.loading-lines i,.photo-grid.is-loading .photo-frame,#letter-reader[open]{animation:none}.latest-moment:hover,.letter-envelope:hover{transform:none} }

/* Glass collection: layered optics, bounded motion and still thumbnails. */
#mood-dialog { width:min(760px,96vw); }
.material-stage { position:relative;isolation:isolate;background:radial-gradient(ellipse at 50% 54%,color-mix(in srgb,var(--accent) 15%,transparent),transparent 66%);border-radius:24px; }
#mood-preview .heart { width:clamp(150px,28vw,230px);height:auto;margin:0 auto; }
.material-caption { margin:2px 0 0;font-size:14px;font-weight:600; }
.material-hint { margin:3px 0 8px;color:var(--muted);font-size:12px; }
#mood-dialog .mood-editor-sticky { padding-bottom:8px; }
#total { line-height:1.6;font-size:14px; }
.shape-collection-title { font-size:17px;margin:20px 0 12px; }
.shape-gallery { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }
.shape-choice { display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;padding:12px 5px 10px;border:1px solid var(--line);border-radius:18px;background:var(--surface-raised);color:var(--ink);transition:border-color .2s,background .2s; }
.shape-choice[aria-pressed="true"] { border:2px solid var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--surface));padding:11px 4px 9px; }
.shape-choice strong { font-size:12px;line-height:1.4; }
.shape-choice small { font-size:11px;color:var(--muted); }
.shape-choice .heart { width:72px;height:72px;margin:0;transform:none;filter:drop-shadow(0 5px 4px var(--heart-shadow)); }
.shape-choice .heart-wave,.shape-choice .mood-spark,.shape-choice .liquid-caustic { animation:none!important; }
.material-controls { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:4px; }
.material-controls select { font-size:13px;padding-inline:10px; }
.heart-glass { touch-action:pan-y; }
.heart-glass .heart-wave { animation-duration:var(--mood-tempo,9s); }
.glass-back { stroke-width:6;stroke-opacity:.48; }
.glass-specular { mix-blend-mode:screen; }
.liquid-caustic { transform-origin:100px 150px;animation:caustic-drift var(--mood-tempo,9s) ease-in-out infinite alternate; }
@keyframes caustic-drift { from{transform:translate(-5px,-4px) scaleX(.8);opacity:.09} to{transform:translate(8px,3px) scaleX(1.1);opacity:.22} }
.finish-frosted .liquid-volume { filter:blur(1.5px); }
.finish-frosted .glass-specular { opacity:.65; }
.finish-frosted .pearl-film { fill:#effaff; }
.finish-pearl .pearl-film { mix-blend-mode:soft-light; }
.shape-crystal .glass-specular { opacity:.95; }
.effect-aura { filter:drop-shadow(0 14px 12px var(--heart-shadow)) drop-shadow(0 0 10px color-mix(in srgb,var(--mood-glow) 55%,transparent)); }
.mood-spark { transform-box:fill-box;transform-origin:center;animation:mood-sparkle 4s ease-in-out var(--spark-delay,0s) infinite; }
@keyframes mood-sparkle { 0%,100%{opacity:.15;transform:translateY(4px) scale(.6)} 50%{opacity:.85;transform:translateY(-4px) scale(1)} }
.touch-ripple { transform-box:fill-box;transform-origin:center; }
.heart-glass:not(.shape-visible) :is(.heart-wave,.mood-spark,.liquid-caustic),.shapes-paused :is(.heart-wave,.mood-spark,.liquid-caustic) { animation-play-state:paused; }
@media(max-width:540px) { .shape-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.material-controls{grid-template-columns:1fr}.material-controls label{margin-top:8px}#mood-preview .heart{width:158px}.material-hint{font-size:11px} }
@media(prefers-reduced-motion:reduce) { .mood-spark,.liquid-caustic{animation:none}.touch-ripple{display:none}.effect-aura{filter:drop-shadow(0 12px 12px var(--heart-shadow))} }

#mood-dialog #mood-preview .heart { width:clamp(120px,22dvh,180px);height:auto; }
#mood-dialog .material-caption { text-align:center; }
#mood-dialog .material-hint { text-align:center; }
@media(max-height:560px) { #mood-dialog #mood-preview .heart{width:76px}#mood-dialog .material-hint{display:none}#mood-dialog .mood-editor-sticky{padding-top:12px}#mood-dialog .dialog-top h2{font-size:20px} }

/* Calm, stationary color bands inside the glass. */
.liquid-volume { transform:none; }
.liquid-caustic { animation:none; }

/* Quiet crystal presentation. The liquid moves only with interaction. */
.heart-glass { filter:drop-shadow(0 16px 16px color-mix(in srgb,var(--heart-shadow) 60%,transparent)); }
.glass-back { stroke-width:2.1;stroke-opacity:.28;fill-opacity:.09;transform:translate(1px,2px); }
.glass-specular { opacity:.65; }
.object-ground { filter:blur(3px);opacity:.25; }
.shape-crystal .glass-specular { opacity:.7; }
.material-stage { padding:12px 0 0;background:radial-gradient(ellipse at 50% 58%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 64%); }
#mood-dialog { width:min(700px,96vw); }
#mood-dialog #mood-preview .heart { width:clamp(145px,25dvh,215px); }
.preview-percentages { display:flex;justify-content:center;gap:8px 18px;flex-wrap:wrap;margin:12px 0;font-size:13px;color:var(--muted); }
.preview-percentages span { display:inline-flex;align-items:center;gap:5px; }
.preview-percentages strong { color:var(--ink);font-weight:600; }
.preview-percentages i { width:6px;height:6px;border-radius:50%; }
.shape-gallery { display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:12px;padding:4px 3px 14px;scrollbar-width:thin; }
.shape-choice { flex:0 0 106px;scroll-snap-align:center;border-radius:20px;background:color-mix(in srgb,var(--surface-raised) 60%,transparent);padding:16px 8px 12px; }
.shape-choice[aria-pressed="true"] { padding:15px 7px 11px; }
.shape-choice .heart { width:78px;height:78px; }
.shape-choice:focus-visible { outline-offset:0; }
.appearance-details { margin:22px 0 18px;border-block:1px solid var(--line);padding:16px 0; }
.appearance-details summary { cursor:pointer;font-size:15px;font-weight:600; }
.appearance-details summary span { display:block;margin-top:4px;color:var(--muted);font-size:12px;font-weight:400; }
.appearance-details .material-controls { padding-top:8px; }
.shape-collection-title { font-size:15px;letter-spacing:0;font-weight:500; }
@media(max-height:600px) { #mood-dialog #mood-preview .heart{width:98px}.preview-percentages{margin:5px 0;font-size:12px}.material-hint{display:none} }
@media(prefers-reduced-motion:reduce) { .heart-glass{transform:none}.shape-gallery{scroll-behavior:auto} }

.mood-editor-fields > label[for="mood-shape"], #mood-shape { display:none; }

/* Three dimensional objects keep the SVG as their accessible fallback. */
.mood-3d-stage { position:relative;display:table;margin:0 auto;line-height:0; }
.mood-3d-stage > .heart { margin:0 auto!important; }
.mood-3d-canvas { position:absolute;inset:0;width:100%;height:100%;pointer-events:none; }
.mood-3d-stage.is-3d > svg { opacity:0; }
#mood-dialog #mood-preview .heart { width:clamp(150px,27dvh,230px); }
#mood-preview { min-height:160px; }
.material-stage { background:radial-gradient(ellipse at 50% 58%,color-mix(in srgb,var(--accent) 7%,transparent),transparent 65%); }
.shape-choice { flex-basis:115px; }
.shape-choice strong { font-size:13px; }
@media(max-height:600px){#mood-dialog #mood-preview .heart{width:100px}#mood-preview{min-height:100px}}

.mood-3d-stage { display:block;width:190px;max-width:100%; }
.mood-3d-stage > svg.heart { width:100%!important;height:auto!important; }
.today-heart-pair .mood-3d-stage { width:min(85%,206px); }
#mood-preview .mood-3d-stage { width:clamp(150px,27dvh,230px); }
@media(max-height:600px){#mood-preview .mood-3d-stage{width:100px}}

/* Restore the rounded, colorful glass from the original mood cards. */
.heart-glass { filter:drop-shadow(0 12px 12px var(--heart-shadow)); }
.glass-back { stroke-width:3;stroke-opacity:.45;fill-opacity:.18;transform:translate(2px,5px); }
.glass-specular,.shape-crystal .glass-specular { opacity:1; }
.heart-glass .heart-wave { animation:heart-flow var(--wave-duration,9s) linear var(--wave-delay,0s) infinite; }
.heart-glass:not(.shape-visible) .heart-wave,.shapes-paused .heart-wave { animation-play-state:paused; }
.liquid-volume { transform:none; }
@media(prefers-reduced-motion:reduce){.heart-glass .heart-wave{animation:none}}
/* Phone layout: stable labels, thumb sized controls and predictable sheets. */
@media(max-width:760px) {
  body { overflow-x:clip; }
  #board-header { height:auto;min-height:0;padding:14px 20px 12px;display:flex;flex-wrap:wrap;gap:12px;align-items:center; }
  #board-header .brand { font-size:27px;letter-spacing:-1.2px;line-height:1.2; }
  #board-header .account-actions { width:100%;display:flex;align-items:center;gap:10px;justify-content:flex-start; }
  #board-header .account-actions .quiet { display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border-radius:12px;font-size:13px;white-space:nowrap; }
  #share-board { background:var(--surface-raised);border:1px solid var(--line); }
  #account-link { margin-left:auto; }
  #board-header .theme-switch { width:38px;height:38px;flex-shrink:0;margin:0; }
  #board-main { padding-inline:18px; }
  .page-heading { padding-top:28px;padding-bottom:22px; }
  .page-heading h1 { font-size:34px;line-height:1.15; }
  .page-heading p { font-size:15px;line-height:1.7;margin-bottom:0; }
  .motion-controls { margin-bottom:18px;gap:6px; }
  .motion-controls .edit { padding:10px 14px;min-height:42px;font-size:13px; }
  #duygular .section-heading { padding:22px 16px 0; }
  #duygular .section-heading h2 { font-size:22px;text-align:center; }
  #duygular .mood-pair { margin-top:20px;grid-template-columns:repeat(2,minmax(0,1fr)); }
  #duygular .mood-person { padding:0 10px 22px;overflow-wrap:normal; }
  #duygular .person-label { display:block;min-height:23px;font-size:15px; }
  #duygular .person-label strong { display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
  #duygular .person-label .avatar,#duygular .person-label .badge { display:none; }
  #duygular .mood-person .heart { width:100%;max-width:190px;margin:10px auto 8px; }
  #duygular .mood-person .legend { font-size:12px;gap:5px 8px; }
  #duygular .mood-person .timestamp { font-size:11px; }
  #duygular .mood-person .edit { width:100%;padding:10px 7px;font-size:12px;line-height:1.5; }
  #duygular .empty-caption { font-size:14px;line-height:1.5; }
  .today-heart-pair { padding-inline:8px; }
  .today-heart-pair h3 { font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
  .today-heart-pair .heart { width:100%;max-width:190px;margin:8px auto; }
  .today-heart-pair .muted { font-size:12px; }
  .today-hearts-top { align-items:center;padding:20px 18px 0; }
  .today-hearts-top h2 { font-size:21px; }
  .today-hearts-top a { font-size:12px;white-space:nowrap; }
  #mobile-nav { grid-template-columns:repeat(6,minmax(0,1fr));padding-inline:5px;box-shadow:0 -8px 24px #00000012; }
  #mobile-nav a { min-width:0;font-size:10px;padding-inline:0; }
  #mobile-nav a span { font-size:20px; }
  dialog { width:calc(100vw - 24px);max-width:560px;max-height:calc(100dvh - 36px);padding:22px;border-radius:24px; }
  dialog .dialog-top { margin-bottom:18px;align-items:center; }
  dialog .dialog-top h2 { font-size:23px; }
  dialog .close { width:40px;height:40px;flex-shrink:0; }
  dialog input,dialog select,dialog textarea { font-size:16px;min-height:48px; }
  #share-dialog p { font-size:15px;line-height:1.65; }
  #share-dialog label { font-size:14px;margin-top:20px; }
  #create-board,#join-board,#share-google { width:100%;margin-top:16px;min-height:48px; }
  #invite-area { margin-top:22px;padding-top:2px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:10px; }
  #invite-area > label,#invite-area > input { width:100%;margin-bottom:0; }
  #invite-url { font-size:13px;min-width:0;text-overflow:ellipsis; }
  #copy-invite,#renew-invite { flex:1 1 140px;min-height:46px;padding:10px 12px;margin:0;border:1px solid var(--line);border-radius:14px;white-space:normal;font-size:14px; }
  #copy-invite { background:var(--button);color:var(--button-text);border-color:var(--button); }
  #mood-dialog { width:calc(100vw - 16px);max-height:92dvh; }
  #mood-form { max-height:92dvh; }
  .mood-editor-sticky { padding:18px 18px 8px; }
  .mood-editor-fields { padding:10px 18px 24px; }
  #mood-dialog .dialog-top h2 { font-size:21px; }
  #mood-dialog #mood-preview .heart { width:clamp(100px,19dvh,155px); }
  #mood-preview { min-height:0; }
  .preview-percentages { gap:5px 10px;font-size:12px;margin:8px 0; }
  .shape-gallery { gap:9px; }
  .shape-choice { flex-basis:100px; }
}

/* Premium is an organized, theme-aware sheet with a stable header and action. */
#premium-dialog { padding:0;width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 32px);border-radius:28px;background:var(--surface);color:var(--ink);overflow:hidden;box-shadow:0 24px 80px #00000038; }
.premium-shell { display:flex;flex-direction:column;max-height:calc(100dvh - 34px); }
.premium-header { display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:24px 26px 18px;border-bottom:1px solid var(--line);flex-shrink:0; }
.premium-header .eyebrow { font-size:10px;letter-spacing:.08em;margin-bottom:8px;line-height:1.5; }
.premium-header h2 { font-size:24px;line-height:1.25;letter-spacing:-.7px; }
.premium-header h2 span { display:block;color:var(--accent);font-size:17px;margin-top:4px;letter-spacing:0; }
.premium-header .close { width:38px;height:38px;flex-shrink:0; }
.premium-body { overflow-y:auto;min-height:0;padding:22px 26px;overscroll-behavior:contain; }
.premium-price-row { display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px; }
#premium-dialog .premium-price { color:var(--ink);font-size:42px;letter-spacing:-1.6px;line-height:1.15;margin:0;font-weight:700; }
#premium-dialog .premium-price span { color:var(--muted);font-size:13px;letter-spacing:0;font-weight:400;margin-top:8px; }
.premium-access { text-align:right;color:var(--muted);font-size:13px;line-height:1.6; }
.premium-access strong { color:var(--ink);font-weight:600; }
.premium-preview { margin:0 0 22px;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#101a31; }
#premium-brush-sample { width:100%;height:auto;border-radius:0;margin:0;aspect-ratio:420/150;object-fit:cover; }
.premium-preview figcaption { display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 16px;background:#142039;color:#e5eaff;font-size:12px; }
.preview-label { color:#bdc9e1; }
.premium-preview figcaption strong { font-size:12px;font-weight:500; }
.premium-features { display:grid;grid-template-columns:1fr 1fr;gap:18px 16px; }
.premium-features>div { min-width:0; }
.premium-features>div>span { display:block;color:var(--accent);font-size:23px;margin-bottom:5px; }
.premium-features strong { color:var(--ink);font-size:14px;font-weight:600; }
#premium-dialog .premium-features p { font-size:12px;color:var(--muted);line-height:1.6;margin:4px 0 0; }
#premium-dialog .premium-scope { padding-top:18px;margin:20px 0 0;border-top:1px solid var(--line);font-size:13px;color:var(--muted);line-height:1.7; }
.premium-bottom { padding:16px 26px 22px;border-top:1px solid var(--line);background:var(--surface);flex-shrink:0; }
#premium-dialog .premium-payment-status { font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 12px; }
.premium-payment-status>span { color:var(--accent);margin-right:4px; }
#premium-close { width:100%;min-height:46px;border-radius:14px;font-size:14px; }
@media(max-width:540px) { .premium-header{padding:20px 20px 16px}.premium-body{padding:18px 20px}.premium-bottom{padding:14px 20px 20px}.premium-header h2{font-size:23px}#premium-dialog .premium-price{font-size:38px}.premium-features{gap:16px 12px} }
@media(max-height:650px) { .premium-preview{margin-bottom:16px}#premium-brush-sample{aspect-ratio:420/110}.premium-header{padding-block:16px}.premium-bottom{padding-block:12px}.premium-header .eyebrow{display:none} }
