
/* ---------- tokens ---------- */
:root {
  --blue: #0a84ff;
  --green: #07c160;
  --ink: #ffffff;
  --ink-2: rgba(235, 235, 245, 0.62);
  --ink-3: rgba(235, 235, 245, 0.34);
  --sep: rgba(84, 84, 88, 0.44);
  --paper: #f2f2f7;
  --paper-ink: #111114;
  --paper-2: rgba(60, 60, 67, 0.6);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --w: 393px;
  --h: 852px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: radial-gradient(120% 90% at 50% 0%, #171a20 0%, #0a0b0d 55%, #050607 100%);
  color: var(--ink);
  overflow: hidden;
}

/* ---------- stage & device ---------- */
.stage {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.device {
  position: relative;
  flex: none;
  width: var(--w);
  height: var(--h);
  transform: scale(var(--fit, 1));
  transform-origin: center center;
  padding: 10px;
  border-radius: 56px;
  background: linear-gradient(160deg, #3a3d42 0%, #16181b 42%, #26282c 100%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.bezel {
  position: absolute;
  inset: 4px;
  border-radius: 52px;
  background: #000;
}
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 46px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.view { position: absolute; inset: 0; }
.toasts { position: absolute; left: 0; right: 0; bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 90; }
.stage-note { margin: 0; font-size: 12px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.32); }

html[data-runtime="device"] .stage { display: block; }
html[data-runtime="device"] .device { width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; background: #000; }
html[data-runtime="device"] .bezel, html[data-runtime="device"] .stage-note { display: none; }
html[data-runtime="device"] .screen { border-radius: 0; }

/* ---------- shared chrome ---------- */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  padding: 14px 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  z-index: 60;
  pointer-events: none;
}
.status-bar .ico { width: 18px; height: 18px; }
.status-right { display: flex; align-items: center; gap: 5px; }
.status-notch { position: absolute; left: 50%; top: 9px; width: 118px; height: 33px; transform: translateX(-50%); border-radius: 20px; background: #000; }

.wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 42% at 50% 12%, rgba(120, 142, 160, 0.28) 0%, rgba(20, 24, 30, 0) 70%),
    radial-gradient(70% 50% at 18% 88%, rgba(74, 90, 108, 0.34) 0%, rgba(10, 12, 15, 0) 72%),
    radial-gradient(50% 40% at 84% 70%, rgba(96, 84, 72, 0.24) 0%, rgba(10, 12, 15, 0) 70%),
    linear-gradient(170deg, #10141a 0%, #0a0d11 48%, #05070a 100%);
}
.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.6px, transparent 0.7px), radial-gradient(rgba(255, 255, 255, 0.32) 0.5px, transparent 0.6px);
  background-size: 140px 140px, 96px 96px;
  background-position: 12px 24px, 60px 8px;
  opacity: 0.5;
}
.wallpaper.dim { filter: brightness(0.52) saturate(0.9); }

.home-indicator {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 134px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.42);
  z-index: 70;
}

.nav-bar {
  position: relative;
  margin-top: 52px;
  height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  font-size: 17px;
  z-index: 40;
}
.nav-title { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.nav-back { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; padding: 6px; color: var(--blue); font-size: 17px; cursor: pointer; }
.nav-back .ico { width: 22px; height: 22px; }
.nav-sub, .nav-folder, .nav-dots { font-size: 15px; color: var(--ink-2); }
.nav-folder { color: #c9a227; font-size: 16px; }
.nav-dots { color: #c9a227; font-size: 18px; letter-spacing: 2px; }

.ico { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.ico.tiny { width: 13px; height: 13px; }
.ico.big { width: 34px; height: 34px; }
.ico.search { width: 17px; height: 17px; }

.toast {
  padding: 10px 16px;
  border-radius: 20px;
  background: rgba(28, 30, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.toast.in { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- intro ---------- */
.intro {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(100% 80% at 50% 26%, rgba(26, 30, 36, 0.82), rgba(4, 5, 7, 0.95));
}
.intro-card {
  position: relative;
  width: 100%;
  padding: 30px 24px 24px;
  border-radius: 18px;
  background: linear-gradient(165deg, #f4f0e6 0%, #e9e3d4 100%);
  color: #2a2620;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  transform: rotate(-0.6deg);
}
.intro-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #b6553f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.intro-from { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.16em; color: #8b8069; }
.intro-lines { margin: 0; padding: 0; list-style: none; }
.intro-lines li { font-size: 17px; line-height: 2; letter-spacing: 0.01em; }
.intro-hint { margin: 18px 0 0; font-size: 12.5px; color: #9a8f78; line-height: 1.7; }
.intro-action {
  margin-top: 22px;
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  background: #22201c;
  color: #f6f2e8;
  font-size: 15px;
  letter-spacing: 0.08em;
  font-family: var(--font);
}

/* ---------- lock ---------- */
.screen-lock { position: absolute; inset: 0; overflow: hidden; }
.lock-body { position: absolute; inset: 74px 0 0; display: flex; flex-direction: column; align-items: center; }
.lock-date { margin: 6px 0 0; font-size: 20px; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.lock-clock { margin: 2px 0 0; font-size: 88px; line-height: 1; font-weight: 300; letter-spacing: -0.04em; color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.4); }
.lock-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: calc(100% - 44px); margin-top: 26px; }
.lock-widget { padding: 12px 14px; border-radius: 16px; background: rgba(28, 30, 34, 0.62); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.07); display: flex; flex-direction: column; gap: 2px; }
.widget-title { font-size: 11px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.58); }
.lock-widget strong { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.lock-widget .widget-note { font-size: 11px; color: rgba(255, 255, 255, 0.5); line-height: 1.5; }
.widget-days { background: linear-gradient(160deg, rgba(226, 238, 244, 0.94), rgba(198, 214, 224, 0.9)); color: #16202a; }
.widget-days .widget-title, .widget-days .widget-note { color: rgba(22, 32, 42, 0.62); }
.notification {
  margin-top: 22px;
  width: calc(100% - 36px);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(32, 34, 38, 0.66);
  backdrop-filter: blur(22px);
  color: #fff;
  text-align: left;
  font-family: var(--font);
}
.notif-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, #9fb3a8, #6f8479); color: #101614; font-size: 17px; font-weight: 600; }
.notif-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notif-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.notif-head b { font-weight: 600; }
.notif-head i { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, 0.45); }
.notif-text { font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.lock-unlock { margin-top: auto; margin-bottom: 30px; border: 0; background: none; color: rgba(255, 255, 255, 0.5); font-size: 13px; letter-spacing: 0.06em; font-family: var(--font); }

/* ---------- passcode ---------- */
.screen-passcode { position: absolute; inset: 0; }
.passcode-body { position: absolute; inset: 96px 0 40px; display: flex; flex-direction: column; align-items: center; }
.passcode-title { margin: 8px 0 18px; font-size: 16px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.86); }
.passcode-dots { display: flex; gap: 22px; margin-bottom: 10px; }
.passcode-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); }
.passcode-dots i.on { background: #fff; }
.passcode-error { min-height: 20px; margin: 6px 30px 14px; font-size: 12.5px; line-height: 1.6; text-align: center; color: #ff8b7d; }
.keypad { margin-top: auto; display: grid; grid-template-columns: repeat(3, 76px); gap: 18px 26px; justify-content: center; }
.keypad button {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 30px;
  font-weight: 300;
  font-family: var(--font);
  backdrop-filter: blur(10px);
}
.keypad button:active { background: rgba(255, 255, 255, 0.3); }
.keypad .key-ghost { background: none; font-size: 16px; color: rgba(255, 255, 255, 0.75); }
.keypad .key-ghost .ico { width: 22px; height: 22px; }

/* ---------- home ---------- */
.screen-home { position: absolute; inset: 0; }
.home-body { position: absolute; inset: 100px 22px 120px; display: flex; flex-direction: column; gap: 22px; }
.home-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-widget { width: 100%; padding: 14px 16px; border-radius: 20px; background: linear-gradient(160deg, rgba(228, 240, 246, 0.95), rgba(196, 214, 226, 0.92)); color: #15202a; display: flex; flex-direction: column; gap: 2px; }
.home-widget .widget-title { color: rgba(21, 32, 42, 0.6); }
.home-widget strong { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.home-widget .widget-note { font-size: 11px; color: rgba(21, 32, 42, 0.58); }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 12px; }
.app-icon { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; padding: 0; font-family: var(--font); }
.app-label { font-size: 11px; color: rgba(255, 255, 255, 0.9); letter-spacing: 0.01em; }
.app-icon.is-locked .app-label { color: rgba(255, 255, 255, 0.42); }
.app-icon.is-locked .icon-art { opacity: 0.55; filter: saturate(0.4); }
.app-lock { position: absolute; top: 20px; right: 12px; color: rgba(255, 255, 255, 0.8); }
.icon-art { position: relative; display: block; width: 62px; height: 62px; border-radius: 15px; overflow: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
.icon-art svg { display: block; width: 100%; height: 100%; }
.icon-ai { background: linear-gradient(160deg, #9fb3a8, #5d7269); }
.icon-ai i { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.82); }
.icon-notes { background: linear-gradient(180deg, #fff 0%, #f7f1d8 100%); align-content: center; gap: 5px; padding: 12px 10px; }
.icon-notes b { display: block; height: 2px; border-radius: 2px; background: #d9c98c; }
.icon-notes b:nth-child(2) { width: 70%; }
.icon-photos { background: conic-gradient(from 210deg, #ffd36e, #ff8db3, #8f8dff, #6fd3ff, #7ef0b0, #ffd36e); }
.icon-photos i { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); mix-blend-mode: overlay; }
.icon-days { background: #fff; color: #111; }
.icon-days b { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.icon-wechat { background: linear-gradient(160deg, #37d16a, #07c160); }
.icon-wechat i { position: absolute; width: 24px; height: 18px; border-radius: 9px; background: #fff; opacity: 0.92; }
.icon-wechat i:first-child { transform: translate(-6px, -5px); }
.icon-wechat i:last-child { transform: translate(7px, 7px); opacity: 0.72; width: 18px; height: 14px; }
.icon-browser { background: radial-gradient(circle at 50% 50%, #f6f7f8 0%, #dfe3e8 46%, #b9c0c8 100%); }
.icon-browser i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #4a5560; position: relative; }
.icon-browser i::after { content: ""; position: absolute; inset: 6px; clip-path: polygon(50% 0, 62% 46%, 100% 50%, 62% 54%, 50% 100%, 38% 54%, 0 50%, 38% 46%); background: #4a5560; }
.icon-settings { background: linear-gradient(160deg, #8d939b, #5b6169); }
.icon-settings i { width: 30px; height: 30px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.82); }
.dock { position: absolute; left: 14px; right: 14px; bottom: 26px; padding: 12px 10px; border-radius: 34px; background: rgba(40, 42, 46, 0.5); backdrop-filter: blur(24px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dock-icon .app-label { font-size: 10px; }

/* ---------- chat ---------- */
.app-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.chat-app { background: #0d0f12; }
.chat-app .thread { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
.chat-sep { align-self: center; margin: 14px 0 6px; font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.36); }
.bubble-row { display: flex; align-items: flex-end; gap: 8px; }
.bubble-row.from-me { justify-content: flex-end; }
.bubble-avatar { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(160deg, #9fb3a8, #66796f); color: #101614; font-size: 13px; font-weight: 600; }
.bubble { margin: 0; max-width: 74%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; letter-spacing: 0.01em; background: #22262b; color: rgba(255, 255, 255, 0.92); border-bottom-left-radius: 6px; }
.from-me .bubble { background: #2f6b4f; color: #f2f8f4; border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.unread-note { margin: 0 0 4px 36px; font-size: 10.5px; letter-spacing: 0.08em; color: #ff7a6b; }
.typing .bubble { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.typing .bubble i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); animation: blink 1.1s infinite; }
.typing .bubble i:nth-child(2) { animation-delay: 0.16s; }
.typing .bubble i:nth-child(3) { animation-delay: 0.32s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.28; } 30% { opacity: 1; } }
.composer { display: flex; align-items: center; gap: 10px; padding: 10px 14px 26px; background: rgba(18, 20, 23, 0.94); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.composer input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 14.5px; font-family: var(--font); }
.composer input:focus { outline: none; border-color: rgba(255, 255, 255, 0.2); }
.composer .send { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #b8c6bd; color: #101614; }
.composer .send .ico { width: 19px; height: 19px; }
.draft-bar { display: flex; align-items: center; gap: 8px; padding: 8px 16px 0; }
.draft-chip { flex: 1; font-size: 11.5px; letter-spacing: 0.04em; color: #d6b26a; }
.draft-trash { border: 0; background: none; color: rgba(255, 255, 255, 0.5); padding: 4px; }
.draft-trash .ico { width: 17px; height: 17px; }

.app-light { background: #f2f2f7; }
.choices { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px 36px; }
.choices button { align-self: flex-start; padding: 9px 14px; border-radius: 16px; border: 1px solid rgba(127, 178, 255, 0.45); background: rgba(127, 178, 255, 0.12); color: #cfe0ff; font-size: 13.5px; font-family: var(--font); text-align: left; }
.app-light .choices button { border-color: rgba(10, 132, 255, 0.35); background: rgba(10, 132, 255, 0.08); color: #0a84ff; }
.app-wechat { background: #f2f2f7; }
.app-wechat .nav-bar { color: #111; }
.app-wechat .nav-title { color: #111; }
.app-wechat .bubble { background: #fff; color: #111; }
.app-wechat .from-me .bubble { background: #95ec69; color: #111; }
.app-wechat .bubble-avatar { background: #dfe3e8; color: #333; }
.app-wechat .chat-sep { color: rgba(0, 0, 0, 0.34); }
.app-wechat .thread { background: #f2f2f7; }
.app-wechat .composer { background: #f7f7f9; border-top-color: rgba(0, 0, 0, 0.08); }
.app-wechat .composer input { background: #fff; border-color: rgba(0, 0, 0, 0.08); color: #111; }
.app-wechat .composer .send { background: #07c160; color: #fff; }
.app-wechat .status-bar { color: #111; }

/* ---------- light app shells ---------- */
.paper-bg { position: absolute; inset: 0; background: var(--paper); }
.notes-app, .days-app, .browser-app, .settings-app { background: var(--paper); color: var(--paper-ink); }
.notes-app .status-bar, .days-app .status-bar, .browser-app .status-bar, .settings-app .status-bar, .photos-app .status-bar, .photos-detail .status-bar { color: #111; }
.notes-app .nav-bar .ico, .days-app .nav-bar .ico, .browser-app .nav-bar .ico, .settings-app .nav-bar .ico { color: #c9a227; }
.notes-app .status-bar .ico, .days-app .status-bar .ico, .browser-app .status-bar .ico, .settings-app .status-bar .ico, .photos-app .status-bar .ico, .photos-detail .status-bar .ico { color: #111; }

.notes-scroll, .days-scroll, .browser-scroll, .set-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 30px; }
.notes-h1 { margin: 6px 0 12px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.notes-search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; background: rgba(118, 118, 128, 0.12); color: var(--paper-2); font-size: 15px; }
.notes-section { margin: 22px 0 8px; font-size: 13px; font-weight: 600; color: #c9a227; letter-spacing: 0.02em; }
.notes-card { border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); }
.note-row { width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid rgba(60, 60, 67, 0.1); background: none; font-family: var(--font); display: flex; flex-direction: column; gap: 4px; }
.note-row:last-child { border-bottom: 0; }
.note-title { font-size: 15.5px; font-weight: 590; color: #111; }
.note-meta { font-size: 12.5px; color: var(--paper-2); }
.notes-count { margin: 18px 0 0; text-align: center; font-size: 12px; color: var(--paper-2); }
.note-detail-title { margin: 14px 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.note-detail-date { margin: 0 0 18px; font-size: 12px; color: var(--paper-2); }
.note-detail-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 0 22px 40px; }
.note-detail-body p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.85; letter-spacing: 0.01em; color: #1a1a1e; }
.note-detail-body .note-gap { height: 6px; }
.note-locked { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 30px; color: var(--paper-2); }
.note-locked p { margin: 0; font-size: 14px; }
.note-pass { width: 160px; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid rgba(60, 60, 67, 0.2); background: #fff; font-size: 17px; letter-spacing: 0.3em; font-family: var(--font); }
.note-locked-error { min-height: 16px; font-size: 12px; color: #c0392b; }
.note-unlock-btn { padding: 10px 26px; border: 0; border-radius: 10px; background: #c9a227; color: #fff; font-size: 14px; font-family: var(--font); }

/* photos */
.photos-app, .photos-detail { background: #000; }
.photo-grid { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; align-content: start; }
.photo-cell { padding: 0; border: 0; background: #111; aspect-ratio: 1; }
.photo-cell svg { width: 100%; height: 100%; display: block; }
.photo-count { position: relative; margin: 10px 0 18px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.photo-canvas { position: absolute; inset: 0; }
.photo-canvas svg { width: 100%; height: 100%; }
.photos-detail .nav-bar { color: #fff; }
.photos-detail .nav-sub { color: rgba(255, 255, 255, 0.6); }
.photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px 40px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 55%); }
.photo-caption h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.photo-caption p { margin: 0; font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.78); }
.photo-caption .photo-detail { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); font-size: 12.5px; color: rgba(255, 255, 255, 0.9); }

/* days */
.day-card { margin-top: 14px; padding: 20px 18px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05); }
.day-title { margin: 0; font-size: 13px; color: var(--paper-2); letter-spacing: 0.04em; }
.day-number { margin: 6px 0 4px; font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: #111; }
.day-note { margin: 0; font-size: 12.5px; color: var(--paper-2); }

/* browser */
.browser-bar { position: relative; margin: 4px 16px 12px; padding: 9px 14px; border-radius: 11px; background: rgba(118, 118, 128, 0.12); color: var(--paper-2); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.browser-section { margin: 8px 0 10px; font-size: 13px; font-weight: 600; color: var(--paper-2); }
.history { margin: 0; padding: 0; list-style: none; border-radius: 12px; background: #fff; overflow: hidden; }
.history li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-bottom: 1px solid rgba(60, 60, 67, 0.1); }
.history li:last-child { border-bottom: 0; }
.hist-query { font-size: 15px; color: #111; }
.hist-date { font-size: 12px; color: var(--paper-2); }
.browser-foot { margin: 16px 0 0; text-align: center; font-size: 11.5px; color: var(--paper-2); }

/* settings */
.set-card { margin-top: 14px; border-radius: 12px; background: #fff; overflow: hidden; }
.set-row { padding: 13px 14px; border-bottom: 1px solid rgba(60, 60, 67, 0.1); display: flex; flex-direction: column; gap: 3px; }
.set-row:last-child { border-bottom: 0; }
.set-title { font-size: 15px; color: #111; }
.set-note { font-size: 12px; color: var(--paper-2); }
.set-action { display: block; width: 100%; margin-top: 14px; padding: 14px; border: 0; border-radius: 12px; background: #fff; color: #0a84ff; font-size: 15px; font-family: var(--font); }
.set-action.danger { color: #c0392b; }
.set-version { margin: 22px 0 0; text-align: center; font-size: 11px; color: var(--paper-2); letter-spacing: 0.04em; }

/* ending */
.screen-ending { position: absolute; inset: 0; display: grid; place-items: center; }
.ending-inner { position: relative; padding: 0 34px; text-align: center; }
.ending-label { margin: 0 0 22px; font-size: 11px; letter-spacing: 0.4em; color: rgba(255, 255, 255, 0.4); }
.ending-line { margin: 0 0 12px; font-size: 16px; line-height: 1.9; color: rgba(255, 255, 255, 0.88); }
.ending-actions { margin-top: 34px; display: flex; flex-direction: column; gap: 10px; }
.ending-actions button { padding: 12px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.9); font-size: 14px; font-family: var(--font); }

/* sheet */
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 100; }
.sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 101; padding: 22px 20px 16px; border-radius: 22px; background: rgba(30, 32, 36, 0.98); border: 1px solid rgba(255, 255, 255, 0.08); }
.sheet h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: #fff; }
.sheet p { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.6); }
.sheet-input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 14px; font-family: var(--font); resize: none; }
.sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.sheet-actions button { flex: 1; padding: 11px; border-radius: 12px; border: 0; font-size: 14px; font-family: var(--font); }
.sheet-cancel { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); }
.sheet-confirm { background: #b8c6bd; color: #101614; }
.sheet-confirm.danger { background: #c0392b; color: #fff; }
