From 0f84055ec2536ababc398b02c305a6b084c3f78d Mon Sep 17 00:00:00 2001 From: Tero Date: Mon, 5 Oct 2026 07:31:14 +0300 Subject: [PATCH] Add ep-wasteand dark theme --- .github/workflows/desktop-build.yml | 4 ++- app.js | 2 +- mail-ui.js | 13 ++++--- package-lock.json | 4 +-- package.json | 2 +- productivity.js | 2 +- styles.css | 56 ++++++++++++++++++++++++++++- 7 files changed, 71 insertions(+), 12 deletions(-) diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index 133006a..e6b9088 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -26,10 +26,12 @@ jobs: with: node-version: 24 cache: npm + - id: app-version + run: node -e "require('fs').appendFileSync(process.env.GITHUB_OUTPUT, 'version=' + require('./package.json').version + String.fromCharCode(10))" - run: npm ci - run: ${{ matrix.command }} - uses: actions/upload-artifact@v4 with: - name: daybreak-mail-${{ matrix.artifact }} + name: daybreak-mail-${{ matrix.artifact }}-v${{ steps.app-version.outputs.version }} path: ${{ matrix.files }} if-no-files-found: error diff --git a/app.js b/app.js index 77dce00..de733cd 100644 --- a/app.js +++ b/app.js @@ -14,4 +14,4 @@ function renderCalendar(){} function showEvent(){} function renderContacts(){} function showContact(){} -$$('.folder').forEach(b=>b.onclick=()=>{activeFolder=b.dataset.folder;$$('.folder').forEach(x=>x.classList.toggle('active',x===b));$('#sidebar-title').textContent=activeFolder;$('#crumb-current').textContent=activeFolder;renderList()});$$('.rail-button[data-view]').forEach(b=>b.onclick=()=>{switchView(b.dataset.view);if(b.dataset.view==='calendar')renderCalendar();if(b.dataset.view==='contacts')renderContacts()});$('#theme-toggle').onclick=()=>{document.body.classList.toggle('wasteland');const isWaste=document.body.classList.contains('wasteland');$('#theme-toggle span').textContent=isWaste?'☾':'☼';$('#theme-toggle').title=isWaste?'Switch to Eternity Daylight':'Switch to Wasteland';localStorage.setItem('daybreak-theme',isWaste?'wasteland':'daylight');toast(isWaste?'Wasteland theme':'Eternity Daylight theme')};if(localStorage.getItem('daybreak-theme')==='wasteland'){document.body.classList.add('wasteland');$('#theme-toggle span').textContent='☾'}$('#search').oninput=e=>{query=e.target.value;renderList()};$('#search').addEventListener('keydown',e=>{if(e.key==='Escape'){e.target.value='';query='';renderList()}});$('#compose').onclick=()=>showCompose();$('#refresh').onclick=()=>{toast('You’re all up to date');renderList()};$('#select-all').onclick=()=>{const visible=messages.filter(m=>!m.archived&&!m.deleted);const all=visible.every(m=>selectedIds.has(m.id));visible.forEach(m=>all?selectedIds.delete(m.id):selectedIds.add(m.id));renderList()};$('#archive-selected').onclick=()=>{messages.filter(m=>selectedIds.has(m.id)).forEach(m=>m.archived=true);selectedIds.clear();renderList();toast('Selected messages archived')};$('#delete-selected').onclick=()=>{messages.filter(m=>selectedIds.has(m.id)).forEach(m=>m.deleted=true);selectedIds.clear();renderList();toast('Selected messages moved to Trash')};$('#sidebar-menu').onclick=()=>toast('More mailbox options');$$('.settings-button,.help-button,.tiny-plus,.text-button').forEach(b=>b.onclick=()=>toast('You’re all caught up'));document.addEventListener('keydown',e=>{if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()==='k'){e.preventDefault();$('#search').focus()}if(e.key==='Escape')$('#modal-root').innerHTML=''});$('#today-label').textContent=new Intl.DateTimeFormat('en-US',{weekday:'long',month:'long',day:'numeric'}).format(new Date()).toUpperCase();$('#reader-pane').innerHTML=emptyReader();renderList();openMessage(activeMessage); +$$('.folder').forEach(b=>b.onclick=()=>{activeFolder=b.dataset.folder;$$('.folder').forEach(x=>x.classList.toggle('active',x===b));$('#sidebar-title').textContent=activeFolder;$('#crumb-current').textContent=activeFolder;renderList()});$$('.rail-button[data-view]').forEach(b=>b.onclick=()=>{switchView(b.dataset.view);if(b.dataset.view==='calendar')renderCalendar();if(b.dataset.view==='contacts')renderContacts()});function applyTheme(theme,showToast=false){const themes=['daylight','wasteland','ep-wasteland'];const selected=themes.includes(theme)?theme:'daylight';const info={daylight:{name:'Eternity Daylight',icon:'☼'},wasteland:{name:'Wasteland',icon:'☾'},'ep-wasteland':{name:'EP Wasteland',icon:'◈'}}[selected];document.body.classList.remove('wasteland','ep-wasteland');if(selected!=='daylight')document.body.classList.add(selected);const button=$('#theme-toggle');button.querySelector('span').textContent=info.icon;button.title=`Theme: ${info.name} (click to switch)`;button.setAttribute('aria-label',`Theme: ${info.name}. Click to switch themes.`);localStorage.setItem('daybreak-theme',selected);if(showToast)toast(`${info.name} theme`)}$('#theme-toggle').onclick=()=>{const themes=['daylight','wasteland','ep-wasteland'];const current=localStorage.getItem('daybreak-theme')||'daylight';applyTheme(themes[(themes.indexOf(current)+1)%themes.length],true)};applyTheme(localStorage.getItem('daybreak-theme')||'daylight');$('#search').oninput=e=>{query=e.target.value;renderList()};$('#search').addEventListener('keydown',e=>{if(e.key==='Escape'){e.target.value='';query='';renderList()}});$('#compose').onclick=()=>showCompose();$('#refresh').onclick=()=>{toast('You’re all up to date');renderList()};$('#select-all').onclick=()=>{const visible=messages.filter(m=>!m.archived&&!m.deleted);const all=visible.every(m=>selectedIds.has(m.id));visible.forEach(m=>all?selectedIds.delete(m.id):selectedIds.add(m.id));renderList()};$('#archive-selected').onclick=()=>{messages.filter(m=>selectedIds.has(m.id)).forEach(m=>m.archived=true);selectedIds.clear();renderList();toast('Selected messages archived')};$('#delete-selected').onclick=()=>{messages.filter(m=>selectedIds.has(m.id)).forEach(m=>m.deleted=true);selectedIds.clear();renderList();toast('Selected messages moved to Trash')};$('#sidebar-menu').onclick=()=>toast('More mailbox options');$$('.settings-button,.help-button,.tiny-plus,.text-button').forEach(b=>b.onclick=()=>toast('You’re all caught up'));document.addEventListener('keydown',e=>{if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()==='k'){e.preventDefault();$('#search').focus()}if(e.key==='Escape')$('#modal-root').innerHTML=''});$('#today-label').textContent=new Intl.DateTimeFormat('en-US',{weekday:'long',month:'long',day:'numeric'}).format(new Date()).toUpperCase();$('#reader-pane').innerHTML=emptyReader();renderList();openMessage(activeMessage); diff --git a/mail-ui.js b/mail-ui.js index 2cb6fb3..bf7e4a6 100644 --- a/mail-ui.js +++ b/mail-ui.js @@ -5,11 +5,14 @@ let mailTotal = 0; function updateAccountCard(account) { const card = $('#account-settings'); if (!card) return; - const [name, domain] = account.email.split('@'); - card.querySelector('.account-avatar').textContent = (name[0] || 'M').toUpperCase(); - card.querySelector('.account-info strong').textContent = account.email; - card.querySelector('.account-info span').textContent = account.imapHost; - card.title = 'Mail account settings'; + const email = account.email || ''; + const localName = (email.split('@')[0] || 'Mail account').replace(/[._-]+/g, ' ').replace(/\b\w/g, letter => letter.toUpperCase()); + const displayName = profileSettings.name.trim() || localName; + const initials = displayName.split(/\s+/).filter(Boolean).map(part => part[0]).join('').slice(0, 2); + card.querySelector('.account-avatar').textContent = initials || 'M'; + card.querySelector('.account-info strong').textContent = displayName; + card.querySelector('.account-info span').textContent = email; + card.title = `${displayName} <${email}>`; card.querySelector('.online-dot').style.background = '#70ad7b'; } diff --git a/package-lock.json b/package-lock.json index e4123ed..21e12a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "daybreak-mail", - "version": "0.1.1", + "version": "0.1.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "daybreak-mail", - "version": "0.1.1", + "version": "0.1.5", "dependencies": { "ical.js": "^2.2.1", "imapflow": "2.2.1", diff --git a/package.json b/package.json index 098a6b5..6535cbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "daybreak-mail", - "version": "0.1.1", + "version": "0.1.5", "private": true, "description": "Daybreak Mail desktop client prototype", "author": "Daybreak Studio", diff --git a/productivity.js b/productivity.js index 3ab30c5..846eb91 100644 --- a/productivity.js +++ b/productivity.js @@ -11,7 +11,7 @@ productWrite(productKeys.contacts, savedContacts); let savedEvents = productRead(productKeys.events, []); let customLabels = productRead(productKeys.labels, []); let snoozedIds = productRead(productKeys.snoozed, []); -function setProfileName(name) { profileSettings.name = name.trim(); productWrite(productKeys.profile, profileSettings); const first = profileSettings.name.split(/\s+/)[0] || ''; const greeting=$('#greeting-name'); greeting.textContent=first; greeting.hidden=!first; const heading=$('#welcome-heading'); if(heading) heading.firstChild.textContent=first?'Good morning, ':'Good morning'; $$('.profile-button').forEach(b => b.textContent = profileSettings.name.split(/\s+/).filter(Boolean).map(x=>x[0]).join('').slice(0,2).toUpperCase() || '•'); } +function setProfileName(name) { profileSettings.name = name.trim(); productWrite(productKeys.profile, profileSettings); const first = profileSettings.name.split(/\s+/)[0] || ''; const greeting=$('#greeting-name'); greeting.textContent=first; greeting.hidden=!first; const heading=$('#welcome-heading'); if(heading) heading.firstChild.textContent=first?'Good morning, ':'Good morning'; $$('.profile-button').forEach(b => b.textContent = profileSettings.name.split(/\s+/).filter(Boolean).map(x=>x[0]).join('').slice(0,2).toUpperCase() || '•'); if (connectedMailAccount) updateAccountCard(connectedMailAccount); } function openPreferences() { const root=$('#modal-root'); root.innerHTML=``; const close=()=>root.innerHTML=''; $$('.modal-close').forEach(b=>b.onclick=close); $('.modal-overlay').onclick=e=>{if(e.target.classList.contains('modal-overlay'))close()}; $('#save-profile').onclick=()=>{const n=$('#profile-name').value.trim(); if(!n){toast('Enter your name');return} setProfileName(n); close(); toast('Preferences saved')}; $('#profile-name').focus(); } function showEvent(dayOrId) { const edit=savedEvents.find(e=>e.id===dayOrId), dateValue=edit?.date || (typeof dayOrId==='string'&&/^\d{4}-\d\d-\d\d$/.test(dayOrId)?dayOrId:`${calendarMonth.getFullYear()}-${String(calendarMonth.getMonth()+1).padStart(2,'0')}-${String(dayOrId||new Date().getDate()).padStart(2,'0')}`); const root=$('#modal-root'); root.innerHTML=``; const close=()=>root.innerHTML=''; $$('.modal-close').forEach(b=>b.onclick=close); $('.modal-overlay').onclick=e=>{if(e.target.classList.contains('modal-overlay'))close()}; $('#save-event').onclick=async()=>{const title=$('#event-name').value.trim(),date=$('#event-date').value;if(!title||!date){toast('Add an event name and date');return}const item={...(edit||{}),id:edit?.id||crypto.randomUUID(),title,date,time:$('#event-time').value,with:$('#event-people').value.trim(),place:$('#event-place').value.trim(),notes:$('#event-notes').value.trim()}; if(window.daybreakMail?.davSaveEvent){try{const remote=await window.daybreakMail.davSaveEvent(item);if(remote)item._dav=remote}catch(error){toast('Saved locally; DAV sync failed: '+error.message)}} if(edit) savedEvents=savedEvents.map(e=>e.id===edit.id?item:e);else savedEvents.push(item);productWrite(productKeys.events,savedEvents);close();renderCalendar();toast(edit?'Event updated':'Event added')}; if(edit) $('#delete-event').onclick=async()=>{if(edit._dav&&window.daybreakMail?.davDeleteEvent){try{await window.daybreakMail.davDeleteEvent(edit._dav)}catch(error){toast('Could not delete remote event: '+error.message);return}}savedEvents=savedEvents.filter(e=>e.id!==edit.id);productWrite(productKeys.events,savedEvents);close();renderCalendar();toast('Event removed')}; $('#event-name').focus(); } function renderCalendar(){const year=calendarMonth.getFullYear(),month=calendarMonth.getMonth(),first=new Date(year,month,1),start=new Date(year,month,1-first.getDay()),days=['Sun','Mon','Tue','Wed','Thu','Fri','Sat'];let cells='';for(let i=0;i<42;i++){const d=new Date(start);d.setDate(start.getDate()+i);const key=`${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,'0')}-${String(d.getDate()).padStart(2,'0')}`,items=savedEvents.filter(e=>e.date===key);cells+=`
${d.getDate()}${items.slice(0,3).map(e=>`
${esc(e.time?`${e.time} `:'')}${esc(e.title)}
`).join('')}${items.length>3?`+${items.length-3} more`:''}
`}const upcoming=savedEvents.filter(e=>e.date>=new Date().toISOString().slice(0,10)).sort((a,b)=>a.date.localeCompare(b.date)||a.time.localeCompare(b.time)).slice(0,5);$('#calendar-view').innerHTML=`

YOUR TIME, WITH ROOM TO BREATHE

${new Intl.DateTimeFormat('en-US',{month:'long',year:'numeric'}).format(calendarMonth)}

${savedEvents.length} saved events

${days.map(d=>`${d}`).join('')}
${cells}

Coming up

${upcoming.length?upcoming.map(e=>``).join(''):'

No upcoming events yet.

'}
`;$('#new-event').onclick=()=>showEvent(new Date(year,month,new Date().getDate()).toISOString().slice(0,10));$('#today-btn').onclick=()=>{calendarMonth=new Date(new Date().getFullYear(),new Date().getMonth(),1);renderCalendar()};$('#prev-month').onclick=()=>{calendarMonth=new Date(year,month-1,1);renderCalendar()};$('#next-month').onclick=()=>{calendarMonth=new Date(year,month+1,1);renderCalendar()};$('#calendar-view').onclick=e=>{const event=e.target.closest('[data-event]');if(event){showEvent(event.dataset.event);return}const cell=e.target.closest('.cal-cell');if(cell)showEvent(cell.dataset.day)}} diff --git a/styles.css b/styles.css index 3150c03..ebb283f 100644 --- a/styles.css +++ b/styles.css @@ -1,6 +1,6 @@ :root{font-family:'DM Sans',Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:#252a28;background:#f4f5f1;font-synthesis:none;text-rendering:optimizeLegibility;--bg:#f4f5f1;--panel:#fff;--line:#eaede8;--text:#252a28;--muted:#8b918b;--subtle:#f7f8f5;--accent:#55816c;--accent-soft:#edf4ef;--shadow:0 2px 10px #2636290b} *{box-sizing:border-box}body{margin:0;min-width:760px;min-height:100vh;background:var(--bg);color:var(--text)}button,input,textarea{font:inherit}button{color:inherit;cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #7eae90;outline-offset:2px}.app-shell{height:100vh;min-height:640px;display:flex;overflow:hidden}.rail{width:66px;flex:none;background:#edf0ea;border-right:1px solid #e5e9e2;display:flex;align-items:center;flex-direction:column;padding:17px 0 13px;gap:10px}.brand-mark{height:35px;width:35px;border-radius:12px;background:#5b826c;color:white;display:grid;place-items:center;font-size:24px;margin-bottom:21px;box-shadow:0 3px 8px #476c541d}.rail-button{height:39px;width:39px;border:0;background:transparent;color:#7e8780;border-radius:11px;font-size:20px;display:grid;place-items:center;transition:.18s}.rail-button:hover{background:#e2e8e1;color:#446a54}.rail-button.active{color:#477253;background:#dce9dd}.rail-spacer{flex:1}.avatar{border:0;border-radius:50%;height:34px;width:34px;background:#e7cbb6;color:#614c3c;font-size:11px;font-weight:700;display:grid;place-items:center}.avatar.tiny{height:27px;width:27px;font-size:9px} -.sidebar{width:244px;flex:none;background:#fff;border-right:1px solid var(--line);padding:26px 17px 14px;display:flex;flex-direction:column}.sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:0 5px;margin-bottom:21px}.eyebrow{color:#969c95;font-size:9px;font-weight:700;letter-spacing:1.25px;margin:0 0 5px}.sidebar-head h1{font-family:'DM Serif Display',Georgia,serif;font-size:24px;font-weight:400;margin:0}.icon-button{border:0;background:transparent;color:#89918a;height:30px;min-width:30px;border-radius:8px;font-size:19px;display:inline-grid;place-items:center}.icon-button:hover{background:var(--subtle);color:#47544a}.account-card{display:flex;align-items:center;gap:10px;padding:10px 9px;background:#f7f8f5;border:1px solid #eff1ec;border-radius:10px;margin:0 0 22px}.account-avatar{height:30px;width:30px;border-radius:9px;background:#dce9dd;color:#477253;display:grid;place-items:center;font-family:Georgia,serif;font-weight:bold}.account-info{min-width:0;display:flex;flex-direction:column;gap:2px;flex:1}.account-info strong{font-size:11px}.account-info span{color:#929891;font-size:9px;overflow:hidden;text-overflow:ellipsis}.online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#70ad7b}.folder-nav{display:grid;gap:3px}.folder{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:12px;text-align:left;padding:9px 10px;border-radius:8px;font-size:11px;color:#707970}.folder:hover,.label-link:hover{background:#f6f8f5}.folder.active{background:#edf4ee;color:#487354;font-weight:600}.nav-glyph{width:15px;text-align:center;font-size:15px;color:#879188}.folder.active .nav-glyph{color:#578366}.count{margin-left:auto;padding:2px 6px;min-width:19px;text-align:center;border-radius:5px;background:#fff;color:#61836a;font-size:9px}.count.muted{color:#969c95}.sidebar-divider{height:1px;background:#edf0ec;margin:18px 4px 16px}.section-label{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:1.1px;font-weight:700;color:#a0a59f;padding:0 6px;margin-bottom:9px}.tiny-plus{border:0;background:transparent;color:#929990;font-size:18px}.label-link{border:0;background:transparent;border-radius:7px;text-align:left;display:flex;align-items:center;gap:10px;color:#727970;font-size:11px;padding:8px 10px}.label-dot{width:8px;height:8px;border-radius:50%}.dot-amber{background:#dda854}.dot-blue{background:#79a4c9}.dot-green{background:#82ab83}.sidebar-bottom{margin-top:auto}.storage{padding:13px 10px 14px;border-bottom:1px solid #eef0ec}.storage-top{display:flex;justify-content:space-between;color:#606960;font-size:10px}.storage-top span+span{color:#979d97;font-size:9px}.storage-bar{height:4px;background:#edf0eb;margin:9px 0 7px;border-radius:5px;overflow:hidden}.storage-bar i{display:block;width:28%;height:100%;background:#79a785;border-radius:5px}.storage small{font-size:9px;color:#9ba19a}.settings-button{border:0;background:transparent;color:#7e867f;display:flex;gap:10px;align-items:center;margin:10px 0 0 4px;font-size:11px;padding:7px} +.sidebar{width:244px;flex:none;background:#fff;border-right:1px solid var(--line);padding:26px 17px 14px;display:flex;flex-direction:column}.sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:0 5px;margin-bottom:21px}.eyebrow{color:#969c95;font-size:9px;font-weight:700;letter-spacing:1.25px;margin:0 0 5px}.sidebar-head h1{font-family:'DM Serif Display',Georgia,serif;font-size:24px;font-weight:400;margin:0}.icon-button{border:0;background:transparent;color:#89918a;height:30px;min-width:30px;border-radius:8px;font-size:19px;display:inline-grid;place-items:center}.icon-button:hover{background:var(--subtle);color:#47544a}.account-card{display:flex;align-items:center;gap:10px;padding:10px 9px;background:#f7f8f5;border:1px solid #eff1ec;border-radius:10px;margin:0 0 22px}.account-avatar{height:30px;width:30px;border-radius:9px;background:#dce9dd;color:#477253;display:grid;place-items:center;font-family:Georgia,serif;font-weight:bold}.account-info{min-width:0;display:flex;flex-direction:column;gap:2px;flex:1}.account-info strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-info span{color:#929891;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#70ad7b}.folder-nav{display:grid;gap:3px}.folder{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:12px;text-align:left;padding:9px 10px;border-radius:8px;font-size:11px;color:#707970}.folder:hover,.label-link:hover{background:#f6f8f5}.folder.active{background:#edf4ee;color:#487354;font-weight:600}.nav-glyph{width:15px;text-align:center;font-size:15px;color:#879188}.folder.active .nav-glyph{color:#578366}.count{margin-left:auto;padding:2px 6px;min-width:19px;text-align:center;border-radius:5px;background:#fff;color:#61836a;font-size:9px}.count.muted{color:#969c95}.sidebar-divider{height:1px;background:#edf0ec;margin:18px 4px 16px}.section-label{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:1.1px;font-weight:700;color:#a0a59f;padding:0 6px;margin-bottom:9px}.tiny-plus{border:0;background:transparent;color:#929990;font-size:18px}.label-link{border:0;background:transparent;border-radius:7px;text-align:left;display:flex;align-items:center;gap:10px;color:#727970;font-size:11px;padding:8px 10px}.label-dot{width:8px;height:8px;border-radius:50%}.dot-amber{background:#dda854}.dot-blue{background:#79a4c9}.dot-green{background:#82ab83}.sidebar-bottom{margin-top:auto}.storage{padding:13px 10px 14px;border-bottom:1px solid #eef0ec}.storage-top{display:flex;justify-content:space-between;color:#606960;font-size:10px}.storage-top span+span{color:#979d97;font-size:9px}.storage-bar{height:4px;background:#edf0eb;margin:9px 0 7px;border-radius:5px;overflow:hidden}.storage-bar i{display:block;width:28%;height:100%;background:#79a785;border-radius:5px}.storage small{font-size:9px;color:#9ba19a}.settings-button{border:0;background:transparent;color:#7e867f;display:flex;gap:10px;align-items:center;margin:10px 0 0 4px;font-size:11px;padding:7px} .main-area{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:57px;flex:none;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px}.breadcrumbs{display:flex;align-items:center;gap:10px;font-size:10px;color:#969c96}.breadcrumbs strong{font-weight:600;color:#475048}.crumb-divider{color:#c6cbc5}.top-actions{display:flex;align-items:center;gap:13px}.search-wrap{height:31px;width:218px;background:#f6f7f4;border:1px solid #eff0ec;border-radius:8px;display:flex;align-items:center;padding:0 9px;gap:7px;color:#90978f}.search-wrap>span{font-size:19px}.search-wrap input{border:0;outline:0;background:transparent;width:100%;font-size:10px;color:#3f4740}.search-wrap kbd{font:9px 'DM Sans',sans-serif;border:1px solid #e3e6e1;border-radius:4px;padding:2px 4px;white-space:nowrap;color:#999f99}.help-button{font-size:12px;border:1px solid #e7eae6;border-radius:50%;height:20px;min-width:20px;font-weight:600}.top-avatar{width:27px;height:27px;font-size:9px} .content-view{flex:1;min-height:0}.mail-layout{display:grid;grid-template-columns:minmax(330px,44%) minmax(340px,1fr);padding:18px 20px 20px;gap:14px}.list-pane,.reader-pane{background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);min-height:0}.list-pane{display:flex;flex-direction:column;overflow:hidden}.list-heading{padding:20px 19px 15px;display:flex;align-items:center;justify-content:space-between}.date-line{font-size:8px;font-weight:700;letter-spacing:1.25px;color:#a0a69f;margin-bottom:7px}.list-heading h2{font-family:'DM Serif Display',Georgia,serif;font-size:20px;font-weight:400;margin:0;color:#303732}.sun{font-family:sans-serif;font-size:14px;color:#dda95f;vertical-align:2px}.compose-button{border:0;border-radius:7px;background:#5b8068;color:white;padding:8px 12px;font-size:10px;font-weight:600;box-shadow:0 2px 4px #406e4f20}.compose-button:hover{background:#476f56}.compose-button span{font-size:15px;vertical-align:-1px;margin-right:4px}.toolbar{height:39px;border-top:1px solid #f2f3f1;border-bottom:1px solid #f0f2ee;display:flex;align-items:center;padding:0 12px;gap:6px;color:#888f88}.toolbar .icon-button{font-size:15px;height:26px;min-width:26px}.tool-checkbox{font-size:14px;color:#818981;border:0;background:transparent;width:25px}.toolbar-divider{height:16px;width:1px;background:#e9ece8;margin:0 3px}.toolbar-spacer{flex:1}.pagination{font-size:9px;color:#90968f;white-space:nowrap}.message-list{overflow-y:auto;flex:1}.message{min-height:68px;display:grid;grid-template-columns:18px 32px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 12px;border-bottom:1px solid #f0f2ef;cursor:pointer;transition:background .14s}.message:hover{background:#fafbf9}.message.selected{background:#f3f7f2;box-shadow:inset 2px 0 #669074}.message.unread .sender,.message.unread .subject{font-weight:700;color:#303832}.row-check{appearance:none;width:13px;height:13px;border:1px solid #d7dcd6;border-radius:3px;cursor:pointer;margin:0}.row-check:checked{appearance:auto;accent-color:#63866d}.contact-avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:700;color:#55483d;background:#e9d8c9}.message-body{min-width:0;overflow:hidden}.sender{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#626a63;margin-bottom:4px}.subject{font-size:10px;color:#3e4640;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:3px}.snippet{font-size:9px;color:#a1a69f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-meta{height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding:2px 0;min-width:31px}.time{font-size:8px;color:#989e98;white-space:nowrap}.star{border:0;background:transparent;color:#c9cec8;font-size:14px;line-height:1;padding:0}.star.on{color:#dcaa56}.list-foot{height:37px;flex:none;border-top:1px solid #f0f2ef;display:flex;align-items:center;justify-content:space-between;padding:0 14px;color:#929991;font-size:9px}.list-foot .online-dot{margin-right:6px}.text-button{border:0;background:transparent;color:#708878;font-size:9px}.reader-pane{overflow-y:auto;padding:0 24px 24px}.reader-empty{height:100%;display:grid;place-items:center;text-align:center;color:#9ca39c}.empty-icon{height:52px;width:52px;margin:0 auto 12px;border-radius:17px;background:#f1f5ef;color:#71937a;display:grid;place-items:center;font-size:24px}.reader-empty h3{font-family:'DM Serif Display',Georgia,serif;font-weight:400;font-size:19px;color:#525a53;margin:0 0 6px}.reader-empty p{font-size:10px;color:#9aa098;margin:0}.reader-header{padding:24px 0 17px;border-bottom:1px solid #edf0ec}.reader-topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.reader-tags{display:flex;gap:6px}.tag{font-size:8px;border-radius:4px;padding:4px 7px;background:#f4f3e9;color:#a38a52}.tag.green{background:#edf4ee;color:#62816a}.reader-tools{display:flex;gap:2px}.reader-subject{font-family:'DM Serif Display',Georgia,serif;font-size:22px;line-height:1.25;margin:0 0 17px;font-weight:400;color:#343a35}.sender-row{display:flex;align-items:center;gap:9px}.sender-row .contact-avatar{width:34px;height:34px;font-size:10px}.sender-details{min-width:0;flex:1}.sender-details strong{display:block;font-size:10px;color:#434a44}.sender-details span{display:block;font-size:9px;color:#999f99;margin-top:3px}.message-date{font-size:8px;color:#999f99;white-space:nowrap}.reader-body{padding:21px 1px 15px;font-size:11px;line-height:1.85;color:#616a62}.reader-body p{margin:0 0 13px}.reader-body .signoff{margin-top:24px}.attachment{margin-top:18px;padding:11px;border:1px solid #e8ece7;border-radius:8px;display:flex;align-items:center;gap:10px;max-width:260px}.file-icon{height:33px;width:30px;border-radius:6px;background:#f4eeec;color:#ad7466;display:grid;place-items:center;font-size:15px}.attachment-info{flex:1}.attachment-info strong{display:block;font-size:9px;color:#59615a}.attachment-info small{font-size:8px;color:#a1a69f}.download{border:0;background:transparent;color:#8b938b}.reply-bar{border-top:1px solid #edf0ec;padding-top:15px;display:flex;gap:8px}.reply-button{padding:8px 12px;border:1px solid #e3e8e3;border-radius:7px;background:#fff;color:#6e786e;font-size:9px}.reply-button:hover{background:#f6f8f5}.reply-button.primary{background:#5b8068;border-color:#5b8068;color:white}.page-view{padding:22px 28px;overflow:auto}.hidden{display:none!important} .modal-overlay{position:fixed;inset:0;background:#2028204a;z-index:10;display:grid;place-items:center;padding:20px}.compose-modal{width:min(600px,95vw);background:white;border-radius:13px;box-shadow:0 18px 65px #17271c35;overflow:hidden}.modal-head{padding:15px 19px;background:#f6f7f4;border-bottom:1px solid #ebeee9;display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:600}.modal-close{border:0;background:transparent;color:#89908a;font-size:19px}.compose-fields{padding:9px 20px 0}.compose-line{display:flex;align-items:center;gap:10px;min-height:39px;border-bottom:1px solid #f0f1ef;color:#969d96;font-size:10px}.compose-line input{flex:1;border:0;outline:0;font-size:10px;color:#424942}.compose-line input::placeholder{color:#aeb3ad}.compose-subject{border:0;width:100%;font-size:14px!important;padding:15px 0;outline:0;color:#303831}.compose-body{width:100%;height:220px;resize:vertical;border:0;border-top:1px solid #f0f1ef;padding:15px 20px;outline:0;font-size:11px;line-height:1.6;color:#414941}.compose-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 20px 15px}.send-button{border:0;border-radius:6px;background:#5b8068;color:white;padding:8px 16px;font-weight:600;font-size:10px}.discard{border:0;background:transparent;color:#929890;font-size:10px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#293b2e;color:#fff;padding:10px 16px;border-radius:8px;font-size:11px;box-shadow:0 5px 20px #1c2b2030;transition:.2s;z-index:20}.toast.visible{opacity:1;transform:translate(-50%,0)} @@ -11,3 +11,57 @@ body.wasteland{--bg:#eee8db;--panel:#faf6ed;--line:#e6dccb;--text:#373129;--mute .page-heading{display:flex;align-items:center;justify-content:space-between;margin:5px 0 20px}.page-heading h2{font-family:'DM Serif Display',Georgia,serif;font-size:28px;font-weight:400;margin:0 0 5px}.page-subtitle{font-size:11px;color:#929991;margin:0}.cal-actions{display:flex;align-items:center;gap:7px}.outline-button{border:1px solid #e3e8e2;background:#fff;border-radius:6px;padding:7px 10px;color:#69736a;font-size:10px}.calendar-card{background:var(--panel);border:1px solid var(--line);border-radius:11px;overflow:hidden;box-shadow:var(--shadow)}.calendar-week{height:38px;display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid var(--line);align-items:center;text-align:center;color:#969d95;font-size:9px;font-weight:600}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.cal-cell{height:100px;border-right:1px solid #f0f1ee;border-bottom:1px solid #f0f1ee;padding:8px 7px;cursor:pointer;min-width:0}.cal-cell:nth-child(7n){border-right:0}.cal-cell:hover{background:#fafbf9}.cal-cell.outside{background:#fafbf9;color:#d3d7d1}.cal-number{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;font-size:9px;color:#737c73;margin-bottom:4px}.cal-cell.today .cal-number{background:#5b8068;color:#fff}.event-chip{padding:4px 5px;margin:3px 0;border-radius:4px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#edf4ee;color:#5b8068}.event-chip.gold{background:#f7f1e4;color:#a28449}.event-chip.blue{background:#edf2f7;color:#6885a5}.upcoming{margin:20px 0 0}.upcoming h3{font-family:'DM Serif Display',Georgia,serif;font-size:17px;font-weight:400;margin:0 0 8px}.upcoming-row{display:flex;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line);background:var(--panel);border-radius:8px;margin:6px 0;max-width:380px}.event-date{width:36px;height:38px;border-radius:7px;background:#edf4ee;color:#62816a;display:grid;place-content:center;text-align:center;font-size:8px;line-height:1.3}.event-date strong{font-size:14px}.gold-date{background:#f7f1e4;color:#a28449}.upcoming-row div{display:grid;gap:4px}.upcoming-row div strong{font-size:10px}.upcoming-row small{font-size:9px;color:#979e97}.contact-search{height:38px;max-width:370px;display:flex;align-items:center;gap:8px;padding:0 12px;background:var(--panel);border:1px solid var(--line);border-radius:8px;color:#8c958c;margin-bottom:15px}.contact-search input{border:0;background:transparent;outline:0;flex:1;font-size:10px}.contacts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:10px}.contact-card{position:relative;display:flex;align-items:center;gap:11px;padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow)}.contact-card>.contact-avatar{height:39px;width:39px;font-size:11px;flex:none}.contact-card>div:nth-child(2){min-width:0;display:grid;gap:4px}.contact-card>div:nth-child(2) strong{font-size:10px}.contact-card>div:nth-child(2) span{font-size:9px;color:#838b83;overflow:hidden;text-overflow:ellipsis}.contact-card>div:nth-child(2) small{font-size:8px;color:#a0a69f}.contact-more{margin-left:auto;align-self:flex-start}.contact-email{position:absolute;right:12px;bottom:10px;border:0;background:transparent;color:#829386;font-size:12px}body.wasteland .outline-button,body.wasteland .upcoming-row{background:#faf6ed;border-color:#e6dccb}body.wasteland .calendar-card{background:#faf6ed;border-color:#e6dccb}body.wasteland .cal-cell:hover{background:#f7f0e4}body.wasteland .event-chip{background:#f2e9da;color:#996445}body.wasteland .cal-cell.today .cal-number{background:#a76645} .account-card[role="button"]{cursor:pointer;appearance:none}.account-card[role="button"]:hover{border-color:#dce5dc}.account-card[role="button"]:focus-visible{outline:2px solid #7eae90;outline-offset:2px}.account-note{font-size:10px;line-height:1.5;color:#848c84;margin:7px 0 12px}.account-note+.compose-line{margin-top:1px}.account-status{font-size:10px;line-height:1.5;color:#9a6346;min-height:15px;margin:9px 0 2px} .attachment{box-sizing:border-box;width:100%;max-width:420px;min-width:0}.attachment-info{min-width:0;overflow:hidden}.attachment-info strong{max-width:100%;overflow-wrap:anywhere;word-break:break-word;line-height:1.4}.attachment .download{flex:none}.account-list{max-height:55vh;overflow-y:auto}.account-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #edf0ec}.account-row-info{min-width:0;display:grid;gap:5px}.account-row-info strong{font-size:11px;overflow-wrap:anywhere}.account-row-info small{font-size:9px;color:#929991;overflow-wrap:anywhere}.account-row-actions{display:flex;align-items:center;gap:8px;flex:none}.account-current{font-size:9px;color:#61836a}.account-row .outline-button{padding:6px 9px}.account-row .discard{padding:6px} + +/* EP Wasteland follows the Eternity Project Gitea theme palette. */ +body.ep-wasteland{color-scheme:dark;--bg:#161210;--panel:#1b1714;--line:#4a3f33;--text:#d4cbbc;--muted:#a89a86;--subtle:#241e19;--accent:#8fae3d;--accent-soft:#2b301d;--shadow:0 2px 12px #0008;background:var(--bg);color:var(--text)} +body.ep-wasteland .rail,body.ep-wasteland .sidebar-head,body.ep-wasteland .topbar,body.ep-wasteland .modal-head{background:#211b17;border-color:#4a3f33} +body.ep-wasteland .brand-mark,body.ep-wasteland .compose-button,body.ep-wasteland .send-button,body.ep-wasteland .reply-button.primary{background:#8fae3d;border-color:#8fae3d;color:#161210} +body.ep-wasteland .brand-mark{box-shadow:0 3px 10px #0006} +body.ep-wasteland .avatar{background:#4a3f33;color:#e7e2d3} +body.ep-wasteland .compose-button:hover{background:#a2bd5b;border-color:#a2bd5b} +body.ep-wasteland .rail-button{color:#b5a995} +body.ep-wasteland .rail-button:hover,body.ep-wasteland .icon-button:hover,body.ep-wasteland .folder:hover,body.ep-wasteland .label-link:hover{background:#2b241e;color:#e7e2d3} +body.ep-wasteland .rail-button.active,body.ep-wasteland .folder.active{background:#343b22;color:#a2bd5b} +body.ep-wasteland .sidebar,body.ep-wasteland .list-pane,body.ep-wasteland .reader-pane,body.ep-wasteland .page-view{background:#1b1714;color:#d4cbbc} +body.ep-wasteland .sidebar{border-color:#4a3f33} +body.ep-wasteland .account-card,body.ep-wasteland .search-wrap,body.ep-wasteland .toolbar,body.ep-wasteland .calendar-card,body.ep-wasteland .contact-search,body.ep-wasteland .contact-card,body.ep-wasteland .upcoming-row,body.ep-wasteland .compose-modal{background:#211b17;border-color:#4a3f33;color:#d4cbbc} +body.ep-wasteland .account-avatar,body.ep-wasteland .contact-avatar{background:#343b22;color:#a2bd5b} +body.ep-wasteland .account-info span,body.ep-wasteland .storage small,body.ep-wasteland .section-label,body.ep-wasteland .date-line,body.ep-wasteland .page-subtitle,body.ep-wasteland .pagination,body.ep-wasteland .time,body.ep-wasteland .sender-details span,body.ep-wasteland .message-date,body.ep-wasteland .contact-card>div:nth-child(2) span,body.ep-wasteland .contact-card>div:nth-child(2) small,body.ep-wasteland .upcoming-row small{color:#a89a86} +body.ep-wasteland .sidebar-head h1,body.ep-wasteland .breadcrumbs strong,body.ep-wasteland .list-heading h2,body.ep-wasteland .page-heading h2,body.ep-wasteland .upcoming h3,body.ep-wasteland .sender-details strong,body.ep-wasteland .reader-subject,body.ep-wasteland .reader-empty h3,body.ep-wasteland .contact-card>div:nth-child(2) strong,body.ep-wasteland .upcoming-row div strong{color:#e7e2d3} +body.ep-wasteland .eyebrow,body.ep-wasteland .breadcrumbs,body.ep-wasteland .icon-button,body.ep-wasteland .folder,body.ep-wasteland .label-link,body.ep-wasteland .settings-button,body.ep-wasteland .nav-glyph,body.ep-wasteland .search-wrap,body.ep-wasteland .help-button{color:#b5a995} +body.ep-wasteland .online-dot{background:#8fae3d} +body.ep-wasteland .folder.active .nav-glyph,body.ep-wasteland .count,body.ep-wasteland .text-button,body.ep-wasteland .contact-email,body.ep-wasteland .account-current{color:#a2bd5b} +body.ep-wasteland .count{background:#2b301d} +body.ep-wasteland .sidebar-divider,body.ep-wasteland .storage,body.ep-wasteland .storage-bar,body.ep-wasteland .toolbar-divider,body.ep-wasteland .reader-header,body.ep-wasteland .reply-bar,body.ep-wasteland .message,body.ep-wasteland .list-foot,body.ep-wasteland .account-row{border-color:#4a3f33} +body.ep-wasteland .storage-bar{background:#4a3f33} +body.ep-wasteland .storage-bar i{background:#8fae3d} +body.ep-wasteland .message{background:#1b1714} +body.ep-wasteland .message:hover,body.ep-wasteland .message.selected{background:#241e19} +body.ep-wasteland .message.selected{box-shadow:inset 2px 0 #8fae3d} +body.ep-wasteland .sender,body.ep-wasteland .subject,body.ep-wasteland .message.unread .sender,body.ep-wasteland .message.unread .subject{color:#e7e2d3} +body.ep-wasteland .snippet,body.ep-wasteland .list-foot,body.ep-wasteland .reader-body{color:#b5a995} +body.ep-wasteland .star{color:#8f8170} +body.ep-wasteland .star.on{color:#a2bd5b} +body.ep-wasteland .reader-empty{color:#a89a86} +body.ep-wasteland .empty-icon,body.ep-wasteland .event-date,body.ep-wasteland .cal-cell.today .cal-number{background:#343b22;color:#a2bd5b} +body.ep-wasteland .attachment,body.ep-wasteland .file-icon{background:#211b17;border-color:#4a3f33;color:#a2bd5b} +body.ep-wasteland .attachment-info strong,body.ep-wasteland .attachment-info small{color:#d4cbbc} +body.ep-wasteland .reply-button,body.ep-wasteland .outline-button{background:#211b17;border-color:#4a3f33;color:#d4cbbc} +body.ep-wasteland .reply-button:hover,body.ep-wasteland .outline-button:hover{background:#2b241e} +body.ep-wasteland .modal-overlay{background:#000b} +body.ep-wasteland .compose-fields,body.ep-wasteland .compose-footer{background:#1b1714} +body.ep-wasteland .compose-line,body.ep-wasteland .compose-body{border-color:#4a3f33;color:#b5a995} +body.ep-wasteland .compose-line input,body.ep-wasteland .compose-subject,body.ep-wasteland .compose-body,body.ep-wasteland .contact-search input{background:transparent;color:#e7e2d3} +body.ep-wasteland .compose-line input::placeholder,body.ep-wasteland .compose-body::placeholder{color:#8f8170} +body.ep-wasteland .modal-close,body.ep-wasteland .discard{color:#a89a86} +body.ep-wasteland .toast{background:#211b17;color:#e7e2d3;border:1px solid #4a3f33} +body.ep-wasteland .calendar-week{border-color:#4a3f33;color:#a89a86} +body.ep-wasteland .cal-cell{border-color:#342c24;color:#d4cbbc} +body.ep-wasteland .cal-cell:hover,body.ep-wasteland .cal-cell.outside{background:#241e19} +body.ep-wasteland .cal-cell.outside{color:#8f8170} +body.ep-wasteland .cal-number{color:#d4cbbc} +body.ep-wasteland .event-chip,body.ep-wasteland .gold-date{background:#343b22;color:#a2bd5b} +body.ep-wasteland .event-chip.gold,body.ep-wasteland .event-chip.blue{background:#2b241e;color:#d4cbbc} +body.ep-wasteland .tag,body.ep-wasteland .tag.green{background:#343b22;color:#a2bd5b} +body.ep-wasteland .row-check{border-color:#8f8170} +body.ep-wasteland .row-check:checked{accent-color:#8fae3d}