:root {
  font-family: "DM Sans", "Microsoft YaHei", system-ui, sans-serif;
  color: #292822;
  background: #faf8f4;
  color-scheme: light;
  --ink: #292822; --subtle: #655f56; --border: #e5dfd6; --accent: #843f4d; --paper: #fffdfa;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { min-height: 42px; cursor: pointer; }
button, input, textarea, select { border: 1px solid var(--border); border-radius: 9px; }
button { background: var(--paper); color: var(--ink); padding: 7px 12px; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 3px solid #ad6576; outline-offset: 2px; }
button:disabled { cursor: wait; opacity: .65; }
.primary, .selected { color: white; background: var(--accent); border-color: var(--accent); }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 44px; padding: 9px 11px; color: var(--ink); background: white; }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; flex: 0 0 auto; }
textarea { min-height: 108px; resize: vertical; }
[hidden] { display: none !important; }
.shell, .loading { max-width: 720px; margin: auto; padding: 0 16px 102px; }
.loading { padding-top: 24px; }
.top { min-height: 65px; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { font-family: "STIX Two Text","Songti SC", SimSun, serif; font-size: 25px; font-weight: bold; }
.top button { min-height: 40px; }
h1 { font-size: 26px; margin: 0; }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0; }
p { line-height: 1.65; }
label, .field { display: grid; gap: 6px; }
form, .stack { display: grid; gap: 14px; }
.actions, .meta, .filters, .section-head, .checkset { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.map-link { display: inline-flex; align-items: center; min-height: 42px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 9px; }
.section-head { justify-content: space-between; margin: 18px 0 10px; }
.meta { font-size: 13px; color: var(--subtle); }
.muted { color: var(--subtle); font-size: 14px; }
.place-result { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.place-result input { margin-top: 4px; accent-color: var(--accent); }
.place-result small { display: block; margin-top: 4px; }
.panel, .entry, .intro { border: 1px solid var(--border); background: var(--paper); border-radius: 16px; padding: 15px; }
.entry { display: grid; gap: 10px; overflow: hidden; }
.entry + .entry { margin-top: 10px; }
.entry p, .body-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0; }
.entry .excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cover { position: relative; width: 100%; display: block; padding: 0; height: clamp(160px, 48vw, 290px); overflow: hidden; border-radius: 16px; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover span { position: absolute; left: 12px; bottom: 12px; color: white; background: #292822dc; padding: 7px 10px; border-radius: 7px; }
.bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; background: #fffdfa; border-top: 1px solid var(--border); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
.bottom button { width: min(220px, 33%); border-color: transparent; }
.bottom button[aria-current=page] { color: var(--accent); font-weight: bold; background: #f5e8e9; }
.thumbs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.thumbs > * { min-width: 0; }
.thumbs img, .thumbs video, .attachment img { width: 100%; aspect-ratio: 1.25; display: block; object-fit: cover; border-radius: 8px; background: #eee8de; }
.media-full { display: grid; gap: 10px; }
.media-full img, .media-full video { max-width: 100%; max-height: 65vh; width: auto; border-radius: 10px; }
.attachment { display: grid; gap: 5px; }
.attachment span { overflow-wrap: anywhere; font-size: 13px; }
.checkset label, .inline-check { display: flex; align-items: center; gap: 5px; min-height: 38px; }
.checkset label { background: #f6f2ec; padding: 3px 7px; border-radius: 7px; }
.badge { color: var(--accent); font-weight: bold; }
.login { display: grid; gap: 15px; max-width: 360px; margin: 14vh auto 0; }
.login h1 { margin: 0; }
#feedback { position: fixed; z-index: 4; left: 50%; bottom: 82px; transform: translateX(-50%); max-width: 90vw; width: max-content; border-radius: 10px; padding: 12px 16px; background: #282420; color: white; box-shadow: 0 3px 16px #0002; }
canvas.globe { display: block; width: min(100%,450px); aspect-ratio: 1; margin: auto; touch-action: none; cursor: grab; }
canvas.globe:active { cursor: grabbing; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.map-help { margin: 8px 0 0; }
.preview-image { display: block; max-width: 100%; height: auto; margin: auto; }
.share-tile { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 5px; }
.share-tile img, .share-tile video { width: 100%; border-radius: 6px; }
.notice { text-align: left; }
.unread { border-left: 4px solid var(--accent); }
.highlight { outline: 2px solid var(--accent); scroll-margin: 16px; }
a { color: var(--accent); }
@media (min-width: 520px) { .shell { padding-inline: 24px; } }

.entry-link {display:grid;gap:10px;color:inherit;text-decoration:none;}
.entry:has(.entry-link):hover {border-color:var(--accent);}
audio {width:100%;max-width:100%;}
.bottom button {width:25%;font-size:14px;padding-inline:4px;}
.calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--border);}
.calendar-weekday {text-align:center;padding:10px 0;}
.calendar-day {min-height:110px;padding:6px;border:1px solid var(--border);overflow-wrap:anywhere;}
.calendar-day.empty,.calendar-day.outside {background:#eeece8;color:#79756e;}
.calendar-day.has-events {background:var(--paper);}
.calendar-day time {display:block;font-size:13px;margin-bottom:8px;}
.calendar-day a {display:block;font-size:13px;margin-bottom:8px;line-height:1.5;}
@media(max-width:480px){.calendar-day {padding:4px;min-height:95px;}.calendar-day a {font-size:12px;}}

/* Themes apply without rebuilding the current form or stopping media. */
.theme-picker {display:flex;align-items:center;gap:6px;font-size:13px;}
.theme-picker select {width:auto;max-width:135px;min-height:40px;padding:6px;}
:root[data-theme=stationery] {--ink:#28324b;--subtle:#555a66;--border:#a5b4cd;--accent:#244fc5;--paper:#fffcf0;background:#f7eed7;color:var(--ink);}
[data-theme=stationery] body {background-image:linear-gradient(#244fc510 1px,transparent 1px),linear-gradient(90deg,#244fc510 1px,transparent 1px);background-size:22px 22px;}
[data-theme=stationery] .brand {color:#244fc5;letter-spacing:2px;}
[data-theme=stationery] .shell {border-left:5px double #b19b7a;}
[data-theme=stationery] .entry,[data-theme=stationery] .panel {border-radius:3px;box-shadow:3px 4px 0 #d4c5a6;}
[data-theme=stationery] h1 {color:#244fc5;font-family:KaiTi,STKaiti,serif;}
[data-theme=stationery] .calendar-grid {border:2px solid #244fc5;}
[data-theme=stationery] .calendar-day {border-color:#a5b4cd;}
[data-theme=stationery] .calendar-day.has-events {background:#fff6ce;}
[data-theme=stationery] .calendar-day a {color:#a42d22;}
[data-theme=stationery] .primary {background:#bd3427;border-color:#bd3427;color:white;}
[data-theme=comic] {--ink:#353025;--subtle:#5d5039;--border:#625338;--accent:#a83224;--paper:#fff8dc;background:#f7d75c;color:var(--ink);}
[data-theme=comic] body {background-image:radial-gradient(#35302518 .8px,transparent .8px);background-size:5px 5px;}
[data-theme=comic] .brand {font-weight:900;color:#a83224;text-shadow:1px 1px #fff8dc;}
[data-theme=comic] h1,[data-theme=comic] h2 {font-weight:900;}
[data-theme=comic] .entry,[data-theme=comic] .panel {border:2px solid #353025;border-radius:9px;box-shadow:4px 4px 0 #353025;}
[data-theme=comic] button {border-width:2px;}
[data-theme=comic] .calendar-grid {border:2px solid #353025;border-radius:10px;overflow:hidden;}
[data-theme=comic] .calendar-weekday {background:#206e66;color:#fff;}
[data-theme=comic] .calendar-day.has-events {background:#dceecb;}
[data-theme=comic] .calendar-day a {color:#8d261c;font-weight:bold;}
[data-theme=comic] .selected {background:#206e66;border-color:#206e66;color:white;}
[data-theme]:not([data-theme=original]) .bottom {background:var(--paper);border-color:var(--border);}
[data-theme]:not([data-theme=original]) .bottom button[aria-current=page] {background:var(--accent);color:white;}
[data-theme]:not([data-theme=original]) .meta,[data-theme]:not([data-theme=original]) .muted {color:var(--subtle);}
[data-theme]:not([data-theme=original]) button:focus-visible,[data-theme]:not([data-theme=original]) a:focus-visible,[data-theme]:not([data-theme=original]) select:focus-visible {outline:3px solid var(--accent);outline-offset:3px;}

.gaigai-sticker {display:none;object-fit:contain;flex-shrink:0;}
[data-theme]:not([data-theme=original]) .brand {display:flex;align-items:center;gap:7px;}
[data-theme]:not([data-theme=original]) .gaigai-sticker {display:block;width:64px;height:64px;}
@media(max-width:480px) {[data-theme]:not([data-theme=original]) .top {padding-block:8px;}[data-theme]:not([data-theme=original]) .gaigai-sticker {width:52px;height:52px;}}

/* B — layered paper, gingham tape and photographic keepsakes. */
:root[data-theme=collage] {
  --ink:#44372f;--subtle:#716052;--border:#d9c6b4;--accent:#ad382e;--paper:#fff9ed;
  background:#e5b2a3;color:var(--ink);
  font-family:"Microsoft YaHei",system-ui,sans-serif;
}
[data-theme=collage] body {
  background-color:#e5b2a3;
  background-image:radial-gradient(ellipse at 20% 10%,#ffe5d380,transparent 60%),repeating-linear-gradient(12deg,#ffffff0a 0 1px,transparent 1px 4px);
}
[data-theme=collage] .shell {
  max-width:760px;min-height:100vh;padding:22px 30px 120px;
  background-color:#f7d8cb;
  background-image:radial-gradient(#985b3220 .6px,transparent .9px),repeating-linear-gradient(95deg,#fff8ed12 0 2px,transparent 2px 5px);
  background-size:5px 7px,auto;box-shadow:0 0 24px #67433320;
  border-inline:1px solid #fff2df;
}
[data-theme=collage] .top {gap:14px;padding-bottom:18px;align-items:center;}
[data-theme=collage] .brand {
  position:relative;isolation:isolate;min-height:104px;flex:1 1 100%;justify-content:center;
  color:#b23c30;font-family:KaiTi,STKaiti,"Microsoft YaHei",serif;font-size:clamp(28px,6vw,42px);letter-spacing:3px;
}
[data-theme=collage] .brand::before {
  content:"";position:absolute;z-index:-1;inset:15px 0 10px 58px;background:#fff9ed;
  clip-path:polygon(1% 7%,8% 1%,17% 5%,26% 0,38% 4%,51% 0,65% 4%,78% 0,90% 5%,99% 1%,100% 88%,91% 95%,77% 91%,66% 99%,54% 94%,43% 100%,30% 94%,17% 99%,7% 93%,0 98%);
  transform:rotate(-2deg);
}
[data-theme=collage] .brand .gaigai-sticker {width:100px;height:100px;transform:rotate(-7deg);margin-left:-10px;}
[data-theme=collage] .top>.actions {width:100%;justify-content:flex-end;gap:8px;}
[data-theme=collage] button,[data-theme=collage] select {border-radius:7px;border-color:#d4b8a4;background:#fff9ed;}
[data-theme=collage] button {box-shadow:0 2px 0 #9d6a4920;}
[data-theme=collage] .primary {background:#d95340;border-color:#b83e30;color:#fff;font-weight:700;border-radius:22px;padding-inline:22px;box-shadow:0 0 0 3px #fff9ed,0 4px 0 3px #b76b4430;}
[data-theme=collage] .selected {background:#755093;border-color:#755093;color:white;}
[data-theme=collage] h1 {color:#554063;font-family:KaiTi,STKaiti,serif;font-size:29px;}
[data-theme=collage] .page-content>.section-head:first-child h1 {position:relative;isolation:isolate;padding:9px 18px;}
[data-theme=collage] .page-content>.section-head:first-child h1::before {
  content:"";position:absolute;inset:0;z-index:-1;background:#e5c9ed;transform:rotate(-2deg);
  clip-path:polygon(0 6%,10% 0,27% 5%,45% 0,64% 6%,83% 1%,100% 5%,98% 93%,79% 100%,58% 95%,37% 100%,18% 94%,1% 99%);
}
[data-theme=collage] .section-head {gap:14px;margin:12px 0 18px;}
[data-theme=collage] .section-head:empty {display:none;}
[data-theme=collage] .filters {margin-bottom:20px;gap:9px;}
[data-theme=collage] .filters button {border-radius:3px 10px 3px 6px;min-height:40px;}
[data-theme=collage] .panel,[data-theme=collage] .entry {
  position:relative;border:1px solid #ead8c4;border-radius:3px 8px 5px 4px;background-color:var(--paper);
  background-image:radial-gradient(#986d4110 .5px,transparent .9px);background-size:5px 5px;
  box-shadow:2px 5px 0 #c3907950,0 7px 15px #85563812;padding:20px;
}
[data-theme=collage] .entry {margin-block:20px;overflow:visible;border-top:0;}
[data-theme=collage] .entry::before {
  content:"";position:absolute;pointer-events:none;right:23px;top:-10px;width:68px;height:22px;opacity:.85;transform:rotate(5deg);
  background-color:#f3c268;background-image:linear-gradient(90deg,#fff9ed80 50%,transparent 50%),linear-gradient(#fff9ed80 50%,transparent 50%);background-size:12px 12px;
}
[data-theme=collage] .entry h3 {font-family:KaiTi,STKaiti,serif;font-size:23px;line-height:1.4;}
[data-theme=collage] .entry .meta {row-gap:7px;line-height:1.7;}
[data-theme=collage] .entry time {color:#a3342a;border:1px solid #c86c57;padding:1px 7px;background:#fff4dc;font-weight:700;}
[data-theme=collage] .entry p {line-height:1.9;}
[data-theme=collage] .thumbs {gap:13px;padding-block:8px;}
[data-theme=collage] .thumbs img,[data-theme=collage] .media-full img {
  padding:6px 6px 18px;background:#fff;box-shadow:1px 3px 6px #5e412632;border-radius:0;
}
[data-theme=collage] .thumbs img:nth-child(even) {transform:rotate(2deg);}
[data-theme=collage] .cover {border:8px solid #fff9ed;border-bottom-width:24px;box-shadow:2px 4px 10px #724a3130;transform:rotate(-1deg);margin:5px 0 26px;border-radius:1px;}
[data-theme=collage] .cover span {background:#fff9edeb;color:#5b3c31;font-family:KaiTi,STKaiti,serif;font-size:21px;}
[data-theme=collage] .calendar-grid {border:0;background:#fff9ed;box-shadow:2px 5px 0 #c3907950;overflow:hidden;border-radius:9px 3px 8px 2px;margin-bottom:28px;}
[data-theme=collage] .calendar-weekday {background:#d9bce4;color:#513567;font-weight:700;font-size:14px;}
[data-theme=collage] .calendar-day {min-height:90px;border-color:#ddcbb6;padding:7px;}
[data-theme=collage] .calendar-day.empty {background:#eeebe4;color:#756f65;}
[data-theme=collage] .calendar-day.outside {background:#f6efe2;}
[data-theme=collage] .calendar-day.has-events {background:#e6edc7;}
[data-theme=collage] .calendar-day.has-events:nth-child(3n) {background:#ecdafa;}
[data-theme=collage] .calendar-day.has-events:nth-child(3n + 1) {background:#ffddd0;}
[data-theme=collage] .calendar-day time {font-weight:700;font-size:15px;}
[data-theme=collage] .calendar-day a {color:#50315f;font-weight:600;text-decoration:underline;text-decoration-color:#997b9f;}
[data-theme=collage] .section-head:has(#overview-month) {justify-content:center;gap:16px;}
[data-theme=collage] .section-head:has(#overview-month)>label {font-size:12px;color:#705264;}
[data-theme=collage] #overview-month {background:#e2c8ee;border:0;color:#50315f;font-weight:700;}
[data-theme=collage] .checkset label {background:#e9edcf;border:1px solid #c9d3a7;border-radius:4px;padding:5px 10px;}
[data-theme=collage] input:not([type=checkbox]),[data-theme=collage] textarea {background:#fffef8;border-color:#cebca7;}
[data-theme=collage] fieldset {min-width:0;}
[data-theme=collage] legend {color:#69417b;font-weight:700;padding-inline:8px;}
[data-theme=collage] .stack>h1 {padding-block:8px;font-family:KaiTi,STKaiti,serif;}
[data-theme=collage] .bottom {max-width:760px;margin:auto;background:#fff9edf5;border-top:2px dashed #d5b3a0;box-shadow:0 -5px 16px #8b5f4212;gap:4px;}
[data-theme=collage] .bottom button {display:grid;justify-items:center;gap:4px;background:transparent;border:0;box-shadow:none;color:#665247;min-height:56px;}
[data-theme=collage] .bottom button::before {font-size:23px;line-height:1;}
[data-theme=collage] .bottom button[data-value=overview]::before {content:"▦";}
[data-theme=collage] .bottom button[data-value=timeline]::before {content:"◷";}
[data-theme=collage] .bottom button[data-value=places]::before {content:"◎";}
[data-theme=collage] .bottom button[data-value=tasks]::before {content:"☑";}
:root[data-theme=collage] .bottom button[aria-current=page] {background:#f9e3db;color:#ad382e;text-decoration:underline;text-underline-offset:5px;border-radius:8px;}
@media(min-width:900px) {[data-theme=collage] .shell {margin-block:24px;min-height:calc(100vh - 48px);border-radius:8px;}}
@media(max-width:480px) {
  [data-theme=collage] .shell {padding:12px 16px 110px;}
  [data-theme=collage] .top {padding-bottom:10px;gap:7px;}
  [data-theme=collage] .brand {min-height:92px;font-size:30px;letter-spacing:1px;}
  [data-theme=collage] .brand .gaigai-sticker {width:86px;height:86px;}
  [data-theme=collage] .top>.actions {justify-content:center;gap:7px;}
  [data-theme=collage] .top button {font-size:12px;padding-inline:9px;}
  [data-theme=collage] .theme-picker {font-size:12px;}
  [data-theme=collage] .theme-picker select {max-width:112px;font-size:12px;}
  [data-theme=collage] .panel,[data-theme=collage] .entry {padding:15px;}
  [data-theme=collage] .calendar-day {min-height:76px;padding:4px;}
  [data-theme=collage] .calendar-day a {font-size:11px;line-height:1.5;}
  [data-theme=collage] .calendar-weekday {font-size:12px;}
  [data-theme=collage] .bottom {padding-inline:8px;}
  [data-theme=collage] .bottom button {font-size:12px;}
}

[data-theme=collage] .page-content,[data-theme=collage] form,[data-theme=collage] label,[data-theme=collage] .field {min-width:0;}
[data-theme=collage] input,[data-theme=collage] select,[data-theme=collage] textarea {min-width:0;max-width:100%;}
[data-theme=collage] .actions>[data-new-category] {flex:1 1 140px;width:140px;}

@font-face {
  font-family:"Journal Rounded";
  src:url('/fonts/huninn.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
:root[data-theme=collage] {
  --handwriting:"Journal Rounded","Microsoft YaHei",sans-serif;
  --ink:#51463f;--subtle:#786a61;--accent:#b2473d;--border:#e5d6c6;--paper:#fffcf5;
  font-family:var(--handwriting);background:#eed3c7;
}
[data-theme=collage] body {background:#eed3c7;}
[data-theme=collage] .shell {background-color:#f5e0d5;background-image:repeating-linear-gradient(5deg,#fff9f225 0 1px,transparent 1px 5px);border:0;box-shadow:0 10px 50px #816b4a14;}
:root[data-theme=collage] .brand {font-family:var(--handwriting);font-size:clamp(28px,5vw,38px);font-weight:400;letter-spacing:1px;min-height:122px;}
[data-theme=collage] .brand::before {inset:0 -8px 0 30px;background:transparent url('/paper-scrap.png') center/100% 100% no-repeat;clip-path:none;filter:drop-shadow(0 3px 2px #8a6f4610);transform:rotate(-3deg);}
[data-theme=collage] .brand .gaigai-sticker {width:94px;height:94px;}
:root[data-theme=collage] h1,:root[data-theme=collage] h2,:root[data-theme=collage] .entry h3 {font-family:var(--handwriting);font-weight:400;letter-spacing:.3px;line-height:1.5;}
:root[data-theme=collage] h1 {font-size:28px;}
:root[data-theme=collage] h2 {font-size:23px;}
:root[data-theme=collage] .entry h3 {font-size:22px;}
[data-theme=collage] .page-content>.section-head:first-child h1 {padding:10px 18px;}
[data-theme=collage] .page-content>.section-head:first-child h1::before {background:#ded0e9;clip-path:none;border-radius:16px 23px 19px 26px;transform:rotate(-3deg);box-shadow:0 3px 0 #c5b2d52b;}
[data-theme=collage] button,[data-theme=collage] select {border-radius:16px;border-color:#e1cbbb;}
[data-theme=collage] .top button,[data-theme=collage] .theme-picker select {border-radius:18px;background:#fff9eece;box-shadow:none;}
[data-theme=collage] .primary {background:#c45c4c;border:0;border-radius:26px;padding:11px 23px;font-family:var(--handwriting);font-size:16px;font-weight:400;box-shadow:0 0 0 3px #fff9ec,0 5px 10px #c38b6c30;}
[data-theme=collage] .filters button {border-radius:18px;padding:8px 16px;border:0;box-shadow:none;}
[data-theme=collage] .selected {background:#806396;}
[data-theme=collage] .entry {isolation:isolate;background:none;border:0;border-radius:22px;box-shadow:none;padding:27px 24px;margin:28px 0;}
[data-theme=collage] .entry::after {content:"";position:absolute;inset:-9px -7px;z-index:-1;pointer-events:none;background:url('/paper-scrap.png') center/100% 100% no-repeat;filter:drop-shadow(0 5px 3px #927b531a);}
[data-theme=collage] .entry::before {width:64px;height:21px;top:-9px;right:30px;border-radius:4px;opacity:.65;background-color:#e7c990;}
[data-theme=collage] .panel {border:0;border-radius:23px;box-shadow:0 6px 18px #a8805410;background:#fffcf3;}
[data-theme=collage] form.panel {position:relative;border-radius:24px;padding:24px;background:var(--paper);border-top:5px solid #fff9ee;}
[data-theme=collage] fieldset.panel {background:#f5f0e6;border-radius:18px;box-shadow:none;}
[data-theme=collage] .checkset label {border:0;border-radius:14px;background:#e6ebd3;padding:7px 12px;}
[data-theme=collage] input:not([type=checkbox]),[data-theme=collage] textarea {border-radius:14px;border-color:#ded5c8;background:#fffef9;}
[data-theme=collage] .calendar-grid {position:relative;isolation:isolate;background:#fffaf0;padding:12px 10px 22px;gap:4px;border-radius:24px 24px 17px 22px;overflow:visible;box-shadow:0 6px 18px #9c815018;}
[data-theme=collage] .calendar-grid::after {content:"";pointer-events:none;position:absolute;inset:-9px -7px -13px;z-index:-1;background:url('/paper-scrap.png') center/100% 100% no-repeat;}
[data-theme=collage] .calendar-weekday {background:#e4d6eb;color:#695572;border-radius:10px;font-family:var(--handwriting);font-weight:400;font-size:15px;}
[data-theme=collage] .calendar-day {border:0;border-radius:11px;min-height:85px;padding:8px;}
[data-theme=collage] .calendar-day.empty {background:#edeae4;color:#81796d;}
[data-theme=collage] .calendar-day.outside {background:transparent;}
[data-theme=collage] .calendar-day.has-events {background:#e6ebd2;}
[data-theme=collage] .calendar-day a {color:#675078;font-weight:400;text-decoration-color:#c0aaca;font-size:13px;}
[data-theme=collage] .calendar-day time {font-family:var(--handwriting);font-size:17px;font-weight:400;}
[data-theme=collage] #overview-month {border-radius:17px;background:#e3d3ec;font-family:var(--handwriting);font-weight:400;}
[data-theme=collage] .entry time {font-family:var(--handwriting);font-size:14px;font-weight:400;color:#a35444;background:#fae6d6;border:0;border-radius:9px;padding:4px 9px;}
[data-theme=collage] .entry p,[data-theme=collage] textarea {font-size:15px;line-height:1.95;}
[data-theme=collage] .thumbs img,[data-theme=collage] .media-full img {border-radius:5px;box-shadow:1px 4px 9px #6f54351a;}
[data-theme=collage] .cover {border-radius:12px;transform:rotate(-1deg);}
:root[data-theme=collage] .bottom {border:0;border-radius:26px 26px 0 0;background:#fffcf5f5;box-shadow:0 -3px 20px #7c634b12;padding-top:12px;}
:root[data-theme=collage] .bottom button {font-family:var(--handwriting);font-size:14px;}
:root[data-theme=collage] .bottom button[aria-current=page] {border-radius:19px;background:#f5ddd2;text-decoration:none;color:#a65043;}
@media(max-width:480px) {
  [data-theme=collage] .shell {padding-inline:18px;}
  :root[data-theme=collage] .brand {font-size:29px;min-height:110px;}
  [data-theme=collage] .brand .gaigai-sticker {width:85px;height:85px;}
  [data-theme=collage] .calendar-grid {gap:3px;padding:9px 6px 16px;}
  [data-theme=collage] .calendar-day {min-height:72px;padding:5px 3px;}
  [data-theme=collage] .calendar-day a {font-size:11px;}
  [data-theme=collage] .entry {padding:23px 17px;}
  [data-theme=collage] form.panel {padding:18px;}
  [data-theme=collage] .bottom button {font-size:12px;}
}

[data-theme=collage] .brand .gaigai-sticker {position:relative;z-index:1;}

/* Separate calendar event links into individually clickable labels. */
.calendar-day a {
  display:block;min-width:0;padding:6px 7px;margin:0 0 7px;
  border-radius:7px;border-left:3px solid var(--accent);
  background:var(--paper);box-shadow:0 2px 5px #51403216;
  text-decoration:none;line-height:1.5;overflow-wrap:anywhere;
}
.calendar-day a:hover {box-shadow:0 3px 8px #51403228;}
:root[data-theme=collage] .calendar-day a {
  background:#f1edfa;color:#59486c;border-left-color:#a58ac9;
  border-radius:7px;padding:6px 7px;text-decoration:none;
  box-shadow:0 2px 5px #705a7d1c;font-weight:400;
}
:root[data-theme=collage] .calendar-day a:hover {background:#e9e1f5;box-shadow:0 3px 8px #705a7d2a;}
@media(max-width:480px) {
  .calendar-day a,:root[data-theme=collage] .calendar-day a {padding:5px 3px;border-left-width:2px;margin-bottom:6px;}
}

.task-status-switch {display:flex;gap:4px;padding:5px;background:var(--paper);border:1px solid var(--border);border-radius:14px;max-width:440px;}
.task-status-switch button {flex:1;min-width:0;border:0;border-radius:9px;background:transparent;box-shadow:none;min-height:46px;font-weight:600;}
.task-status-switch button.selected {background:var(--accent);color:#fff;box-shadow:0 2px 5px #51403218;}
.task-filter-divider {border:0;border-top:1px solid var(--border);margin:20px 0 16px;}
.task-categories {gap:8px;}
.task-categories button {border-radius:999px;min-height:36px;padding:6px 14px;font-size:13px;}
:root[data-theme=collage] .task-status-switch {background:#eee2d7;border:0;border-radius:15px;padding:5px;box-shadow:inset 0 1px 3px #69503c0b;}
:root[data-theme=collage] .task-status-switch button {border-radius:10px;background:transparent;box-shadow:none;font-size:16px;font-weight:400;color:#78675d;}
:root[data-theme=collage] .task-status-switch button.selected {background:#fffcf4;color:#a44d40;box-shadow:0 2px 5px #75574018;}
:root[data-theme=collage] .task-filter-divider {border-top:1px dashed #cbb3a2;}
:root[data-theme=collage] .task-categories button {border-radius:999px;min-height:35px;padding:6px 14px;background:#fff9ed;color:#746177;font-size:13px;border:1px solid #e2d3df;}
:root[data-theme=collage] .task-categories button.selected {background:#e1d1ed;border-color:#c8b0da;color:#5f4472;}

.utility-top {min-height:56px;justify-content:space-between;}
.account-link {display:flex;align-items:center;gap:8px;min-width:0;}
.account-nickname {max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;}
.shell>.brand {margin-bottom:20px;}
[data-theme=collage] .utility-top {padding:0 0 8px;min-height:50px;}
[data-theme=collage] .utility-top button {font-size:14px;}
[data-theme=collage] .account-nickname {color:var(--subtle);}
@media(max-width:480px) {.account-nickname {max-width:140px;}}

.month-navigation {display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:12px;}
.month-navigation>button {height:44px;min-height:44px;flex:0 0 auto;white-space:nowrap;}
.month-navigation>#overview-month {height:44px;min-height:44px;width:170px;min-width:0;flex:0 1 170px;margin:0;}
@media(max-width:480px) {.month-navigation,[data-theme=collage] .month-navigation {gap:8px;}.month-navigation>button {padding-inline:10px;}}

.place-breadcrumb {margin-bottom:6px;}
.place-groups {display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;}
.place-group {display:grid;text-align:left;gap:8px;padding:15px;border-radius:16px;}
.place-group small {color:var(--subtle);}
#footprint-detail {margin-top:22px;}
#footprint-detail details form {margin-top:15px;}

/* A paper-framed illustrated globe. */
.panel:has(>canvas.globe) {position:relative;padding:22px 16px 16px;background:#fffcf5;border:1px solid #e9e2d4;}
canvas.globe {border-radius:24px;background:#faf8f0;}
[data-theme=collage] .panel:has(>canvas.globe) {background:#fffcf3;box-shadow:0 7px 20px #927b5314;border:0;border-radius:25px;}
[data-theme=collage] canvas.globe {background:#f7f1e6;}
.map-toolbar {padding-top:14px;}
.map-help {font-size:12px;line-height:1.7;color:var(--subtle);}

.site-filing {position:relative;max-width:720px;margin:-65px auto 110px;padding:12px 16px;text-align:center;font-size:12px;line-height:1.6;color:var(--subtle);}
.site-filing:empty {display:none;}
.site-filing a {display:inline-block;color:inherit;text-decoration:none;padding:5px;overflow-wrap:anywhere;}
.site-filing a:hover {text-decoration:underline;}

.attachment {min-width:0;align-content:start;}
.attachment>button {width:100%;}
.attachment video {width:100%;aspect-ratio:1.25;object-fit:cover;border-radius:8px;}
