/* DAY — 리퀴드 글래스(iOS 26/27 방향), 라이트 전용 · 테마 없음.  2026-11-20
   조사 요약(근거: Apple HIG Materials · Adopting Liquid Glass · WWDC25 #219 · kube.io · LogRocket 등):
   - 두 층: 떠 있는 '기능 층'(상단·메뉴·탭 막대·메뉴 팝업·도구)은 가장 맑은 유리, '내용 층'(목록·본문·일정)은 두꺼운 유리 판.
     실제로 읽고 쓰는 면(편집기·메모 카드)은 거의 불투명. 유리 위에 유리를 또 얹지 않는다(위에는 채움만).
   - 유리는 뒤에 색이 있어야 보인다: 기본 파스텔 메시 배경, 사진을 고르면 사진.
   - 모서리 동심원: 판 24 · 안쪽 12~16 · 조작 요소 알약. 빛은 왼쪽 위에서(위 테두리가 밝다).
   - Safari는 -webkit-backdrop-filter 안의 CSS 변수를 못 풀므로 흐림 값은 직접 적는다.
   - 투명도 줄이기·대비 높이기·움직임 줄이기 설정을 따른다. */

/* ================= 1. 토큰 ================= */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  color-scheme: light;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-heading: var(--font);
  --serif: var(--font);

  --ink: #0B0B12;
  --text: rgba(10, 10, 20, .88);
  --text-2: rgba(10, 10, 20, .68);
  --text-3: rgba(10, 10, 20, .60);   /* 유리 위 작은 글씨 4.5:1 이상(검토 7) */
  --line: rgba(10, 10, 30, .08);
  --line-strong: rgba(10, 10, 30, .14);

  --accent: #0A64D8;           /* 흰 글씨 대비 5.4:1 */
  --accent-strong: #0852B3;
  --accent-fill: #0A64D8;
  --accent-hover: #0852B3;
  --accent-soft: rgba(10, 100, 216, .12);
  --on-accent: #fff;
  --a: #0A64D8; --a-ink: #0A64D8;

  /* 채움(유리 위에 얹는 것: 유리를 겹치지 않는다) */
  --fill-1: rgba(255, 255, 255, .55);
  --fill-2: rgba(255, 255, 255, .78);
  --fill-hover: rgba(255, 255, 255, .45);
  --paper: rgba(255, 255, 255, .92);      /* 글을 읽고 쓰는 면 */

  --bg: var(--paper);
  --bg-side: transparent;
  --bg-list: transparent;
  --bg-sunken: rgba(10, 10, 40, .05);
  --bg-hover: rgba(255, 255, 255, .45);
  --bg-active: rgba(255, 255, 255, .85);
  --mark: rgba(255, 214, 10, .45);

  /* 그림자: 작은 유리 / 큰 유리 */
  --sh-s: 0 4px 16px rgba(20, 24, 60, .08), 0 1px 2px rgba(20, 24, 60, .06);
  --sh-l: 0 18px 50px rgba(20, 24, 60, .14), 0 2px 6px rgba(20, 24, 60, .06);
  --shadow: var(--sh-l);
  /* 안쪽 빛(베벨): 위는 밝게, 아래는 아주 옅게 어둡게, 가장자리 어두운 테(iOS 27) */
  --bevel: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(0, 0, 0, .05), inset 0 0 14px rgba(255, 255, 255, .30), inset 0 0 0 .5px rgba(0, 0, 0, .08);

  --r-sheet: 24px; --r-in: 14px; --r-pop: 20px; --r-ctl: 12px; --radius: var(--r-ctl);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --top-h: 64px;
  --side-w: 256px; --side-mini: 76px; --list-w: 360px; --head-h: 56px;
  --mesh:
    radial-gradient(60% 55% at 12% 10%, #BFD7FF 0, transparent 70%),
    radial-gradient(55% 50% at 92% 8%, #FFD3E8 0, transparent 70%),
    radial-gradient(60% 60% at 80% 92%, #C9F2E4 0, transparent 70%),
    radial-gradient(55% 55% at 8% 90%, #FFE7C2 0, transparent 70%),
    radial-gradient(40% 40% at 50% 50%, #E2D9FF 0, transparent 75%),
    #EEF1FA;
}
html { background: #EEF1FA; }
body { background: var(--mesh) fixed; color: var(--text); font-family: var(--font); letter-spacing: -.01em; }
h1, h2, h3, .head-title, .band-title, .journal-info h1 { font-family: var(--font); font-weight: 700; letter-spacing: -.025em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* 배경 사진(설정 > 디자인 > 배경). 사진 위 엷은 막으로 글씨를 지킨다 */
#day-backdrop { position: fixed; inset: -40px; z-index: 0; pointer-events: none; background: center / cover no-repeat; opacity: 0; transition: opacity .7s ease; transform: scale(1.04); }
#day-backdrop.is-ready { opacity: 1; }
#day-backdrop::after { content: ''; position: absolute; inset: 0; background: rgba(240, 243, 252, .28); }

/* ================= 2. 유리 재료 =================
   .lq-glass(맑은 유리: 기능 층) / 판(두꺼운 유리: 내용 층). 왼쪽 위에서 빛이 드는 테두리는 ::before 마스크로. */
.lq-cap, .lq-tabs, .lq-compose, .popover, .modal-card, .toast, .profile-deck .pd-main {
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(18px) saturate(180%) brightness(1.08);
          backdrop-filter: blur(18px) saturate(180%) brightness(1.08);
  box-shadow: var(--bevel), var(--sh-s);
  border: 1px solid rgba(255, 255, 255, .55);
}
.sidebar, .listpane, .detail {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
          backdrop-filter: blur(28px) saturate(160%);
  box-shadow: var(--bevel), var(--sh-l);
  border: 1px solid rgba(255, 255, 255, .6);
}
/* 빛 드는 테두리(스페큘러) */
.lq-cap, .lq-tabs, .lq-compose, .sidebar, .listpane, .detail, .modal-card { position: relative; isolation: isolate; }
.popover { position: fixed; isolation: isolate; }   /* 원래처럼 화면 기준(검토 1) */
.lq-cap::before, .lq-tabs::before, .lq-compose::before, .sidebar::before, .listpane::before, .detail::before, .popover::before, .modal-card:not(.size-full)::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .18) 38%, rgba(255, 255, 255, .06) 62%, rgba(255, 255, 255, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* 판은 overflow:hidden이라 바깥 테두리가 잘리므로 안쪽에 그린다(검토 2) */
.sidebar::before, .listpane::before, .detail::before { inset: 0; }
.sidebar, .listpane, .detail { border-color: transparent; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lq-cap, .lq-tabs, .lq-compose, .popover, .modal-card, .toast, .sidebar, .listpane, .detail { background: rgba(255, 255, 255, .94); }
}
@media (prefers-reduced-transparency: reduce) {
  .lq-cap, .lq-tabs, .lq-compose, .popover, .modal-card, .toast, .sidebar, .listpane, .detail { background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .lq-cap, .lq-tabs, .lq-compose, .popover, .modal-card, .sidebar, .listpane, .detail { background: rgba(255, 255, 255, .95); border-color: rgba(0, 0, 0, .4); }
  :root { --text-2: rgba(10, 10, 20, .78); --text-3: rgba(10, 10, 20, .66); }
}

/* ================= 3. 상단: 떠 있는 유리 알약 세 개 ================= */
.lq-top { position: fixed; z-index: 60; top: 10px; left: 12px; right: 12px; height: 48px; display: grid; grid-template-columns: 1fr minmax(0, 440px) 1fr; align-items: center; gap: 12px; pointer-events: none; }
.lq-top > * { pointer-events: auto; }
.lq-cap { display: inline-flex; align-items: center; gap: 4px; height: 48px; padding: 0 6px; border-radius: 999px; }
.lq-left { justify-self: start; padding-right: 16px; }
.lq-right { justify-self: end; gap: 6px; padding: 0 5px 0 6px; }
.lq-brand { display: inline-flex; align-items: baseline; gap: 10px; margin-left: 4px; color: var(--ink); text-decoration: none; }
.lq-brand b { font-size: 1.12rem; font-weight: 800; letter-spacing: -.03em; }
.lq-brand span { font-size: .82rem; color: var(--text-2); font-weight: 600; }
.lq-search { justify-self: stretch; width: 100%; gap: 10px; padding: 0 16px; color: var(--text-2); font-size: .92rem; font-weight: 500; text-align: left; cursor: text; }
.lq-search span { flex: 1; }
.lq-search kbd { border: 0; background: var(--fill-1); color: var(--text-3); border-radius: 6px; padding: 1px 6px; font-size: .74rem; }
.lq-search:hover { color: var(--text); }
.lq-new { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--accent-fill); color: #fff; font-weight: 700; font-size: .9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px rgba(10, 100, 216, .32); transition: transform .35s var(--spring), filter .2s; }
.lq-new:hover { filter: brightness(1.08); }
.lq-new:active, .lq-compose:active, .lq-tab:active, .ibtn:active { transform: scale(.94); }
.lq-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--ink);
  background: linear-gradient(160deg, #fff, #E6ECF8); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .1), 0 2px 6px rgba(20, 24, 60, .12); }
.lq-top .ibtn { width: 38px; height: 38px; border-radius: 50%; color: var(--ink); }
.lq-top .ibtn:hover { background: var(--fill-hover); }

/* ================= 4. 틀: 상단 아래 세 장의 판 ================= */
.app { position: relative; height: 100vh; height: 100dvh; padding: calc(var(--top-h) + 8px) 12px 12px; gap: 12px; }
.sidebar, .listpane, .detail { border-radius: var(--r-sheet); overflow: hidden; }
.pane-head { border-bottom: 0; background: transparent; }
.detail-head { background: transparent; }
.fab { display: none !important; }

@media (min-width: 768px) {
  .app { transition: grid-template-columns .45s var(--ease-out); }
  :root[data-sidebar="closed"] .app { grid-template-columns: var(--side-mini) var(--list-w) minmax(0, 1fr); }
  :root[data-sidebar="closed"] .app[data-view="map"][data-section="journal"][data-entry=""] { grid-template-columns: var(--side-mini) minmax(0, 1fr) 0; }
  .app[data-section="schedule"], .app[data-section="notes"],
  :root[data-sched-panel] .app[data-section="schedule"], :root[data-sched-panel] .app[data-section="notes"] { grid-template-columns: var(--side-w) 272px minmax(0, 1fr); }
  :root[data-sidebar="closed"] .app[data-section="schedule"], :root[data-sidebar="closed"] .app[data-section="notes"],
  :root[data-sched-panel][data-sidebar="closed"] .app[data-section="schedule"], :root[data-sched-panel][data-sidebar="closed"] .app[data-section="notes"] { grid-template-columns: var(--side-mini) 272px minmax(0, 1fr); }
  .app[data-view="map"][data-section="journal"][data-entry=""] { gap: 12px 0; }
  .side-toggle, .sched-head .menu-open { display: none !important; }
}
@media (max-width: 1180px) and (min-width: 768px) { :root { --side-w: 224px; --list-w: 320px; } }

/* 내용이 판의 위·아래 끝에서 부드럽게 사라짐(스크롤 가장자리) */
.list-scroll, .side-journals, .journal-info, .entry-scroll, .sched-side {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
}

/* ================= 5. 메뉴(사이드바) ================= */
.sidebar { padding-top: 8px; }
.side-nav { padding: 6px 10px 6px; gap: 2px; }
.side-journals { padding: 0 10px 8px; gap: 2px; }
.side-item { min-height: 42px; border-radius: 14px; padding: 0 12px; gap: 12px; color: var(--text); font-weight: 560; font-size: .95rem;
  transition: background .2s, box-shadow .25s, transform .3s var(--spring); }
.side-item .ico { color: var(--text-2); }
.side-item:hover { background: var(--fill-hover); }
.side-item.is-on { background: var(--fill-2); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 8px rgba(20, 24, 60, .08); font-weight: 700; color: var(--ink); }
.side-item.is-on .ico { color: var(--accent); }
.side-section { padding: 14px 22px 6px; font-size: .74rem; font-weight: 700; color: var(--text-3); letter-spacing: .02em; display: flex; align-items: center; justify-content: space-between; }
.side-add { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: var(--fill-1); }
.side-add:hover { color: var(--accent); background: var(--fill-2); }
.side-add .ico { background: none; color: inherit; padding: 0; }
.jsq { width: 12px; height: 12px; border-radius: 4px; margin: 0 4px; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.count { color: var(--text-3); font-size: .78rem; font-weight: 600; }
.side-foot { border-top: 0; padding: 6px 10px 10px; }
.side-label, .count, .side-section > span, .rec-on, .muted-ico { transition: opacity .2s; }
@media (min-width: 768px) {
  :root[data-sidebar="closed"] .side-label, :root[data-sidebar="closed"] .count, :root[data-sidebar="closed"] .muted-ico,
  :root[data-sidebar="closed"] .rec-on, :root[data-sidebar="closed"] .side-section > span, :root[data-sidebar="closed"] .side-add { opacity: 0; pointer-events: none; }
  :root[data-sidebar="closed"] .side-section { height: 1px; padding: 0; margin: 10px 22px; background: var(--line-strong); overflow: hidden; }
  :root[data-sidebar="closed"] .side-item { padding: 0 0 0 16px; }
  :root[data-sidebar="closed"] .journal-item { padding-left: 18px; }
}

/* ================= 6. 판 안의 조작 요소(채움만, 유리 겹치지 않음) ================= */
.ibtn { width: 36px; height: 36px; border-radius: 50%; color: var(--text-2); transition: background .2s, color .2s, transform .3s var(--spring); }
.ibtn:hover { background: var(--fill-hover); color: var(--ink); }
.btn { min-height: 36px; border-radius: 999px; border: 0; background: var(--fill-2); color: var(--ink); font-weight: 650; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 3px rgba(20, 24, 60, .1);
  transition: transform .3s var(--spring), background .2s; }
.btn:hover { background: #fff; }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--accent-fill); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 14px rgba(10, 100, 216, .28); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.link, .btn.danger-text { background: none; box-shadow: none; }
.btn.danger, .btn.primary.danger { background: #D92D35; color: #fff; }
.btn.pill { background: var(--fill-2); }
.new-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-fill); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 10px rgba(10, 100, 216, .3); }
.new-btn:hover { background: var(--accent-hover); }
.done-btn { border-radius: 999px; }

/* 세그먼트: 유리 홈 + 흰 썸 */
.seg { background: rgba(10, 10, 40, .06); border-radius: 999px; padding: 3px; box-shadow: inset 0 1px 2px rgba(10, 10, 40, .08); }
.seg > button { border-radius: 999px; color: var(--text-2); }
.seg > button.is-on { background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 24, 60, .12), 0 3px 8px rgba(20, 24, 60, .08); }
.input { background: var(--fill-2); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
.input::placeholder { color: var(--text-3); opacity: 1; }
.search-bar { background: var(--fill-2); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.switch-ui { background: rgba(10, 10, 40, .14) !important; }
.switch input:checked + .switch-ui { background: #34C759 !important; }
.switch-ui::after { box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .35s var(--spring); }

/* 보기 전환(알약) */
.pillnav { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 3px; border-radius: 999px; background: rgba(10, 10, 40, .06); box-shadow: inset 0 1px 2px rgba(10, 10, 40, .08); }
.pill-links { display: inline-flex; gap: 2px; }
.pill-link { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border-radius: 999px; color: var(--text-2); font-size: .84rem; font-weight: 650; white-space: nowrap; overflow: hidden; max-width: 40px;
  transition: max-width .45s var(--spring), opacity .25s, padding .3s, background .2s; }
.pill-link .pill-label { display: none; }
.pill-link.is-on { background: rgba(255, 255, 255, .95); color: var(--ink); max-width: 140px; padding: 0 12px 0 9px; box-shadow: 0 1px 2px rgba(20, 24, 60, .12), 0 3px 8px rgba(20, 24, 60, .08); }
.pill-link.is-on .ico { color: var(--accent); }
.pill-link.is-on .pill-label { display: inline; }
.pillnav:not(.is-open) .pill-link:not(.is-on) { max-width: 0; padding: 0; opacity: 0; pointer-events: none; }
.pill-menu { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.pill-menu span, .pill-menu span::before { display: block; width: 12px; height: 1.6px; border-radius: 1px; background: currentColor; position: relative; transition: transform .35s var(--spring); }
.pill-menu span { transform: translateY(-2.5px); } .pill-menu span::before { content: ''; position: absolute; top: 5px; }
.pillnav.is-open .pill-menu span { transform: rotate(45deg); } .pillnav.is-open .pill-menu span::before { transform: translateY(-5px) rotate(-90deg); }

/* ================= 7. 목록 ================= */
.month-head { background: rgba(255, 255, 255, .7); border-bottom: 0; font-size: .95rem; font-weight: 750; color: var(--ink); top: 0; }
.card { background: transparent; border-bottom: 0; border-radius: 16px; margin: 2px 8px; width: calc(100% - 16px); transition: background .2s; }
.card:hover { background: var(--fill-hover); }
.card.is-selected { background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: 0 2px 10px rgba(20, 24, 60, .1); }
.card.is-selected .card-preview, .card.is-selected .card-meta, .card.is-selected .dow, .card.is-selected .card-tag, .card.is-selected .card-place { color: var(--text-2); }
.card-date .dnum { font-weight: 700; color: var(--ink); }
.card-title { font-weight: 700; color: var(--ink); }
.tabs, .media-filter, .pack-head, .review-seg-row { background: rgba(255, 255, 255, .78); border-bottom: 0; }   /* 고정 머리줄 뒤로 글자가 비치지 않게(검토 5) */

/* ================= 8. 기록 정보(위젯처럼) ================= */
.journal-info.lu { padding: 26px clamp(18px, 3vw, 32px) 32px; display: grid; gap: 16px; align-content: start; container-type: inline-size; max-width: none; }
.lu-greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lu-greet h1 { margin: 0; font-size: 2.1rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.lu-greet p { margin: 4px 0 0; color: var(--text-2); font-size: .9rem; font-weight: 500; }
.lu-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); }
.lu-top, .lu-bottom { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.lu-bottom > :only-child { grid-column: 1 / -1; }
.lu-hero, .lu-tile, .lu-card { background: rgba(255, 255, 255, .62); border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 2px 10px rgba(20, 24, 60, .06); }
.lu-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; }
.lu-hero-main { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.lu-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .74rem; font-weight: 700; }
.lu-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lu-hero-title { margin: 2px 0 0; font-size: 1.45rem; font-weight: 750; line-height: 1.35; letter-spacing: -.025em; color: var(--ink); word-break: keep-all; }
.lu-hero-sub { margin: 0; color: var(--text-2); font-size: .84rem; }
.lu-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.lu-pill { padding: 0 16px 0 12px; min-height: 40px; gap: 6px; }
.lu-ring-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.lu-ring { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lu-ring b { font-size: .72rem; font-weight: 800; }
.lu-ring-arc { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), rgba(10, 10, 40, .08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.lu-ring-note { display: grid; line-height: 1.3; } .lu-ring-note b { font-size: .86rem; } .lu-ring-note span { font-size: .78rem; color: var(--text-2); }
.lu-day { width: 132px; height: 132px; border-radius: 34px; display: grid; place-content: center; justify-items: center; background: rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(20, 24, 60, .1); }
.lu-day span { font-size: .78rem; font-weight: 700; color: #C8323A; }
.lu-day span:last-child { color: var(--text-2); }
.lu-day b { font-size: 3.2rem; line-height: 1.05; font-weight: 300; letter-spacing: -.04em; color: var(--ink); }
.lu-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lu-tile { display: grid; align-content: start; gap: 2px; padding: 16px; min-height: 120px; }
.lu-tile-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; margin-bottom: 8px; }
.lu-sage .lu-tile-ico { background: #34C759; } .lu-peach .lu-tile-ico { background: #FF9500; } .lu-butter .lu-tile-ico { background: #FFCC00; } .lu-blue .lu-tile-ico { background: #0A84FF; }
.lu-tile-label { font-size: .8rem; color: var(--text-2); font-weight: 650; }
.lu-tile-value { font-size: 1.8rem; font-weight: 750; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lu-tile-sub { font-size: .74rem; color: var(--text-2); min-height: 1.2em; }
.lu-card { padding: 18px 20px; }
.lu-card-head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.lu-card h3 { margin: 0; font-size: 1rem; font-weight: 750; color: var(--ink); }
.lu-card-sub { margin: 3px 0 0; font-size: .76rem; color: var(--text-3); }
.lu-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 140px; }
.lu-bar { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 6px; }
.lu-bar i { align-self: end; display: block; min-height: 4px; border-radius: 8px; background: rgba(10, 100, 216, .22); }
.lu-bar.is-now i { background: var(--accent); }
.lu-bar span { font-size: .64rem; color: var(--text-3); text-align: center; white-space: nowrap; }
.lu-bar.is-now span { color: var(--accent); font-weight: 800; }
.lu-mix-bar { display: flex; gap: 3px; height: 10px; margin-bottom: 14px; }
.lu-mix-bar i { flex: 1 1 0; border-radius: 5px; background: var(--c); min-width: 6px; }
.lu-mix-row { display: grid; grid-template-columns: auto minmax(0, 6em) 1fr 3em; align-items: center; gap: 10px; padding: 5px 0; font-size: .84rem; }
.lu-mix-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-mix-track { height: 6px; border-radius: 3px; background: rgba(10, 10, 40, .06); overflow: hidden; }
.lu-mix-track i { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.lu-mix-row b { text-align: right; font-size: .8rem; }
@container (max-width: 760px) { .lu-top, .lu-bottom { grid-template-columns: 1fr; } }
@container (max-width: 460px) { .lu-hero { grid-template-columns: 1fr; } .lu-hero-art { display: none; } .lu-greet h1 { font-size: 1.7rem; } .lu-tile { min-height: 0; } }

/* ================= 9. 편집기·읽기: 거의 불투명한 종이 ================= */
.entry-editor { background: var(--paper); border-radius: 18px; margin: 0 10px 10px; box-shadow: inset 0 1px 0 #fff, 0 2px 10px rgba(20, 24, 60, .06); }
.toolbar { background: transparent; border-bottom-color: var(--line); }
.detail-empty .muted { color: var(--text-2); }

/* ================= 10. 일정(구글 캘린더 모양) — 판 위 채움 ================= */
.app[data-section="schedule"] .listpane, .app[data-section="notes"] .listpane { background: rgba(255, 255, 255, .62); }
.create-btn { height: 48px; border-radius: 999px; background: var(--fill-2); border: 0; box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(20, 24, 60, .12); font-weight: 700; padding: 0 18px 0 12px; gap: 8px; }
.create-btn:hover { background: #fff; }
.create-plus { color: var(--accent); }
.create-caret { color: var(--text-3); }
.mini-cal { padding: 10px 6px; border-radius: 18px; background: var(--fill-1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); }
.mini-day { position: relative; width: 100%; height: 30px; margin: 0; border-radius: 0; font-variant-numeric: tabular-nums; z-index: 0; font-weight: 550; }
.mini-day:hover { background: var(--fill-hover); border-radius: 50%; }
.mini-day.is-sel { background: var(--accent-soft); color: var(--ink); }
.mini-day.is-start, .mini-day.is-end, .mini-day.is-one { color: #fff; font-weight: 750; }
.mini-day.is-start::before, .mini-day.is-end::before, .mini-day.is-one::before { content: ''; position: absolute; z-index: -1; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--accent-fill); }
.mini-day.is-one { background: none; }
.mini-day.is-start { background: linear-gradient(90deg, transparent 50%, var(--accent-soft) 50%); }
.mini-day.is-end { background: linear-gradient(90deg, var(--accent-soft) 50%, transparent 50%); }
.mini-day.is-today { color: #C8323A; font-weight: 800; background-color: transparent; }
.mini-day.is-today:is(.is-one, .is-start, .is-end) { color: #fff; }
.mini-day.is-today:is(.is-one, .is-start, .is-end)::before { background: #C8323A; }
.sched-head { gap: 6px; }
.sched-title { font-weight: 750; color: var(--ink); }
.pill-outline, .view-pick { border-radius: 999px !important; }
.tasks-toggle.btn { min-height: 34px; padding: 0 14px 0 10px; gap: 6px; }
.tasks-toggle.btn.is-on { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.tasks-panel { background: rgba(255, 255, 255, .45); }
.sched-main.tasks-on .tasks-panel { border-left: 1px solid var(--line); }
.tg-day.is-today .tg-num, .month-num.is-today { background: #C8323A; color: #fff; }
.ev-bar, .ev-block { background: color-mix(in srgb, var(--c) 24%, rgba(255, 255, 255, .85)); color: var(--ink); border: 0; border-left: 3px solid var(--c); border-radius: 8px; box-shadow: none; }
.ev-bar.cont-l { border-left: 0; }
.ev-sub { color: var(--text-2); opacity: 1; }
.ev:hover { filter: none; background: color-mix(in srgb, var(--c) 34%, rgba(255, 255, 255, .85)); }
.month-cell.is-out { background: rgba(10, 10, 40, .025); }
.cal-cell { border-radius: 12px; background: rgba(255, 255, 255, .5); }
.cal-cell.has-entry:not(.has-photo) { background: color-mix(in srgb, var(--c, var(--accent)) 24%, #fff); color: var(--ink); }
.cal-cell.has-entry:not(.has-photo) .cal-num { font-weight: 750; }
.cal-cell.is-today { box-shadow: inset 0 0 0 2px #C8323A; }
.cal-cell.has-photo .cal-num { color: #fff; font-weight: 750; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.day-pick button.is-on, .weather-choices .chip.is-on, .fchip.is-on { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.task-col { background: rgba(255, 255, 255, .7); border: 0; border-radius: 20px; box-shadow: inset 0 1px 0 #fff, 0 2px 10px rgba(20, 24, 60, .06); }
.task-add-btn, .task-circle:hover, .task-row.is-done .task-circle { color: var(--accent) !important; }
.task-row .task-due.is-over, .te-chip.is-set.is-over { color: #C42B32 !important; background: rgba(229, 72, 77, .1) !important; border-color: transparent !important; }

/* ================= 11. 메모·채팅·기타 ================= */
.note-card { border-radius: 16px; box-shadow: 0 1px 3px rgba(20, 24, 60, .08); }
.note-card[data-color="default"] { background: rgba(255, 255, 255, .88); border-color: transparent; }
.bubble-text { background: rgba(255, 255, 255, .78); border-radius: 18px; }
.bubble.is-me .bubble-text { background: var(--accent-fill); color: #fff; }
.bubble-ai { background: var(--ink); color: #fff; }
.chat-compose { background: var(--fill-2); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.chat-send { background: var(--accent-fill); }
.empty-ico { background: rgba(255, 255, 255, .7); color: var(--accent); box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(20, 24, 60, .08); }
.mood-btn { background: var(--fill-1); }
.mood-btn.is-on { background: var(--accent-soft); border-color: var(--accent); }
.system-switcher { display: none; }

/* ================= 12. 떠 있는 층: 메뉴·대화상자·알림·프로필 ================= */
.popover { border-radius: var(--r-pop); padding: 6px; animation: lq-grow .3s var(--spring); transform-origin: top center; }
@keyframes lq-grow { from { opacity: 0; transform: scale(.92); } }
.menu-item { border-radius: 12px; }
.menu-item:hover { background: var(--fill-hover); }
.modal { background: rgba(30, 36, 60, .22); }
.modal-card { border-radius: 28px; animation: lq-grow .35s var(--spring); background: rgba(255, 255, 255, .78); }
.modal-card.size-full { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.modal-card.note-modal { background: var(--nbg, #fff); -webkit-backdrop-filter: none; backdrop-filter: none; }
.modal-head, .modal-foot { border-color: var(--line); }
.toast { color: var(--ink); background: rgba(255, 255, 255, .72); border-radius: 999px; font-weight: 600; }
.toast.is-error { color: #B42318; }
.toast-act { color: var(--accent); }
.profile-deck { position: fixed; z-index: 1150; width: 260px; height: auto; pointer-events: none; }
.profile-deck .pd-card { position: relative; inset: auto; opacity: 0; transform: scale(.92) translateY(-6px); transform-origin: top right; transition: transform .35s var(--spring), opacity .2s; }
.profile-deck.is-open .pd-card { opacity: 1; transform: none; }
.profile-deck .pd-main { pointer-events: auto; display: grid; justify-items: start; gap: 2px; padding: 18px; border-radius: 24px; }
.pd-main .pc-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(160deg, #fff, #E6ECF8); color: var(--ink); margin-bottom: 8px; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .1); }
.pd-name { font-weight: 750; font-size: 1.02rem; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-role { font-size: .76rem; color: var(--text-2); }
.pd-home { font-size: .76rem; color: var(--accent); text-decoration: none; margin-top: 2px; }
.pd-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: 14px 0 10px; gap: 6px; }
.pd-stats div { display: grid; padding: 8px 10px; border-radius: 14px; background: var(--fill-1); font-size: .7rem; color: var(--text-2); }
.pd-stats b { font-size: 1.02rem; color: var(--ink); }
.pd-actions { display: flex; gap: 4px; width: 100%; }
.pd-logout { margin-top: 8px; width: 100%; justify-content: center; border-radius: 999px; min-height: 36px; font-size: .84rem; background: var(--fill-2); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 650; }
.lock-screen { background: transparent; -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%); }
.lock-card { padding: 30px 26px; border-radius: 28px; background: rgba(255, 255, 255, .62); box-shadow: var(--bevel), var(--sh-l); }

/* ================= 13. 휴대폰: 판은 화면 가득, 아래에 떠 있는 탭 막대 ================= */
.lq-tabbar { display: none; }
@media (max-width: 767px) {
  :root { --top-h: 60px; }
  .lq-top { top: calc(6px + env(safe-area-inset-top)); left: 8px; right: 8px; grid-template-columns: auto 1fr auto; gap: 8px; }
  .lq-left { padding-right: 12px; }
  .lq-brand span { display: none; }
  .lq-search { padding: 0 14px; }
  .app { padding: calc(var(--top-h) + 6px + env(safe-area-inset-top)) 8px 0; }
  .sidebar, .listpane, .detail { border-radius: 24px 24px 0 0; }
  .list-scroll, .side-journals, .journal-info, .entry-scroll, .sched-side { padding-bottom: 120px; }
  .phone-band { background: transparent; color: var(--ink); padding-top: 4px; }
  .phone-band .ibtn { color: var(--ink); background: var(--fill-1); }
  .band-title { font-size: 2rem; font-weight: 800; }
  .band-sub { color: var(--text-2); opacity: 1; }
  .phone-tabs { background: transparent; border-bottom: 0; margin-top: 0; }
  .phone-tabs button.is-on::after { background: var(--accent); }
  .side-brand { font-size: 2.1rem; font-weight: 800; margin: 8px 20px 6px; }

  .lq-tabbar { display: flex; position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; pointer-events: none; }
  .lq-tabbar > * { pointer-events: auto; }
  .lq-tabs { flex: 1; display: flex; height: 64px; padding: 4px; border-radius: 999px; transition: height .4s var(--spring), flex-basis .4s var(--spring); }
  .lq-tab { flex: 1; display: grid; place-items: center; align-content: center; gap: 1px; border-radius: 999px; color: var(--text); font-size: .64rem; font-weight: 650; transition: background .25s, color .2s, transform .3s var(--spring); }
  .lq-tab .ico { width: 22px; height: 22px; }
  .lq-tab.is-on { background: rgba(255, 255, 255, .85); color: var(--accent); box-shadow: 0 1px 0 #fff inset, 0 2px 8px rgba(20, 24, 60, .12); }
  .lq-compose { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); transition: width .4s var(--spring), height .4s var(--spring); }
  /* 아래로 스크롤하면 작게(고른 탭만) */
  .lq-tabbar.is-compact .lq-tabs { flex: 0 0 auto; height: 52px; }
  .lq-tabbar.is-compact .lq-tab:not(.is-on) { display: none; }
  .lq-tabbar.is-compact .lq-tab.is-on { padding: 0 18px; grid-auto-flow: column; gap: 6px; font-size: .78rem; }
  .lq-tabbar.is-compact .lq-compose { width: 52px; height: 52px; }
  .modal-card, .modal-card[class*="size-"] { border-radius: 28px 28px 0 0; }
  .profile-deck { width: 240px; }
}

/* 상단 '새 기록'과 겹치는 본문 머리의 + 단추는 PC에서 숨김(휴대폰은 아래 + 단추) */
.detail-head .new-btn { display: none; }

/* 오늘 화면 일정 제목에 할 일 입력칸 밑줄(.te-title)이 잘못 붙던 문제 */
.today-event .te-title { border-bottom: 0 !important; padding: 0; }

/* ================= 14. 검토 반영(2026-11-20) ================= */
/* 초점 표시(검토 좋음 5) */
.lq-cap:focus-visible, .lq-tab:focus-visible, .lq-compose:focus-visible, .pill-link:focus-visible, .lq-new:focus-visible, .lq-avatar:focus-visible, .seg > button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px;
}
.side-item:focus-visible, .card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (max-width: 767px) {
  /* 휴대폰 판은 화면 가득이라 흐림 대신 진한 흰 막(안쪽 fixed 패널이 판에 갇히지 않게, 검토 6) */
  .sidebar, .listpane, .detail { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .80); }
  /* 서랍(일정·메모)은 상단 막대 위로(검토 3) */
  .app[data-drawer="open"] .listpane { z-index: 70; top: 0; padding-top: calc(var(--top-h) + env(safe-area-inset-top)); }
  /* 기록을 열었거나 채팅을 쓸 때는 탭 막대를 치운다(입력칸 가림 방지, 검토 4) */
  body:has(.app[data-entry="open"]) .lq-tabbar, body:has(.chat-input:focus) .lq-tabbar { display: none; }
  .chat-foot, .notes-body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* safe-area 여백 두 번 들어가는 것 정리(검토 8) */
  .sidebar, .listpane .head-row, .detail-head, .tasks { padding-top: 0; }
  .detail-head { min-height: var(--head-h); }
  .sched-head, .notes-head { padding-top: 6px; }
  .phone-band { padding-top: 4px; }
  /* 터치 영역 44px(검토 좋음 6) */
  .lq-avatar { width: 44px; height: 44px; }
  .phone-band .ibtn, .lq-top .ibtn { width: 44px; height: 44px; }
}

/* 글자가 많은 떠 있는 층(메뉴·팝오버·프로필)은 두꺼운 유리: 뒤 내용이 글자와 겹쳐 읽히지 않게 */
.popover, .profile-deck .pd-main {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
          backdrop-filter: blur(30px) saturate(180%);
}
@media (max-width: 767px) {
  /* 메뉴 맨 아래 '설정'이 탭 막대에 가리지 않게 */
  .sidebar { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .side-journals { padding-bottom: 8px; }
}

/* ================= 15. 물방울 선택 표시(메뉴·탭 이동 때 합쳐졌다 떨어지는 액체) =================
   js/liquid-drop.js. 방울 두 개를 goo 필터로 묶어 액체처럼 잇고 끊는다. 윤기층은 필터 밖에서 유리 반사를 더한다. */
.lq-drop-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  filter: url(#lq-goo) drop-shadow(0 3px 8px rgba(20, 24, 60, .14)) drop-shadow(0 1px 1px rgba(20, 24, 60, .08)); }
.lq-drop-layer i { position: absolute; display: block; background: rgba(255, 255, 255, .96); will-change: left, top, width, height; }
.lq-drop-sheen { position: absolute; z-index: 0; pointer-events: none; will-change: left, top, width, height;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, 0) 55%), radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .55), transparent 60%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(10, 100, 216, .07), inset 0 0 0 .5px rgba(10, 20, 60, .08); }
/* 방울이 선택을 대신 보여 주므로 칸 자체의 흰 바탕은 끈다. 글자·아이콘은 방울 위에 */
.has-drop .side-item.is-on, .has-drop .lq-tab.is-on { background: transparent; box-shadow: none; }
.has-drop .side-item, .has-drop .lq-tab { position: relative; z-index: 1; }
.lq-tabs.has-drop { position: relative; }
.lq-tabs .lq-drop-layer { border-radius: 999px; }
@media (prefers-reduced-transparency: reduce) { .lq-drop-layer { filter: drop-shadow(0 2px 6px rgba(20, 24, 60, .14)); } }
