:root {
  --bg: #f4f2fb;
  --surface: #ffffff;
  --surface-soft: #f9f8fe;
  --surface-strong: #eeecf7;
  --ink: #201d3b;
  --ink-soft: #6d6a83;
  --muted: #aaa8bb;
  --line: #e8e5f2;
  --violet: #6254c6;
  --violet-dark: #42368e;
  --violet-soft: #ebe9ff;
  --pink: #e69ab7;
  --gold: #e2b45e;
  --mint: #9dccbd;
  --shadow: 0 20px 60px rgba(53, 45, 111, .08);
  --shadow-card: 0 12px 30px rgba(46, 39, 95, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans TC", "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(98, 84, 198, .28); outline-offset: 2px; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: -60px; padding: 10px 16px; color: white; background: var(--violet-dark); border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 20px; }
.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(2px); opacity: .7; }
.ambient-one { width: 340px; height: 340px; top: -170px; right: 12%; background: rgba(223, 215, 255, .7); }
.ambient-two { width: 250px; height: 250px; bottom: 5%; left: 32%; background: rgba(246, 219, 228, .35); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; display: flex; flex-direction: column; width: 250px; height: 100vh; padding: 31px 20px 22px; background: rgba(255,255,255,.8); border-right: 1px solid rgba(225,222,238,.85); backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.brand-home-link {
  color: inherit;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.brand-home-link:hover .brand-name,
.brand-home-link:focus-visible .brand-name {
  color: #ef7267;
}

.brand-mark { position: relative; width: 36px; height: 36px; flex: 0 0 36px; }
.brand-orb { position: absolute; inset: 6px; border-radius: 50% 45% 50% 45%; transform: rotate(26deg); background: linear-gradient(135deg, #b8a9ff, #6c5dd4 58%, #3d3485); box-shadow: 0 3px 10px rgba(98,84,198,.3), inset 3px 2px 5px rgba(255,255,255,.6); }
.brand-orb::after { content: ""; position: absolute; width: 9px; height: 5px; top: 5px; left: 7px; border-radius: 50%; background: rgba(255,255,255,.7); transform: rotate(-24deg); }
.brand-spark { position: absolute; z-index: 2; color: #edca7d; font-size: 11px; }
.spark-one { top: 0; right: 0; width: 7px; height: 7px; background: currentColor; clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%); }
.spark-two { bottom: 3px; left: 0; width: 5px; height: 5px; background: #bcaef5; clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%); }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: .03em; line-height: 1.25; }
.brand-subtitle { margin-top: 3px; color: var(--muted); font: 700 9px/1 "DM Sans", sans-serif; letter-spacing: .17em; }
.sidebar-divider { height: 1px; margin: 31px 10px 23px; background: var(--line); }
.nav-list, .topic-list { display: grid; gap: 6px; }
.nav-item, .topic-item { display: flex; align-items: center; text-align: left; color: var(--ink-soft); background: transparent; border-radius: 11px; transition: .2s ease; }
.nav-item { position: relative; gap: 12px; padding: 11px 13px; font-weight: 600; }
.nav-item:hover, .topic-item:hover { color: var(--violet-dark); background: var(--violet-soft); }
.nav-item.active { color: var(--violet-dark); background: var(--violet-soft); box-shadow: inset 3px 0 0 var(--violet); }
.nav-icon { width: 19px; color: #9089b7; font-size: 20px; line-height: 1; text-align: center; }
.nav-item.active .nav-icon { color: var(--violet); }
.nav-ping { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--violet); }
.sidebar-label { margin: 32px 13px 11px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.topic-item { gap: 10px; padding: 8px 13px; font-size: 13px; }
.topic-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(0,0,0,.025); }
.dot-mint { background: var(--mint); }.dot-gold { background: var(--gold); }.dot-pink { background: var(--pink); }.dot-blue { background: #9bafe8; }
.sidebar-spacer { flex: 1; }
.mini-note { display: grid; gap: 6px; margin: 18px 5px 15px; padding: 16px; color: #59516e; background: linear-gradient(150deg,#f2efff,#fcf2f6); border: 1px solid #ece7fa; border-radius: 15px; }
.mini-note-stars { color: #aa99df; font-size: 11px; letter-spacing: .15em; }.mini-note strong { font-size: 12px; }.mini-note span { color: #90869f; font-size: 11px; line-height: 1.5; }
.sidebar-footer { color: #b3b0c2; font-size: 10px; text-align: center; }

.main-wrap { width: calc(100% - 250px); margin-left: 250px; }
.topbar { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 85px; padding: 0 6.5%; border-bottom: 1px solid rgba(226,223,239,.75); background: rgba(244,242,251,.58); backdrop-filter: blur(14px); }
.topbar-actions { display: flex; align-items: center; gap: 19px; }.icon-button { width: 33px; height: 33px; color: var(--ink-soft); background: transparent; border-radius: 50%; font-size: 20px; transition: .2s; }.icon-button:hover { color: var(--violet); background: white; }
.user-menu { display: flex; align-items: center; gap: 10px; padding: 4px 3px 4px 4px; color: var(--ink); background: transparent; border-radius: 30px; text-align: left; }.user-menu:hover { background: rgba(255,255,255,.8); }.user-menu-copy { display: grid; gap: 0; min-width: 55px; }.user-menu-copy strong { font-size: 12px; line-height: 1.3; }.user-menu-copy small { color: var(--muted); font-size: 10px; }.chevron { margin-left: 2px; color: #9b98ae; font-size: 17px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; color: white; font-weight: 800; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }.avatar-small { width: 34px; height: 34px; background: linear-gradient(135deg,#c5b9fa,#7868d8); font-size: 13px; }
.user-popover { position: absolute; z-index: 20; top: 68px; right: 6.5%; width: 230px; padding: 11px; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 17px 45px rgba(38,31,81,.14); }.popover-heading { padding: 7px 9px 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; }.account-list { display: grid; gap: 3px; }.account-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; color: var(--ink); background: transparent; border-radius: 9px; text-align: left; }.account-option:hover, .account-option.current { background: var(--violet-soft); }.account-option .avatar { width: 28px; height: 28px; font-size: 11px; }.account-option-copy { display: grid; line-height: 1.25; }.account-option-copy strong { font-size: 12px; }.account-option-copy small { color: var(--muted); font-size: 9px; }.account-check { margin-left: auto; color: var(--violet); }.popover-action { width: 100%; margin-top: 6px; padding: 9px; color: var(--violet-dark); background: var(--surface-soft); border-top: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 700; }
.mobile-brand { display: none; align-items: center; gap: 8px; font-weight: 800; }.brand-mark.small { width: 25px; height: 25px; flex-basis: 25px; }.brand-mark.small .brand-orb { inset: 4px; }.brand-mark.small .brand-orb::after { width: 6px; height: 3px; top: 4px; left: 5px; }

.main-content { width: min(1230px, 87%); margin: 0 auto; padding: 50px 0 30px; }
.hero-panel { position: relative; display: flex; min-height: 343px; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: linear-gradient(111deg,#e7e4fc 0%,#e9e5f6 46%,#d7d5ec 100%); box-shadow: var(--shadow); }
.hero-copy { position: relative; z-index: 2; width: 54%; padding: 42px 0 37px 52px; }.eyebrow { display: flex; align-items: center; gap: 9px; color: #8983af; font: 700 10px/1 "DM Sans", sans-serif; letter-spacing: .13em; }.eyebrow-line { width: 20px; height: 1px; background: #a8a1d6; }
.hero-copy h1 { margin: 22px 0 15px; color: #2c2750; font-size: clamp(28px, 3vw, 41px); font-weight: 900; letter-spacing: -.045em; line-height: 1.24; }.hero-copy h1 em { color: #6557ba; font-style: normal; }.hero-copy p { margin: 0; color: #777291; font-size: 12px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 24px; }.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 17px; color: white; background: var(--violet); border-radius: 9px; box-shadow: 0 8px 16px rgba(98,84,198,.22); font-size: 12px; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; }.primary-button:hover { background: var(--violet-dark); box-shadow: 0 10px 20px rgba(98,84,198,.3); transform: translateY(-1px); }.primary-button span { font-size: 18px; font-weight: 400; line-height: 0; }.text-button { display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; color: var(--violet-dark); background: transparent; font-size: 12px; font-weight: 700; }.text-button span { font-size: 18px; transition: transform .2s; }.text-button:hover span { transform: translateX(4px); }
.hero-art { position: absolute; inset: 0 0 0 49%; overflow: hidden; background: linear-gradient(145deg,#dad7f1 0%,#c6c4e1 54%,#aba9cd 100%); }.hero-art::before { content: ""; position: absolute; width: 70%; height: 130%; top: -29%; right: 7%; border-radius: 50%; background: rgba(255,255,255,.18); transform: rotate(-25deg); }.moon { position: absolute; z-index: 1; top: 42px; right: 26%; width: 97px; height: 97px; border: 12px solid rgba(255,255,255,.58); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(-29deg); filter: drop-shadow(0 0 15px rgba(255,255,255,.25)); }.hero-star { position: absolute; z-index: 3; color: rgba(255,255,255,.7); font-size: 16px; }.star-a { top: 29px; right: 12%; }.star-b { top: 100px; right: 42%; font-size: 10px; }.star-c { top: 58px; right: 44%; font-size: 9px; }.hero-mountain { position: absolute; bottom: -3px; width: 0; height: 0; border-left: 170px solid transparent; border-right: 170px solid transparent; border-bottom: 176px solid #9999c0; }.mountain-back { right: 9%; opacity: .52; transform: scale(1.15); border-bottom-color: #b0afd2; }.mountain-front { right: 31%; transform: scale(1.22); border-bottom-color: #8587b0; }.hero-tree { position: absolute; z-index: 4; bottom: 52px; width: 31px; height: 98px; }.hero-tree::before, .hero-tree::after, .hero-tree i { content: ""; position: absolute; left: -19px; width: 68px; height: 49px; border-radius: 50% 50% 40% 40%; background: #626994; }.hero-tree::before { top: 0; }.hero-tree::after { top: 25px; left: -30px; transform: scale(.77); }.hero-tree i { top: 44px; left: -17px; transform: scale(.72); }.hero-tree b { position: absolute; z-index: -1; bottom: 0; left: 12px; width: 7px; height: 42px; background: #5d5c82; }.hero-tree span { position: absolute; z-index: 2; top: 12px; left: 10px; width: 4px; height: 4px; border-radius: 50%; background: #e6d48e; box-shadow: 15px 25px #e3c986, -10px 33px #d7c889; }.tree-one { right: 11%; transform: scale(1.1); }.tree-two { right: 46%; bottom: 38px; transform: scale(.66); opacity: .8; }.hero-lantern { position: absolute; z-index: 6; right: 33%; bottom: 36px; width: 14px; height: 32px; border: 2px solid #c8a95e; border-radius: 8px 8px 3px 3px; box-shadow: 0 0 19px 8px rgba(255,221,127,.28); }.hero-lantern::before { content: ""; position: absolute; top: -13px; left: 2px; width: 7px; height: 13px; border-left: 1px solid #c8a95e; border-top: 1px solid #c8a95e; border-radius: 50% 50% 0 0; }.hero-lantern span { display: block; width: 5px; height: 12px; margin: 8px auto; border-radius: 50%; background: #ffe6a1; }.hero-art-caption { position: absolute; z-index: 7; right: 25px; bottom: 19px; display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.78); font-size: 10px; }.caption-dot { width: 4px; height: 4px; border-radius: 50%; background: #f2d07a; box-shadow: 0 0 6px 2px rgba(242,208,122,.4); }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 17px; }.stat-card { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 14px 17px; background: rgba(255,255,255,.72); border: 1px solid rgba(232,229,242,.8); border-radius: 13px; }.stat-card > div { display: grid; gap: 0; }.stat-card strong { color: var(--ink); font: 800 20px/1.25 "DM Sans", sans-serif; letter-spacing: -.03em; }.stat-card span:not(.stat-icon) { color: var(--muted); font-size: 10px; }.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; font-size: 20px; }.stat-icon-photo { color: #7164c9; background: #edebff; }.stat-icon-user { color: #d58aa6; background: #f9eaf0; }.stat-icon-heart { color: #b59956; background: #fbf2dc; }.stat-card-note { gap: 11px; background: linear-gradient(135deg,#fbf7ec,#fff); }.stat-note-mark { color: #d6ad57; font-size: 22px; }

.gallery-section { padding-top: 49px; }.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }.section-kicker, .modal-kicker { color: #9b95bc; font: 700 9px/1 "DM Sans", sans-serif; letter-spacing: .16em; }.section-heading h2 { margin: 8px 0 0; font-size: 22px; letter-spacing: -.04em; }.heading-spark { color: #d7b261; font-size: 17px; vertical-align: 3px; }.outline-button { display: inline-flex; gap: 9px; align-items: center; min-height: 36px; padding: 0 15px; color: var(--violet-dark); background: transparent; border: 1px solid #c7c2e9; border-radius: 8px; font-size: 11px; font-weight: 700; transition: .2s; }.outline-button:hover { color: white; border-color: var(--violet); background: var(--violet); }.outline-button span { font-size: 16px; font-weight: 400; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; }.search-box { display: flex; align-items: center; width: min(350px, 100%); height: 36px; padding: 0 10px; background: rgba(255,255,255,.8); border: 1px solid #e5e2ef; border-radius: 8px; }.search-icon { margin-right: 7px; color: #aaa6bd; font-size: 22px; line-height: 1; transform: rotate(-15deg); }.search-box input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }.search-box input::placeholder { color: #aaa8b8; }.search-box kbd { flex: 0 0 auto; padding: 2px 5px; color: #b0adbd; background: #f4f2f9; border: 1px solid #e7e4ef; border-radius: 4px; font: 9px "DM Sans", sans-serif; }.sort-wrap { display: flex; align-items: center; gap: 9px; color: #9995a9; font-size: 10px; }.sort-wrap select { padding: 7px 25px 7px 10px; color: #5d5973; background: transparent; border: 0; font-size: 11px; font-weight: 600; }
.filter-row { display: flex; align-items: center; gap: 8px; margin: 18px 0 22px; overflow-x: auto; scrollbar-width: none; }.filter-row::-webkit-scrollbar { display: none; }.filter-chip { flex: 0 0 auto; padding: 6px 14px; color: #9490a5; background: transparent; border: 1px solid transparent; border-radius: 20px; font-size: 11px; font-weight: 600; transition: .2s; }.filter-chip:hover { color: var(--violet); background: var(--violet-soft); }.filter-chip.active { color: var(--violet-dark); background: var(--violet-soft); border-color: #dcd7fa; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px 16px; }.photo-card { overflow: hidden; min-width: 0; background: var(--surface); border: 1px solid #eae7f2; border-radius: 12px; box-shadow: 0 4px 14px rgba(46,39,95,.035); transition: transform .25s, box-shadow .25s; }.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }.photo-cover { position: relative; aspect-ratio: 1.47; overflow: hidden; cursor: pointer; background: #d9d5ef; }.photo-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 55%,rgba(20,15,52,.34)); opacity: 0; transition: opacity .2s; }.photo-card:hover .photo-cover::after { opacity: 1; }.photo-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }.photo-card:hover .photo-cover img { transform: scale(1.04); }.photo-cover.no-image { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#e4e1f8,#f6e8ef); }.file-art { display: grid; place-items: center; width: 72px; height: 72px; color: var(--violet-dark); background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.75); border-radius: 20px; font-size: 26px; }.file-art span { display: block; font-size: 9px; font-weight: 800; letter-spacing: .06em; }.cover-topline { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }.category-badge, .private-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; color: white; background: rgba(39,34,74,.48); border: 1px solid rgba(255,255,255,.28); border-radius: 5px; backdrop-filter: blur(5px); font-size: 9px; font-weight: 700; }.private-badge { color: #605777; background: rgba(255,255,255,.78); border-color: rgba(255,255,255,.9); }.card-menu { width: 26px; height: 26px; color: white; background: rgba(39,34,74,.38); border-radius: 50%; font-size: 17px; line-height: 20px; opacity: 0; transition: opacity .2s; }.photo-card:hover .card-menu { opacity: 1; }.cover-overlay-title { position: absolute; z-index: 4; bottom: 11px; left: 13px; right: 13px; color: white; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(5px); transition: .2s; }.photo-card:hover .cover-overlay-title { opacity: 1; transform: translateY(0); }.photo-body { padding: 12px 13px 10px; }.photo-title { display: block; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }.photo-description { min-height: 21px; margin: 3px 0 8px; overflow: hidden; color: #9793a7; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.photo-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid #f0eef5; }.author { display: flex; align-items: center; gap: 6px; min-width: 0; }.author .avatar { width: 21px; height: 21px; font-size: 8px; }.author-name { max-width: 90px; overflow: hidden; color: #77738a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.photo-stats { display: flex; align-items: center; gap: 9px; color: #a09cac; font-size: 10px; }.photo-stat { display: inline-flex; align-items: center; gap: 3px; }.photo-stat.liked { color: #d8799d; }.like-icon { font-size: 15px; line-height: 1; }.private-card .photo-cover { filter: saturate(.8); }.private-card .photo-cover::before { content: ""; position: absolute; z-index: 2; inset: 0; background: rgba(42,38,80,.12); }.private-card .cover-overlay-title { opacity: 1; transform: none; }.load-more-button { display: block; margin: 28px auto 0; padding: 9px 18px; color: var(--violet-dark); background: transparent; border: 1px solid #d8d4ef; border-radius: 8px; font-size: 11px; font-weight: 700; }.load-more-button:hover { color: white; background: var(--violet); border-color: var(--violet); }
.empty-state { padding: 60px 20px; text-align: center; }.empty-icon { color: #b9b1e5; font-size: 34px; }.empty-state h3 { margin: 10px 0 4px; font-size: 16px; }.empty-state p { margin: 0 0 18px; color: var(--ink-soft); font-size: 11px; }.small-button { min-height: 35px; font-size: 11px; }
.toast-region { position: fixed; z-index: 80; right: 22px; bottom: 22px; display: grid; gap: 8px; width: min(300px, calc(100% - 44px)); pointer-events: none; }.toast { display: flex; align-items: center; gap: 9px; padding: 11px 13px; color: #5e5873; background: rgba(255,255,255,.96); border: 1px solid #e5e1f2; border-radius: 9px; box-shadow: 0 13px 35px rgba(43,35,89,.16); font-size: 11px; opacity: 0; transform: translateY(8px); transition: .25s ease; }.toast.show { opacity: 1; transform: translateY(0); }.toast > span { display: grid; place-items: center; width: 19px; height: 19px; color: white; background: var(--violet); border-radius: 50%; font-size: 11px; font-weight: 800; }.toast.success > span { background: #7eb7a5; }.toast.error > span { background: #d27e9b; }.dark .toast { color: var(--ink); background: var(--surface); border-color: var(--line); }
.community-note { display: flex; align-items: center; gap: 15px; margin: 66px 0 18px; padding: 21px 24px; background: linear-gradient(110deg,#eeeaff,#f8edf2); border: 1px solid #ebe5f7; border-radius: 13px; }.community-note-symbol { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; color: #927fc5; background: white; border-radius: 50%; font-size: 18px; }.community-note > div:nth-child(2) { display: grid; flex: 1; gap: 1px; }.community-note strong { color: #5c5477; font-size: 12px; }.community-note span { color: #9590a5; font-size: 10px; }.community-note .text-button { margin-right: 8px; font-size: 11px; }.site-footer { display: flex; justify-content: space-between; width: 87%; margin: 0 auto; padding: 17px 0 27px; color: #aaa7b8; font-size: 10px; }.site-footer span:last-child { color: #d1a75d; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(29,25,56,.46); backdrop-filter: blur(8px); }.modal-backdrop[hidden] { display: none; }.modal { position: relative; width: min(600px, 100%); max-height: min(820px, 94vh); overflow: auto; padding: 31px 33px 28px; background: #fff; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; box-shadow: 0 28px 70px rgba(27,21,65,.26); }.modal-close { position: absolute; top: 16px; right: 19px; width: 29px; height: 29px; color: #9b98aa; background: transparent; border-radius: 50%; font-size: 24px; line-height: 1; }.modal-close:hover { color: var(--violet-dark); background: var(--violet-soft); }.modal h2 { margin: 9px 0 4px; color: var(--ink); font-size: 25px; letter-spacing: -.05em; }.modal-lead { margin: 0 0 22px; color: var(--ink-soft); font-size: 11px; }.drop-zone { position: relative; display: grid; place-items: center; gap: 4px; min-height: 154px; padding: 22px; background: #faf9ff; border: 1.5px dashed #c8c2e9; border-radius: 12px; text-align: center; transition: .2s; }.drop-zone.dragging, .drop-zone:hover { background: #f3f1ff; border-color: var(--violet); }.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }.drop-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 3px; color: var(--violet); background: var(--violet-soft); border-radius: 50%; font-size: 21px; }.drop-zone strong { color: #5c5477; font-size: 12px; }.drop-zone > span { color: #a6a2b5; font-size: 10px; }.browse-button { position: relative; z-index: 2; margin-top: 6px; padding: 5px 12px; color: var(--violet-dark); background: white; border: 1px solid #d9d4f2; border-radius: 6px; font-size: 10px; font-weight: 700; }.selected-files { display: grid; gap: 6px; margin-top: 9px; }.selected-file { display: flex; align-items: center; gap: 8px; padding: 7px 9px; color: #706b84; background: #faf9fd; border-radius: 7px; font-size: 10px; }.selected-file-icon { display: grid; place-items: center; width: 25px; height: 25px; color: var(--violet); background: #edebff; border-radius: 6px; font-size: 13px; }.selected-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.remove-file { color: #aaa5b7; background: transparent; font-size: 16px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 13px; margin-top: 20px; }.form-field { display: grid; gap: 6px; color: #69647b; font-size: 10px; font-weight: 700; }.form-field-wide { grid-column: 1 / -1; }.form-field small { color: #aaa7b5; font-size: 9px; font-weight: 400; }.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 9px 10px; color: var(--ink); background: #fbfaff; border: 1px solid #e5e2ef; border-radius: 7px; outline: 0; font-size: 11px; resize: vertical; }.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #aaa2df; box-shadow: 0 0 0 3px #efedff; }.visibility-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; padding: 14px; background: #faf9fd; border-radius: 10px; }.visibility-picker > div { grid-column: 1 / -1; display: grid; gap: 1px; margin-bottom: 3px; }.field-label { color: #69647b; font-size: 11px; font-weight: 700; }.visibility-picker > div small { color: #aaa7b5; font-size: 9px; }.visibility-option { display: flex; align-items: center; gap: 8px; padding: 9px; background: #fff; border: 1px solid #eceaf4; border-radius: 7px; cursor: pointer; }.visibility-option.selected { background: #f3f1ff; border-color: #c9c2f2; }.visibility-option input { position: absolute; opacity: 0; }.visibility-icon { color: #9a91ce; font-size: 21px; }.visibility-option span:last-child { display: grid; gap: 0; }.visibility-option strong { color: #5d5775; font-size: 10px; }.visibility-option small { color: #a6a2b2; font-size: 9px; }.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 19px; margin-top: 23px; }.modal-actions .text-button { color: #9994a6; font-size: 11px; }.auth-modal { width: min(400px,100%); padding: 36px 38px 30px; text-align: center; }.auth-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 13px; color: #ad9adf; background: #f0edff; border-radius: 50%; font-size: 23px; }.auth-modal .form-field { margin-top: 16px; text-align: left; }.full-button { width: 100%; margin-top: 21px; }.auth-hint { margin: 17px 0 0; color: #aaa7b5; font-size: 9px; }

.detail-modal { width: min(790px,100%); padding: 19px; }.detail-content { display: grid; grid-template-columns: 1.15fr .85fr; gap: 25px; }.detail-visual { position: relative; min-height: 390px; overflow: hidden; background: #eeeafa; border-radius: 11px; }.detail-visual img { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; }.detail-file { display: grid; place-items: center; height: 100%; min-height: 390px; background: linear-gradient(135deg,#e7e3fa,#f7e8ee); }.detail-file .file-art { width: 100px; height: 100px; font-size: 36px; }.detail-info { display: flex; flex-direction: column; min-width: 0; padding: 10px 9px 4px 0; }.detail-category { color: #968ebd; font: 700 9px "DM Sans", sans-serif; letter-spacing: .12em; }.detail-info h2 { margin: 7px 0 5px; font-size: 22px; letter-spacing: -.04em; line-height: 1.35; }.detail-description { margin: 0; color: #888398; font-size: 11px; line-height: 1.8; }.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 15px 0; }.detail-tag { padding: 3px 7px; color: #8c84b7; background: #f2f0ff; border-radius: 4px; font-size: 9px; }.detail-author { display: flex; align-items: center; gap: 8px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.detail-author .avatar { width: 30px; height: 30px; font-size: 11px; }.detail-author-copy { display: grid; line-height: 1.3; }.detail-author-copy strong { font-size: 11px; }.detail-author-copy small { color: var(--muted); font-size: 9px; }.detail-engagement { display: flex; align-items: center; gap: 16px; padding: 14px 0 10px; }.engagement-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; color: #9691a5; background: transparent; font-size: 11px; }.engagement-button:hover, .engagement-button.liked { color: #d6759b; }.engagement-button span { font-size: 17px; }.comment-title { margin: 5px 0 8px; color: #6d687e; font-size: 10px; font-weight: 700; }.comments-list { display: grid; gap: 7px; max-height: 160px; overflow-y: auto; padding-right: 3px; }.comment-item { position: relative; display: flex; gap: 7px; padding: 7px; background: #faf9fd; border-radius: 7px; }.comment-item .avatar { flex: 0 0 22px; width: 22px; height: 22px; font-size: 8px; }.comment-copy { min-width: 0; padding-right: 15px; }.comment-copy strong { display: block; color: #68627b; font-size: 9px; }.comment-copy p { margin: 1px 0 0; color: #888398; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }.comment-copy time { color: #b0adba; font-size: 8px; }.delete-comment { position: absolute; top: 5px; right: 6px; color: #aaa5b6; background: transparent; font-size: 13px; }.comment-form { display: flex; gap: 6px; margin-top: 9px; }.comment-form input { min-width: 0; flex: 1; padding: 8px 9px; color: var(--ink); background: #fbfaff; border: 1px solid #e5e2ef; border-radius: 7px; outline: 0; font-size: 10px; }.comment-form button { width: 31px; color: white; background: var(--violet); border-radius: 7px; font-size: 16px; }.private-message { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 11px; color: #8d869d; background: #faf9fd; border-radius: 8px; font-size: 10px; }.private-message strong { color: #6b6387; }.delete-photo-button { margin-top: auto; padding: 8px 0; color: #c17b93; background: transparent; font-size: 10px; text-align: left; }.delete-photo-button:hover { color: #a24b6e; text-decoration: underline; }.no-comments { margin: 8px 0; color: #aaa6b6; font-size: 10px; }

body.dark { --bg:#17162a; --surface:#24213b; --surface-soft:#211e35; --surface-strong:#2b2746; --ink:#f3f0ff; --ink-soft:#b2acc8; --muted:#85809d; --line:#38334f; --violet-soft:#302b58; --shadow:0 20px 60px rgba(0,0,0,.2); }.dark .sidebar, .dark .topbar { background: rgba(29,27,48,.82); border-color: #332e4a; }.dark .hero-panel { border-color: #393355; }.dark .stat-card, .dark .photo-card, .dark .modal, .dark .user-popover { background: var(--surface); border-color: var(--line); }.dark .stat-card-note, .dark .drop-zone, .dark .visibility-picker, .dark .comment-item, .dark .private-message, .dark .search-box { background: var(--surface-soft); }.dark .photo-body, .dark .detail-info h2, .dark .modal h2, .dark .stat-card strong, .dark .photo-title { color: var(--ink); }.dark .form-field input, .dark .form-field select, .dark .form-field textarea, .dark .comment-form input { color: var(--ink); background: #1f1c33; border-color: #403a59; }.dark .drop-zone { border-color: #595080; }.dark .community-note { background: linear-gradient(110deg,#292348,#38283c); border-color: #403857; }.dark .community-note strong { color: #d0c9e4; }.dark .account-option { color: var(--ink); }.dark .hero-copy h1 { color: #3d365d; }

@media (max-width: 1100px) { .sidebar { width: 220px; }.main-wrap { width: calc(100% - 220px); margin-left: 220px; }.main-content { width: 90%; }.hero-copy { padding-left: 38px; }.gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.stats-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) { .sidebar { position: fixed; bottom: 0; top: auto; width: 100%; height: 67px; padding: 8px 13px; flex-direction: row; align-items: center; border-top: 1px solid var(--line); border-right: 0; border-radius: 18px 18px 0 0; }.sidebar .brand, .sidebar-divider, .sidebar-label, .topic-list, .sidebar-spacer, .mini-note, .sidebar-footer { display: none; }.nav-list { display: flex; justify-content: space-around; width: 100%; gap: 6px; }.nav-item { flex: 1; justify-content: center; gap: 5px; padding: 9px 5px; font-size: 10px; }.nav-item.active { box-shadow: inset 0 3px 0 var(--violet); }.nav-ping { display: none; }.nav-icon { width: auto; font-size: 18px; }.main-wrap { width: 100%; margin-left: 0; padding-bottom: 65px; }.topbar { height: 65px; padding: 0 5%; justify-content: space-between; }.mobile-brand { display: flex; }.user-menu-copy, .chevron { display: none; }.user-menu { padding: 0; }.user-popover { top: 56px; right: 5%; }.main-content { width: 90%; padding-top: 26px; }.hero-panel { min-height: 480px; }.hero-copy { width: 100%; padding: 32px 28px; }.hero-copy h1 { font-size: 32px; }.hero-copy p { font-size: 11px; }.desktop-break { display: none; }.hero-art { top: auto; left: 0; height: 180px; }.moon { top: 22px; right: 27%; width: 70px; height: 70px; border-width: 9px; }.hero-mountain { border-left-width: 130px; border-right-width: 130px; border-bottom-width: 135px; }.hero-tree { bottom: 38px; transform: scale(.78); }.tree-one { right: 9%; }.tree-two { right: 47%; transform: scale(.5); }.hero-lantern { right: 32%; bottom: 29px; transform: scale(.75); }.hero-art-caption { right: 14px; bottom: 10px; font-size: 9px; }.stats-row { gap: 9px; }.stat-card { min-height: 65px; padding: 11px; gap: 8px; }.stat-card strong { font-size: 17px; }.stat-card span:not(.stat-icon) { font-size: 9px; }.stat-card-note { display: none; }.section-heading { align-items: flex-start; }.section-heading h2 { font-size: 19px; }.outline-button { padding: 0 10px; font-size: 10px; }.toolbar { display: grid; gap: 11px; margin-top: 19px; }.search-box { width: 100%; }.sort-wrap { justify-content: flex-end; }.gallery-grid { grid-template-columns: 1fr; gap: 15px; }.photo-cover { aspect-ratio: 1.6; }.community-note { align-items: flex-start; padding: 16px; }.community-note .text-button { display: none; }.site-footer { width: 90%; padding-bottom: 15px; }.site-footer span:nth-child(2) { display: none; }.modal { padding: 27px 20px 22px; }.detail-content { grid-template-columns: 1fr; gap: 14px; }.detail-visual, .detail-visual img, .detail-file { min-height: 260px; max-height: 360px; }.detail-info { padding: 0 3px; }.form-grid { grid-template-columns: 1fr; }.form-field-wide { grid-column: auto; }.visibility-picker { grid-template-columns: 1fr; }.visibility-picker > div { grid-column: auto; }.auth-modal { padding: 31px 24px 25px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Korean official-community inspired skin: restrained portal chrome, paper background, and image-first board. */
:root {
  --bg: #f2f0e8;
  --surface: #fffefa;
  --surface-soft: #f8f6ef;
  --surface-strong: #ece9de;
  --ink: #293831;
  --ink-soft: #6d766e;
  --muted: #9da39a;
  --line: #dfded4;
  --violet: #657c6d;
  --violet-dark: #334e40;
  --violet-soft: #e9eee8;
  --pink: #c78c89;
  --gold: #b99a59;
  --mint: #8eb4a1;
  --shadow: 0 12px 30px rgba(53, 59, 45, .06);
  --shadow-card: 0 8px 17px rgba(53, 59, 45, .1);
}

body { background: var(--bg); color: var(--ink); }
.ambient { display: none; }
.app-shell { display: block; min-height: 100vh; }
.sidebar { top: 0; left: 0; width: 100%; height: 72px; padding: 0 max(4%, calc((100vw - 1220px) / 2)); flex-direction: row; align-items: center; background: #273c34; border-right: 0; border-bottom: 3px solid #b89b5e; box-shadow: 0 2px 11px rgba(39, 60, 52, .12); backdrop-filter: none; }
.brand { padding: 0; }.brand-name { color: #fffdf4; font-size: 15px; letter-spacing: .05em; }.brand-subtitle { color: #c8b885; letter-spacing: .15em; }.brand-orb { background: linear-gradient(135deg, #e2c77b, #9a8752 58%, #5d5337); box-shadow: 0 2px 8px rgba(0,0,0,.2), inset 3px 2px 5px rgba(255,255,255,.55); }.spark-one { color: #e5c878; }.spark-two { background: #9ebaa7; }
.sidebar-divider, .sidebar-label, .topic-list, .sidebar-spacer, .mini-note, .sidebar-footer { display: none; }
.nav-list { display: flex; align-items: stretch; gap: 2px; height: 100%; margin-left: 55px; }.nav-item { align-items: center; gap: 8px; height: 100%; padding: 0 19px; color: #bac8be; border-radius: 0; font-size: 12px; }.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }.nav-item.active { color: #fffdf1; background: rgba(255,255,255,.08); box-shadow: inset 0 -3px 0 #d1b46d; }.nav-icon { color: #99ad9e; font-size: 17px; }.nav-item.active .nav-icon { color: #dfc575; }.nav-ping { display: none; }
.main-wrap { width: 100%; margin-left: 0; }.topbar { height: 45px; margin-top: 72px; padding: 0 max(4%, calc((100vw - 1220px) / 2)); background: #e9e7dd; border-bottom: 1px solid #d8d8ce; backdrop-filter: none; }.portal-links { display: flex; align-items: center; gap: 23px; margin-right: auto; }.portal-links a { color: #858c83; text-decoration: none; font-size: 10px; }.portal-links a:hover, .portal-links a.active { color: #3c5848; font-weight: 800; }.portal-links a.active::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 6px 2px 0; border-radius: 50%; background: #b99a59; }.topbar-actions { gap: 14px; }.icon-button { color: #7e887e; }.icon-button:hover { color: #334e40; background: rgba(255,255,255,.75); }.user-menu { color: #4c5c51; }.user-menu:hover { background: rgba(255,255,255,.72); }.user-menu-copy strong { font-size: 11px; }.user-menu-copy small { color: #9ca29a; }
.main-content { width: min(1180px, 92%); padding: 31px 0 27px; }.hero-panel { min-height: 210px; border: 1px solid #d9d8cf; border-left: 5px solid #b99a59; border-radius: 2px; background: #fdfcf6; box-shadow: 0 7px 20px rgba(64,65,46,.05); }.hero-copy { width: 62%; padding: 32px 0 30px 38px; }.eyebrow { color: #9d977c; font-size: 9px; }.eyebrow-line { background: #b99a59; }.hero-copy h1 { margin: 14px 0 10px; color: #33483c; font-family: Georgia, "Noto Serif TC", serif; font-size: 31px; letter-spacing: -.03em; line-height: 1.18; }.hero-copy h1 em { color: #967b42; }.hero-copy p { color: #7f897f; font-size: 11px; line-height: 1.9; }.hero-actions { margin-top: 17px; }.primary-button { min-height: 35px; padding: 0 15px; color: #fffdf4; background: #496956; border-radius: 2px; box-shadow: 0 4px 10px rgba(56,86,66,.15); font-size: 11px; }.primary-button:hover { background: #304e3d; }.text-button { color: #65795e; font-size: 11px; }.hero-art { left: auto; right: 0; width: 41%; background: linear-gradient(145deg,#e1e7dc 0%,#cad5c7 54%,#a7b9a8 100%); opacity: .86; }.hero-art-caption { color: rgba(52,76,60,.72); }.stats-row { gap: 0; margin-top: 21px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,254,250,.36); }.stat-card { min-height: 60px; padding: 11px 23px; background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; }.stat-card:last-child { border-right: 0; }.stat-icon { width: 27px; height: 27px; background: transparent; color: #ab8c4d; font-size: 18px; }.stat-card strong { color: #435648; font-size: 17px; }.stat-card span:not(.stat-icon) { color: #969d94; font-size: 9px; }.stat-card-note { background: transparent; }.stat-note-mark { color: #b99a59; font-size: 18px; }
.gallery-section { padding-top: 38px; }.section-heading { align-items: center; padding-bottom: 17px; border-bottom: 2px solid #3e5948; }.section-kicker { color: #a29468; font-size: 9px; }.section-heading h2 { margin-top: 6px; color: #33483c; font-family: Georgia, "Noto Serif TC", serif; font-size: 23px; }.heading-spark { color: #b99a59; }.outline-button { min-height: 33px; padding: 0 13px; color: #526b59; border-color: #b9c3b6; border-radius: 2px; font-size: 10px; }.outline-button:hover { color: #fff; background: #496956; border-color: #496956; }
.toolbar { padding: 14px 0 12px; margin-top: 0; border-bottom: 1px solid var(--line); }.search-box { width: min(330px,100%); height: 32px; background: #fffefa; border-color: #d9dbd2; border-radius: 2px; }.search-box input { font-size: 10px; }.search-box kbd { background: #f1f0e8; border-color: #ddddd2; }.sort-wrap select { color: #637064; font-size: 10px; }
.filter-row { gap: 0; margin: 0 0 20px; border-bottom: 1px solid var(--line); }.filter-chip { padding: 9px 18px; color: #9a9f97; border-radius: 0; border-bottom: 2px solid transparent; font-size: 10px; }.filter-chip:hover { color: #4a6754; background: transparent; }.filter-chip.active { color: #3c5947; background: transparent; border-color: transparent; border-bottom-color: #b99a59; }
.gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 15px; }.photo-card { background: #fffefa; border: 1px solid #dfe0d7; border-radius: 2px; box-shadow: 0 2px 5px rgba(50,59,44,.035); }.photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }.photo-cover { aspect-ratio: 1.42; border-bottom: 1px solid #e1e2d9; }.photo-body { padding: 11px 11px 9px; }.photo-title { color: #405647; font-size: 11px; }.photo-description { margin: 3px 0 8px; color: #999f96; font-size: 9px; }.photo-meta { padding-top: 8px; border-top-color: #ecece5; }.author-name { color: #818a80; font-size: 9px; }.photo-stats { gap: 8px; color: #9da39b; font-size: 9px; }.category-badge { padding: 3px 7px; color: #fffdf3; background: rgba(43,64,51,.62); border-radius: 2px; font-size: 8px; }.private-badge { border-radius: 2px; font-size: 8px; }.load-more-button { border-radius: 2px; color: #58705d; border-color: #bcc6b9; }.community-note { margin: 51px 0 18px; border-radius: 2px; background: #ebece2; border-color: #d8dcd0; }.site-footer { width: min(1180px,92%); color: #9ca49b; }
.modal { border-radius: 2px; border-color: #d9d9cf; }.drop-zone, .form-field input, .form-field select, .form-field textarea, .comment-form input { border-radius: 2px; }.drop-zone { background: #faf9f1; }.visibility-option { border-radius: 2px; }.modal .primary-button { border-radius: 2px; }

@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px) {
  .sidebar { position: fixed; top: auto; bottom: 0; width: 100%; height: 62px; padding: 7px 10px; border-top: 2px solid #b99a59; border-bottom: 0; border-radius: 0; }
  .sidebar .brand { display: none; }.nav-list { display: flex; width: 100%; height: 100%; margin-left: 0; }.nav-item { justify-content: center; height: 100%; padding: 0 5px; color: #aebdb1; font-size: 9px; }.nav-item.active { box-shadow: inset 0 3px 0 #d1b46d; }.nav-icon { font-size: 16px; }
  .topbar { margin-top: 0; height: 58px; padding: 0 5%; }.portal-links { display: none; }.main-content { width: 91%; padding-top: 23px; }.hero-panel { min-height: 400px; }.hero-copy { width: 100%; padding: 29px 23px; }.hero-copy h1 { font-size: 29px; }.hero-art { left: 0; bottom: 0; width: 100%; height: 158px; }.stats-row { grid-template-columns: repeat(3,1fr); }.stat-card { padding: 8px 9px; }.stat-card:nth-child(3) { border-right: 0; }.stat-card-note { display: none; }.section-heading { align-items: flex-start; }.section-heading h2 { font-size: 20px; }.gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 10px; }.photo-cover { aspect-ratio: 1.2; }.photo-body { padding: 9px 8px 8px; }.photo-description { display: none; }.photo-meta { margin-top: 7px; }.author-name { max-width: 62px; }.community-note { margin-top: 42px; }.site-footer { width: 91%; }.site-footer span:nth-child(2) { display: none; }
}

.auth-tabs { display: flex; gap: 0; margin: 20px 0 4px; border-bottom: 1px solid var(--line); }.auth-tab { flex: 1; padding: 9px; color: #9a9f97; background: transparent; border-bottom: 2px solid transparent; font-size: 11px; font-weight: 700; }.auth-tab:hover { color: #4a6754; }.auth-tab.active { color: #3c5947; border-bottom-color: #b99a59; }.auth-modal .form-field { margin-top: 14px; }.auth-summary { display: flex; align-items: center; gap: 9px; padding: 9px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 3px; }.auth-summary > span:last-child { display: grid; gap: 0; line-height: 1.3; }.auth-summary strong { color: var(--ink); font-size: 11px; }.auth-summary small { color: var(--muted); font-size: 9px; }.auth-summary .avatar { width: 28px; height: 28px; font-size: 10px; }.auth-summary-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #fffdf4; background: #b99a59; border-radius: 50%; font-size: 17px; }.logout-button { width: 100%; margin-top: 7px; padding: 8px; color: #9a6d6b; background: transparent; border: 1px solid #dfc9c5; border-radius: 2px; font-size: 10px; }.logout-button:hover { color: #fff; background: #a9716d; border-color: #a9716d; }.auth-switch-copy { margin: 16px 0 0; color: #9a9f97; font-size: 10px; }.auth-switch-copy button { padding: 0; color: #58705d; background: transparent; font-weight: 800; text-decoration: underline; }.dark .auth-tabs { border-color: var(--line); }.dark .auth-summary { background: var(--surface-soft); border-color: var(--line); }.dark .auth-summary strong { color: var(--ink); }
#auth-confirm-field[hidden], #auth-confirm-field.auth-field-hidden, #auth-nickname-field[hidden], #auth-nickname-field.auth-field-hidden { display: none !important; }
.author-button { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 0; color: inherit; background: transparent; border: 0; text-align: left; }.author-button:hover .author-name { color: #486a53; text-decoration: underline; }.photo-meta .author-button { flex: 1; }
.profile-panel { margin-bottom: 24px; border: 1px solid #d8d9cf; border-top: 3px solid #b99a59; background: #fffefa; box-shadow: 0 5px 15px rgba(53,59,45,.05); }.profile-back-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; border-bottom: 1px solid #e1e1d8; background: #f6f5ed; }.back-button { padding: 0; color: #607565; background: transparent; font-size: 10px; font-weight: 700; }.back-button:hover { color: #334e40; }.profile-kicker { color: #a29468; font: 700 9px "DM Sans", sans-serif; letter-spacing: .14em; }.profile-header { display: flex; align-items: center; gap: 17px; padding: 23px 25px 25px; }.profile-avatar { flex: 0 0 68px; width: 68px; height: 68px; border: 3px solid #fffefa; font-size: 22px; box-shadow: 0 0 0 1px #cfcfc3; }.profile-header-copy { min-width: 0; flex: 1; }.profile-account { color: #a29468; font: 700 9px "DM Sans", sans-serif; letter-spacing: .08em; }.profile-header-copy h2 { margin: 3px 0 3px; color: #33483c; font-family: Georgia, "Noto Serif TC", serif; font-size: 24px; line-height: 1.25; }.profile-header-copy p { margin: 0; color: #89938a; font-size: 10px; }.profile-stats { display: flex; gap: 0; }.profile-stats div { min-width: 78px; padding: 0 15px; border-left: 1px solid #e3e3da; text-align: center; }.profile-stats strong, .profile-stats span { display: block; }.profile-stats strong { color: #45604d; font: 700 18px/1.2 "DM Sans", sans-serif; }.profile-stats span { margin-top: 3px; color: #9aa198; font-size: 9px; }
@media (max-width: 760px) { .profile-header { align-items: flex-start; flex-wrap: wrap; padding: 18px 16px; }.profile-avatar { flex-basis: 54px; width: 54px; height: 54px; font-size: 18px; }.profile-header-copy { width: calc(100% - 75px); }.profile-header-copy h2 { font-size: 20px; }.profile-stats { width: 100%; margin-top: 12px; border-top: 1px solid #e3e3da; padding-top: 12px; }.profile-stats div { flex: 1; min-width: 0; padding: 0 7px; }.profile-stats div:first-child { border-left: 0; } }

/* Warm editorial landing-page direction inspired by the supplied reference site. */
:root { --bg: #fbfaf6; --surface: #ffffff; --surface-soft: #f5f1e8; --surface-strong: #eee8dc; --ink: #28312d; --ink-soft: #737c74; --muted: #a5aaa2; --line: #e8e5dd; --violet: #5d7468; --violet-dark: #2c443a; --violet-soft: #e8eee9; --gold: #bf9852; --shadow: 0 18px 50px rgba(67,67,53,.08); --shadow-card: 0 15px 32px rgba(67,67,53,.12); }
body { background: var(--bg); font-family: "Noto Sans TC", "DM Sans", sans-serif; }
.sidebar { height: 78px; padding: 0 max(5%, calc((100vw - 1240px) / 2)); background: rgba(255,255,255,.92); border-bottom: 1px solid #eeeae1; box-shadow: 0 3px 20px rgba(59,61,47,.04); }
.brand-name { color: #27332d; font-size: 16px; letter-spacing: .04em; }.brand-subtitle { color: #b39a6a; font-size: 8px; letter-spacing: .13em; }.brand-orb { background: linear-gradient(135deg,#f2cf91,#d69c64 58%,#a9715b); box-shadow: 0 4px 10px rgba(191,133,86,.18), inset 3px 2px 5px rgba(255,255,255,.65); }.spark-one { color: #d2a866; }.spark-two { background: #a8c6b2; }
.nav-list { margin-left: auto; gap: 3px; }.nav-item { padding: 0 16px; color: #929b93; border-radius: 24px; font-size: 11px; }.nav-item:hover { color: #3f6150; background: #f0f4ee; }.nav-item.active { color: #2f5040; background: #edf3ee; box-shadow: none; }.nav-icon, .nav-item.active .nav-icon { color: #b7965d; font-size: 16px; }
.main-wrap { width: 100%; }.topbar { height: 48px; margin-top: 78px; padding: 0 max(5%, calc((100vw - 1240px) / 2)); background: transparent; border-bottom: 0; }.portal-links { gap: 19px; }.portal-links a { color: #9aa19a; font-size: 9px; }.portal-links a:hover, .portal-links a.active { color: #557260; }.portal-links a.active::before { background: #d1a760; }.icon-button { color: #8f978e; }.user-menu { color: #46544c; }
.main-content { width: min(1180px, 90%); padding: 28px 0 45px; }.hero-panel { position: relative; min-height: 470px; overflow: hidden; border: 0; border-radius: 28px; background: #f3efe5; box-shadow: none; }.hero-panel::before { content: ""; position: absolute; width: 380px; height: 380px; top: -190px; left: 38%; border-radius: 50%; background: #e9d8bd; opacity: .55; }.hero-panel::after { content: ""; position: absolute; width: 180px; height: 180px; right: 28%; bottom: -95px; border-radius: 50%; background: #d5e1d4; opacity: .7; }.hero-copy { width: 58%; padding: 76px 0 60px 67px; }.eyebrow { position: relative; z-index: 2; color: #ad8d5b; font-size: 9px; letter-spacing: .17em; }.eyebrow-line { width: 30px; background: #d3ab68; }.hero-copy h1 { position: relative; z-index: 2; margin: 24px 0 18px; color: #2f4438; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(38px, 5vw, 61px); font-weight: 700; letter-spacing: -.065em; line-height: 1.14; }.hero-copy h1 em { color: #b37763; }.hero-copy p { position: relative; z-index: 2; color: #7e887d; font-size: 12px; line-height: 2; }.hero-actions { position: relative; z-index: 2; margin-top: 30px; }.primary-button { min-height: 44px; padding: 0 21px; color: #fffdf7; background: #3c594b; border-radius: 25px; box-shadow: 0 9px 17px rgba(53,82,68,.17); font-size: 11px; }.primary-button:hover { background: #253e32; }.text-button { color: #647e6b; font-size: 11px; }
.hero-art { z-index: 1; left: auto; right: -4%; width: 50%; background: linear-gradient(155deg,#d9e2d6,#b7c9b9 60%,#8ea991); border-radius: 48% 0 0 48%; opacity: .96; }.hero-art::before { background: rgba(255,255,255,.25); }.hero-art-caption { right: 30px; bottom: 26px; color: rgba(41,71,53,.68); font-size: 10px; }.moon { border-color: rgba(255,250,219,.72); border-left-color: transparent; border-bottom-color: transparent; }.hero-star { color: rgba(255,255,255,.85); }.hero-mountain { border-bottom-color: #829f89; }.mountain-back { border-bottom-color: #a9bda9; }.mountain-front { border-bottom-color: #75947d; }.hero-tree::before, .hero-tree::after, .hero-tree i { background: #5d7c66; }.hero-tree b { background: #526955; }
.stats-row { gap: 13px; margin-top: 19px; border: 0; background: transparent; }.stat-card { min-height: 78px; padding: 16px 19px; background: #fff; border: 1px solid #eeeae2; border-radius: 15px; box-shadow: 0 5px 15px rgba(67,67,53,.035); }.stat-card:last-child { border-right: 1px solid #eeeae2; }.stat-icon { color: #b8955a; }.stat-card strong { color: #3b5144; font-size: 19px; }.stat-card span:not(.stat-icon) { color: #9ba29a; font-size: 10px; }.stat-card-note { background: #f5eee1; border-color: #eee1c9; }.stat-note-mark { color: #bc8f4f; }
.profile-panel { overflow: hidden; border: 0; border-top: 0; border-radius: 24px; box-shadow: var(--shadow); }.profile-back-row { padding: 14px 23px; background: #f2ede3; border-bottom: 1px solid #e9e2d7; }.profile-header { padding: 31px 30px 34px; background: #fff; }.profile-avatar { border-color: #fff; }.profile-header-copy h2 { color: #334c3e; font-size: 28px; }.profile-header-copy p { font-size: 11px; }.profile-stats div { border-color: #eeeae1; }
.gallery-section { padding-top: 80px; }.section-heading { padding-bottom: 20px; border-bottom: 0; }.section-kicker { color: #b19566; letter-spacing: .18em; }.section-heading h2 { margin-top: 9px; color: #30463a; font-size: 32px; }.heading-spark { color: #d0a760; }.outline-button { min-height: 40px; padding: 0 18px; border-radius: 22px; color: #486653; border-color: #b9cabd; font-size: 10px; }.toolbar { padding: 18px 0 13px; border-bottom: 1px solid #e9e6df; }.search-box { height: 38px; background: #fff; border-color: #e8e6df; border-radius: 20px; }.filter-row { margin: 9px 0 28px; border-bottom: 0; }.filter-chip { padding: 8px 16px; border: 0; border-radius: 20px; }.filter-chip.active { color: #3d604c; background: #e8f0e8; border: 0; }.gallery-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 27px 20px; }.photo-card { overflow: hidden; background: #fff; border: 0; border-radius: 17px; box-shadow: 0 4px 15px rgba(67,67,53,.05); }.photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }.photo-cover { aspect-ratio: 1.38; border-bottom: 0; }.photo-body { padding: 14px 15px 13px; }.photo-title { color: #354d40; font-size: 12px; }.photo-description { color: #9aa29a; font-size: 10px; }.photo-meta { border-top-color: #f0eee9; }.author-button:hover .author-name { color: #b37864; }.category-badge { padding: 5px 9px; border-radius: 12px; background: rgba(44,69,55,.58); }.private-badge { padding: 5px 9px; border-radius: 12px; }.community-note { margin-top: 77px; padding: 28px 30px; border: 0; border-radius: 24px; background: #f1e6d4; }.community-note-symbol { background: #fffaf0; }.site-footer { padding-top: 28px; }
.modal { border-radius: 22px; }.drop-zone, .form-field input, .form-field select, .form-field textarea, .comment-form input { border-radius: 10px; }.modal .primary-button { border-radius: 22px; }
@media (max-width: 760px) { .sidebar { position: fixed; top: 0; bottom: auto; height: 65px; padding: 0 5%; border-top: 0; border-bottom: 1px solid #eeeae1; border-radius: 0; }.sidebar .brand { display: flex; }.nav-list { display: flex; margin-left: auto; }.nav-item { padding: 0 6px; font-size: 0; }.nav-item .nav-icon { font-size: 17px; }.topbar { margin-top: 65px; height: 38px; padding: 0 5%; }.user-menu-copy, .chevron { display: none; }.main-content { width: 91%; padding-top: 18px; }.hero-panel { min-height: 540px; border-radius: 24px; }.hero-copy { width: 100%; padding: 47px 26px 36px; }.hero-copy h1 { font-size: 38px; }.hero-copy p { font-size: 11px; }.hero-art { left: 0; right: 0; bottom: 0; width: 100%; height: 205px; border-radius: 50% 50% 0 0; }.hero-art-caption { right: 16px; bottom: 13px; }.stats-row { grid-template-columns: repeat(3,1fr); gap: 7px; }.stat-card { min-height: 68px; padding: 10px 8px; border-radius: 12px; }.stat-card strong { font-size: 16px; }.stat-card-note { display: none; }.gallery-section { padding-top: 56px; }.section-heading h2 { font-size: 27px; }.outline-button { padding: 0 12px; }.gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 10px; }.photo-card { border-radius: 13px; }.photo-cover { aspect-ratio: 1.16; }.photo-body { padding: 10px 9px 9px; }.photo-description { display: none; }.community-note { margin-top: 55px; padding: 20px; border-radius: 19px; }.profile-header { padding: 24px 20px 25px; } }

.visibility-toggle-button { width: 100%; margin-top: 16px; padding: 10px 12px; color: #496a54; background: #edf4eb; border: 1px solid #c9dbc8; border-radius: 9px; font-size: 12px; font-weight: 700; }.visibility-toggle-button:hover { color: #fff; background: #496a54; border-color: #496a54; }.delete-photo-button { font-size: 12px; }
.quick-visibility-button { display: inline-flex; align-items: center; margin-left: 7px; padding: 5px 8px; color: #5e7765; background: #eef4ec; border: 1px solid #d1e0d0; border-radius: 9px; font-size: 10px; font-weight: 700; white-space: nowrap; }.quick-visibility-button:hover { color: #fff; background: #496a54; border-color: #496a54; }
body { font-size: 15px; }.portal-links a { font-size: 11px; }.nav-item { font-size: 13px; }.user-menu-copy strong { font-size: 13px; }.user-menu-copy small { font-size: 11px; }.hero-copy p { font-size: 14px; }.eyebrow, .section-kicker, .modal-kicker, .profile-kicker { font-size: 11px; }.section-heading h2 { font-size: 35px; }.search-box input, .sort-wrap, .sort-wrap select { font-size: 12px; }.filter-chip { font-size: 12px; }.photo-title { font-size: 14px; }.photo-description { font-size: 12px; }.author-name, .photo-stats { font-size: 11px; }.category-badge, .private-badge { font-size: 10px; }.stat-card strong { font-size: 21px; }.stat-card span:not(.stat-icon) { font-size: 11px; }.profile-header-copy h2 { font-size: 31px; }.profile-header-copy p { font-size: 13px; }.profile-stats strong { font-size: 20px; }.profile-stats span { font-size: 11px; }.modal-lead, .form-field, .visibility-option strong, .comment-title { font-size: 13px; }.form-field input, .form-field select, .form-field textarea, .comment-form input { font-size: 13px; }.comment-copy strong { font-size: 11px; }.comment-copy p { font-size: 12px; }.comment-form button { font-size: 18px; }.auth-switch-copy { font-size: 12px; }.auth-hint { font-size: 10px; }
@media (max-width: 760px) { .nav-item { font-size: 0; }.hero-copy p { font-size: 12px; }.section-heading h2 { font-size: 29px; }.photo-title { font-size: 13px; }.photo-description { font-size: 11px; }.author-name, .photo-stats { font-size: 10px; }.profile-header-copy h2 { font-size: 24px; }.profile-header-copy p { font-size: 12px; } }

/* Fashion editorial skin: monochrome structure, oversized type, and image-first composition. */
:root { --bg: #f6f5f1; --surface: #ffffff; --surface-soft: #eeece7; --surface-strong: #dfddd7; --ink: #171717; --ink-soft: #6d6b67; --muted: #999792; --line: #dedcd6; --violet: #171717; --violet-dark: #000000; --violet-soft: #e9e7e2; --gold: #d47b62; --shadow: 0 20px 45px rgba(20,20,20,.08); --shadow-card: 0 15px 30px rgba(20,20,20,.13); }
body { background: var(--bg); color: var(--ink); }
.sidebar { height: 74px; padding: 0 max(5%, calc((100vw - 1240px) / 2)); background: #161616; border-bottom: 0; box-shadow: none; }
.brand-name { color: #fff; font-family: Georgia, "Noto Serif TC", serif; font-size: 17px; font-weight: 700; letter-spacing: .02em; }.brand-subtitle { color: #a4a29d; font-size: 8px; letter-spacing: .16em; }.brand-orb { background: #e17c62; box-shadow: inset 2px 2px 4px rgba(255,255,255,.25); }.spark-one { color: #e9b29f; }.spark-two { background: #88847b; }
.nav-list { margin-left: auto; gap: 0; }.nav-item { padding: 0 16px; color: #aaa9a5; border-radius: 0; font-size: 12px; letter-spacing: .04em; }.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }.nav-item.active { color: #fff; background: transparent; box-shadow: inset 0 -2px 0 #e17c62; }.nav-icon, .nav-item.active .nav-icon { display: none; }
.topbar { height: 45px; margin-top: 74px; padding: 0 max(5%, calc((100vw - 1240px) / 2)); background: #f6f5f1; border-bottom: 1px solid #e4e2dd; }.portal-links { gap: 25px; }.portal-links a { color: #92908b; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }.portal-links a:hover, .portal-links a.active { color: #171717; }.portal-links a.active::before { width: 5px; height: 5px; background: #e17c62; }.icon-button { color: #6e6c68; }.user-menu { color: #272727; }
.main-content { width: min(1240px, 90%); padding: 32px 0 60px; }.hero-panel { min-height: 555px; border-radius: 0; background: #e7e4df; }.hero-panel::before { width: 240px; height: 240px; top: -100px; left: 44%; background: #d8c1b4; opacity: .6; }.hero-panel::after { width: 140px; height: 140px; right: 33%; bottom: -78px; background: #d2d4ce; }.hero-copy { width: 57%; padding: 92px 0 70px 77px; }.eyebrow { color: #8d6258; font-size: 10px; letter-spacing: .19em; }.eyebrow-line { width: 35px; height: 1px; background: #e17c62; }.hero-copy h1 { margin: 27px 0 22px; color: #171717; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(42px, 5.7vw, 72px); font-weight: 400; letter-spacing: -.07em; line-height: 1.06; }.hero-copy h1 em { color: #bd705c; font-style: italic; }.hero-copy p { color: #6c6a65; font-size: 13px; line-height: 2.05; }.hero-actions { margin-top: 35px; }.primary-button { min-height: 44px; padding: 0 24px; color: #fff; background: #171717; border-radius: 0; box-shadow: none; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }.primary-button:hover { background: #e17c62; }.text-button { color: #171717; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }.text-button span { font-size: 18px; }
.hero-art { right: 0; width: 48%; background: linear-gradient(155deg,#d4d8d1,#adb4aa 60%,#798578); border-radius: 0; filter: grayscale(.15) saturate(.75); }.hero-art::before { background: rgba(255,255,255,.12); }.hero-art-caption { right: 27px; bottom: 25px; color: rgba(25,25,25,.7); font-size: 10px; letter-spacing: .03em; }.moon { border-color: rgba(255,245,217,.7); border-left-color: transparent; border-bottom-color: transparent; }.hero-star { color: rgba(255,255,255,.85); }.hero-mountain { border-bottom-color: #69776e; }.mountain-back { border-bottom-color: #9ba89d; }.mountain-front { border-bottom-color: #5e7063; }.hero-tree::before, .hero-tree::after, .hero-tree i { background: #45584a; }.hero-tree b { background: #38473d; }
.stats-row { gap: 0; margin-top: 31px; border-top: 1px solid #c9c6c0; border-bottom: 1px solid #c9c6c0; background: transparent; }.stat-card { min-height: 73px; padding: 15px 24px; background: transparent; border: 0; border-right: 1px solid #d7d5cf; border-radius: 0; box-shadow: none; }.stat-card:last-child { border-right: 0; }.stat-icon { color: #e17c62; }.stat-card strong { color: #171717; font-family: Georgia, "Noto Serif TC", serif; font-size: 23px; font-weight: 400; }.stat-card span:not(.stat-icon) { color: #85827d; font-size: 11px; }.stat-card-note { background: transparent; }.stat-note-mark { color: #e17c62; }
.profile-panel { border-radius: 0; border: 1px solid #d9d6d0; border-top: 4px solid #171717; box-shadow: none; }.profile-back-row { padding: 14px 22px; background: #fff; border-bottom: 1px solid #e2e0db; }.back-button { color: #171717; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }.profile-header { padding: 36px 32px 38px; background: #fff; }.profile-header-copy h2 { color: #171717; font-family: Georgia, "Noto Serif TC", serif; font-size: 32px; font-weight: 400; }.profile-header-copy p { color: #77746f; font-size: 13px; }.profile-stats div { border-color: #dedbd5; }.profile-stats strong { color: #171717; font-family: Georgia, "Noto Serif TC", serif; font-weight: 400; }
.gallery-section { padding-top: 105px; }.section-heading { padding-bottom: 25px; border-bottom: 1px solid #171717; }.section-kicker { color: #9f6254; font-size: 10px; letter-spacing: .2em; }.section-heading h2 { margin-top: 13px; color: #171717; font-family: Georgia, "Noto Serif TC", serif; font-size: 39px; font-weight: 400; letter-spacing: -.05em; }.heading-spark { color: #e17c62; }.outline-button { min-height: 42px; padding: 0 20px; color: #171717; border-color: #171717; border-radius: 0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }.outline-button:hover { color: #fff; background: #171717; border-color: #171717; }
.toolbar { padding: 20px 0 15px; border-bottom: 1px solid #ddd9d3; }.search-box { height: 38px; background: transparent; border: 1px solid #bcb9b2; border-radius: 0; }.search-box kbd { background: transparent; border-color: #d6d3cc; }.filter-row { margin: 9px 0 31px; border-bottom: 0; }.filter-chip { padding: 9px 16px; color: #88847e; border-radius: 0; font-size: 11px; letter-spacing: .03em; }.filter-chip:hover { color: #171717; background: transparent; }.filter-chip.active { color: #171717; background: transparent; border-bottom: 2px solid #e17c62; }
.gallery-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 44px 24px; }.photo-card { background: #fff; border: 0; border-radius: 0; box-shadow: none; }.photo-card:hover { transform: translateY(-4px); box-shadow: none; }.photo-cover { aspect-ratio: .93; border-bottom: 0; }.photo-cover img { filter: saturate(.88); }.photo-body { padding: 16px 0 0; }.photo-title { color: #171717; font-family: Georgia, "Noto Serif TC", serif; font-size: 17px; font-weight: 400; }.photo-description { color: #8b8882; font-size: 12px; }.photo-meta { padding-top: 12px; border-top: 1px solid #e3e0da; }.author-name { color: #6e6b65; font-size: 11px; }.photo-stats { color: #8b8882; font-size: 11px; }.category-badge { padding: 5px 9px; color: #fff; background: rgba(20,20,20,.72); border: 0; border-radius: 0; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }.private-badge { padding: 5px 9px; color: #171717; background: rgba(255,255,255,.86); border: 0; border-radius: 0; font-size: 9px; }.cover-overlay-title { font-family: Georgia, "Noto Serif TC", serif; font-size: 17px; }.quick-visibility-button { border-radius: 0; }.community-note { margin-top: 100px; padding: 33px 35px; border-radius: 0; background: #dfd6ca; }.community-note strong { font-family: Georgia, "Noto Serif TC", serif; font-size: 18px; }.community-note span { font-size: 12px; }.site-footer { padding-top: 32px; color: #88847e; }
.modal { border-radius: 0; }.drop-zone, .form-field input, .form-field select, .form-field textarea, .comment-form input { border-radius: 0; }.modal .primary-button { border-radius: 0; }.visibility-toggle-button { border-radius: 0; color: #171717; background: #efebe5; border-color: #171717; }.visibility-toggle-button:hover { background: #171717; border-color: #171717; }.delete-photo-button { color: #b66d5d; }
@media (max-width: 760px) { .sidebar { height: 65px; padding: 0 5%; }.nav-item { padding: 0 7px; }.topbar { margin-top: 65px; height: 38px; }.main-content { width: 91%; padding-top: 18px; }.hero-panel { min-height: 550px; }.hero-copy { width: 100%; padding: 52px 25px 35px; }.hero-copy h1 { font-size: 42px; }.hero-copy p { font-size: 12px; }.hero-art { left: 0; right: 0; bottom: 0; width: 100%; height: 205px; border-radius: 0; }.stats-row { grid-template-columns: repeat(3,1fr); margin-top: 24px; }.stat-card { min-height: 68px; padding: 10px 8px; }.stat-card strong { font-size: 18px; }.gallery-section { padding-top: 69px; }.section-heading h2 { font-size: 31px; }.gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 29px 13px; }.photo-cover { aspect-ratio: .86; }.photo-body { padding-top: 11px; }.photo-title { font-size: 14px; }.photo-description { display: none; }.photo-meta { margin-top: 8px; }.author-name, .photo-stats { font-size: 10px; }.quick-visibility-button { padding: 4px 5px; font-size: 9px; }.community-note { margin-top: 66px; padding: 24px 20px; }.profile-header { padding: 27px 20px 28px; }.profile-header-copy h2 { font-size: 26px; } }
@media (max-width: 760px) { .nav-item { padding: 0 5px; font-size: 10px; }.nav-item .nav-icon { display: none; }.nav-list { gap: 0; }.user-menu-copy, .chevron { display: none; } }

/* Color refresh: a richer Mabinogi palette for a warmer, more memorable editorial look. */
:root {
  --bg: #fbf7f1;
  --surface: #fffdf9;
  --surface-soft: #f2eafa;
  --surface-strong: #e8d9f2;
  --ink: #2b1e36;
  --ink-soft: #76697c;
  --muted: #a598a9;
  --line: #e8dfe9;
  --violet: #6d4aa2;
  --violet-dark: #39234f;
  --violet-soft: #eee5f8;
  --gold: #e5ad4e;
  --shadow: 0 22px 55px rgba(76, 45, 102, .12);
  --shadow-card: 0 18px 34px rgba(76, 45, 102, .14);
}

body { background: var(--bg); }
.ambient-one { background: rgba(232, 211, 246, .7); }
.ambient-two { background: rgba(255, 207, 187, .42); }
.sidebar { background: linear-gradient(180deg, #2b1e36 0%, #39234f 100%); border-bottom: 0; }
.brand-name { color: #fffaf7; }
.brand-subtitle { color: #d7bde4; }
.brand-orb { background: linear-gradient(135deg, #ffcc79 0%, #ef7267 53%, #b74f82 100%); box-shadow: 0 5px 14px rgba(239,114,103,.28), inset 2px 2px 4px rgba(255,255,255,.3); }
.spark-one { color: #ffd77d; }.spark-two { background: #70c7bd; }
.sidebar-divider { background: rgba(255,255,255,.14); }
.nav-item, .topic-item { color: #cbbbd2; }
.nav-item:hover, .topic-item:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-item.active { color: #fff; background: rgba(239,114,103,.18); box-shadow: inset 3px 0 0 #ef7267; }
.nav-icon, .nav-item.active .nav-icon { color: #efb1a2; }
.nav-ping { background: #f7c967; }
.sidebar-label, .sidebar-footer { color: #a994b4; }
.dot-mint { background: #70c7bd; }.dot-gold { background: #f4c568; }.dot-pink { background: #ef8b9e; }.dot-blue { background: #a995e6; }
.mini-note { color: #f7eaf2; background: linear-gradient(145deg, rgba(239,114,103,.22), rgba(112,199,189,.16)); border-color: rgba(255,255,255,.14); }
.mini-note-stars { color: #ffd77d; }.mini-note span { color: #c8b4ce; }
.topbar { background: rgba(251,247,241,.92); border-bottom-color: #eadfe8; }
.portal-links a:hover, .portal-links a.active { color: var(--violet-dark); }.portal-links a.active::before { background: #ef7267; }
.icon-button:hover { color: #ef7267; background: #fff; }
.avatar-small { background: linear-gradient(135deg, #9e79d1, #ef7267); }
.user-popover { border-color: #e7d9eb; box-shadow: 0 18px 45px rgba(76,45,102,.16); }.account-option:hover, .account-option.current { background: #f3e9f8; }.account-check { color: #ef7267; }
.main-content { width: min(1240px, 90%); }
.hero-panel { background: linear-gradient(115deg, #fff0e3 0%, #f1e3f6 49%, #dff0ed 100%); box-shadow: var(--shadow); }
.hero-panel::before { background: #f4bfab; opacity: .55; }.hero-panel::after { background: #b8ded7; opacity: .85; }
.eyebrow { color: #9d5972; }.eyebrow-line { background: #ef7267; }
.hero-copy h1 { color: #2b1e36; }.hero-copy h1 em { color: #d45b64; }.hero-copy p { color: #76697c; }
.primary-button { background: #ef7267; box-shadow: 0 10px 20px rgba(239,114,103,.24); }.primary-button:hover { background: #39234f; }
.text-button { color: #6d4aa2; }
.hero-art { background: linear-gradient(145deg, #b9ddd7 0%, #6faea8 58%, #39777c 100%); filter: saturate(1.04); }
.hero-art::before { background: rgba(255,255,255,.22); }.hero-art-caption { color: rgba(35,66,68,.75); }.moon { border-color: rgba(255,239,190,.9); border-left-color: transparent; border-bottom-color: transparent; }.hero-star { color: rgba(255,255,255,.95); }
.hero-mountain { border-bottom-color: #477d7d; }.mountain-back { border-bottom-color: #8fc8bf; }.mountain-front { border-bottom-color: #356873; }.hero-tree::before, .hero-tree::after, .hero-tree i { background: #315b64; }.hero-tree b { background: #29464f; }.hero-tree span { background: #ffd47c; box-shadow: 15px 25px #ef9e69, -10px 33px #ffe19a; }.hero-lantern { border-color: #e5ad4e; box-shadow: 0 0 19px 8px rgba(255,213,120,.38); }.hero-lantern span { background: #ffe7a6; }.caption-dot { background: #ef7267; box-shadow: 0 0 6px 2px rgba(239,114,103,.42); }
.stats-row { border-top-color: #e5d5e9; border-bottom-color: #e5d5e9; }
.stat-card:nth-child(1) { background: #fffdf9; }.stat-card:nth-child(2) { background: #e8f5f1; }.stat-card:nth-child(3) { background: #fff0e6; }.stat-card:nth-child(4) { background: #f0e8f8; }
.stat-card { border-right-color: rgba(120,84,145,.16); }.stat-icon-photo { color: #6d4aa2; background: #e9ddf6; }.stat-icon-user { color: #41918a; background: #d8efeb; }.stat-icon-heart { color: #de6e69; background: #ffe0d8; }.stat-note-mark { color: #ef7267; }
.profile-panel { border-color: #e5d5e9; border-top-color: #ef7267; }.profile-back-row { background: #fff0e6; border-bottom-color: #ead9df; }.profile-header { background: linear-gradient(100deg, #fffdf9, #f2eafa); }.profile-header-copy h2 { color: #2b1e36; }.profile-stats div { border-color: #e8dfe9; }
.gallery-section { padding-top: 95px; }.section-heading { border-bottom-color: #2b1e36; }.section-kicker { color: #b75c75; }.section-heading h2 { color: #2b1e36; }.heading-spark { color: #ef7267; }.outline-button { color: #6d4aa2; border-color: #bfa8d5; }.outline-button:hover { background: #6d4aa2; border-color: #6d4aa2; }
.toolbar { border-bottom-color: #e8dfe9; }.search-box { border-color: #cdbbd5; }.filter-chip:hover { color: #6d4aa2; background: #f1e8f8; }.filter-chip.active { color: #d45b64; border-bottom-color: #ef7267; }
.photo-card { box-shadow: 0 8px 22px rgba(76,45,102,.07); }.photo-card:hover { box-shadow: var(--shadow-card); }.photo-cover.no-image { background: linear-gradient(135deg, #f5dfd5, #e9def7 52%, #dcefeb); }.file-art { color: #6d4aa2; background: rgba(255,255,255,.6); }
.photo-body { background: #fffdf9; }.photo-card:nth-child(3n + 2) .photo-body { background: #fff5ee; }.photo-card:nth-child(3n) .photo-body { background: #f4eef9; }.photo-title { color: #2b1e36; }.photo-description { color: #87798c; }.photo-meta { border-top-color: #eadfe8; }.author-name { color: #71637a; }.photo-stats { color: #917f97; }.photo-stat.liked { color: #e0646e; }.category-badge { background: rgba(57,35,79,.82); }.private-badge { color: #684e25; background: rgba(255,232,177,.93); }.quick-visibility-button { color: #6d4aa2; background: #eee5f8; border-color: #d4c2e3; }.quick-visibility-button:hover { color: #fff; background: #ef7267; border-color: #ef7267; }
.community-note { background: linear-gradient(110deg, #f3e5f8, #ffe8d8 55%, #e1f2ed); }.community-note-symbol { background: #fff8e7; }.visibility-toggle-button { color: #6d4aa2; background: #eee5f8; border-color: #bfa8d5; }.visibility-toggle-button:hover { background: #ef7267; border-color: #ef7267; }
.modal { box-shadow: 0 24px 70px rgba(57,35,79,.24); }.modal .primary-button { background: #ef7267; }.modal .primary-button:hover { background: #39234f; }

@media (max-width: 760px) {
  .sidebar { background: #2b1e36; border-bottom-color: rgba(255,255,255,.14); }
  .topbar { background: #fbf7f1; }
  .hero-panel { background: linear-gradient(150deg, #fff0e3, #f1e3f6 58%, #dff0ed); }
  .stats-row { border-top: 0; border-bottom: 0; }
  .stat-card { border: 0; }
}

/* Rounded polish pass: softens the editorial skin and fixes cramped visual areas. */
:root {
  --radius-xxl: 36px;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --pill: 999px;
}

.sidebar {
  border-radius: 0 0 30px 30px;
  box-shadow: 0 14px 36px rgba(43, 30, 54, .16);
  overflow: hidden;
}

.nav-list {
  align-items: center;
  gap: 8px;
  height: auto;
}

.nav-item {
  min-height: 42px;
  padding: 0 17px;
  border-radius: var(--pill);
}

.nav-item.active {
  box-shadow: 0 10px 22px rgba(239, 114, 103, .2);
}

.portal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--pill);
  letter-spacing: 0;
}

.portal-links a:hover,
.portal-links a.active {
  background: #f3e9f8;
}

.icon-button,
.user-menu,
.user-popover,
.account-option,
.popover-action,
.auth-summary {
  border-radius: var(--pill);
}

.hero-panel {
  min-height: 520px;
  border-radius: var(--radius-xxl);
  box-shadow: 0 24px 60px rgba(76, 45, 102, .13);
}

.hero-copy {
  width: 57%;
  padding: 78px 44px 64px 66px;
}

.hero-copy h1,
.section-heading h2,
.profile-header-copy h2,
.modal h2 {
  letter-spacing: 0;
}

.hero-art {
  top: 24px;
  right: 24px;
  bottom: 24px;
  left: auto;
  width: 42%;
  height: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-art-caption {
  right: 24px;
  bottom: 22px;
  max-width: calc(100% - 48px);
  padding: 6px 10px;
  background: rgba(255, 253, 249, .58);
  border-radius: var(--pill);
  backdrop-filter: blur(8px);
}

.stats-row {
  gap: 14px;
  border: 0;
}

.stat-card {
  border: 1px solid rgba(120, 84, 145, .16);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(76, 45, 102, .08);
}

.stat-card:last-child {
  border-right: 1px solid rgba(120, 84, 145, .16);
}

.stat-icon,
.drop-icon,
.auth-summary-icon {
  border-radius: var(--pill);
}

.profile-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(76, 45, 102, .1);
}

.profile-back-row {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.profile-avatar {
  border-radius: 28px;
}

.profile-stats div:first-child {
  border-left: 0;
}

.section-heading {
  align-items: center;
}

.primary-button,
.outline-button,
.load-more-button,
.browse-button,
.logout-button,
.visibility-toggle-button,
.quick-visibility-button {
  border-radius: var(--pill);
}

.toolbar {
  flex-wrap: wrap;
}

.search-box {
  border-radius: var(--pill);
  background: #fffdf9;
}

.search-box kbd,
.selected-file,
.selected-file-icon,
.detail-tag,
.comment-item,
.private-message {
  border-radius: var(--radius-sm);
}

.filter-row {
  gap: 9px;
}

.filter-chip {
  border: 1px solid transparent;
  border-radius: var(--pill);
}

.filter-chip:hover {
  border-color: #e3d4e8;
}

.filter-chip.active {
  background: #fff1ec;
  border-color: #f0c8c6;
  border-bottom-color: #f0c8c6;
}

.gallery-grid {
  gap: 30px 22px;
}

.photo-card {
  border: 1px solid rgba(232, 223, 233, .84);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(76, 45, 102, .09);
}

.photo-card:hover {
  box-shadow: 0 20px 40px rgba(76, 45, 102, .15);
}

.cover-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.multi-photo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  color: #fff;
  background: rgba(57, 35, 79, .72);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--pill);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.photo-cover {
  aspect-ratio: 1.26;
}

.photo-body {
  padding: 16px 17px 15px;
}

.category-badge,
.private-badge {
  border-radius: var(--pill);
}

.photo-card > .quick-visibility-button {
  display: flex;
  justify-content: center;
  width: calc(100% - 34px);
  margin: 0 17px 17px;
  padding: 9px 12px;
}

.community-note,
.modal,
.drop-zone,
.visibility-picker {
  border-radius: var(--radius-xl);
}

.form-field input,
.form-field select,
.form-field textarea,
.comment-form input,
.comment-form button,
.visibility-option {
  border-radius: var(--radius-md);
}

.visibility-option.selected {
  box-shadow: 0 10px 22px rgba(109, 74, 162, .1);
}

.detail-modal {
  border-radius: 32px;
}

.detail-visual,
.detail-file {
  border-radius: var(--radius-lg);
}

.detail-visual img {
  border-radius: inherit;
}

.detail-media-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #39234f;
  background: rgba(255, 250, 247, .84);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(57, 35, 79, .18);
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
  transition: .18s ease;
}

.detail-media-control:hover {
  color: #fff;
  background: #ef7267;
  transform: translateY(-50%) scale(1.05);
}

.detail-media-prev {
  left: 18px;
}

.detail-media-next {
  right: 18px;
}

.detail-media-counter {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 58px;
  padding: 6px 12px;
  color: #39234f;
  background: rgba(255, 250, 247, .82);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--pill);
  box-shadow: 0 10px 24px rgba(57, 35, 79, .12);
  font-size: 12px;
  font-weight: 900;
  transform: translateX(-50%);
}

.detail-media-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  max-width: calc(100% - 80px);
  transform: translateX(-50%);
}

.detail-media-dot {
  width: 14px;
  height: 14px;
  background: rgba(255, 250, 247, .76);
  border: 2px solid rgba(57, 35, 79, .28);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(57, 35, 79, .12);
  transition: .18s ease;
}

.detail-media-dot:hover,
.detail-media-dot.active {
  background: #ef7267;
  border-color: #fff;
  transform: scale(1.15);
}

.engagement-button {
  border-radius: var(--pill);
}

@media (max-width: 1100px) {
  .hero-copy {
    width: 60%;
    padding-left: 44px;
  }

  .hero-art {
    width: 38%;
  }
}

@media (max-width: 760px) {
  .sidebar {
    height: 68px;
    border-radius: 0 0 24px 24px;
  }

  .sidebar .brand {
    display: none;
  }

  .nav-list {
    width: 100%;
    height: 100%;
    justify-content: space-around;
    gap: 6px;
    margin-left: 0;
  }

  .nav-item {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 18px;
    font-size: 0;
  }

  .nav-item .nav-icon {
    display: inline-block;
    font-size: 18px;
  }

  .nav-item.active {
    box-shadow: 0 8px 18px rgba(239, 114, 103, .16);
  }

  .topbar {
    height: 54px;
    margin-top: 68px;
  }

  .main-content {
    padding-top: 22px;
  }

  .hero-panel {
    min-height: 560px;
    border-radius: 30px;
  }

  .hero-copy {
    width: 100%;
    padding: 44px 24px 232px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-art {
    top: auto;
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
    height: 190px;
    border-radius: 26px;
  }

  .hero-art-caption {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .stats-row {
    gap: 10px;
  }

  .stat-card {
    border: 1px solid rgba(120, 84, 145, .12);
    border-radius: 20px;
  }

  .section-heading {
    gap: 14px;
  }

  .toolbar {
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .filter-row {
    padding-bottom: 2px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .photo-card {
    border-radius: 20px;
  }

  .photo-cover {
    aspect-ratio: 1.12;
  }

  .photo-body {
    padding: 12px 11px 11px;
  }

  .photo-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .photo-card > .quick-visibility-button {
    width: calc(100% - 22px);
    margin: 0 11px 12px;
  }

  .community-note,
  .modal,
  .drop-zone,
  .visibility-picker {
    border-radius: 24px;
  }

  .detail-visual,
  .detail-visual img,
  .detail-file {
    border-radius: 20px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .outline-button {
    width: 100%;
    justify-content: center;
  }
}

/* Dark theme contrast pass: keeps every text surface readable after the skin overrides. */
body.dark {
  --bg: #11131f;
  --surface: #1d2030;
  --surface-soft: #25293b;
  --surface-strong: #32364d;
  --ink: #fff8f0;
  --ink-soft: #d9d1e1;
  --muted: #aaa2b6;
  --line: #3b3e55;
  --violet: #c7abff;
  --violet-dark: #fff2e6;
  --violet-soft: #302946;
  --gold: #ffd37a;
  --shadow: 0 24px 60px rgba(0, 0, 0, .34);
  --shadow-card: 0 20px 44px rgba(0, 0, 0, .32);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(199, 171, 255, .2), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(112, 199, 189, .16), transparent 30%),
    #11131f;
}

body.dark .sidebar {
  background: linear-gradient(180deg, #181124 0%, #241833 100%);
  border-color: rgba(255, 255, 255, .1);
}

body.dark .topbar {
  background: rgba(17, 19, 31, .88);
  border-color: rgba(255, 255, 255, .08);
}

body.dark .brand-name,
body.dark .mobile-brand,
body.dark .user-menu,
body.dark .section-heading h2,
body.dark .hero-copy h1,
body.dark .profile-header-copy h2,
body.dark .modal h2,
body.dark .detail-info h2,
body.dark .photo-title,
body.dark .stat-card strong,
body.dark .community-note strong,
body.dark .form-field input,
body.dark .form-field select,
body.dark .form-field textarea,
body.dark .comment-form input {
  color: var(--ink);
}

body.dark .brand-subtitle,
body.dark .portal-links a,
body.dark .hero-copy p,
body.dark .profile-header-copy p,
body.dark .modal-lead,
body.dark .photo-description,
body.dark .author-name,
body.dark .photo-stats,
body.dark .detail-description,
body.dark .detail-author-copy small,
body.dark .community-note span,
body.dark .form-field,
body.dark .form-field small,
body.dark .visibility-option small,
body.dark .auth-switch-copy,
body.dark .auth-hint,
body.dark .site-footer,
body.dark .sort-wrap,
body.dark .search-box input::placeholder {
  color: var(--ink-soft);
}

body.dark .section-kicker,
body.dark .modal-kicker,
body.dark .profile-kicker,
body.dark .profile-account,
body.dark .eyebrow,
body.dark .detail-category,
body.dark .field-label,
body.dark .comment-title {
  color: #ffd0a3;
}

body.dark .nav-item,
body.dark .topic-item {
  color: #d3c5df;
}

body.dark .nav-item:hover,
body.dark .topic-item:hover,
body.dark .nav-item.active {
  color: #fff8f0;
  background: rgba(255, 255, 255, .12);
}

body.dark .nav-icon,
body.dark .nav-item.active .nav-icon {
  color: #ffc2b2;
}

body.dark .portal-links a:hover,
body.dark .portal-links a.active {
  color: #fff8f0;
  background: rgba(255, 255, 255, .1);
}

body.dark .hero-panel {
  background: linear-gradient(128deg, #21192f 0%, #1f2f3a 54%, #39263d 100%);
  box-shadow: var(--shadow);
}

body.dark .hero-panel::before {
  background: #694f83;
  opacity: .35;
}

body.dark .hero-panel::after {
  background: #3f8c86;
  opacity: .35;
}

body.dark .hero-copy h1 em {
  color: #ff9c8f;
}

body.dark .text-button {
  color: #d9c5ff;
}

body.dark .primary-button {
  color: #21131f;
  background: #ff9c8f;
  box-shadow: 0 12px 24px rgba(255, 156, 143, .2);
}

body.dark .primary-button:hover {
  color: #fff8f0;
  background: #6d4aa2;
}

body.dark .outline-button,
body.dark .load-more-button,
body.dark .quick-visibility-button,
body.dark .visibility-toggle-button,
body.dark .browse-button {
  color: #f6ebff;
  background: rgba(255, 255, 255, .05);
  border-color: rgba(218, 196, 255, .36);
}

body.dark .outline-button:hover,
body.dark .load-more-button:hover,
body.dark .quick-visibility-button:hover,
body.dark .visibility-toggle-button:hover,
body.dark .browse-button:hover {
  color: #1a1424;
  background: #ffd0a3;
  border-color: #ffd0a3;
}

body.dark .hero-art {
  background: linear-gradient(145deg, #28435b 0%, #2f7772 58%, #1c4250 100%);
}

body.dark .hero-art-caption {
  color: #effffb;
  background: rgba(18, 24, 34, .58);
}

body.dark .stats-row,
body.dark .toolbar,
body.dark .photo-meta,
body.dark .profile-stats div,
body.dark .profile-back-row,
body.dark .detail-author,
body.dark .auth-tabs {
  border-color: var(--line);
}

body.dark .stat-card,
body.dark .photo-card,
body.dark .profile-panel,
body.dark .modal,
body.dark .user-popover,
body.dark .community-note {
  background: rgba(29, 32, 48, .96);
  border-color: var(--line);
}

body.dark .stat-card:nth-child(1),
body.dark .stat-card:nth-child(2),
body.dark .stat-card:nth-child(3),
body.dark .stat-card:nth-child(4),
body.dark .photo-body,
body.dark .photo-card:nth-child(3n + 2) .photo-body,
body.dark .photo-card:nth-child(3n) .photo-body,
body.dark .profile-header,
body.dark .profile-back-row,
body.dark .drop-zone,
body.dark .visibility-picker,
body.dark .selected-file,
body.dark .comment-item,
body.dark .private-message,
body.dark .auth-summary,
body.dark .toast {
  background: var(--surface-soft);
}

body.dark .search-box,
body.dark .form-field input,
body.dark .form-field select,
body.dark .form-field textarea,
body.dark .comment-form input {
  background: #171a29;
  border-color: var(--line);
}

body.dark .search-icon,
body.dark .chevron,
body.dark .icon-button,
body.dark .comment-copy time {
  color: var(--muted);
}

body.dark .icon-button:hover,
body.dark .user-menu:hover,
body.dark .account-option:hover,
body.dark .account-option.current {
  color: var(--ink);
  background: rgba(255, 255, 255, .1);
}

body.dark .filter-chip {
  color: #cfc5dc;
}

body.dark .filter-chip:hover,
body.dark .filter-chip.active {
  color: #fff8f0;
  background: rgba(255, 156, 143, .14);
  border-color: rgba(255, 156, 143, .38);
}

body.dark .category-badge {
  color: #fff8f0;
  background: rgba(24, 17, 36, .72);
}

body.dark .private-badge {
  color: #241832;
  background: rgba(255, 211, 122, .94);
}

body.dark .detail-tag,
body.dark .stat-icon-photo,
body.dark .visibility-option.selected {
  color: #efe5ff;
  background: #382f52;
}

body.dark .stat-icon-user {
  color: #dffaf5;
  background: #244a4f;
}

body.dark .stat-icon-heart {
  color: #ffe5df;
  background: #59303d;
}

body.dark .visibility-option {
  color: var(--ink);
  background: #1b1e2f;
  border-color: var(--line);
}

body.dark .visibility-option strong,
body.dark .comment-copy strong,
body.dark .detail-author-copy strong,
body.dark .auth-summary strong,
body.dark .drop-zone strong {
  color: var(--ink);
}

body.dark .visibility-icon,
body.dark .photo-stat.liked,
body.dark .engagement-button.liked,
body.dark .heading-spark,
body.dark .account-check {
  color: #ff9c8f;
}

body.dark .comment-copy p,
body.dark .drop-zone > span,
body.dark .drop-empty > span,
body.dark .auth-summary small {
  color: var(--ink-soft);
}

body.dark .modal-close {
  color: #d6ccde;
}

body.dark .modal-close:hover {
  color: #fff8f0;
  background: rgba(255, 255, 255, .1);
}

body.dark .delete-photo-button,
body.dark .delete-comment,
body.dark .logout-button {
  color: #ffaaa0;
}

/* Account popover should feel like a compact menu, not pill buttons. */
.user-popover {
  overflow: hidden;
  border-radius: 10px;
  background-clip: padding-box;
}

.user-popover .auth-summary,
.user-popover .account-option,
.user-popover .profile-edit-button,
.user-popover .popover-action,
.user-popover .logout-button {
  border-radius: 8px;
}

.user-popover .auth-summary {
  padding: 10px;
}

.user-popover .popover-action {
  min-height: 38px;
  margin-top: 8px;
  border-top: 0;
}

/* Recenter modal close button hover target and icon. */
.modal-close {
  position: absolute;
  display: grid;
  place-items: center;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
  text-align: center;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Homepage feature image. */
.hero-art,
body.dark .hero-art {
  aspect-ratio: 6 / 5;
  top: 50%;
  right: 24px;
  bottom: auto;
  left: auto;
  width: min(42%, 520px);
  height: auto;
  background: url("mabinogi_map_2_photo2.jpeg") center / 100% 100% no-repeat;
  border: 0;
  box-shadow: none;
  filter: none;
  opacity: 1;
  transform: translateY(-50%);
}

.hero-art::before,
.hero-art::after {
  display: none;
}

.hero-art .moon,
.hero-art .hero-star,
.hero-art .hero-mountain,
.hero-art .hero-tree,
.hero-art .hero-lantern {
  display: none;
}

.hero-art-caption,
body.dark .hero-art-caption {
  color: #fffdf9;
  background: rgba(43, 30, 54, .46);
  box-shadow: none;
}

.caption-dot {
  background: #ffd37a;
  box-shadow: 0 0 8px 2px rgba(255, 211, 122, .42);
}

@media (max-width: 760px) {
  .hero-art,
  body.dark .hero-art {
    top: auto;
    right: auto;
    bottom: 18px;
    left: 50%;
    width: min(calc(100% - 36px), 340px);
    height: auto;
    background-size: 100% 100%;
    transform: translateX(-50%);
  }
}

/* Homepage journal background image. */
.hero-panel,
body.dark .hero-panel {
  background:
    linear-gradient(90deg, rgba(251, 247, 241, .94) 0%, rgba(251, 247, 241, .82) 42%, rgba(251, 247, 241, .2) 74%),
    url("1111111111111.png") center / cover no-repeat;
}

.hero-panel::before,
.hero-panel::after {
  display: none;
}

body.dark .hero-panel {
  background:
    linear-gradient(90deg, rgba(17, 19, 31, .9) 0%, rgba(17, 19, 31, .76) 44%, rgba(17, 19, 31, .18) 76%),
    url("1111111111111.png") center / cover no-repeat;
}

@media (max-width: 760px) {
  .hero-panel,
  body.dark .hero-panel {
    background-position: center top;
  }
}

/* Keep the top navigation area sharp-edged while preserving rounded content cards. */
.sidebar,
body.dark .sidebar,
.topbar,
body.dark .topbar {
  border-radius: 0;
}

.sidebar .nav-item,
.topbar .portal-links a {
  border-radius: 0;
}

@media (max-width: 760px) {
  .sidebar,
  body.dark .sidebar,
  .topbar,
  body.dark .topbar,
  .sidebar .nav-item {
    border-radius: 0;
  }
}

/* Top navigation palette: match the warm cream, lavender, and coral site colors. */
.sidebar {
  background: linear-gradient(90deg, rgba(255, 253, 249, .98) 0%, rgba(246, 236, 248, .98) 58%, rgba(255, 239, 230, .96) 100%);
  border-bottom: 1px solid #eadfe8;
  border-radius: 0;
  box-shadow: 0 8px 26px rgba(76, 45, 102, .08);
}

.brand-name {
  color: #2b1e36;
}

.brand-subtitle {
  color: #9d7f9b;
}

.sidebar .nav-item {
  color: #76697c;
  border-radius: 0;
}

.sidebar .nav-item:hover {
  color: #39234f;
  background: rgba(239, 114, 103, .1);
}

.sidebar .nav-item.active {
  color: #39234f;
  background: rgba(255, 255, 255, .35);
  box-shadow: inset 0 -3px 0 #ef7267;
}

.sidebar .nav-icon,
.sidebar .nav-item.active .nav-icon {
  color: #d45b64;
}

.topbar {
  background: rgba(251, 247, 241, .84);
  border-bottom: 1px solid #eadfe8;
}

body.dark .sidebar {
  background: linear-gradient(90deg, rgba(31, 25, 48, .98) 0%, rgba(43, 35, 63, .98) 58%, rgba(57, 35, 79, .96) 100%);
  border-bottom-color: #443656;
  border-radius: 0;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
}

body.dark .brand-name {
  color: #fff8f0;
}

body.dark .brand-subtitle {
  color: #d9bddf;
}

body.dark .sidebar .nav-item {
  color: #d3c5df;
  border-radius: 0;
}

body.dark .sidebar .nav-item:hover,
body.dark .sidebar .nav-item.active {
  color: #fff8f0;
  background: rgba(255, 255, 255, .1);
}

body.dark .sidebar .nav-item.active {
  box-shadow: inset 0 -3px 0 #ef7267;
}

body.dark .topbar {
  background: rgba(23, 22, 42, .88);
  border-bottom-color: #3b334f;
}

/* Upload modal two-column layout: file picker left, photo details right. */
.upload-modal {
  width: min(940px, calc(100vw - 40px));
  padding: 34px 36px 30px;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(360px, 1.15fr);
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.upload-left,
.upload-right {
  min-width: 0;
}

.upload-lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.8;
}

.upload-left .drop-zone {
  min-height: 360px;
  align-content: center;
  padding: 34px 26px;
  background: linear-gradient(145deg, #fff8ef, #f4eafa 58%, #e8f2ee);
  border-color: #e2cfe8;
}

.upload-left .drop-zone input {
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.drop-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.drop-empty[hidden],
.drop-preview-grid[hidden] {
  display: none;
}

.drop-zone.has-files {
  place-items: stretch;
  align-content: start;
  overflow: auto;
  padding: 16px;
  text-align: left;
  background: linear-gradient(145deg, #fffaf6, #f6edf8 58%, #edf6f1);
  border-style: solid;
}

.drop-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 12px;
  width: 100%;
}

.drop-preview-card,
.drop-preview-add {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(224, 207, 232, .8);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(76, 45, 102, .08);
}

.drop-preview-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1.16;
  background: linear-gradient(135deg, #f5dfd5, #e9def7 52%, #dcefeb);
}

.drop-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop-preview-file {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 66px;
  height: 66px;
  color: #6d4aa2;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 18px;
  font-size: 24px;
}

.drop-preview-file small {
  font-size: 9px;
  font-weight: 900;
}

.drop-preview-copy {
  display: grid;
  gap: 3px;
  padding: 10px 11px 11px;
}

.drop-preview-copy strong {
  overflow: hidden;
  color: #2b1e36;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-preview-copy span {
  color: #8d7f93;
  font-size: 10px;
  font-weight: 800;
}

.drop-preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
  background: rgba(57, 35, 79, .72);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(57, 35, 79, .2);
  font-size: 17px;
  line-height: 1;
}

.drop-preview-remove:hover {
  background: #ef7267;
}

.drop-preview-add {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 158px;
  padding: 18px;
  color: #6d4aa2;
  background: rgba(255, 250, 247, .58);
  border-style: dashed;
  font-size: 12px;
  font-weight: 900;
}

.drop-preview-add span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: #ef7267;
  border-radius: 50%;
  font-size: 24px;
}

.drop-preview-add:hover {
  color: #fff;
  background: #39234f;
  border-color: #39234f;
}

.upload-left .drop-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  font-size: 30px;
}

.upload-left .drop-zone strong {
  font-size: 16px;
}

.upload-left .drop-zone > span,
.upload-left .drop-empty > span {
  max-width: 280px;
  font-size: 12px;
  line-height: 1.7;
}

.upload-left .browse-button {
  margin-top: 14px;
  padding: 8px 17px;
  border-radius: var(--pill);
  font-size: 12px;
}

.upload-left .selected-files {
  display: none;
}

.upload-right .form-grid {
  margin-top: 0;
}

.upload-right .visibility-picker {
  margin-top: 18px;
}

.upload-right .modal-actions {
  margin-top: 20px;
}

body.dark .upload-left .drop-zone {
  background: linear-gradient(145deg, #211e35, #2a2445 58%, #223a3b);
  border-color: #51436a;
}

body.dark .drop-zone.has-files {
  background: linear-gradient(145deg, #211e35, #2a2445 58%, #223a3b);
}

body.dark .drop-preview-card,
body.dark .drop-preview-add {
  background: rgba(255, 255, 255, .06);
  border-color: #51436a;
}

body.dark .drop-preview-copy strong {
  color: #fff8f0;
}

body.dark .drop-preview-copy span {
  color: #cbbdce;
}

body.dark .drop-preview-file {
  color: #ffd0c5;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .08);
}

@media (max-width: 860px) {
  .upload-modal {
    width: min(600px, calc(100vw - 28px));
    padding: 30px 22px 24px;
  }

  .upload-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
  }

  .upload-left .drop-zone {
    min-height: 230px;
    padding: 28px 20px;
  }
}

/* Member profile editor. */
.avatar {
  background-position: center;
  background-size: cover;
}

.profile-edit-button,
.profile-edit-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #6d4aa2;
  background: #f4edf8;
  border: 1px solid #e4d4eb;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 800;
  transition: .2s ease;
}

.profile-edit-button {
  width: 100%;
  margin-top: 8px;
  min-height: 36px;
}

.profile-edit-inline-button {
  width: fit-content;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 14px;
}

.profile-edit-button:hover,
.profile-edit-inline-button:hover {
  color: #fff;
  background: #ef7267;
  border-color: #ef7267;
}

.profile-edit-modal {
  width: min(520px, calc(100vw - 40px));
}

.profile-edit-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.profile-edit-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background: linear-gradient(110deg, #fff8ef, #f4eafa);
  border: 1px solid #eadbe9;
  border-radius: 22px;
}

.profile-preview-avatar {
  position: relative;
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  font-size: 27px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.profile-preview-avatar::after {
  content: "↥";
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #fff;
  background: #ef7267;
  border: 3px solid #fffdf9;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(239, 114, 103, .25);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  line-height: 1;
}

.profile-preview-avatar:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 0 4px rgba(239, 114, 103, .16), 0 14px 26px rgba(76, 45, 102, .16);
  filter: saturate(1.05);
}

.hidden-avatar-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.profile-edit-preview div {
  display: grid;
  gap: 2px;
}

.profile-edit-preview strong {
  color: #2b1e36;
  font-size: 18px;
}

.profile-edit-preview span:not(.avatar) {
  color: #9c8a9f;
  font-size: 12px;
}

.profile-avatar-upload {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 14px;
  background: #fffdf9;
  border: 1px dashed #e1cfe7;
  border-radius: 20px;
}

.profile-avatar-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.remove-avatar-button {
  width: fit-content;
  padding: 0;
  color: #b66972;
}

.profile-avatar-upload small {
  color: #a598a9;
  font-size: 11px;
}

.avatar-color-picker {
  display: grid;
  gap: 9px;
}

.avatar-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.avatar-color-option {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--from), var(--to));
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #e8dfe9;
}

.avatar-color-option.active {
  box-shadow: 0 0 0 3px rgba(239, 114, 103, .28);
}

body.dark .profile-edit-button,
body.dark .profile-edit-inline-button {
  color: #ffd0c5;
  background: rgba(255, 255, 255, .08);
  border-color: #4c3d5c;
}

body.dark .profile-edit-button:hover,
body.dark .profile-edit-inline-button:hover {
  color: #fff8f0;
  background: #ef7267;
  border-color: #ef7267;
}

body.dark .profile-edit-preview {
  background: linear-gradient(110deg, #211e35, #302745);
  border-color: #443656;
}

body.dark .profile-preview-avatar::after {
  border-color: #211e35;
}

body.dark .profile-edit-preview strong {
  color: #fff8f0;
}

body.dark .profile-avatar-upload {
  background: #211e35;
  border-color: #51436a;
}

body.dark .profile-avatar-upload input[type="file"],
body.dark .profile-avatar-upload small,
body.dark .profile-edit-preview span:not(.avatar) {
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .profile-edit-modal {
    width: min(430px, calc(100vw - 28px));
  }

  .profile-edit-preview {
    align-items: flex-start;
  }

  .profile-preview-avatar {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
    font-size: 23px;
  }
}

/* Favorite / saved-photo actions. */
.photo-stat.favorite-stat,
.engagement-button.favorite-action {
  color: #a89474;
  font-weight: 800;
}

.photo-stat.favorite-stat:hover,
.photo-stat.favorite-stat.favorited,
.engagement-button.favorite-action:hover,
.engagement-button.favorite-action.favorited {
  color: #d99a3a;
}

.favorite-icon,
.engagement-button.favorite-action span {
  font-size: 16px;
  line-height: 1;
}

body.dark .photo-stat.favorite-stat,
body.dark .engagement-button.favorite-action {
  color: #c9b99b;
}

body.dark .photo-stat.favorite-stat:hover,
body.dark .photo-stat.favorite-stat.favorited,
body.dark .engagement-button.favorite-action:hover,
body.dark .engagement-button.favorite-action.favorited {
  color: #ffd37a;
}

@media (max-width: 760px) {
  .photo-stats {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .photo-stat.favorite-stat {
    font-size: 9px;
  }
}

/* Bottom information bar replacing the old share card. */
.community-note.bottom-navigation-note,
body.dark .community-note.bottom-navigation-note {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 88px 0 0;
  padding: 18px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(120, 84, 145, .18);
  border-bottom: 1px solid rgba(120, 84, 145, .18);
  border-radius: 0;
  box-shadow: none;
}

.community-note.bottom-navigation-note > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
  text-align: center;
}

.community-note.bottom-navigation-note strong {
  color: #2b1e36;
  font-family: "Noto Sans TC", "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}

.community-note.bottom-navigation-note span {
  color: #817482;
  font-size: 12px;
}

.community-note.bottom-navigation-note .community-note-symbol,
.community-note.bottom-navigation-note .text-button {
  display: none !important;
}

body.dark .community-note.bottom-navigation-note {
  border-top-color: rgba(255, 255, 255, .13);
  border-bottom-color: rgba(255, 255, 255, .13);
}

body.dark .community-note.bottom-navigation-note strong {
  color: #fff8f0;
}

body.dark .community-note.bottom-navigation-note span {
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .community-note.bottom-navigation-note,
  body.dark .community-note.bottom-navigation-note {
    margin-top: 56px;
    padding: 15px 0 18px;
  }

  .community-note.bottom-navigation-note > div {
    display: grid;
    gap: 4px;
  }
}

/* Make the bottom bar slogan feel more memorable and energetic. */
.community-note.bottom-navigation-note strong {
  position: relative;
  display: inline-block;
  padding: 0 18px;
  color: transparent;
  background: linear-gradient(100deg, #39234f 0%, #ef7267 45%, #d99a3a 78%, #6d4aa2 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.25;
  text-shadow: 0 12px 28px rgba(239, 114, 103, .18);
  animation: slogan-glow 4.8s ease-in-out infinite;
}

.community-note.bottom-navigation-note strong::before,
.community-note.bottom-navigation-note strong::after {
  content: "✦";
  position: absolute;
  top: 50%;
  color: #efb46c;
  font-family: "DM Sans", sans-serif;
  font-size: .54em;
  text-shadow: 0 0 14px rgba(239, 180, 108, .55);
  transform: translateY(-50%);
}

.community-note.bottom-navigation-note strong::before {
  left: -4px;
}

.community-note.bottom-navigation-note strong::after {
  right: -4px;
}

@keyframes slogan-glow {
  0%,
  100% {
    background-position: 0% center;
    transform: translateY(0);
    filter: drop-shadow(0 0 0 rgba(239, 114, 103, 0));
  }

  50% {
    background-position: 100% center;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 10px rgba(239, 114, 103, .2));
  }
}

body.dark .community-note.bottom-navigation-note strong {
  background: linear-gradient(100deg, #fff8f0 0%, #ffd37a 38%, #ff9c86 68%, #d9bddf 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 32px rgba(255, 211, 122, .15);
}

@media (max-width: 760px) {
  .community-note.bottom-navigation-note strong {
    padding: 0 15px;
    font-size: 19px;
    letter-spacing: .08em;
  }
}

/* Live nickname availability feedback in the member profile editor. */
.field-feedback {
  margin-top: -1px;
  color: #9c8a9f;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.field-feedback.ok {
  color: #57896d;
}

.field-feedback.error {
  color: #c35f69;
}

#profile-edit-nickname[aria-invalid="true"] {
  border-color: #d7838c;
  box-shadow: 0 0 0 3px rgba(211, 95, 105, .12);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none;
}

body.dark .field-feedback {
  color: var(--ink-soft);
}

body.dark .field-feedback.ok {
  color: #8bd0a6;
}

body.dark .field-feedback.error {
  color: #ff9ca7;
}

body.dark #profile-edit-nickname[aria-invalid="true"] {
  border-color: #b75a68;
  box-shadow: 0 0 0 3px rgba(255, 156, 167, .12);
}

/* Larger image detail popup: easier photo viewing with a roomier comment panel. */
.detail-modal {
  width: min(1180px, calc(100vw - 48px));
  max-height: min(900px, calc(100vh - 48px));
  padding: 28px;
  overflow: auto;
}

.detail-content {
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, .8fr);
  gap: 34px;
  align-items: stretch;
}

.detail-visual,
.detail-file {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: min(70vh, 680px);
  max-height: calc(100vh - 150px);
  background: linear-gradient(135deg, #fff8ef, #f0e8f5);
  border-radius: 28px;
}

.detail-visual img {
  width: 100%;
  height: 100%;
  min-height: min(70vh, 680px);
  max-height: calc(100vh - 150px);
  object-fit: contain;
  background: linear-gradient(135deg, #fff8ef, #f0e8f5);
  border-radius: inherit;
}

.detail-info {
  padding: 10px 4px 6px 0;
  font-size: 14px;
}

.detail-info h2 {
  margin-top: 10px;
  font-size: clamp(26px, 2.35vw, 38px);
  line-height: 1.25;
}

.detail-description {
  font-size: 14px;
  line-height: 1.9;
}

.detail-category,
.comment-title {
  font-size: 11px;
}

.detail-author {
  gap: 12px;
  padding: 16px 0;
}

.detail-author .avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.detail-author-copy strong,
.engagement-button,
.comment-copy strong {
  font-size: 13px;
}

.detail-author-copy small,
.comment-copy time {
  font-size: 11px;
}

.detail-engagement {
  flex-wrap: wrap;
  gap: 16px 20px;
  padding: 16px 0 12px;
}

.comments-list {
  gap: 10px;
  max-height: 300px;
  padding-right: 5px;
}

.comment-item {
  gap: 10px;
  padding: 11px;
  border-radius: 14px;
}

.comment-item .avatar {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.comment-copy p {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.65;
}

.comment-form {
  gap: 9px;
  margin-top: 13px;
}

.comment-form input {
  min-height: 44px;
  padding: 11px 13px;
  font-size: 13px;
}

.comment-form button {
  flex: 0 0 44px;
  width: 44px;
  border-radius: 999px;
}

.no-comments {
  font-size: 12px;
}

body.dark .detail-visual,
body.dark .detail-file,
body.dark .detail-visual img {
  background: #090b13;
}

body.dark .multi-photo-badge {
  color: #fff8f0;
  background: rgba(239, 114, 103, .82);
  border-color: rgba(255, 255, 255, .2);
}

body.dark .detail-media-control,
body.dark .detail-media-counter,
body.dark .detail-media-dot {
  color: #fff8f0;
  background: rgba(33, 30, 53, .82);
  border-color: rgba(255, 255, 255, .12);
}

body.dark .detail-media-control:hover,
body.dark .detail-media-dot:hover,
body.dark .detail-media-dot.active {
  background: #ef7267;
}

@media (max-width: 920px) {
  .detail-modal {
    width: min(760px, calc(100vw - 24px));
    padding: 18px;
  }

  .detail-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-visual,
  .detail-file,
  .detail-visual img {
    min-height: 360px;
    max-height: 58vh;
  }

  .comments-list {
    max-height: 230px;
  }

  .detail-media-control {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .detail-media-prev {
    left: 12px;
  }

  .detail-media-next {
    right: 12px;
  }
}

@media (max-width: 520px) {
  .detail-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 14px;
  }

  .detail-visual,
  .detail-file,
  .detail-visual img {
    min-height: 280px;
  }

  .detail-info h2 {
    font-size: 24px;
  }

  .detail-media-counter {
    bottom: 46px;
    font-size: 11px;
  }

  .detail-media-dots {
    bottom: 17px;
    gap: 7px;
  }

  .detail-media-dot {
    width: 12px;
    height: 12px;
  }
}

/* Mobile/minimized navigation: keep icons visible in every active state. */
@media (max-width: 760px) {
  .sidebar .nav-list {
    align-items: center;
  }

  .sidebar .nav-item {
    color: #7b617f;
    font-size: 0;
  }

  .sidebar .nav-item .nav-icon,
  .sidebar .nav-item.active .nav-icon {
    display: inline-grid !important;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #9a6b91;
    font-size: 20px;
    line-height: 1;
    opacity: 1;
    visibility: visible;
  }

  .sidebar .nav-item.active {
    color: #2b1e36;
    background: rgba(255, 255, 255, .45);
    box-shadow: inset 0 -3px 0 #ef7267;
  }

  .sidebar .nav-item.active .nav-icon {
    color: #ef7267;
    text-shadow: 0 6px 14px rgba(239, 114, 103, .24);
  }

  body.dark .sidebar .nav-item {
    color: #d3c5df;
  }

  body.dark .sidebar .nav-item .nav-icon,
  body.dark .sidebar .nav-item.active .nav-icon {
    color: #ffd0c5;
  }

  body.dark .sidebar .nav-item.active {
    color: #fff8f0;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 -3px 0 #ff9c86;
  }

  body.dark .sidebar .nav-item.active .nav-icon {
    color: #ffb49f;
    text-shadow: 0 6px 14px rgba(255, 156, 134, .2);
  }
}

/* Homepage top-liked carousel in the former map corner. */
.hero-art.has-top-liked,
body.dark .hero-art.has-top-liked {
  background:
    linear-gradient(135deg, rgba(43, 30, 54, .18), rgba(239, 114, 103, .08)),
    url("mabinogi_map_2_photo2.jpeg") center / 100% 100% no-repeat;
}

.top-liked-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
}

.top-liked-slides {
  position: absolute;
  inset: 0;
}

.top-liked-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: #fffdf9;
  background: #2b1e36;
  border: 0;
  opacity: 0;
  text-align: left;
  transform: translateX(18px) scale(1.03);
  transition: opacity .75s ease, transform 1.2s ease;
  pointer-events: none;
}

.top-liked-slide.active {
  z-index: 2;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.top-liked-slide.leaving {
  z-index: 1;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: none;
}

.top-liked-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 5.2s ease;
}

.top-liked-slide.active img {
  transform: scale(1.06);
}

.top-liked-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 13, 30, .08) 0%, rgba(18, 13, 30, .1) 46%, rgba(18, 13, 30, .72) 100%),
    linear-gradient(90deg, rgba(43, 30, 54, .38), rgba(43, 30, 54, .02));
}

.top-liked-meta {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  text-shadow: 0 8px 20px rgba(0, 0, 0, .38);
}

.top-liked-meta strong {
  overflow: hidden;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(19px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-liked-meta small {
  color: rgba(255, 248, 240, .84);
  font-size: 12px;
  font-weight: 800;
}

.top-liked-dots {
  position: absolute;
  z-index: 5;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-liked-dot {
  width: 16px;
  height: 16px;
  padding: 0;
  background: rgba(255, 255, 255, .62);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(43, 30, 54, .18);
  transition: width .25s ease, background .25s ease, box-shadow .25s ease, transform .2s ease;
}

.top-liked-dot:hover {
  background: #fff8f0;
  box-shadow: 0 0 0 5px rgba(239, 114, 103, .24);
  transform: scale(1.08);
}

.top-liked-dot.active {
  width: 36px;
  background: #ffd37a;
  box-shadow: 0 0 0 4px rgba(43, 30, 54, .18), 0 8px 18px rgba(255, 211, 122, .25);
}

.top-liked-control {
  position: absolute;
  z-index: 6;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff8f0;
  background: rgba(43, 30, 54, .42);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(43, 30, 54, .18);
  font-family: "DM Sans", sans-serif;
  font-size: 30px;
  line-height: 1;
  opacity: .72;
  transform: translateY(-50%);
  transition: opacity .2s ease, background .2s ease, transform .2s ease;
}

.top-liked-control:hover {
  background: rgba(239, 114, 103, .82);
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}

.top-liked-prev {
  left: 14px;
}

.top-liked-next {
  right: 14px;
}

.top-liked-file {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff8f0;
  background:
    linear-gradient(135deg, rgba(43, 30, 54, .18), rgba(239, 114, 103, .08)),
    url("mabinogi_map_2_photo2.jpeg") center / 100% 100% no-repeat;
  gap: 5px;
  align-content: center;
  font-size: 40px;
}

.top-liked-file small {
  padding: 4px 9px;
  background: rgba(43, 30, 54, .5);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .top-liked-meta {
    left: 14px;
    right: 14px;
    bottom: 16px;
  }

  .top-liked-meta strong {
    font-size: 19px;
  }

  .top-liked-meta small {
    font-size: 11px;
  }

  .top-liked-dots {
    right: 12px;
    bottom: 12px;
    gap: 7px;
  }

  .top-liked-dot {
    width: 15px;
    height: 15px;
  }

  .top-liked-dot.active {
    width: 32px;
  }

  .top-liked-control {
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  .top-liked-prev {
    left: 10px;
  }

  .top-liked-next {
    right: 10px;
  }
}

/* Use logo.png as the official site logo beside the site name. */
.brand-mark.logo-mark {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark.logo-mark.small {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Standalone photo editor page: IG-like filters, brightness, and output size controls. */
.standalone-editor-page {
  display: grid;
  gap: 22px;
}

.standalone-editor-page[hidden] {
  display: none;
}

.standalone-editor-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  background:
    radial-gradient(circle at 12% 12%, rgba(239, 114, 103, .2), transparent 31%),
    linear-gradient(135deg, rgba(255, 248, 240, .96), rgba(245, 235, 249, .94) 56%, rgba(232, 242, 238, .9));
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 30px;
  box-shadow: 0 24px 58px rgba(76, 45, 102, .12);
}

.standalone-editor-hero h2 {
  margin: 8px 0 8px;
  color: #241a31;
  font-size: clamp(30px, 5vw, 56px);
  line-height: .95;
  letter-spacing: -.07em;
}

.standalone-editor-hero p {
  max-width: 620px;
  margin: 0;
  color: #746779;
  font-size: 15px;
  line-height: 1.9;
}

.standalone-editor-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.standalone-editor-file {
  display: none;
}

.standalone-editor-layout {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(420px, 1.3fr);
  gap: 22px;
  align-items: stretch;
}

.standalone-editor-layout.editor-active {
  grid-template-columns: minmax(0, 1fr);
}

.standalone-editor-layout.editor-active .standalone-photo-editor {
  width: 100%;
  min-height: min(86vh, 900px);
  padding: 24px;
}

.standalone-editor-layout.editor-active .editor-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 22px;
  align-items: stretch;
}

.standalone-editor-layout.editor-active .editor-controls {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  max-height: min(76vh, 820px);
  overflow: auto;
  padding: 18px;
  background: rgba(255, 250, 247, .72);
  border: 1px solid rgba(120, 84, 145, .1);
  border-radius: 24px;
}

.standalone-editor-layout.editor-active .photo-editor-preview {
  min-height: clamp(480px, 64vh, 760px);
}

.standalone-editor-layout.editor-active #photo-editor-canvas {
  max-width: 100%;
  max-height: min(70vh, 780px);
}

.standalone-editor-drop {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 520px;
  padding: 34px;
  color: #5f506d;
  background:
    linear-gradient(145deg, rgba(255, 250, 247, .94), rgba(244, 237, 248, .9)),
    radial-gradient(circle at 50% 0%, rgba(239, 114, 103, .18), transparent 42%);
  border: 1.5px dashed rgba(148, 109, 171, .32);
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .78), 0 16px 36px rgba(76, 45, 102, .08);
  text-align: center;
  transition: .22s ease;
}

.standalone-editor-drop[hidden] {
  display: none;
}

.standalone-editor-drop:hover,
.standalone-editor-drop.dragging {
  color: #39234f;
  background:
    linear-gradient(145deg, rgba(255, 244, 235, .98), rgba(241, 231, 247, .96)),
    radial-gradient(circle at 50% 0%, rgba(239, 114, 103, .25), transparent 44%);
  border-color: rgba(239, 114, 103, .58);
  transform: translateY(-1px);
}

.standalone-editor-drop > span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #ef7267;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(239, 114, 103, .16);
  font-size: 40px;
}

.standalone-editor-drop strong {
  font-size: 20px;
  font-weight: 900;
}

.standalone-editor-drop small {
  max-width: 260px;
  color: #928797;
  font-size: 13px;
  line-height: 1.7;
}

.photo-editor {
  display: grid;
  gap: 13px;
  margin-top: 14px;
  padding: 14px;
  background: rgba(255, 253, 249, .86);
  border: 1px solid rgba(120, 84, 145, .14);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(76, 45, 102, .08);
}

.standalone-photo-editor {
  min-height: 520px;
  margin-top: 0;
  padding: 20px;
  border-radius: 28px;
}

.editor-workbench {
  display: grid;
  gap: 13px;
}

.editor-controls {
  display: grid;
  gap: 13px;
}

.photo-editor[hidden] {
  display: none;
}

.photo-editor.frame-step .crop-layer {
  display: none;
}

.photo-editor.sticker-step .crop-layer {
  display: none;
}

.photo-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.photo-editor-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.editor-kicker {
  color: #b75c75;
  font: 900 9px/1 "DM Sans", sans-serif;
  letter-spacing: .16em;
}

.editor-section-label {
  color: #b75c75;
  font: 900 24px/1.15 "Noto Sans TC", "DM Sans", sans-serif;
  letter-spacing: .02em;
}

.photo-editor .editor-section-label {
  display: block;
  margin: 12px 0 16px;
  font-size: 24px;
  line-height: 1.15;
}

.photo-editor-head strong {
  overflow: hidden;
  color: #2b1e36;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-editor-head small {
  color: #9a8e9d;
  font-size: 11px;
  line-height: 1.4;
}

.editor-reset-button,
.edit-file-button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  color: #6d4aa2;
  background: #f4edf8;
  border: 1px solid #e4d4eb;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.editor-reset-button:hover,
.edit-file-button:hover,
.edit-file-button.edited {
  color: #fff;
  background: #ef7267;
  border-color: #ef7267;
}

.selected-file.editing {
  background: #fff2eb;
  box-shadow: inset 3px 0 0 #ef7267;
}

.selected-file .edit-file-button {
  margin-left: auto;
}

.photo-editor-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 190px;
  background:
    linear-gradient(45deg, rgba(57, 35, 79, .06) 25%, transparent 25%, transparent 75%, rgba(57, 35, 79, .06) 75%),
    linear-gradient(45deg, rgba(57, 35, 79, .06) 25%, transparent 25%, transparent 75%, rgba(57, 35, 79, .06) 75%),
    #fffaf7;
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  border: 1px solid rgba(120, 84, 145, .12);
  border-radius: 20px;
}

.crop-layer {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.crop-layer[hidden] {
  display: none;
}

.crop-box {
  position: absolute;
  inset: auto;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, .98);
  border-radius: 12px;
  box-shadow:
    0 0 0 9999px rgba(32, 23, 42, .28),
    0 8px 24px rgba(32, 23, 42, .24);
  cursor: move;
  pointer-events: auto;
  touch-action: none;
}

.crop-box::before,
.crop-box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crop-box::before {
  background:
    linear-gradient(90deg, transparent 33.333%, rgba(255,255,255,.55) 33.333%, rgba(255,255,255,.55) calc(33.333% + 1px), transparent calc(33.333% + 1px), transparent 66.666%, rgba(255,255,255,.55) 66.666%, rgba(255,255,255,.55) calc(66.666% + 1px), transparent calc(66.666% + 1px)),
    linear-gradient(0deg, transparent 33.333%, rgba(255,255,255,.55) 33.333%, rgba(255,255,255,.55) calc(33.333% + 1px), transparent calc(33.333% + 1px), transparent 66.666%, rgba(255,255,255,.55) 66.666%, rgba(255,255,255,.55) calc(66.666% + 1px), transparent calc(66.666% + 1px));
}

.crop-box::after {
  border: 1px solid rgba(57, 35, 79, .2);
  border-radius: 10px;
}

.crop-handle {
  position: absolute;
  z-index: 3;
  display: block;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid #ef7267;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(32, 23, 42, .24);
}

.crop-handle-nw { top: 3px; left: 3px; cursor: nwse-resize; }
.crop-handle-n { top: 3px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.crop-handle-ne { top: 3px; right: 3px; cursor: nesw-resize; }
.crop-handle-e { top: 50%; right: 3px; transform: translateY(-50%); cursor: ew-resize; }
.crop-handle-se { right: 3px; bottom: 3px; cursor: nwse-resize; }
.crop-handle-s { bottom: 3px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.crop-handle-sw { bottom: 3px; left: 3px; cursor: nesw-resize; }
.crop-handle-w { top: 50%; left: 3px; transform: translateY(-50%); cursor: ew-resize; }

.sticker-layer {
  position: absolute;
  z-index: 4;
  overflow: visible;
  pointer-events: auto;
}

.sticker-layer[hidden] {
  display: none;
}

.editor-sticker {
  position: absolute;
  transform-origin: center;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.editor-sticker img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(32, 23, 42, .22));
}

.editor-sticker.active {
  outline: 2px dashed rgba(239, 114, 103, .88);
  outline-offset: 5px;
}

.editor-sticker:not(.active) .sticker-delete,
.editor-sticker:not(.active) .sticker-handle {
  display: none;
}

.sticker-delete,
.sticker-handle {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(32, 23, 42, .22);
}

.sticker-delete {
  top: -20px;
  right: -20px;
  width: 30px;
  height: 30px;
  color: #fff;
  background: #39234f;
  border: 2px solid #fff;
  appearance: none;
  font: inherit;
}

.sticker-delete span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: currentColor;
  font-size: 0;
}

.sticker-delete span::before,
.sticker-delete span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.sticker-delete span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sticker-delete:hover {
  background: #ef7267;
}

.sticker-handle {
  width: 28px;
  height: 28px;
  background: #fff;
  border: 3px solid #ef7267;
}

.sticker-rotate {
  top: -56px;
  left: 50%;
  cursor: grab;
  transform: translateX(-50%);
}

.sticker-rotate:active {
  cursor: grabbing;
}

.sticker-rotate::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 50%;
  width: 2px;
  height: 25px;
  background: rgba(239, 114, 103, .72);
  transform: translateX(-50%);
}

.sticker-rotate::after {
  content: "";
  width: 15px;
  height: 15px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef7267' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 7.5A7 7 0 1 0 19 15'/%3E%3Cpath d='M18 3v4.5h-4.5'/%3E%3C/svg%3E");
}

.sticker-resize {
  right: -22px;
  bottom: -22px;
  cursor: nwse-resize;
}

.sticker-resize::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 3px solid #ef7267;
  border-bottom: 3px solid #ef7267;
  transform: translate(-1px, -1px);
}

.standalone-photo-editor .photo-editor-preview {
  min-height: 330px;
}

#photo-editor-canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: contain;
}

.standalone-photo-editor #photo-editor-canvas {
  max-height: 560px;
}

.editor-step-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 5px;
  background: rgba(244, 237, 248, .78);
  border: 1px solid rgba(120, 84, 145, .12);
  border-radius: 999px;
}

.editor-step-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  color: #806c86;
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  transition: .18s ease;
}

.editor-step-tab span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  background: #bfa9d0;
  border-radius: 50%;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
}

.editor-step-tab:hover,
.editor-step-tab.active {
  color: #39234f;
  background: #fffaf7;
  box-shadow: 0 8px 18px rgba(76, 45, 102, .08);
}

.editor-step-tab.active span {
  background: #ef7267;
}

.editor-step-panel {
  display: grid;
  gap: 13px;
}

.editor-step-panel[hidden] {
  display: none;
}

.editor-step-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 3px;
}

.filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-preset {
  min-height: 30px;
  padding: 0 11px;
  color: #806c86;
  background: #fffaf7;
  border: 1px solid #eadbe9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.filter-preset:hover,
.filter-preset.active {
  color: #fff;
  background: #39234f;
  border-color: #39234f;
}

.editor-ranges {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 13px 16px;
}

.editor-range {
  display: grid;
  gap: 7px;
  color: #695a70;
  font-size: 12px;
  font-weight: 900;
}

.editor-range[hidden] {
  display: none;
}

.editor-range span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.editor-range output {
  color: #ef7267;
  font-family: "DM Sans", sans-serif;
}

.editor-range small {
  color: #a597a5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.editor-range input[type="range"] {
  width: 100%;
  accent-color: #ef7267;
}

.frame-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.frame-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  color: #6c5d73;
  background: #fffaf7;
  border: 1px solid #eadbe9;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  transition: .18s ease;
}

.frame-preset:hover,
.frame-preset.active {
  color: #fff;
  background: #39234f;
  border-color: #39234f;
  transform: translateY(-1px);
}

.sticker-help {
  margin: -6px 0 2px;
  color: #8d7f93;
  font-size: 12px;
  line-height: 1.7;
}

.custom-sticker-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  color: #4f4359;
  background: linear-gradient(135deg, #fffaf7, #f7eff7);
  border: 1px solid #eadbe9;
  border-radius: 18px;
}

.custom-sticker-options strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 900;
}

.custom-sticker-options small {
  color: #8d7f93;
  font-size: 11px;
  line-height: 1.45;
}

.custom-sticker-visibility {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sticker-access-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 11px;
  color: #7c6d84;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #eadbe9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}

.sticker-access-option input {
  accent-color: #ef7267;
}

.sticker-access-option.selected {
  color: #fff;
  background: #39234f;
  border-color: #39234f;
  box-shadow: 0 10px 22px rgba(57, 35, 79, .14);
}

.sticker-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.sticker-preset {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 88px;
  padding: 10px 8px;
  color: #6c5d73;
  background: #fffaf7;
  border: 1px solid #eadbe9;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 900;
  transition: .18s ease;
}

.sticker-preset img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(57, 35, 79, .12));
}

.sticker-preset small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 3px 7px;
  color: #8a5f7a;
  background: #fff0f5;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.sticker-preset small.shared {
  color: #4f766b;
  background: #e4f7ef;
}

.sticker-preset:hover {
  color: #fff;
  background: #39234f;
  border-color: #39234f;
  transform: translateY(-1px);
}

.sticker-preset:hover small {
  color: #39234f;
  background: rgba(255, 255, 255, .86);
}

.sticker-plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: #ef7267;
  border-radius: 50%;
  font-size: 24px;
}

.custom-sticker-file {
  display: none;
}

.sticker-library-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding: 20px 22px;
  color: #4f4359;
  background:
    radial-gradient(circle at 8% 15%, rgba(239, 114, 103, .16), transparent 30%),
    linear-gradient(135deg, #fffaf7, #f6eef8);
  border: 1px solid #eadbe9;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(57, 35, 79, .08);
}

.sticker-library-copy {
  min-width: 0;
}

.sticker-library-copy span {
  display: block;
  color: #9d7f9b;
  font: 900 10px/1 "DM Sans", sans-serif;
  letter-spacing: .15em;
}

.sticker-library-copy strong {
  display: block;
  margin-top: 7px;
  color: #39234f;
  font-size: 20px;
  font-weight: 900;
}

.sticker-library-copy p {
  margin: 5px 0 0;
  color: #8d7f93;
  font-size: 12px;
  line-height: 1.7;
}

.sticker-library-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.sticker-library-controls .custom-sticker-visibility {
  flex-wrap: nowrap;
  gap: 8px;
}

.sticker-library-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: #fffaf7;
  background: #39234f;
  border: 1px solid rgba(57, 35, 79, .2);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(57, 35, 79, .14);
  font-size: 12px;
  font-weight: 900;
  transition: .18s ease;
}

.sticker-library-upload:hover {
  background: #ef7267;
  border-color: #ef7267;
  transform: translateY(-1px);
}

.sticker-library-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid rgba(234, 219, 233, .92);
}

.sticker-library-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 16px;
  color: #8d7f93;
  background: rgba(255, 255, 255, .58);
  border: 1px dashed #eadbe9;
  border-radius: 18px;
  font-size: 12px;
}

.sticker-library-empty strong {
  color: #39234f;
  font-size: 14px;
}

.sticker-library-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(234, 219, 233, .9);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(57, 35, 79, .06);
}

.sticker-library-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #fffaf7;
  border: 1px solid #eadbe9;
  border-radius: 16px;
}

.sticker-library-thumb img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(57, 35, 79, .13));
}

.sticker-library-info {
  min-width: 0;
}

.sticker-library-info strong,
.sticker-library-info small {
  display: block;
}

.sticker-library-info strong {
  overflow: hidden;
  color: #39234f;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticker-library-info small {
  margin-top: 3px;
  color: #8d7f93;
  font-size: 11px;
}

.sticker-library-item-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.sticker-library-item-actions button {
  min-height: 34px;
  color: #7c6d84;
  background: #fffaf7;
  border: 1px solid #eadbe9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  transition: .18s ease;
}

.sticker-library-item-actions button:hover {
  color: #39234f;
  border-color: rgba(239, 114, 103, .5);
  transform: translateY(-1px);
}

.sticker-library-item-actions button.active {
  color: #fff;
  background: #39234f;
  border-color: #39234f;
  box-shadow: 0 10px 20px rgba(57, 35, 79, .12);
}

.sticker-library-item-actions button.danger {
  min-width: 62px;
  color: #a94f5b;
  background: #fff3f2;
  border-color: #f1c9ca;
}

.sticker-library-item-actions button.danger:hover {
  color: #fff;
  background: #ef7267;
  border-color: #ef7267;
}


.editor-output-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 3px;
}

.editor-step-actions .outline-button,
.editor-output-actions .outline-button,
.editor-output-actions .primary-button {
  min-height: 42px;
}

body.dark .standalone-editor-hero {
  background:
    radial-gradient(circle at 12% 12%, rgba(239, 114, 103, .24), transparent 31%),
    linear-gradient(135deg, rgba(33, 30, 53, .96), rgba(42, 36, 69, .94) 56%, rgba(34, 58, 59, .9));
  border-color: #3b334f;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .22);
}

body.dark .standalone-editor-hero h2 {
  color: #fff8f0;
}

body.dark .standalone-editor-hero p {
  color: #d8cbd7;
}

body.dark .standalone-editor-drop {
  color: #e8ddea;
  background:
    linear-gradient(145deg, rgba(33, 30, 53, .94), rgba(42, 36, 69, .9)),
    radial-gradient(circle at 50% 0%, rgba(239, 114, 103, .2), transparent 42%);
  border-color: #51436a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 16px 36px rgba(0, 0, 0, .16);
}

body.dark .standalone-editor-drop:hover,
body.dark .standalone-editor-drop.dragging {
  color: #fff8f0;
  border-color: rgba(239, 114, 103, .62);
}

body.dark .standalone-editor-drop > span {
  color: #ffb49f;
  background: rgba(255, 255, 255, .08);
}

body.dark .standalone-editor-drop small {
  color: #cbbdce;
}

body.dark .photo-editor {
  background: rgba(33, 30, 53, .92);
  border-color: #51436a;
}

body.dark .photo-editor-head strong,
body.dark .editor-range {
  color: #fff8f0;
}

body.dark .photo-editor-head small {
  color: var(--ink-soft);
}

body.dark .photo-editor-preview {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .05) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .05) 75%),
    #161426;
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  border-color: #51436a;
}

body.dark .standalone-editor-layout.editor-active .editor-controls {
  background: rgba(255, 255, 255, .06);
  border-color: #51436a;
}

body.dark .editor-step-tabs {
  background: rgba(255, 255, 255, .07);
  border-color: #51436a;
}

body.dark .editor-step-tab {
  color: #d8cbd7;
}

body.dark .editor-step-tab span {
  background: #6f5b85;
}

body.dark .editor-step-tab:hover,
body.dark .editor-step-tab.active {
  color: #fff8f0;
  background: rgba(255, 255, 255, .1);
}

body.dark .editor-step-tab.active span {
  background: #ef7267;
}

body.dark .crop-box {
  border-color: rgba(255, 248, 240, .98);
  box-shadow:
    0 0 0 9999px rgba(6, 5, 12, .38),
    0 8px 24px rgba(0, 0, 0, .3);
}

body.dark .crop-handle {
  background: #fff8f0;
  border-color: #ff9b85;
}

body.dark .filter-preset,
body.dark .editor-reset-button,
body.dark .edit-file-button,
body.dark .frame-preset,
body.dark .sticker-preset {
  color: #ffd0c5;
  background: rgba(255, 255, 255, .08);
  border-color: #4c3d5c;
}

body.dark .filter-preset:hover,
body.dark .filter-preset.active,
body.dark .editor-reset-button:hover,
body.dark .edit-file-button:hover,
body.dark .edit-file-button.edited,
body.dark .frame-preset:hover,
body.dark .frame-preset.active,
body.dark .sticker-preset:hover {
  color: #fff8f0;
  background: #ef7267;
  border-color: #ef7267;
}

body.dark .sticker-help {
  color: #d8cbd7;
}

body.dark .custom-sticker-options {
  color: #fff8f0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(239, 114, 103, .08));
  border-color: #4c3d5c;
}

body.dark .custom-sticker-options small {
  color: #d8cbd7;
}

body.dark .sticker-access-option {
  color: #ffd0c5;
  background: rgba(255, 255, 255, .08);
  border-color: #4c3d5c;
}

body.dark .sticker-access-option.selected {
  color: #fff8f0;
  background: #ef7267;
  border-color: #ef7267;
}

body.dark .sticker-preset small {
  color: #ffd0c5;
  background: rgba(255, 255, 255, .1);
}

body.dark .sticker-preset small.shared {
  color: #bbf1df;
  background: rgba(98, 214, 177, .14);
}

body.dark .sticker-preset:hover small {
  color: #2c2036;
  background: #fff8f0;
}

body.dark .sticker-library-panel {
  color: #fff8f0;
  background:
    radial-gradient(circle at 8% 15%, rgba(239, 114, 103, .18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(239, 114, 103, .08));
  border-color: #4c3d5c;
}

body.dark .sticker-library-copy strong {
  color: #fff8f0;
}

body.dark .sticker-library-copy span,
body.dark .sticker-library-copy p {
  color: #d8cbd7;
}

body.dark .sticker-library-list {
  border-top-color: #4c3d5c;
}

body.dark .sticker-library-empty,
body.dark .sticker-library-item,
body.dark .sticker-library-thumb {
  background: rgba(255, 255, 255, .08);
  border-color: #4c3d5c;
}

body.dark .sticker-library-empty strong,
body.dark .sticker-library-info strong {
  color: #fff8f0;
}

body.dark .sticker-library-empty,
body.dark .sticker-library-info small {
  color: #d8cbd7;
}

body.dark .sticker-library-item-actions button {
  color: #ffd0c5;
  background: rgba(255, 255, 255, .08);
  border-color: #4c3d5c;
}

body.dark .sticker-library-item-actions button:hover {
  color: #fff8f0;
  border-color: rgba(239, 114, 103, .74);
}

body.dark .sticker-library-item-actions button.active {
  color: #fff8f0;
  background: #ef7267;
  border-color: #ef7267;
}

body.dark .sticker-library-item-actions button.danger {
  color: #ffc8c1;
  background: rgba(239, 114, 103, .12);
  border-color: rgba(239, 114, 103, .34);
}

body.dark .sticker-library-item-actions button.danger:hover {
  color: #fff8f0;
  background: #ef7267;
  border-color: #ef7267;
}

body.dark .sticker-library-upload {
  color: #fff8f0;
  background: #ef7267;
  border-color: #ef7267;
}

body.dark .sticker-library-upload:hover {
  background: #ff9b85;
  border-color: #ff9b85;
}

body.dark .sticker-delete {
  background: #ef7267;
}

body.dark .sticker-handle {
  background: #fff8f0;
  border-color: #ff9b85;
}

@media (max-width: 980px) {
  .standalone-editor-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .standalone-editor-layout {
    grid-template-columns: 1fr;
  }

  .standalone-editor-layout.editor-active .editor-workbench {
    grid-template-columns: 1fr;
  }

  .standalone-editor-layout.editor-active .editor-controls {
    max-height: none;
  }

  .custom-sticker-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .custom-sticker-visibility {
    justify-content: flex-start;
  }

  .sticker-library-panel {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .sticker-library-controls {
    justify-content: flex-start;
  }

  .standalone-editor-drop,
  .standalone-photo-editor {
    min-height: auto;
  }

  .standalone-editor-drop {
    padding: 30px 22px;
  }
}

@media (max-width: 620px) {
  .sticker-library-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .sticker-library-list {
    grid-template-columns: 1fr;
  }

  .sticker-library-item-actions {
    grid-template-columns: 1fr 1fr;
  }

  .sticker-library-item-actions button.danger {
    grid-column: 1 / -1;
  }

  .sticker-library-controls,
  .sticker-library-controls .custom-sticker-visibility,
  .sticker-library-upload {
    width: 100%;
  }

  .sticker-library-controls .custom-sticker-visibility {
    flex-wrap: wrap;
  }

  .sticker-library-upload {
    min-height: 42px;
  }

  .standalone-editor-hero {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .standalone-editor-actions,
  .standalone-editor-actions .primary-button,
  .editor-step-actions,
  .editor-step-actions .primary-button,
  .editor-output-actions,
  .editor-output-actions .primary-button,
  .editor-output-actions .outline-button {
    width: 100%;
  }

  .standalone-editor-drop {
    border-radius: 22px;
  }

  .standalone-photo-editor {
    padding: 15px;
    border-radius: 22px;
  }

  .editor-ranges {
    grid-template-columns: 1fr;
  }

  .editor-step-tabs {
    gap: 5px;
    padding: 4px;
  }

  .editor-step-tab {
    gap: 5px;
    min-height: 34px;
    font-size: 10px;
  }

  .editor-step-tab span {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
}

/* Clear homepage entry point for the photo editor. */
.editor-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  color: #39234f;
  background: rgba(255, 248, 240, .72);
  border: 1px solid rgba(239, 114, 103, .26);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(239, 114, 103, .12);
  font-size: 12px;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.editor-entry-button span {
  color: #ef7267;
  font-size: 16px;
}

.editor-entry-button:hover {
  color: #fff;
  background: #39234f;
  box-shadow: 0 14px 26px rgba(57, 35, 79, .18);
  transform: translateY(-1px);
}

body.dark .editor-entry-button {
  color: #fff8f0;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 156, 134, .24);
}

body.dark .editor-entry-button:hover {
  background: #ef7267;
}

.sidebar .editor-nav-item .nav-icon {
  color: #ef7267;
}

.sidebar .editor-nav-item:hover,
.sidebar .editor-nav-item:focus-visible {
  color: #39234f;
  background: rgba(239, 114, 103, .14);
}

body.dark .sidebar .editor-nav-item .nav-icon {
  color: #ffb49f;
}

body.dark .sidebar .editor-nav-item:hover,
body.dark .sidebar .editor-nav-item:focus-visible {
  color: #fff8f0;
  background: rgba(239, 114, 103, .18);
}

.main-content.compact-gallery-page .gallery-section {
  padding-top: 18px;
}

.main-content.compact-gallery-page {
  padding-top: 24px;
}

.main-content.compact-gallery-page .profile-panel {
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .hero-actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .editor-entry-button {
    min-height: 40px;
    padding: 0 16px;
    font-size: 11px;
  }

  .main-content.compact-gallery-page .gallery-section {
    padding-top: 10px;
  }

  .main-content.compact-gallery-page {
    padding-top: 14px;
  }
}
