@font-face { font-family: 'Archivo Black'; src: url('assets/archivo-black-0.ttf') format('truetype'); font-display: swap; font-weight: 400 900; }
@font-face { font-family: 'Barlow Condensed'; src: url('assets/barlow-condensed-0.ttf') format('truetype'); font-display: swap; font-weight: 700; }
@font-face { font-family: 'Barlow Condensed'; src: url('assets/barlow-condensed-1.ttf') format('truetype'); font-display: swap; font-weight: 800 900; }
@font-face { font-family: 'Noto Display'; src: url('assets/noto-black.ttf') format('truetype'); font-display: swap; font-weight: 900; }

:root { --black: #0c0d0d; --cream: #fff3d4; --blue: #7198ff; --lime: #dfff00; --pale-lime: #dcef6d; --pink: #ff9bb0; --orange: #ffa85c; --inactive: #202423; --muted: #a1a69f; --body: 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; --display: 'Archivo Black', sans-serif; --condensed: 'Barlow Condensed', sans-serif; }
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--black); color: var(--cream); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { opacity: .3; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
button:disabled:hover { transform: none; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; background: var(--lime); color: var(--black); padding: 12px; transform: translateY(-180%); z-index: 50; }
.skip-link:focus { transform: translateY(0); }
.site-shell { max-width: 1040px; width: min(92%, 1040px); margin: 0 auto; padding: 24px 0 30px; }
.topbar { display: flex; align-items: center; gap: 18px; }
.wordmark { font-family: 'Noto Display', var(--body); font-weight: 900; color: var(--cream); text-decoration: none; white-space: nowrap; font-size: 26px; letter-spacing: -1.7px; }
.wordmark-star { color: var(--blue); font-family: var(--body); font-size: 22px; margin-left: 6px; display: inline-block; }
.topbar-rule { height: 1px; background: var(--cream); opacity: .72; flex: 1; }
.topbar-note { font-family: var(--condensed); font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.write-button { border: 1.5px solid var(--cream); border-radius: 30px; background: transparent; padding: 6px 18px; font-weight: 800; display: flex; gap: 7px; align-items: center; white-space: nowrap; transition: background .18s, color .18s; }
.write-button span { font-size: 23px; line-height: 1; }
.write-button:hover { background: var(--cream); color: var(--black); }
.month-header { display: grid; grid-template-columns: minmax(0, 1fr) 23%; align-items: end; gap: 20px; padding: 13px 0 18px; }
.month-name { font-family: var(--display); font-size: clamp(68px, 10vw, 148px); font-weight: 900; letter-spacing: -.075em; line-height: .88; color: var(--lime); margin: 0 0 -3px -3px; white-space: nowrap; }
.month-meta { line-height: .9; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.year-number { font: 800 clamp(34px, 4.2vw, 58px)/.88 var(--condensed); letter-spacing: -1px; }
.month-number-row { display: flex; align-items: center; gap: 12px; }
.month-number-row > span { font: 800 clamp(38px, 4.8vw, 68px)/.95 var(--condensed); letter-spacing: -3px; }
.month-star { width: clamp(32px, 3.8vw, 42px); height: clamp(32px, 3.8vw, 42px); fill: var(--blue); stroke: none; }
.month-bottom { display: flex; justify-content: space-between; gap: 10px; align-items: end; margin-top: 7px; }
.month-bottom p { font: 800 clamp(9px, 1vw, 15px)/1.1 var(--condensed); letter-spacing: .7px; margin: 0; }
.month-navigation { display: flex; gap: 7px; }
.circle-button { width: 35px; height: 35px; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; display: inline-flex; justify-content: center; align-items: center; padding: 0; color: var(--cream); transition: color .18s, background .18s, transform .18s; flex: 0 0 auto; }
.circle-button svg { width: 20px; height: 20px; }
.circle-button:hover { background: var(--cream); color: var(--black); }
.circle-button.dark { color: var(--black); width: 38px; height: 38px; border-width: 2px; }
.circle-button.dark:hover { color: var(--cream); background: var(--black); }
.weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; margin-bottom: 8px; }
.weekdays span { text-align: center; background: var(--cream); color: var(--black); font: 800 clamp(16px, 1.8vw, 20px)/1.4 var(--condensed); border-radius: 10px; }
.calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
.day-card { border: 0; min-width: 0; position: relative; background: var(--cream); color: var(--black); border-radius: 12px; min-height: 98px; aspect-ratio: 1.36; display: block; text-align: left; padding: 7px 8px; isolation: auto; cursor: default; }
.day-card.has-entry { cursor: pointer; }
.day-card.blue { background: var(--blue); }
.day-card.lime { background: var(--pale-lime); }
.day-card.pink { background: var(--pink); }
.day-card.orange { background: var(--orange); }
.day-card.cream { background: var(--cream); }
.day-card.outside { background: var(--inactive); color: #797f7e; opacity: .45; }
.day-card.has-entry:hover, .day-card.has-entry:focus-visible { box-shadow: inset 0 0 0 2px var(--black), 0 0 0 2px var(--lime); z-index: 6; }
.day-number { font: 800 clamp(22px, 2.4vw, 32px)/.9 var(--condensed); letter-spacing: -1px; position: relative; z-index: 7; display: inline-block; }
.day-card.today .day-number { outline: 2px solid var(--black); outline-offset: 3px; border-radius: 3px; }
.outside-month { display: block; font: 700 15px/1.3 var(--condensed); margin-top: 3px; }
.day-caption { position: absolute; left: 8px; bottom: 8px; font: 800 clamp(10.5px, 1.1vw, 13px)/1.02 var(--condensed); letter-spacing: 0.1px; white-space: pre-line; z-index: 5; max-width: 50%; pointer-events: none; }
.day-sticker { position: absolute; width: 71%; height: 121%; object-fit: contain; bottom: -7%; right: -2%; z-index: 4; transform: rotate(var(--rotation, 6deg)); filter: drop-shadow(2px 4px 2px #0003); pointer-events: none; transition: transform .22s ease; }
.day-card[data-date='2026-08-05'] .day-sticker { width: 80%; right: -8%; bottom: -15%; }
.day-card[data-date='2026-08-12'] .day-sticker { width: 60%; right: 0; bottom: -19%; height: 126%; }
.day-card[data-date='2026-08-17'] .day-sticker { width: 79%; right: -11%; bottom: 0; height: 100%; }
.day-card:hover .day-sticker { transform: rotate(calc(var(--rotation,6deg) - 4deg)) translateY(-4px) scale(1.025); }
.day-print { position: absolute; right: -2%; bottom: -1%; width: 56%; height: 96%; background: #fff; padding: 4px 4px 8px; transform: rotate(var(--rotation,8deg)); box-shadow: 1px 3px 5px #0003; z-index: 4; pointer-events: none; transition: transform .22s; }
.day-print img, .day-print video { width: 100%; height: 100%; object-fit: cover; display: block; }
.day-card:hover .day-print { transform: rotate(calc(var(--rotation,8deg) - 3deg)) translateY(-3px); }
.day-caption.text-only { font-family: var(--body); font-size: 13px; line-height: 1.4; max-width: calc(100% - 16px); font-weight: 800; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.add-day { position: absolute; right: 9px; bottom: 6px; font-size: 28px; font-weight: 400; opacity: 0; transition: opacity .16s; }
.day-card:hover .add-day, .day-card:focus-visible .add-day { opacity: .65; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; padding-top: 20px; color: #b5b8ab; }
.site-footer p { color: var(--cream); font-weight: 700; margin: 0; font-size: 12px; }
.storage-info { border: 0; background: none; color: #b5b8ab; font-size: 11px; padding: 6px 0; display: flex; align-items: center; gap: 6px; }
.storage-info:hover { color: var(--cream); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
dialog { border: 0; padding: 0; color: var(--black); background: var(--cream); color-scheme: light; overscroll-behavior: contain; }
dialog::backdrop { background: #0009; backdrop-filter: blur(1px); }
dialog[open] { animation: modal-in .18s ease-out; }
.diary-dialog { width: min(1080px, calc(100% - 64px)); max-height: calc(100dvh - 52px); border-radius: 20px; box-shadow: 0 24px 80px #0007; overflow: auto; }
.diary-shell { padding: 26px 30px 20px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--black); }
.dialog-date-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dialog-date { font: 800 clamp(20px,2.2vw,28px)/1 var(--condensed); letter-spacing: -.5px; }
.dialog-star { fill: var(--blue); stroke: none; width: 26px; height: 26px; }
.diary-dialog[data-color='pink'] .dialog-star { fill: var(--pink); }
.diary-dialog[data-color='orange'] .dialog-star { fill: var(--orange); }
.diary-dialog[data-color='lime'] .dialog-star { fill: var(--lime); }
.diary-dialog[data-color='blue'] .dialog-star { fill: var(--blue); }
.example-badge { font-size: 10px; font-weight: 600; color: #615f53; padding: 4px 6px; border: 1px solid #b7b39e; border-radius: 20px; }
.diary-content { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; padding: 22px 0 16px; align-items: stretch; }
.diary-writing { padding: 6px 0; min-width: 0; display: flex; flex-direction: column; }
.diary-writing h2 { font-family: 'Noto Display', var(--body); font-size: clamp(23px, 2.3vw, 30px); font-weight: 800; line-height: 1.35; letter-spacing: -1px; margin: 0 0 16px; word-break: keep-all; overflow-wrap: break-word; white-space: pre-line; color: #111; }
.diary-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.diary-tags span { border: 1.5px solid #222; border-radius: 20px; padding: 4px 12px; font-weight: 700; font-size: 12px; background: rgba(255,255,255,0.65); }
.diary-body { font-size: 15px; line-height: 1.85; font-weight: 450; overflow-wrap: break-word; word-break: keep-all; color: #222; }
.diary-body p { margin: 0 0 1.2em; white-space: pre-line; }
.diary-location { margin-top: auto; font-size: 13px; padding-top: 18px; color: #666; font-weight: 600; }
.dialog-footer { border-top: 1.5px solid var(--black); padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.record-button { border: 0; background: transparent; display: flex; align-items: center; gap: 10px; font-weight: 800; padding: 0; font-size: 14px; }
.circle-icon { width: 34px; height: 34px; border: 2px solid currentColor; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.circle-icon svg { width: 19px; height: 19px; }
.record-button:not(:disabled):hover .circle-icon { background: var(--black); color: var(--cream); }
.outline-button { border: 1.5px solid var(--black); border-radius: 25px; background: transparent; padding: 6px 30px; font-weight: 750; transition: color .16s, background .16s; }
.outline-button:hover { background: var(--black); color: var(--cream); }
.gallery { padding: 15px; background: var(--blue); border-radius: 13px; height: 100%; min-height: 415px; }
.gallery-toolbar { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.gallery-mode-switch { display: flex; padding: 2px; border: 1.5px solid var(--black); border-radius: 30px; background: var(--cream); }
.gallery-mode-btn { border: 0; border-radius: 25px; background: transparent; color: var(--black); font-size: 13px; font-weight: 800; padding: 6px 18px; }
.gallery-mode-btn.is-active { background: var(--black); color: var(--cream); }
.gallery-count { font-size: 12px; font-weight: 700; white-space: nowrap; }
.gallery-slide { position: relative; }
.gallery-main-photo { display: block; width: 100%; background: #e8efff; border: 5px solid white; border-radius: 8px; padding: 0; aspect-ratio: 1.28; overflow: hidden; }
.gallery-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-main-photo .gallery-image[src$='.png'] { object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); border-radius: 50%; border: 0; background: var(--cream); color: var(--black); width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 6px #0002; }
.gallery-arrow:hover { background: var(--lime); }
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }
.gallery-counter { position: absolute; bottom: 14px; right: 14px; background: #0c0d0dcf; color: white; padding: 4px 12px; border-radius: 20px; font: 800 17px/1.2 var(--condensed); pointer-events: none; }
.gallery-expand { position: absolute; bottom: 14px; left: 14px; display: flex; justify-content: center; align-items: center; width: 29px; height: 29px; border: 0; border-radius: 50%; background: var(--cream); color: var(--black); }
.gallery-expand svg { width: 15px; height: 15px; }
.gallery-thumbnails { display: flex; gap: 9px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding: 3px 2px; }
.gallery-thumbnail { width: calc((100% - 18px) / 3); min-width: 70px; flex: 0 0 auto; aspect-ratio: 1.4; border: 2px solid var(--cream); border-radius: 7px; padding: 0; background: #e8efff; overflow: hidden; opacity: .82; }
.gallery-thumbnail.is-active { border: 3px solid var(--lime); opacity: 1; }
.gallery-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-thumbnail img[src$='.png'] { object-fit: contain; }
.gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; max-height: 510px; overflow-y: auto; scrollbar-width: thin; }
.gallery-grid-item { border: 3px solid white; border-radius: 7px; padding: 0; background: #e8efff; position: relative; aspect-ratio: .98; overflow: hidden; }
.gallery-grid-item.is-wide { grid-column: span 2; aspect-ratio: 1.8; }
.gallery-grid-item .gallery-expand { bottom: 9px; left: auto; right: 9px; }
.gallery-grid-item:hover { border-color: var(--lime); }
.gallery-empty { display: grid; place-content: center; text-align: center; color: var(--black); min-height: 320px; font-weight: 750; gap: 10px; }
.gallery-empty p { font-size: 13px; font-weight: 400; margin: 0; }
.lightbox-dialog { background: transparent; color: var(--cream); width: min(1420px,calc(100% - 48px)); max-height: calc(100dvh - 28px); overflow: visible; }
.lightbox-dialog::backdrop { background: #070808eb; backdrop-filter: blur(6px); }
.lightbox-shell { padding: 4px 12px; }
.lightbox-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; font: 800 22px var(--condensed); }
.lightbox-stage { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 22px; }
#lightbox-image, #lightbox-video { width: 100%; height: min(75dvh,850px); object-fit: contain; }
.gallery-video { object-fit: cover; width: 100%; height: 100%; border-radius: 8px; }
.lightbox-hint { font-size: 11px; text-align: center; color: #c4c8bd; margin: 14px 0 0; }
.lightbox-hint span { margin: 0 8px; }
.editor-dialog { width: min(950px,calc(100% - 48px)); max-height: calc(100dvh - 40px); border-radius: 18px; box-shadow: 0 20px 70px #0005; }
.editor-shell { padding: 23px 26px 20px; }
.editor-shell h2, .info-shell h2 { font-family: 'Noto Display',var(--body); font-size: 24px; letter-spacing: -1px; margin: 0; font-weight: 900; }
.editor-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; padding-top: 22px; }
.editor-fields > label, .editor-two-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 750; margin-bottom: 15px; }
input:not([type='radio']):not([type='file']), textarea, select { color: var(--black); background: #fff9e9; border: 1px solid #c3bda6; border-radius: 6px; padding: 10px 11px; width: 100%; min-width: 0; font-weight: 400; font-size: 14px; }
textarea { line-height: 1.65; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8d887b; }
.editor-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-field { display: flex; gap: 8px; border: 0; padding: 0; margin: 0; flex-wrap: wrap; }
.color-field legend { font-size: 12px; font-weight: 750; margin-bottom: 9px; }
.color-option { display: flex; align-items: center; gap: 5px; border: 1px solid #c3bda6; border-radius: 22px; padding: 6px 10px; font-size: 11px; cursor: pointer; }
.color-option:has(input:checked) { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.color-option input { accent-color: var(--black); width: 12px; margin: 0; }
.color-swatch { width: 13px; height: 13px; border: 1px solid #b4b09d; border-radius: 50%; }
.color-swatch.cream { background: var(--cream); }.color-swatch.blue { background: var(--blue); }.color-swatch.lime { background: var(--pale-lime); }
.editor-photo-heading { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.editor-photo-heading h3 { margin: 0 0 10px; font-size: 14px; }
.upload-area { padding: 25px 14px; display: flex; flex-direction: column; text-align: center; align-items: center; gap: 10px; border: 1.5px dashed #aaa38e; background: #fff9e9; border-radius: 10px; cursor: pointer; position: relative; }
.upload-area input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; cursor: pointer; }
.upload-area:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.upload-area.is-dragging { border-color: var(--black); background: var(--pale-lime); }
.upload-area strong { font-size: 13px; }.upload-area span { font-size: 11px; color: #666258; }.upload-area small { font-size: 10px; color: #817a69; line-height: 1.5; }
.editor-photo-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.editor-photo { min-width: 0; position: relative; }
.editor-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid transparent; border-radius: 6px; background: #e5e9f0; }
.editor-photo:first-child img { border-color: var(--black); }
.editor-photo:first-child::before { content: '대표'; position: absolute; left: 5px; top: 5px; background: var(--lime); padding: 3px 5px; font-size: 9px; font-weight: 750; border-radius: 3px; }
.editor-photo-actions { display: flex; justify-content: space-between; gap: 4px; margin-top: 5px; }
.editor-photo-actions button { border: 0; background: none; font-size: 10px; padding: 2px; color: #5b584e; }
.editor-photo-actions button:hover { color: var(--black); text-decoration: underline; }
.editor-local-note { font-size: 11px; line-height: 1.7; color: #767061; margin: 18px 0 0; }
.editor-footer { display: flex; justify-content: space-between; border-top: 1.5px solid var(--black); padding-top: 16px; margin-top: 22px; gap: 10px; }
.save-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; background: var(--black); color: var(--cream); border: 1.5px solid var(--black); border-radius: 25px; padding: 9px 23px; font-size: 13px; font-weight: 800; }
.save-button:hover { background: var(--lime); color: var(--black); }
.form-error { margin: 15px 0 0; color: #b12f25; font-size: 12px; line-height: 1.6; }
.form-error:empty { display: none; }
.info-dialog { width: min(540px,calc(100% - 40px)); max-height: calc(100dvh - 40px); border-radius: 16px; }
.info-shell { padding: 24px; }.info-shell h2 { font-size: 20px; }.info-shell p { font-size: 13px; line-height: 1.85; margin: 20px 0; }.info-shell .backup-note { font-size: 11px; color: #736b59; margin-bottom: 0; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%,20px); opacity: 0; pointer-events: none; background: var(--cream); color: var(--black); border-radius: 26px; padding: 12px 23px; font-size: 13px; font-weight: 600; box-shadow: 0 3px 25px #0004; transition: opacity .18s, transform .18s; z-index: 15; max-width: calc(100% - 32px); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.noscript { padding: 20px; text-align: center; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (min-width: 1450px) { .day-card { aspect-ratio: 1.5; }.diary-dialog { width: 1200px; }.gallery-main-photo { aspect-ratio: 1.3; } }
@media (max-width: 900px) { .site-shell { width: calc(100% - 38px); }.topbar-note { display: none; }.month-header { gap: 12px; }.year-number { font-size: 49px; }.month-number-row>span { font-size: 61px; }.month-star { width: 34px; height: 34px; }.month-bottom { flex-wrap: wrap; }.month-bottom p { display: none; }.weekdays { gap: 6px; }.calendar { gap: 6px; }.day-card { border-radius: 9px; aspect-ratio: 1.25; min-height: 76px; padding: 6px; }.day-number { font-size: 32px; }.day-caption { font-size: 13px; left: 6px; bottom: 7px; }.outside-month { font-size: 13px; }.day-print { width: 65%; height: 80%; padding: 3px 3px 7px; }.day-sticker { height: 99%; }.site-footer>span { display: none; }.diary-dialog { width: calc(100% - 40px); }.diary-content { gap: 18px; }.diary-writing h2 { font-size: 40px; letter-spacing: -2px; }.diary-body { font-size: 14px; }.gallery { min-height: 350px; padding: 10px; }.gallery-toolbar { gap: 8px; }.gallery-mode-btn { padding: 6px 12px; font-size: 12px; }.gallery-count { font-size: 10px; }.gallery-main-photo { aspect-ratio: .95; }.gallery-arrow { width: 34px; height: 34px; }.gallery-thumbnail { min-width: 54px; } }
@media (max-width: 620px) { .site-shell { width: calc(100% - 24px); padding-top: 15px; }.topbar { gap: 10px; }.wordmark { font-size: 21px; letter-spacing: -1.3px; }.wordmark-star { font-size: 17px; margin-left: 3px; }.write-button { font-size: 11px; padding: 6px 11px; gap: 3px; }.write-button span { font-size: 17px; }.month-header { grid-template-columns: minmax(0,1fr) 23%; padding: 17px 0 16px; gap: 10px; }.year-number { font-size: 32px; letter-spacing: -.5px; }.month-number-row>span { font-size: 41px; letter-spacing: -1px; }.month-number-row { gap: 5px; }.month-star { width: 24px; height: 24px; }.circle-button { width: 28px; height: 28px; }.circle-button svg { width: 16px; height: 16px; }.month-navigation { gap: 4px; }.month-bottom { margin-top: 5px; }.calendar,.weekdays { gap: 4px; }.weekdays { margin-bottom: 5px; }.weekdays span { font-size: 14px; border-radius: 5px; line-height: 1.6; }.day-card { min-height: 63px; aspect-ratio: .74; border-radius: 7px; padding: 5px; }.day-number { font-size: 24px; letter-spacing: -.8px; }.day-caption { display: none; }.outside-month { font-size: 10px; }.day-sticker { width: 91%; height: 73%; right: -3%; bottom: -3%; }.day-card[data-date='2026-08-05'] .day-sticker { width: 96%; height: 80%; right: -8%; bottom: -7%; }.day-card[data-date='2026-08-12'] .day-sticker { width: 88%; height: 80%; bottom: -9%; }.day-card[data-date='2026-08-17'] .day-sticker { width: 102%; height: 60%; right: -8%; bottom: 0; }.day-print { width: 88%; height: 64%; right: -3%; bottom: 1%; padding: 2px 2px 4px; }.day-caption.text-only { display: block; font-size: 9px; line-height: 1.3; left: 5px; bottom: 6px; max-height: 36px; max-width: calc(100% - 10px); }.add-day { right: 6px; bottom: 3px; font-size: 23px; }.site-footer { padding-top: 18px; gap: 7px; }.site-footer p { font-size: 10px; }.storage-info { font-size: 9px; }.diary-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 22px); border-radius: 14px; }.diary-shell { padding: 15px 15px 12px; }.dialog-header { padding-bottom: 11px; }.dialog-date { font-size: 22px; }.dialog-star { width: 23px; height: 23px; }.dialog-date-row { gap: 7px; }.example-badge { font-size: 8px; }.circle-button.dark { width: 32px; height: 32px; }.diary-content { grid-template-columns: 1fr; gap: 19px; padding: 13px 0; }.gallery { padding: 12px; min-height: auto; }.gallery-toolbar { margin-bottom: 11px; gap: 12px; }.gallery-mode-btn { font-size: 12px; padding: 6px 20px; }.gallery-count { font-size: 11px; }.gallery-main-photo { aspect-ratio: 1.36; border-width: 4px; }.gallery-thumbnails { gap: 8px; margin-top: 9px; }.gallery-thumbnail { width: calc((100% - 16px)/3); aspect-ratio: 1.7; }.gallery-arrow { width: 34px; height: 34px; }.gallery-grid { max-height: 420px; gap: 8px; }.gallery-grid-item { aspect-ratio: 1.2; }.gallery-grid-item.is-wide { aspect-ratio: 2; }.diary-writing { padding: 0 2px; }.diary-writing h2 { font-size: 35px; margin-bottom: 13px; letter-spacing: -1.9px; }.diary-tags { margin-bottom: 15px; }.diary-tags span { font-size: 12px; padding: 3px 12px; }.diary-body { font-size: 14px; line-height: 1.85; }.diary-location { padding-top: 0; }.dialog-footer { padding-top: 10px; }.record-button { font-size: 11px; gap: 5px; }.circle-icon { width: 28px; height: 28px; border-width: 1.5px; }.outline-button { font-size: 12px; padding: 6px 20px; }.lightbox-dialog { width: calc(100% - 20px); }.lightbox-stage { grid-template-columns: 26px minmax(0,1fr) 26px; gap: 6px; }.lightbox-stage .circle-button { width: 27px; height: 27px; }#lightbox-image { height: 66dvh; }.lightbox-shell { padding: 0; }.editor-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 22px); border-radius: 14px; }.editor-shell { padding: 16px; }.editor-shell h2 { font-size: 21px; }.editor-content { grid-template-columns: 1fr; gap: 21px; padding-top: 17px; }.editor-photo-list { grid-template-columns: repeat(4,minmax(0,1fr)); }.editor-local-note { margin-bottom: 0; }.info-shell { padding: 20px; }.info-shell h2 { font-size: 17px; }.toast { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* 날짜는 사진 배치나 버튼 기본 정렬에 관계없이 같은 위치에 둔다. */
.day-number { position: absolute; top: 8px; left: 8px; }
.outside-month { position: absolute; top: 44px; left: 8px; }
.gallery-grid-photo { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.gallery-main-photo { touch-action: pan-y; }
.gallery-image { user-select: none; -webkit-user-drag: none; }
@media (max-width: 900px) { .day-number { top: 6px; left: 6px; } .outside-month { top: 36px; left: 6px; } }
@media (max-width: 620px) { .day-number { top: 5px; left: 5px; } .outside-month { top: 29px; left: 5px; } }
