@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 { --ink: #303e36; --muted: #7d857a; --green: #526950; --line: #e4e6dc; --cream: #f6f4ed; --white: #fff; --soft: #edf0e5; }
* { box-sizing: border-box; }
body { margin: 0px; background: var(--cream); font: 14px "DM Sans", Arial, sans-serif; color: var(--ink); }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: 0.5; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: rgb(196, 156, 104) solid 3px; outline-offset: 3px; }
a { color: var(--green); }
button { color: inherit; }
.topbar { height: 86px; padding: 0px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(255, 255, 255, 0.8); border-bottom: 1px solid var(--line); position: sticky; top: 0px; z-index: 20; backdrop-filter: blur(15px); }
.brand { border: 0px; background: none; display: flex; align-items: center; gap: 9px; font-size: 25px; letter-spacing: -1px; font-weight: 600; }
.brand > span { font-size: 39px; color: var(--green); }
.search-wrap { display: flex; align-items: center; gap: 8px; background: rgb(242, 242, 235); border-radius: 9px; padding: 0px 13px; max-width: 430px; flex: 1 1 0%; }
.search-wrap > span { font-size: 26px; color: var(--muted); }
.search-wrap input { width: 100%; border: 0px; background: none; padding: 12px 0px; font-size: 12px; color: var(--ink); outline: none; }
.top-actions { display: flex; align-items: center; gap: 15px; }
.primary, .secondary, .danger { border: 0px; border-radius: 8px; font-size: 12px; padding: 12px 18px; font-weight: 600; }
.primary { background: var(--green); color: white; }
.secondary { background: white; border: 1px solid rgb(220, 224, 210); color: var(--green); }
.danger { background: rgb(161, 75, 69); color: white; }
.avatar-button { border: 1px solid rgb(220, 224, 210); background: rgb(237, 240, 229); border-radius: 22px; padding: 10px 14px; font-size: 12px; }
.app-shell { display: grid; grid-template-columns: 225px minmax(0px, 1fr) 250px; max-width: 1600px; margin: auto; min-height: calc(-86px + 100vh); padding: 0px 25px; gap: 27px; }
.sidebar { padding: 31px 0px; position: sticky; top: 86px; align-self: start; height: calc(-86px + 100vh); overflow: auto; scrollbar-width: thin; }
.nav-label, .eyebrow { font-size: 9px; letter-spacing: 1.7px; font-weight: 700; color: rgb(137, 147, 125); margin: 0px 0px 16px; }
.nav-label { padding-left: 14px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav button { border: 0px; background: none; text-align: left; display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 8px; font-size: 20px; }
.sidebar nav button span { font-size: 12px; }
.sidebar nav button.active { background: rgb(230, 235, 219); color: var(--green); font-weight: 600; }
.sidebar nav b { font-size: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgb(201, 148, 114); color: white; border-radius: 10px; padding: 3px 5px; }
.sidebar-card { background: rgb(233, 237, 223); border-radius: 12px; margin: 30px 10px 15px; padding: 22px 17px; }
.sidebar-card > span:first-child { font-size: 35px; color: rgb(130, 144, 112); }
.sidebar-card h3 { font: 500 22px / 1.3 "Playfair Display", Georgia, serif; margin: 10px 0px; }
.sidebar-card p, .sidebar-foot { font-size: 10px; color: var(--muted); line-height: 1.8; }
.free-badge { display: inline-block; font-size: 9px; background: rgba(255, 255, 255, 0.6); border-radius: 4px; padding: 5px 7px; color: var(--green); }
.sidebar-foot { padding: 0px 15px; }
.text-button { border: 0px; background: none; padding: 8px 0px; color: var(--green); font-size: 11px; }
.right-rail { padding: 31px 0px; display: grid; gap: 17px; align-content: start; }
.rail-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 23px 20px; overflow: hidden; }
.rail-card h3 { font: 500 26px / 1.25 "Playfair Display", Georgia, serif; margin: 10px 0px; }
.rail-card p { font-size: 11px; line-height: 1.8; color: var(--muted); }
.rail-card .secondary { width: 100%; font-size: 10px; }
.marker-art { display: flex; justify-content: center; align-items: center; height: 125px; gap: 15px; background: rgb(245, 242, 231); border-radius: 50%; margin: 18px 3px; }
.marker-art i { display: block; width: 20px; height: 95px; background: linear-gradient(rgb(205, 162, 139) 23%, rgb(252, 249, 240) 23%, rgb(252, 249, 240) 82%, rgb(205, 162, 139) 82%); border-radius: 4px; transform: rotate(-13deg); box-shadow: rgba(0, 0, 0, 0.067) 3px 5px 7px; }
.marker-art i:nth-child(2) { transform: rotate(4deg); background: linear-gradient(rgb(159, 171, 134) 23%, rgb(252, 249, 240) 23%, rgb(252, 249, 240) 82%, rgb(159, 171, 134) 82%); }
.marker-art i:nth-child(3) { transform: rotate(22deg); background: linear-gradient(rgb(223, 189, 117) 23%, rgb(252, 249, 240) 23%, rgb(252, 249, 240) 82%, rgb(223, 189, 117) 82%); }
.tip-card { background: rgb(240, 238, 228); }
.tip-card > span { font-size: 9px; color: rgb(140, 136, 108); letter-spacing: 1px; }
#main { min-width: 0px; padding: 34px 0px 65px; }
h1 { font: 500 35px / 1.2 "Playfair Display", Georgia, serif; letter-spacing: -0.7px; margin: 0px 0px 12px; }
h1 em { color: var(--green); font-weight: 500; }
h2 { font-size: 19px; margin: 0px; }
h3 { margin: 0px; font-size: 15px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 10px 0px 24px; }
.page-heading p:not(.eyebrow) { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 8px 0px 0px; }
.hero { padding: 29px 28px; background: rgb(239, 238, 228); border: 1px solid rgb(231, 230, 217); border-radius: 15px; position: relative; margin-bottom: 25px; }
.hero h1 { font-size: 37px; max-width: 480px; }
.hero p:not(.eyebrow) { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 410px; }
.hero .flower { position: absolute; right: 25px; top: 26px; font-size: 70px; color: rgb(197, 203, 176); }
.hero .primary { margin-top: 8px; font-size: 11px; }
.filter-row { display: flex; align-items: center; gap: 8px; margin: 18px 0px 24px; flex-wrap: wrap; }
.filter-row button { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 8px 14px; font-size: 11px; color: var(--muted); }
.filter-row button.active { background: var(--green); color: white; border-color: var(--green); }
.feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 20px; align-items: start; }
.post-card { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.post-image-button { display: block; border: 0px; padding: 0px; background: rgb(233, 233, 223); width: 100%; position: relative; }
.post-image-button > img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.post-badge { position: absolute; left: 12px; bottom: 12px; font-size: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.94); padding: 6px 8px; color: var(--green); }
.post-meta { padding: 14px 15px; }
.author { border: 0px; background: none; display: inline-flex; align-items: center; gap: 8px; padding: 0px; font-size: 11px; }
.avatar { width: 29px; height: 29px; display: inline-grid; place-items: center; border-radius: 50%; background: rgb(233, 237, 223); color: var(--green); font-weight: 600; font-size: 11px; flex-shrink: 0; }
.post-meta h3 { font-size: 13px; margin: 12px 0px 10px; }
.post-bottom { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-top: 12px; }
.post-actions { display: flex; gap: 6px; }
.icon-button { background: none; border: 0px; padding: 5px; font-size: 12px; color: var(--muted); border-radius: 5px; }
.icon-button.on { color: rgb(170, 94, 107); background: rgb(250, 240, 241); }
.dots { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.dots i { display: block; width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.035); }
.muted { color: var(--muted); line-height: 1.7; font-size: 12px; }
.small { font-size: 10px; }
.empty-state { padding: 42px 25px; background: white; border: 1px dashed rgb(207, 215, 192); border-radius: 13px; text-align: center; grid-column: 1 / -1; }
.empty-state > span { font-size: 43px; color: rgb(166, 181, 146); }
.empty-state h2 { font: 500 25px "Playfair Display", Georgia, serif; margin: 15px 0px 10px; }
.empty-state p { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 380px; margin: 0px auto 20px; }
.notice { background: rgb(237, 240, 228); border: 1px solid rgb(220, 228, 205); border-radius: 8px; padding: 12px 15px; font-size: 11px; line-height: 1.7; color: rgb(103, 117, 94); margin: 0px 0px 18px; }
.notice button { font-size: 11px; }
.profile-stats { display: flex; gap: 25px; flex-wrap: wrap; margin: 20px 0px; }
.profile-stats button, .profile-stats > div { border: 0px; background: none; padding: 0px; text-align: left; }
.profile-stats b { display: block; font-size: 22px; }
.profile-stats span { font-size: 10px; color: var(--muted); }
.person-list, .book-list, .notification-list { display: grid; gap: 12px; }
.person-card, .book-card, .notification-card, .settings-card { border: 1px solid var(--line); border-radius: 11px; background: white; padding: 20px; }
.person-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.person-card .avatar { width: 42px; height: 42px; font-size: 16px; }
.person-info { display: flex; align-items: center; gap: 12px; }
.person-info p { margin: 4px 0px 0px; font-size: 10px; color: var(--muted); }
.book-header { display: flex; justify-content: space-between; gap: 10px; }
.book-header select { width: auto; max-width: 130px; font-size: 10px; padding: 7px; }
.book-card p { margin: 5px 0px; font-size: 11px; color: var(--muted); }
.project-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 12px 0px 0px; margin-top: 12px; font-size: 11px; }
.settings-card { margin: 18px 0px; }
.settings-card h3 { margin-bottom: 16px; }
.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.notification-card { display: flex; gap: 12px; align-items: center; }
.notification-card p { margin: 0px; font-size: 12px; line-height: 1.7; }
.notification-card small { font-size: 9px; color: var(--muted); }
.notification-card.new { border-left: 3px solid rgb(166, 181, 146); }
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tip { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 20px; }
.tip span { font-size: 10px; color: rgb(162, 170, 147); }
.tip h3 { margin: 8px 0px 10px; font-size: 13px; }
.tip p { font-size: 11px; line-height: 1.8; color: var(--muted); }
.badge { display: inline-block; border: 1px solid rgb(216, 224, 201); border-radius: 20px; padding: 5px 8px; font-size: 9px; background: rgb(238, 242, 229); margin: 3px; }
.xp-number { font-size: 26px; color: var(--green); font-weight: 600; }
#atelierPanel { width: 100%; }
#atelierFrame { border: 1px solid var(--line); width: 100%; height: 1450px; border-radius: 12px; background: rgb(247, 246, 241); }
.app-shell.atelier-view { grid-template-columns: 225px minmax(0px, 1fr); }
.atelier-view .right-rail { display: none; }
dialog { color: var(--ink); border: 1px solid rgb(220, 224, 210); border-radius: 16px; padding: 27px; width: 460px; max-width: calc(100% - 28px); max-height: calc(100dvh - 45px); overflow: auto; box-shadow: rgba(32, 49, 33, 0.133) 0px 15px 70px; }
dialog::backdrop { background: rgba(39, 57, 46, 0.533); backdrop-filter: blur(3px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.dialog-top .eyebrow { margin-bottom: 8px; }
.close { background: rgb(241, 242, 236); border: 0px; border-radius: 50%; width: 30px; height: 30px; font-size: 23px; color: rgb(108, 117, 102); flex-shrink: 0; }
.auth-tabs { display: flex; background: rgb(240, 241, 233); border-radius: 8px; padding: 4px; margin: 20px 0px; }
.auth-tabs button { flex: 1 1 0%; background: transparent; border: 0px; border-radius: 6px; padding: 10px; font-size: 12px; color: var(--muted); }
.auth-tabs button.active { background: white; color: var(--green); box-shadow: rgba(0, 0, 0, 0.03) 0px 1px 5px; }
label { display: block; font-size: 11px; line-height: 1.6; margin: 13px 0px; }
input:not([type="checkbox"],[type="radio"],[type="range"],[type="file"]), textarea, select { display: block; width: 100%; border: 1px solid rgb(223, 227, 214); border-radius: 7px; background: white; color: var(--ink); padding: 10px 12px; font-size: 12px; margin-top: 6px; }
input[type="checkbox"] { accent-color: var(--green); width: 15px; height: 15px; flex-shrink: 0; }
.checkbox-label { display: flex; align-items: start; gap: 8px; font-size: 10px; }
label small { font-size: 9px; color: var(--muted); }
.full { width: 100%; margin-top: 12px; }
.form-error { font-size: 11px; color: rgb(161, 75, 69); line-height: 1.7; }
.wide-dialog { width: 860px; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.upload-zone { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; background: rgb(245, 247, 240); border: 1px dashed rgb(183, 196, 165); border-radius: 9px; min-height: 230px; padding: 20px; cursor: pointer; text-align: center; }
.upload-zone span { font-size: 30px; color: var(--green); }
.upload-zone small { font-size: 10px; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-zone:focus-within { outline: rgb(196, 156, 104) solid 3px; }
#uploadPreview { width: 100%; max-height: 330px; object-fit: contain; border-radius: 8px; background: rgb(238, 238, 228); }
.color-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0px; }
.color-chip { font-size: 10px; background: rgb(244, 245, 239); border-radius: 6px; padding: 7px; display: flex; align-items: center; gap: 6px; }
.color-chip i { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.067); }
.post-dialog { width: 1000px; padding: 0px; }
.detail-layout { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 500px; }
.detail-picture { background: rgb(238, 238, 229); display: flex; align-items: center; justify-content: center; padding: 15px; position: sticky; top: 0px; align-self: start; min-height: 400px; }
.detail-picture img { display: block; width: 100%; max-height: 75vh; object-fit: contain; }
.detail-info { padding: 25px; }
.detail-info h2 { font: 500 28px / 1.3 "Playfair Display", Georgia, serif; margin: 20px 0px 12px; }
.detail-info .caption { white-space: pre-wrap; font-size: 12px; line-height: 1.8; color: var(--muted); }
.detail-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-block: 1px solid var(--line); padding: 12px 0px; margin: 20px 0px; }
.detail-actions button { font-size: 11px; }
.detail-match-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.detail-match { border: 1px solid var(--line); border-radius: 7px; padding: 9px; font-size: 10px; }
.detail-match .dots { margin-bottom: 7px; }
.detail-match small { font-size: 9px; color: var(--muted); display: block; line-height: 1.6; }
.comment { border-top: 1px solid var(--line); padding: 12px 0px; font-size: 11px; }
.comment p { white-space: pre-wrap; line-height: 1.7; margin: 5px 0px; }
.comment time { font-size: 9px; color: var(--muted); }
.detail-owner { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }
.detail-owner button { font-size: 10px; margin: 5px 4px 0px 0px; }
#toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); background: rgb(51, 72, 49); color: white; border-radius: 9px; padding: 13px 20px; font-size: 12px; z-index: 100; box-shadow: rgba(0, 0, 0, 0.133) 0px 5px 30px; line-height: 1.7; }
.loading { padding: 60px; text-align: center; color: var(--muted); font-size: 12px; }
.privacy-copy { font-size: 12px; line-height: 1.9; color: var(--muted); }
@media (min-width: 1600px) {
  .feed-grid { grid-template-columns: repeat(3, minmax(0px, 1fr)); }
}
@media (max-width: 1150px) {
  .app-shell { grid-template-columns: 205px minmax(0px, 1fr); gap: 23px; }
  .right-rail { display: none; }
  .app-shell.atelier-view { grid-template-columns: 205px minmax(0px, 1fr); }
  .topbar { padding: 0px 22px; }
  .top-actions { gap: 8px; }
  .search-wrap { max-width: 350px; }
}
@media (max-width: 800px) {
  .app-shell, .app-shell.atelier-view { grid-template-columns: 68px minmax(0px, 1fr); padding: 0px 14px; gap: 16px; }
  .sidebar { overflow: visible; }
  .sidebar nav button { padding: 12px; justify-content: center; font-size: 24px; }
  .sidebar nav span, .sidebar .nav-label, .sidebar-card, .sidebar-foot { display: none; }
  .sidebar nav b { position: absolute; margin-left: 30px; }
  .topbar { gap: 12px; height: 73px; padding: 0px 16px; }
  .brand { font-size: 22px; }
  .brand > span { font-size: 32px; }
  .search-wrap { display: none; }
  .top-actions .primary { font-size: 10px; padding: 10px 12px; }
  .sidebar { top: 73px; }
  .hero { padding: 23px; }
  .hero h1 { font-size: 31px; max-width: 340px; }
  .hero .flower { font-size: 45px; right: 20px; top: 20px; }
  .page-heading h1 { font-size: 30px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-picture { position: static; min-height: 150px; }
  .detail-picture img { max-height: 55vh; }
}
@media (max-width: 540px) {
  .topbar { height: 65px; padding: 0px 13px; }
  .brand { font-size: 20px; }
  .brand > span { font-size: 29px; }
  .top-actions .primary { display: none; }
  .avatar-button { font-size: 10px; padding: 9px 12px; }
  .app-shell, .app-shell.atelier-view { display: block; padding: 0px 15px; }
  .sidebar { position: fixed; inset: auto 0px 0px; height: 64px; padding: 0px; background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); z-index: 25; overflow: hidden; }
  .sidebar nav { height: 64px; display: flex; justify-content: space-around; gap: 0px; }
  .sidebar nav button { font-size: 24px; padding: 10px 16px; border-radius: 0px; }
  .sidebar nav button span { display: none; }
  .sidebar nav button:nth-child(2), .sidebar nav button:nth-child(5), .sidebar nav button:nth-child(7), .sidebar nav button:nth-child(8), .sidebar nav button:nth-child(9) { display: none; }
  #main { padding: 20px 0px 95px; }
  .hero { padding: 24px 21px; }
  .hero h1 { font-size: 31px; max-width: 270px; }
  .hero .flower { font-size: 35px; right: 15px; }
  .feed-grid { gap: 12px; }
  .post-meta { padding: 11px; }
  .post-meta h3 { font-size: 11px; }
  .author { font-size: 9px; }
  .avatar { width: 24px; height: 24px; font-size: 9px; }
  .post-bottom { flex-wrap: wrap; }
  .dots i { width: 12px; height: 12px; }
  .post-badge { font-size: 8px; padding: 5px; left: 8px; bottom: 8px; }
  .page-heading { align-items: start; gap: 10px; }
  .page-heading .secondary { font-size: 10px; padding: 10px; }
  .upload-grid { grid-template-columns: 1fr; }
  .wide-dialog { padding: 20px; }
  .upload-zone { min-height: 130px; }
  .detail-info { padding: 20px; }
  .person-card { padding: 15px; }
  .tips-grid { grid-template-columns: 1fr; }
  #atelierFrame { height: 2300px; }
  .profile-stats { gap: 20px; }
  .settings-card { padding: 18px; }
  .mobile-links { display: flex; gap: 8px; overflow: auto; margin: 18px 0px; }
  .mobile-links button { white-space: nowrap; }
  .right-rail { display: none; }
  #toast { bottom: 80px; }
  dialog { max-height: calc(100dvh - 25px); padding: 22px; }
  .post-dialog { padding: 0px; }
}
.development-notice{margin:0;border:0;border-radius:0;text-align:center;padding:7px 15px;font-size:10px;background:#f0e5cc;color:#7a6742}.avatar-button{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:540px){.top-actions .primary{display:block;font-size:0;padding:5px 9px}.top-actions .primary::after{content:"＋";font-size:22px}.avatar-button{max-width:110px}.mobile-links{flex-wrap:nowrap}.mobile-links button{flex-shrink:0}}
