/* apps-b: Notes, Reminders, Sozotube, Clock, Weather, Settings */
.ab-sub { padding: 0 18px 8px; color: var(--sub); font-size: calc(13px * var(--ts)); }
.ab-card { margin: 0 14px 14px; background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(29,37,80,.08); overflow: hidden; }
.ab-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; cursor: pointer; transition: background .15s; }
.ab-row + .ab-row::before { content: ""; position: absolute; left: 14px; right: 0; top: 0; height: 1px; background: var(--line); }
.ab-row:active { background: rgba(29,37,80,.07); }
.ab-grow { flex: 1; min-width: 0; }
.ab-nt { font-weight: 700; font-size: calc(16px * var(--ts)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-ns { color: var(--sub); font-size: calc(13px * var(--ts)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ab-ns b { font-weight: 400; color: var(--ink); opacity: .6; margin-right: 8px; }
.ab-lock { flex: none; width: 16px; height: 16px; color: var(--sub); }
.ab-chev { flex: none; width: 8px; height: 14px; color: #b9bccf; }
.ab-paper { background: var(--cream) repeating-linear-gradient(180deg, transparent 0 29px, rgba(29,37,80,.07) 29px 30px); background-attachment: local; }
.ab-paper.warm { background-color: #fff3e0; }
.ab-note { padding: 6px 22px 30px; }
.ab-ndate { text-align: center; color: var(--sub); font-size: calc(12px * var(--ts)); margin-bottom: 12px; }
.ab-ntitle { font-size: calc(26px * var(--ts)); font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.ab-nbody { white-space: pre-wrap; font-size: calc(16px * var(--ts)); line-height: 30px; }
.ab-para { margin: 0 0 30px; white-space: pre-wrap; font-size: calc(16px * var(--ts)); line-height: 30px; opacity: 0; transform: translateY(8px); transition: opacity .7s, transform .7s; }
.ab-para.in { opacity: 1; transform: none; }
.ab-sec { padding: 6px 18px 6px; font-size: calc(13px * var(--ts)); color: var(--sub); font-weight: 600; }
.ab-ring { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--magenta); }
.ab-ring.done { background: var(--magenta); border-color: var(--magenta); display: flex; align-items: center; justify-content: center; }
.ab-rt { font-size: calc(16px * var(--ts)); line-height: 1.35; }
.ab-rt.done { color: #a4a8bf; text-decoration: line-through; }
.ab-chk { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; margin: -9px -9px -9px -9px; }
.ab-shake { animation: abShake .4s; }
@keyframes abShake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
/* tube */
.win.dark .page.ab-tube { background: #0f1020; }
.ab-tbar { flex: none; margin-top: 40px; height: 46px; display: flex; align-items: center; gap: 6px; padding: 0 14px; font-weight: 800; font-size: calc(20px * var(--ts)); letter-spacing: -.5px; }
.ab-tabs { flex: none; display: flex; padding: 6px 0 22px; background: #151729; border-top: 1px solid rgba(255,255,255,.08); }
.ab-tab { flex: 1; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8e92b3; font-size: calc(12px * var(--ts)); cursor: pointer; }
.ab-tab.on { color: #fff; }
.ab-tab:active { opacity: .6; }
.ab-tab svg { width: 24px; height: 24px; }
.ab-chan { margin: 4px 14px 14px; padding: 14px; border-radius: 16px; background: #1b1d36; }
.ab-chan small { color: #8e92b3; font-size: calc(12px * var(--ts)); }
.ab-chrow { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.ab-av { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ab-av img { width: 100%; height: 100%; object-fit: cover; }
.ab-av.sm { width: 36px; height: 36px; }
.ab-chn { font-weight: 700; font-size: calc(16px * var(--ts)); }
.ab-meta { color: #9a9ec0; font-size: calc(12px * var(--ts)); margin-top: 2px; }
.ab-vcard { margin: 0 0 18px; cursor: pointer; }
.ab-vcard:active { opacity: .8; }
.ab-thumb { position: relative; aspect-ratio: 16/9; background: #222 center/cover; }
.ab-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: calc(12px * var(--ts)); font-weight: 600; }
.ab-vt { padding: 8px 14px 0; font-weight: 600; font-size: calc(15px * var(--ts)); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-vcard .ab-meta { padding: 0 14px; }
.ab-hrow { display: flex; align-items: center; gap: 10px; padding: 8px 14px; min-height: 60px; cursor: pointer; }
.ab-hrow:active { background: rgba(255,255,255,.07); }
.ab-hrow .ab-thumb { flex: none; width: 104px; border-radius: 8px; overflow: hidden; }
.ab-hrow .ab-vt { padding: 0; font-size: calc(14px * var(--ts)); }
.ab-hrow .ab-meta { padding: 0; }
.ab-clock { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #1f2140; display: flex; align-items: center; justify-content: center; color: #b8bce0; }
.ab-sec.dk { color: #9a9ec0; padding-top: 10px; }
.ab-player { position: relative; margin-top: 40px; background: #000; aspect-ratio: 16/9; flex: none; }
.ab-player canvas { width: 100%; height: 100%; display: block; }
.ab-pbig { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ab-player.paused .ab-pbig { opacity: 1; }
.ab-pbig i { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
.ab-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.ab-prog i { display: block; height: 100%; width: 0; background: var(--magenta); }
.ab-time { position: absolute; left: 10px; bottom: 10px; color: #fff; font-size: calc(12px * var(--ts)); text-shadow: 0 1px 3px #000; font-weight: 600; }
.ab-ptitle { padding: 12px 14px 0; font-weight: 700; font-size: calc(17px * var(--ts)); line-height: 1.3; }
.ab-desc { margin: 12px 14px; padding: 12px; border-radius: 12px; background: #1b1d36; font-size: calc(14px * var(--ts)); line-height: 1.5; }
.ab-cm { display: flex; gap: 10px; padding: 8px 14px; }
.ab-cav { flex: none; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ab-cn { font-size: calc(12px * var(--ts)); color: #9a9ec0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ab-chip { background: var(--magenta); color: #fff; border-radius: 10px; padding: 1px 8px; font-weight: 700; }
.ab-ct { font-size: calc(14px * var(--ts)); line-height: 1.45; margin-top: 2px; }
.ab-lk { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: #9a9ec0; font-size: calc(12px * var(--ts)); }
.ab-pin { padding: 4px 14px 0 58px; color: #9a9ec0; font-size: calc(12px * var(--ts)); display: flex; gap: 4px; align-items: center; }
/* clock */
.ab-al { display: flex; align-items: center; padding: 10px 18px; min-height: 84px; position: relative; }
.ab-al + .ab-al::before { content: ""; position: absolute; left: 18px; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.12); }
.ab-time44 { font-size: calc(44px * var(--ts)); font-weight: 300; line-height: 1.1; letter-spacing: -1px; }
.ab-al.off .ab-time44, .ab-al.off .ab-ns { opacity: .45; }
.ab-al .ab-ns { color: #c8cbe6; }
.ab-tog { flex: none; position: relative; width: 51px; height: 31px; border-radius: 16px; background: #c9cbd8; transition: background .2s; cursor: pointer; }
.win.dark .ab-tog { background: #3a3c52; }
.ab-tog::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); transition: transform .2s; }
.ab-tog.on { background: #34c759 !important; }
.ab-tog.on::after { transform: translateX(20px); }
.ab-togw { min-width: 60px; min-height: 44px; display: flex; align-items: center; justify-content: flex-end; cursor: pointer; }
/* weather */
.ab-wx { position: relative; background: linear-gradient(180deg, #121a3f 0%, #1c3a5c 55%, #1f5f6e 100%); color: #fff; overflow: hidden; }
.ab-wx .page-body { position: relative; padding-top: 40px; z-index: 1; }
.ab-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ab-rain i { position: absolute; top: -60px; width: 1.5px; height: 40px; background: linear-gradient(transparent, rgba(190,225,255,.6)); animation: abRain linear infinite; }
@keyframes abRain { to { transform: translateY(760px); } }
.ab-wnow { text-align: center; padding: 14px 0 16px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.ab-wsm { font-size: calc(13px * var(--ts)); opacity: .85; }
.ab-wplace { font-size: calc(30px * var(--ts)); font-weight: 500; }
.ab-wtemp { font-size: calc(96px * var(--ts)); font-weight: 200; line-height: 1; margin-left: 14px; }
.ab-wcard { margin: 0 14px 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.ab-hours { display: flex; justify-content: space-between; text-align: center; }
.ab-hours div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: calc(14px * var(--ts)); font-weight: 600; }
.ab-wrow { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
/* settings */
.ab-set { background: #f4efe6; }
.ab-prof { display: flex; align-items: center; gap: 14px; padding: 14px; }
.ab-prof .ab-av { width: 62px; height: 62px; }
.ab-ico { flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; }
.ab-val { color: var(--sub); font-size: calc(15px * var(--ts)); }
.ab-bar { height: 12px; border-radius: 6px; background: rgba(29,37,80,.08); margin-top: 8px; overflow: hidden; }
.ab-bar i { display: block; height: 100%; border-radius: 6px; background: var(--cyan); }
