/* 蓝晒 · the pages printed onto the same wet sheet (js/print.js). */

/* ---------- the printed page ---------- */
.screen.cy-print { background: transparent; color: var(--cy-ink); font-family: var(--cy-serif); display: block; }
.cy-top { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: flex-end; gap: 12px;
  padding: calc(var(--safe-top, env(safe-area-inset-top)) + 14px) max(22px, env(safe-area-inset-left)) 18px;
  background: linear-gradient(rgba(10, 26, 52, .8), rgba(10, 26, 52, 0)); pointer-events: none; transform: translateZ(0); }
.cy-top > * { pointer-events: auto; }
.cy-top-back { all: unset; pointer-events: auto; cursor: pointer; font-size: 24px; line-height: 1; color: var(--cy-ink-dim); padding: 12px 18px 4px 4px; margin: -12px -10px 0 -4px; touch-action: manipulation; }
.cy-top b { font-weight: 400; font-size: 19px; letter-spacing: .3em; }
.cy-top i { font: 22px/1 var(--cy-script); font-style: normal; color: var(--cy-ink-dim); }
.cy-top-right { margin-left: auto; }
.cy-print-body { position: absolute; inset: 0; z-index: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--safe-top, env(safe-area-inset-top)) + 76px) max(26px, env(safe-area-inset-left)) calc(env(safe-area-inset-bottom) + 60px); box-sizing: border-box; }
.cy-print-page { max-width: 460px; margin: 0 auto; }

/* printing: each line comes up out of the paper, blurred, then sharpens; on leaving it sinks back */
.cy-print .pr { opacity: 0; filter: blur(5px); transform: translateY(4px); transition: opacity 1.1s ease, filter 1.3s ease, transform 1.3s ease; }
.cy-print .pr[data-shown] { opacity: 1; filter: none; transform: none; }
.cy-print .is-sinking .pr[data-shown] { opacity: 0; filter: blur(5px); transition-duration: .55s; }
.cy-print .cap { font: 300 11px var(--cy-serif); letter-spacing: .28em; color: var(--cy-ink-faint); }

/* ---------- 手帐 ---------- */
.jd-day { margin: 0 0 38px; }
.jd-day h3 { margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; font-weight: 400; }
.jd-en { font: italic 30px/1 var(--cy-latin); letter-spacing: .03em; }
.jd-day h3 small { font-size: 12px; letter-spacing: .2em; color: var(--cy-ink-faint); }
.jd-score { margin-left: auto; font: 15px var(--cy-latin); color: var(--cy-amber); letter-spacing: .1em; }
.jd-score::after { content: " 分"; font: 11px var(--cy-serif); }
.jd-line { all: unset; display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 7px 0; font-size: 15px; font-weight: 300; line-height: 1.6; }
button.jd-line { cursor: pointer; }
.jd-slot { flex: none; width: 2.4em; font-size: 11.5px; letter-spacing: .1em; color: var(--cy-ink-faint); }
.jd-what { flex: 1; min-width: 0; }
.jd-what i { font-style: normal; font-size: 11px; color: var(--cy-amber); margin-left: 8px; letter-spacing: .1em; }
.jd-num { flex: none; font: 14px var(--cy-latin); color: var(--cy-ink-dim); letter-spacing: .05em; }
.jd-sum { border-top: 1px solid rgba(238, 243, 251, .14); margin-top: 4px; }
.jd-sum .jd-what { padding-left: calc(2.4em + 12px); font-size: 12px; letter-spacing: .2em; color: var(--cy-ink-faint); }
.jd-todo.is-done .jd-what { text-decoration: line-through; text-decoration-color: rgba(238, 243, 251, .4); color: var(--cy-ink-dim); }
.jd-thumb { all: unset; cursor: pointer; flex: none; width: 34px; height: 34px; border-radius: 3px; overflow: hidden; opacity: .85; }
.jd-thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) hue-rotate(180deg) saturate(.7); }
.jd-dim { margin: 0; font-size: 13px; color: var(--cy-ink-faint); letter-spacing: .08em; }
.jd-his { margin: 12px 0 0; padding-left: 14px; border-left: 1px solid rgba(238, 243, 251, .22); font-size: 14px; line-height: 1.95; font-weight: 300; color: var(--cy-ink-dim); }
.jd-his::before { content: "他 · "; font-size: 12px; color: var(--cy-ink-faint); letter-spacing: .1em; }
.jd-month { text-align: center; margin: 50px 0 56px; }
.jd-month-en { display: block; font: italic 40px/1.1 var(--cy-latin); }
.jd-month .cap { display: block; margin-top: 8px; }
.jd-faint { margin: 14px 0 0; font-size: 13.5px; line-height: 2.1; font-weight: 300; color: var(--cy-ink-dim); }
.cy-print .jd-faint[data-shown] { opacity: .62; }
.jd-month .jd-his { text-align: left; }

/* ---------- 悄悄话: his printed on the sheet, hers on cream slips ---------- */
.wp-hint { display: block; line-height: 2; margin: 0 0 30px; letter-spacing: .14em; }
.wp-empty { text-align: center; color: var(--cy-ink-faint); letter-spacing: .2em; font-size: 13px; }
.wp-note { margin: 0 0 28px; cursor: default; }
.wp-note p { margin: 6px 0 0; font-size: 16px; line-height: 2; font-weight: 300; white-space: pre-wrap; }
.wp-note.is-him p { text-shadow: 0 0 12px rgba(200, 225, 255, .3); }
.wp-note.is-her { margin-left: 18%; padding: 12px 16px 14px; background: var(--cy-slip); color: var(--cy-slip-ink); cursor: pointer;
  clip-path: polygon(0 2%, 3% 0, 97% 1%, 100% 3%, 99% 97%, 96% 100%, 3% 99%, 0 96%); filter: drop-shadow(0 8px 14px rgba(5, 14, 32, .35)); }
.wp-note.is-her .cap { color: #7c869c; }
.wp-note.is-her p { font-size: 15px; }
.wp-input { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.wp-input textarea { all: unset; box-sizing: border-box; width: 100%; min-height: 70px; padding: 12px 14px; background: rgba(243, 239, 228, .92); color: var(--cy-slip-ink);
  font: 16px/1.8 var(--cy-serif); white-space: pre-wrap; }
.wp-input button { all: unset; cursor: pointer; align-self: flex-end; font-size: 13px; letter-spacing: .3em; color: var(--cy-ink); padding: 6px 2px; border-bottom: 1px solid var(--cy-ink-faint); }
.wp-input button:disabled { opacity: .35; }

/* ---------- 小报 ---------- */
.paper-print .paper { background: none; color: inherit; box-shadow: none; padding: 0; font-family: var(--cy-serif); }
.paper-print .paper-mast { text-align: center; border: 0; padding: 0; }
.paper-print .paper-nav { display: flex; justify-content: space-between; }
.paper-print .paper-nav button { all: unset; cursor: pointer; font-size: 12px; letter-spacing: .2em; color: var(--cy-ink-dim); padding: 4px 0; }
.paper-print .paper-nav button:disabled { opacity: .25; }
.paper-print .paper-mast h1 { margin: 18px 0 6px; font-weight: 400; font-size: 30px; letter-spacing: .5em; text-indent: .5em; color: var(--cy-ink); }
.paper-print .paper-date { display: flex; justify-content: center; gap: 14px; font-size: 11.5px; letter-spacing: .2em; color: var(--cy-ink-faint); border: 0;
  padding-bottom: 22px; border-bottom: 1px solid rgba(238, 243, 251, .16); }
.paper-print .paper-note { margin: 26px 0; padding: 0 0 0 14px; border: 0; border-left: 1px solid rgba(238, 243, 251, .22); background: none; }
.paper-print .paper-note b { font-weight: 400; font-size: 11.5px; letter-spacing: .3em; color: var(--cy-ink-faint); }
.paper-print .paper-note p { margin: 6px 0; font-size: 14px; line-height: 2; font-weight: 300; color: var(--cy-ink-dim); }
.paper-print .paper-note span { font-size: 12px; color: var(--cy-ink-faint); }
.paper-print .paper-head { margin: 26px 0 8px; padding: 0; border: 0; background: none; cursor: pointer; }
.paper-print .paper-head small { font-size: 11.5px; letter-spacing: .3em; color: var(--cy-amber); }
.paper-print .paper-head h2 { margin: 8px 0 10px; font-weight: 400; font-size: 21px; line-height: 1.6; color: var(--cy-ink); }
.paper-print .paper-head p, .paper-print .paper-item p { margin: 0; font-size: 14px; line-height: 1.95; font-weight: 300; color: var(--cy-ink-dim); }
.paper-print .paper-sec { margin: 0; padding: 0; border: 0; }
.paper-print .paper-sec h3 { display: flex; align-items: center; gap: 10px; margin: 30px 0 12px; font-weight: 400; font-size: 12px; letter-spacing: .35em; color: var(--cy-ink-faint); border: 0; background: none; padding: 0; }
.paper-print .paper-sec h3::after { content: ""; flex: 1; height: 1px; background: rgba(238, 243, 251, .16); }
.paper-print .paper-item { margin: 0 0 18px; padding: 0; border: 0; cursor: pointer; }
.paper-print .paper-item b { display: block; font-weight: 400; font-size: 16px; line-height: 1.7; margin-bottom: 4px; color: var(--cy-ink); }
.paper-print .paper-src { display: inline-block; margin-top: 4px; font-size: 11px; letter-spacing: .1em; color: var(--cy-ink-faint); }
.paper-print .paper-foot, .paper-print .paper-empty { margin-top: 34px; font-size: 11.5px; line-height: 1.9; letter-spacing: .1em; color: var(--cy-ink-faint); text-align: center; border: 0; }

/* ---------- 设置: rows printed as lines with hairlines between ---------- */
.settings-print .group { background: none; border-radius: 0; margin-top: 8px; overflow: visible; }
.settings-print .group-title { margin: 30px 0 0; padding: 0; font: 300 11px var(--cy-serif); letter-spacing: .3em; color: var(--cy-ink-faint); text-transform: none; }
.settings-print .group-footer { margin: 10px 0 0; padding: 0; font-size: 11.5px; line-height: 1.8; color: var(--cy-ink-faint); letter-spacing: .05em; }
.settings-print .row { background: none; min-height: 0; padding: 15px 0; gap: 12px; color: var(--cy-ink); font-size: 15px; font-weight: 300; border-bottom: 1px solid rgba(238, 243, 251, .14); }
.settings-print .row::after, .settings-print .row::before { display: none; }
.settings-print .row:active { background: none; opacity: .6; }
.settings-print .row-art, .settings-print .row-icon { display: none; }
.settings-print .row-value { color: var(--cy-ink-faint); font-size: 13px; }
.settings-print .row-chevron { color: var(--cy-ink-faint); }
.settings-print .row-profile .avatar { filter: grayscale(.4) sepia(.2) hue-rotate(180deg); }
.settings-print .profile-name { display: block; font-size: 18px; letter-spacing: .2em; font-weight: 400; }
.settings-print .profile-sub { display: block; margin-top: 4px; font-size: 11.5px; color: var(--cy-ink-faint); letter-spacing: .05em; }
.settings-print .row-danger { color: #f0a49a; }
.settings-print input:not([type]) { background: none; border: 0; color: var(--cy-ink-dim); font: 15px var(--cy-serif); text-align: right; }
.settings-print select, .screen.page .row-value select { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; color: var(--cy-ink-dim); font: 13px var(--cy-serif); text-align: right; text-align-last: right; direction: ltr; width: auto; max-width: 62vw; }
.settings-print select option { color: #000; }

/* ---------- the home: today's paper, printed once a day above the tabs ---------- */
.cy-news { all: unset; cursor: pointer; position: absolute; z-index: 6; left: max(26px, env(safe-area-inset-left)); right: max(26px, env(safe-area-inset-right));
  bottom: calc(env(safe-area-inset-bottom) + 76px); display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 12px; margin: 0 -16px;
  padding-top: 34px; background: linear-gradient(to top, rgba(9, 24, 50, .94) 62%, rgba(9, 24, 50, 0));
  opacity: 0; filter: blur(6px); transform: translateY(6px); pointer-events: none; transition: opacity 1.4s ease, filter 1.6s ease, transform 1.6s ease; }
.cy-news.on { opacity: 1; filter: none; transform: none; pointer-events: auto; transition-delay: .6s; }
.cy-news-cap { font: 300 11px var(--cy-serif); letter-spacing: .3em; color: var(--cy-ink-faint); }
.cy-news-cap i { font: 17px/1 var(--cy-script); font-style: normal; letter-spacing: 0; color: var(--cy-ink-dim); }
.cy-news-head { font-size: 17px; line-height: 1.6; color: var(--cy-ink); letter-spacing: .04em; }
.cy-news-head::after { content: "  ›"; color: var(--cy-ink-faint); }
.cy-news-more { font-size: 12.5px; line-height: 1.6; font-weight: 300; color: var(--cy-ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cy-news.on ~ .cy-tabs { background: linear-gradient(to top, rgba(9, 24, 50, .92) 40%, rgba(9, 24, 50, 0)); }

/* ---------- every other page (ui.js Page): the same sheet, the old layout, cyanotype colours ---------- */
.screen.page { --bg: transparent; --surface: transparent; --surface-2: rgba(238, 243, 251, .08); --line: rgba(238, 243, 251, .14);
  --text: #eef3fb; --muted: rgba(238, 243, 251, .5); --accent: #e9a36a; --lg-tint: rgba(10, 26, 52, .45); --lg-tint-clear: rgba(10, 26, 52, .3);
  --lg-edge: 0 0 0 .5px rgba(238, 243, 251, .2); --lg-shadow: none;
  background: transparent; color: var(--cy-ink); font-family: var(--cy-serif); color-scheme: dark; }
.screen.page .navbar::before { background: linear-gradient(rgba(10, 26, 52, .82), rgba(10, 26, 52, 0)); -webkit-backdrop-filter: none; backdrop-filter: none; mask: none; -webkit-mask: none; }
.screen.page .navbar h1 { font-weight: 400; letter-spacing: .3em; font-size: 18px; }
.screen.page .page-body { -webkit-overflow-scrolling: auto; }
.screen.page .group, .settings-print .group { background: none; border-radius: 0; box-shadow: none; overflow: visible; }
.screen.page .group-title { font: 300 11px var(--cy-serif); letter-spacing: .3em; color: var(--cy-ink-faint); text-transform: none; padding-left: 0; }
.screen.page .group-footer { color: var(--cy-ink-faint); padding-left: 0; padding-right: 0; line-height: 1.8; }
.screen.page .row { background: none; color: var(--cy-ink); font-weight: 300; border-bottom: 1px solid rgba(238, 243, 251, .14); padding-left: 0; padding-right: 0; }
.screen.page .row::after, .screen.page .row::before { display: none; }
.screen.page .row-art, .screen.page .row-icon { display: none; }
.screen.page input, .screen.page textarea, .screen.page select { color: var(--cy-ink); background-color: rgba(238, 243, 251, .06); border-color: rgba(238, 243, 251, .18); font-family: var(--cy-serif); }
.screen.page select option { color: #000; }
.screen.page .switch { background: rgba(238, 243, 251, .18); }
.screen.page .switch:checked { background: rgba(233, 163, 106, .85); }
/* lines develop as they scroll in (print.js usePrint on the page body) */
.screen.page .pr { opacity: 0; filter: blur(4px); transition: opacity 1s ease, filter 1.2s ease; }
.screen.page .pr[data-shown] { opacity: 1; filter: none; }

/* the GPT quota card inside settings */
.settings-print .quota-card, .screen.page .quota-card { background: none; color: var(--cy-ink); border: 0; border-bottom: 1px solid rgba(238, 243, 251, .14); border-radius: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
