/* Hank 2026-11-13: 「收件通知」 on the LINE page (device notifications replace LINE pushes). */
.line-notices-device{margin:4px 0 0}
.line-page .line-notices button{margin:12px 0 4px}
.line-notices-switches{margin:14px 0 12px;border-top:1px solid var(--reading-line,#e6dcc8)}
.line-page .line-notices-row{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 0;font-size:15px;line-height:1.45;border-bottom:1px solid var(--reading-line,#e6dcc8);cursor:pointer}
.line-page .line-notices-row input{flex:none;width:24px;height:24px;margin:0;accent-color:var(--reading-green,#486c51)}
.line-page .line-notices-row span{flex:1;min-width:0}
.line-notices-preview{display:grid;gap:4px;margin:12px 0 0;padding:12px 14px;border-radius:14px;background:#f6f1e4}
.line-notices-preview span{font-size:12px;color:#6f604f}
.line-notices-preview strong{font-size:14px;font-weight:600;line-height:1.55;overflow-wrap:anywhere}
/* 2026-11-13「Merge into one page」: the 通知 page reuses the LINE page cards; the LINE page links to it. */
.notifications-page main>.line-card{margin-bottom:22px}
.notifications-page .line-card h2{margin-bottom:6px}
.line-page .line-notices-link{display:flex;align-items:center;gap:12px;margin:0 0 24px;padding:18px 20px;text-decoration:none;color:inherit}
.line-notices-link span{flex:1;min-width:0;display:grid;gap:4px}
.line-notices-link strong{font-size:17px}
.line-notices-link small{font-size:13px;line-height:1.5;color:#6f604f}
.line-notices-link .ti{flex:none;color:var(--reading-green,#486c51)}
/* 2026-11-13 (Hank: preview with the phone's own notification look, animated between states): device-style preview. */
.np-preview{margin:14px 0 0;display:grid;gap:10px}
.np-label{font-size:12px;color:#6f604f}
.np-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:14px;background:#efe9db}
html body.app-ui.line-page :is(#line-notices,#transfer-notices) .np-tabs button.np-tab{min-height:44px;margin:0;padding:6px 4px;border:0;border-radius:10px;background:transparent;color:#5b4b3c;font-size:13px;font-weight:600;line-height:1.25}
html body.app-ui.line-page :is(#line-notices,#transfer-notices) .np-tabs button.np-tab[aria-selected="true"]{background:#fffef9;color:var(--reading-green,#2f5d3b);box-shadow:0 1px 3px #0000001f}
html body.app-ui.line-page :is(#line-notices,#transfer-notices) .np-tabs button.np-tab.np-tab-off{color:#a89a88;text-decoration:line-through}
.np-stage{display:grid;align-items:center;min-height:118px;padding:18px 12px;border-radius:20px;overflow:hidden;background:linear-gradient(160deg,#20242c,#0d0f13)}
.np-preview[data-platform="ios"] .np-stage{background:linear-gradient(165deg,#3b5a8c 0%,#6c5b9e 55%,#c48aa5 100%)}
.np-card{grid-area:1/1;display:flex;align-items:flex-start;gap:12px;position:relative;padding:14px 16px;border-radius:26px;background:#f1f3f4;color:#1f1f1f;transition:transform .3s ease,opacity .3s ease}
.np-preview[data-platform="ios"] .np-card{border-radius:22px;padding:12px 14px;background:rgba(246,246,246,.82);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.np-icon{flex:none;width:40px;height:40px;border-radius:50%;object-fit:cover}
.np-preview[data-platform="ios"] .np-icon{width:38px;height:38px;border-radius:9px}
.np-text{flex:1;min-width:0;display:grid;gap:2px}
.np-head{display:flex;align-items:baseline;gap:6px;min-width:0}
.np-title{min-width:0;font-size:15px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.np-when{flex:none;font-size:12px;color:#5f6368}
.np-when::before{content:"· "}
.np-preview[data-platform="ios"] .np-head{justify-content:space-between}
.np-preview[data-platform="ios"] .np-when{color:#6b6b6b}
.np-preview[data-platform="ios"] .np-when::before{content:""}
.np-body{font-size:14px;line-height:1.45;color:#3c4043;overflow-wrap:anywhere}
.np-preview[data-platform="ios"] .np-body{font-size:15px;color:#111}
.np-off .np-icon,.np-off .np-text{opacity:.35}
.np-off-label{position:absolute;right:12px;bottom:-1px;transform:translateY(50%);padding:3px 10px;border-radius:999px;background:#5b4b3c;color:#fff;font-size:12px;font-weight:600}
.np-off{margin-bottom:10px}
.np-enter{transform:translateY(16px) scale(.97);opacity:0}
.np-leave{transform:translateY(-12px) scale(.97);opacity:0}
.np-caption{margin:0;font-size:13px;line-height:1.5;color:#6f604f}
.line-page .np-try{margin:2px 0 0}
.np-try-status{margin:0;font-size:13px;color:#4d604b}
.np-try-status:empty{display:none}
.np-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.np-card{transition:none}}

/* Claude R3427 batch07-02: 「允許通知」 and 「開啟手機通知設定」 touched (0px) when they wrapped at large text; 8px both ways. */
html body.app-ui.app-ui #device-notifications>.device-notice-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}

/* Claude R3427 batch07-04: preview titles and bodies break at spaces and punctuation (not 「家／庭群組」「影／片」「漢／堡」),
   an over-long token still wraps. A split title (notifications-page.js) puts 「·」 in the gap before the second part; when that
   part starts a line its 「·」 lies left of the title box and is clipped, so no line starts with 「·」. */
html body.app-ui :is(.np-title,.np-body){word-break:keep-all;overflow-wrap:anywhere}
html body.app-ui .np-title--split{overflow:hidden}
html body.app-ui .np-title-parts{display:flex;flex-wrap:wrap;margin-left:-.75em}
html body.app-ui .np-title-parts>span{min-width:0;margin-left:.75em}
html body.app-ui .np-title-parts>span+span::before{content:"·";display:inline-block;width:.75em;margin-left:-.75em;text-align:center}
