#app.system-night{color-scheme:dark;--system:#000;--secondary:#98989f;--separator:#38383a;color:#f5f5f7;background:#000}
#app.system-night .app-screen:not(.home){background-color:#000;color:#f5f5f7}
#app.system-night :is(.settings-page,.scroll-page,.store-page,.tips-app,.notes-app,.im-app:not([data-wallpaper="true"])){background-color:#000;color:#f5f5f7}
#app.system-night :is(.settings-section,.settings-cell,.form-cell,.tips-section,.tips-check-card,.notes-section,.note-cell,.im-list-header,.im-list-bottom,.im-conversation,.life-sheet,.im-sheet,.store-result){background-color:#1c1c1e;color:#f5f5f7}
#app.system-night :is(.settings-cell,.form-cell,.tips-row,.note-cell) :is(input,textarea,select){color:#f5f5f7;background-color:#2c2c2e}
#app.system-night :is(.large-title,.settings-cell .cell-title,.tips-detail-title,.tips-section-title,.notes-heading,.note-cell b){color:#f5f5f7}
#app.system-night :is(.life-app,.im-app){--life-glass-bg:rgba(44,44,46,.7);--life-glass-border:rgba(255,255,255,.16);--glass-bg:rgba(44,44,46,.65);--glass-border:rgba(255,255,255,.2);--glass-ink:#f5f5f7}
#app.system-night .im-app:not([data-wallpaper="true"]){--incoming:#2c2c2e;--incoming-text:#fff}
.assistive-layer{position:absolute;inset:calc(var(--safe-top,0px) + 8px) 8px calc(var(--safe-bottom,0px) + 8px);z-index:950;pointer-events:none;--assist-bg:rgba(245,245,247,.94);--assist-text:#202024;--assist-cell:#e9e9ed}
.system-night .assistive-layer{--assist-bg:rgba(30,30,32,.95);--assist-text:#f5f5f7;--assist-cell:#3a3a3c}
.assistive-dot{position:absolute;width:56px;height:56px;border-radius:18px;border:1px solid #fff5;background:#5559;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);display:grid;place-items:center;pointer-events:auto;touch-action:none;cursor:pointer}
.assistive-dot span{width:34px;height:34px;border-radius:50%;background:#ffffffe8;box-shadow:0 0 0 5px #ffffff48,inset 0 0 2px #888}
.assistive-mask{position:absolute;inset:0;pointer-events:auto;display:flex;align-items:center;justify-content:center;background:#0002;padding:12px}
.assistive-panel{width:100%;max-width:380px;max-height:100%;overflow:auto;background:var(--assist-bg);color:var(--assist-text);backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);border:1px solid #ffffff45;border-radius:28px;padding:18px;box-sizing:border-box;box-shadow:0 12px 45px #0003}
.assistive-panel header{display:flex;align-items:center;justify-content:space-between}.assistive-panel header button{font-size:25px;width:44px;height:44px;border:0;border-radius:50%;background:var(--assist-cell);color:inherit}
.assistive-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.assistive-actions button,.assistive-row{border:0;border-radius:15px;background:var(--assist-cell);color:inherit;min-height:64px;padding:12px;font:inherit}.assistive-row{display:block;width:100%;margin-top:10px;text-align:left}
.assistive-note{font-size:12px;line-height:1.5;opacity:.75}.lianlian-history{max-height:280px;overflow:auto;overscroll-behavior:contain}.lianlian-history article{padding:10px 12px;border-radius:16px;background:var(--assist-cell);margin:10px 20px 10px 0}.lianlian-history .mine{margin:10px 0 10px 20px}.lianlian-history p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;font-size:15px;line-height:1.6}.lianlian-history small{opacity:.65}
.assistive-panel form{display:flex;align-items:end;gap:8px;margin-top:12px}.assistive-panel textarea{flex:1;width:0;min-width:0;border-radius:14px;background:var(--assist-cell);color:inherit;border:0;padding:10px;font-family:inherit;font-size:16px;line-height:1.5;resize:vertical}.assistive-panel form button{border:0;border-radius:14px;background:#007aff;color:white;min-height:44px;padding:10px}.assistive-clear{border:0;background:transparent;color:inherit;min-height:44px}.assistive-panel button:disabled{opacity:.45}
#app.system-night :is(.notes-editor,.note-title,.note-block textarea,.life-nav,.tips-search,.store-tabs,.store-search,.im-search,.im-list){background-color:#1c1c1e;color:#f5f5f7}
#app.system-night :is(.app-nav,.status-bar,.large-title button){color:#f5f5f7}
#app.system-night .app-screen.home .status-bar{color:inherit}
/* Settings uses grouped dark cards; Messages keeps a continuous black list. */
#app.system-night .apple-account{background:#1c1c1e;color:#f5f5f7}
#app.system-night .apple-account .cell-copy small{color:#98989f}
#app.system-night .settings-page .settings-section>.settings-cell:not(:last-child)::after{background:#38383a}
#app.system-night .ios-switch:not(.on){background:#39393d}
#app.system-night .round-back{background:#2c2c2e;color:#f5f5f7}
#app.system-night :is(.section-header,.section-note){color:#98989f}
#app.system-night .im-app .im-list,
#app.system-night .im-app .im-conversation,
#app.system-night .im-app .im-list-header,
#app.system-night .im-app .im-list-bottom{background:#000;color:#f5f5f7}
#app.system-night .im-conversation-main{color:#f5f5f7;border-bottom-color:#38383a}
#app.system-night .im-list-header>button,
#app.system-night .im-list-bottom input,
#app.system-night .im-list-bottom>button{background:#1c1c1e;color:#0a84ff}
#app.system-night .im-list-bottom input{color:#f5f5f7}
#app.system-night .im-list-bottom input::placeholder{color:#98989f;opacity:1}
#app.system-night .im-list .im-avatar{background:#2c2c2e;color:#98989f}
#app.system-night .im-preview small,
#app.system-night .im-conversation time{color:#98989f}
/* System surfaces only: never invert photos, role art, wallpapers or canvases. */
#app.system-night :is(.contacts-page,.contacts-scroll,.calendar-app,.mail-app,.photos-app:not(.camera)){background-color:#000;color:#f5f5f7}
#app.system-night :is(.contact-cell,.contact-name,.person-heading,.notes-format button,.notes-search input,.note-table input,.today-header h2 button){color:#f5f5f7}
#app.system-night :is(.contact-letter,.contact-import,.cal-weekdays,.cal-grid>button,.cal-day-heading,.cal-hour,.note-table td,.meeting-line){border-color:#38383a}
#app.system-night :is(.contact-cell,.note-cell):not(:last-child)::after{background:#38383a}
#app.system-night :is(.contact-face,.phone-tabs>div,.phone-tabs>button,.poster-edit,.contact-actions .ui-icon,.life-card,.life-select,.cal-year button,.photo-segments .active){background:#1c1c1e;color:#f5f5f7}
#app.system-night .phone-tabs .active{background:#2c2c2e;color:#0a84ff}
#app.system-night .person-screen::before{background:#0009}
#app.system-night .person-screen .poster-card{background:#1c1c1ecc;color:#f5f5f7}
#app.system-night .person-screen .scroll-page{background:transparent}
#app.system-night .poster-action{color:#80bbff}
#app.system-night .cal-hour>small{background:#000;color:#98989f}
#app.system-night .cal-all-day{background:#1b3049;color:#b7d9ff}
#app.system-night :is(.notes-app input,.notes-format button,.photo-empty h2){color:#f5f5f7}
#app.system-night .mail-row{background:#000;color:#f5f5f7}
#app.system-night .mail-row:hover{background:#1c1c1e}
#app.system-night :is(.mail-app .mail-control:not(.mail-send),.mail-search,.mail-compose-fields,.mail-sheet,.mail-choice,.mail-account-links){background:#1c1c1e;color:#f5f5f7}
#app.system-night :is(.mail-search input,.mail-compose-fields input,.mail-compose-fields select,.mail-compose-fields span,.mail-choice select,.mail-account-links button){color:#f5f5f7}
#app.system-night .mail-body-input{background:#000;color:#f5f5f7}
#app.system-night .mail-account-links button:not(:last-child){border-color:#38383a}
#app.system-night :is(.life-sheet input:not([type=color]),.life-sheet textarea,.life-sheet select,.life-card textarea,.life-card input){background-color:#2c2c2e;color:#f5f5f7}
#app.system-night :is(.memory-tabs,.safari-tabs){background:#1c1c1e}
#app.system-night :is(.memory-tabs button,.safari-tabs button){color:#98989f}
#app.system-night :is(.memory-tabs button.active,.safari-tabs button.active){background:#2c2c2e;color:#0a84ff}
#app.system-night :is(.safari-content,.memory-document){background:#1c1c1e;color:#f5f5f7}
#app.system-night .life-app:not(.maps-design):not(.days-design):not(.icity-design):not(.books-app){background-color:#000;color:#f5f5f7}
#app.system-night .tips-app{--tb-glass-bg:rgba(28,28,30,.86);--tb-glass-border:rgba(255,255,255,.16)}
