From c2b1c413932fd2b7bd0e043f9daa2782e92d6057 Mon Sep 17 00:00:00 2001 From: Tero Date: Sun, 4 Oct 2026 21:12:34 +0300 Subject: [PATCH] first commit --- README.md | 17 ++++++++++++ app.js | 26 ++++++++++++++++++ icon.svg | 1 + index.html | 65 ++++++++++++++++++++++++++++++++++++++++++++ manifest.webmanifest | 10 +++++++ service-worker.js | 5 ++++ styles.css | 11 ++++++++ 7 files changed, 135 insertions(+) create mode 100644 README.md create mode 100644 app.js create mode 100644 icon.svg create mode 100644 index.html create mode 100644 manifest.webmanifest create mode 100644 service-worker.js create mode 100644 styles.css diff --git a/README.md b/README.md new file mode 100644 index 0000000..0601768 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# Daybreak Mail + +A desktop-style mail client concept with the **Eternity Daylight** and **Wasteland** themes. It includes an inbox, message reader, search, starring, archive and trash actions, compose/reply/forward, contacts, and a month calendar. + +## Run on Windows or Linux + +Install Python 3, open a terminal in this folder, and run: + +```sh +python -m http.server 8000 +``` + +On Windows, `py -m http.server 8000` is also available on many Python installations. Visit `http://localhost:8000` in a current browser. Use the browser's **Install app** option to add Daybreak Mail as a standalone desktop app. The service worker caches the app shell for offline use after the first visit. + +## Current scope + +This build is a local UI prototype with sample messages and in-memory interactions. It does not connect to IMAP/SMTP, sync a real address book or calendar, or persist edits to a server. Those integrations need an account setup flow and a secure mail/calendar backend. Avoid entering real credentials into this prototype. diff --git a/app.js b/app.js new file mode 100644 index 0000000..f64906e --- /dev/null +++ b/app.js @@ -0,0 +1,26 @@ +if('serviceWorker'in navigator)window.addEventListener('load',()=>navigator.serviceWorker.register('./service-worker.js').catch(()=>{})); +const messages = [ + {id:1, initials:'AL', color:'#ead1c1', sender:'Amelia Laurent', email:'amelia@northstar.design', subject:'The new studio is ready ✨', snippet:'I finally get to show you what we’ve been working on. There’s light in every corner.', time:'9:41 AM', date:'Today, 9:41 AM', unread:true, star:true, tags:['Design','New'], body:["Hey Mira,","After months of sketches, coffee, and very optimistic tape measurements, the new Northstar studio is ready. We wanted it to feel like a place you could arrive at slowly — the kind of room where morning light does most of the decorating.","I’ve attached the first look at the space. Come by next week? I’d love to make you that cardamom coffee you keep asking about.","Warmly,"] , signature:'Amelia', attachment:'northstar-studio.jpg', size:'4.8 MB'}, + {id:2, initials:'JK', color:'#d8e3d4', sender:'Jonah Kim', email:'jonah@fieldnotes.co', subject:'Re: Weekend in the mountains?', snippet:'The forecast looks perfect for Saturday. I found a cabin with a little wood stove...', time:'8:22 AM', date:'Today, 8:22 AM', unread:true, star:false, tags:['Personal'], body:["Morning!","The forecast looks perfect for Saturday. I found a cabin with a little wood stove and a trail that starts right behind it. Sending you the details now — it feels like exactly the kind of weekend we need.","Bring a book. I’ll bring the coffee and the slightly overambitious packing list.","See you soon,"] , signature:'Jonah'}, + {id:3, initials:'SP', color:'#e8d9e9', sender:'Sofia Park', email:'sofia@smallhours.works', subject:'A little idea for the spring launch', snippet:'What if the whole thing felt like opening a window after a long winter?', time:'Yesterday', date:'Yesterday, 4:16 PM', unread:true, star:true, tags:['Design'], body:["Hi Mira,","What if the whole spring launch felt like opening a window after a long winter? I put a few thoughts into a tiny moodboard. Soft color, honest materials, lots of breathing room.","Would love your instinct on it. No rush — just thought I’d put it somewhere sunny for you to find.","Sofia"]}, + {id:4, initials:'MR', color:'#d9e4e9', sender:'Mateo Rivera', email:'mateo@roam.travel', subject:'Your Lisbon itinerary is here', snippet:'Three quiet mornings, one very good bakery, and a tram ride that goes nowhere in particular.', time:'Yesterday', date:'Yesterday, 2:03 PM', unread:true, star:false, tags:['Travel'], body:["Your Lisbon itinerary is ready!","Three quiet mornings, one very good bakery, and a tram ride that goes nowhere in particular. I kept the afternoons open so you can wander. The bookshop and the tiny ceramics studio are both on the way from your hotel.","Everything is in the attached guide. Have the loveliest time — Lisbon is best when you let it surprise you.","Mateo"] , attachment:'lisbon-slow-guide.pdf', size:'2.1 MB'}, + {id:5, initials:'ED', color:'#eee1c6', sender:'Eden Foster', email:'eden@paperandpine.com', subject:'Thank you for yesterday', snippet:'Still thinking about the conversation and the lemon cake. Both were exactly what I needed.', time:'Oct 2', date:'Oct 2, 2026', unread:false, star:false, tags:['Personal'], body:["Mira,","Still thinking about our conversation and the lemon cake. Both were exactly what I needed. Thank you for making an ordinary Thursday feel like a small holiday.","I hope your weekend is full of slow breakfasts and absolutely no urgent emails.","Eden"]}, + {id:6, initials:'NB', color:'#d9d8ec', sender:'Noah Bennett', email:'noah@common-thread.org', subject:'Community garden — October notes', snippet:'The first seedlings are in, and our corner of the neighborhood is already greener.', time:'Oct 2', date:'Oct 2, 2026', unread:false, star:true, tags:['Personal'], body:["Hi everyone,","The first autumn seedlings are in and our corner of the neighborhood is already greener. Thank you to everyone who brought tools, snacks, and patient hands.","Next gathering is Sunday at ten. All levels of gardening optimism are welcome.","Noah"]}, + {id:7, initials:'IR', color:'#ead6d4', sender:'Iris Rowe', email:'iris@littlefern.press', subject:'The book you left at my place', snippet:'I’ve tucked in a note at the page where I stopped. You’ll know why when you get there.', time:'Oct 1', date:'Oct 1, 2026', unread:false, star:false, tags:['Personal'], body:["Hey you,","I’ve tucked a note in at the page where I stopped. You’ll know why when you get there. No rush returning it — I think this one likes a slow reader.","I’ll be home Sunday if you want to pick it up and stay for tea.","Iris"]}, + {id:8, initials:'AI', color:'#d6e3d9', sender:'Aster Intelligence', email:'updates@aster.ai', subject:'Your September reflections', snippet:'A small look back at what you made space for this month. Here’s to a softer October.', time:'Sep 30', date:'Sep 30, 2026', unread:false, star:false, tags:['Personal'], body:["September, in little moments","This month you spent more time outdoors, caught up with people you love, and made room for a new idea. That’s something worth keeping.","Here’s to a softer October — one with space for the things you haven’t thought of yet.","Aster"]} +]; +const contacts=[['Amelia Laurent','amelia@northstar.design','Design partner','AL','#ead1c1'],['Jonah Kim','jonah@fieldnotes.co','Friend','JK','#d8e3d4'],['Sofia Park','sofia@smallhours.works','Creative director','SP','#e8d9e9'],['Mateo Rivera','mateo@roam.travel','Travel planner','MR','#d9e4e9'],['Eden Foster','eden@paperandpine.com','Friend','ED','#eee1c6'],['Noah Bennett','noah@common-thread.org','Garden club','NB','#d9d8ec'],['Iris Rowe','iris@littlefern.press','Friend','IR','#ead6d4']]; +let activeMessage=1,activeFolder='Inbox',activeView='mail',query='',toastTimer,selectedIds=new Set(); +const $=s=>document.querySelector(s), $$=s=>[...document.querySelectorAll(s)]; +function esc(x){return String(x).replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]))} +function renderList(){let rows=messages.filter(m=>{if(activeFolder==='Starred'&&!m.star)return false;if(activeFolder==='Inbox'&&m.archived)return false;if(activeFolder==='Archive'&&!m.archived)return false;if(activeFolder==='Trash'&&!m.deleted)return false;if(activeFolder==='Sent')return false;if(activeFolder==='Drafts')return false;if(activeFolder==='Snoozed')return false;if(m.deleted&&activeFolder!=='Trash')return false;return !query||`${m.sender} ${m.email} ${m.subject} ${m.snippet}`.toLowerCase().includes(query.toLowerCase())});$('#message-list').innerHTML=rows.length?rows.map(m=>`
${m.initials}
${esc(m.sender)}
${esc(m.subject)}
${esc(m.snippet)}
${esc(m.time)}
`).join(''):`
⌕

No messages here

Try another folder or search.

`;$$('.message').forEach(row=>{row.addEventListener('click',e=>{if(e.target.closest('.row-check')){const id=+row.dataset.id;selectedIds.has(id)?selectedIds.delete(id):selectedIds.add(id);return}if(e.target.closest('.star')){const m=messages.find(x=>x.id===+row.dataset.id);m.star=!m.star;renderList();return}openMessage(+row.dataset.id)});});if(!rows.length)$('#reader-pane').innerHTML=''} +function openMessage(id){activeMessage=id;const m=messages.find(x=>x.id===id);if(!m)return;m.unread=false;renderList();$('#reader-pane').innerHTML=`
${m.tags.map((t,i)=>`${esc(t)}`).join('')}

${esc(m.subject)}

${m.initials}
${esc(m.sender)}${esc(m.email)} · to me
${esc(m.date)}
${m.body.map(p=>`

${esc(p)}

`).join('')}

${esc(m.signature||m.sender)}

${m.attachment?`
${m.attachment.endsWith('.pdf')?'▤':'▧'}
${esc(m.attachment)}${m.size} · Preview ready
`:''}
`;$('#reader-archive').onclick=()=>{m.archived=true;toast('Moved to Archive');renderList();$('#reader-pane').innerHTML=emptyReader()};$('#reader-delete').onclick=()=>{m.deleted=true;toast('Moved to Trash');renderList();$('#reader-pane').innerHTML=emptyReader()};$('#reader-star').onclick=()=>{m.star=!m.star;renderList();openMessage(id)};$('#reply').onclick=()=>showCompose(m);$('#forward').onclick=()=>showCompose(m,true)} +function emptyReader(){return `
✉

Your inbox, at your pace

Select a message to read it here.

`} +function toast(s){const el=$('#toast');el.textContent=s;el.classList.add('visible');clearTimeout(toastTimer);toastTimer=setTimeout(()=>el.classList.remove('visible'),2300)} +function showCompose(reply,forward=false){const root=$('#modal-root');root.innerHTML=``;const close=()=>root.innerHTML='';$('.modal-close').onclick=close;$('#discard').onclick=close;$('.modal-overlay').addEventListener('click',e=>{if(e.target.classList.contains('modal-overlay'))close()});$('#send').onclick=()=>{const to=$('#compose-to').value.trim();if(!to){$('#compose-to').focus();toast('Add a recipient to send your message');return}const subject=$('#compose-subject').value.trim()||'(no subject)';const body=$('#compose-body').value;messages.unshift({id:Date.now(),initials:'MS',color:'#dce9dd',sender:'Mira Sol',email:'mira@daybreak.studio',subject,snippet:body||'No message text',time:'Just now',date:'Today',unread:false,star:false,tags:['Sent'],body:body.split('\n').filter(Boolean)});close();toast('Message sent');renderList()};$('#compose-to').focus()} +function switchView(view){activeView=view;$$('.rail-button[data-view]').forEach(b=>b.classList.toggle('active',b.dataset.view===view));$('.mail-layout').classList.toggle('hidden',view!=='mail');$('#calendar-view').classList.toggle('hidden',view!=='calendar');$('#contacts-view').classList.toggle('hidden',view!=='contacts');$('#sidebar-title').textContent=view==='mail'?activeFolder:view==='calendar'?'Calendar':'Contacts';$('#crumb-parent').textContent=view==='mail'?'Mail':'Workspace';$('#crumb-current').textContent=view==='mail'?activeFolder:view==='calendar'?'Calendar':'Contacts';} +function renderCalendar(){const days=['Sun','Mon','Tue','Wed','Thu','Fri','Sat'];const start=new Date(2026,9,1);const offset=start.getDay();const events={4:[['10:00','Studio catch-up','green'],[14,'A little time outside','gold']],7:[['11:30','Design review','blue']],11:[['09:00','Coffee with Jonah','gold'],[15,'Focus time','green']],15:[['13:00','Spring launch','blue']],18:[['10:00','Community garden','green']],22:[['16:00','Lisbon planning','gold']],27:[['09:30','Studio catch-up','blue']]};let cells='';for(let i=0;i<35;i++){const n=i-offset+1,valid=n>0&&n<=31,items=events[n]||[];cells+=`
${valid?n:''}${items.map(it=>`
${esc(it[1])}
`).join('')}
`}$('#calendar-view').innerHTML=`

YOUR TIME, WITH ROOM TO BREATHE

October 2026

A month that still has room for surprises.

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

Coming up

OCT
07
Design review11:30 AM · with Sofia Park
OCT
11
Coffee with Jonah9:00 AM · Little Fern Café
`;$('#new-event').onclick=()=>showEvent();$('#today-btn').onclick=()=>toast('You’re looking at this month');$('#prev-month').onclick=()=>toast('Previous month');$('#next-month').onclick=()=>toast('Next month');$$('.cal-cell').forEach(c=>c.onclick=e=>{if(e.target.closest('.event-chip'))toast(e.target.closest('.event-chip').dataset.event);else if(c.dataset.day)showEvent(c.dataset.day)})} +function showEvent(day){const root=$('#modal-root');root.innerHTML=``;$$('.modal-close').forEach(b=>b.onclick=()=>root.innerHTML='');$('#save-event').onclick=()=>{const name=$('#event-name').value.trim();if(!name){$('#event-name').focus();toast('Give your event a name');return}root.innerHTML='';toast('Event added to your calendar') }} +function renderContacts(){const cards=contacts.map(c=>`
${c[3]}
${esc(c[0])}${esc(c[1])}${esc(c[2])}
`).join('');$('#contacts-view').innerHTML=`

THE PEOPLE WHO MAKE LIFE FULLER

Your people

${contacts.length} familiar faces, all in one place.

${cards}
`;$('#add-contact').onclick=()=>showContact();$('#contact-search').oninput=e=>{$$('.contact-card').forEach(c=>c.classList.toggle('hidden',!c.innerText.toLowerCase().includes(e.target.value.toLowerCase())))};$$('.contact-email').forEach(b=>b.onclick=()=>showCompose({email:b.dataset.email,subject:'',date:''}))} +function showContact(){const root=$('#modal-root');root.innerHTML=``;$$('.modal-close').forEach(b=>b.onclick=()=>root.innerHTML='');$('#save-contact').onclick=()=>{const name=$('#contact-name').value.trim(),email=$('#contact-email').value.trim();if(!name||!email){toast('Add a name and email');return}const initials=name.split(' ').map(x=>x[0]).join('').slice(0,2).toUpperCase();contacts.push([name,email,$('#contact-note').value||'Contact',initials,'#e7dfce']);root.innerHTML='';renderContacts();toast('Contact saved')}} +$$('.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); diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..d44acb6 --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + diff --git a/index.html b/index.html new file mode 100644 index 0000000..3e7f52b --- /dev/null +++ b/index.html @@ -0,0 +1,65 @@ + + + + + + + + Daybreak Mail + + + + +
+ + + + +
+
⌕⌘ K
+ +
+
+

Good morning, Mira ☀

+
1–8 of 24
+
+
All caught up with your mail
+
+
+
+ + + +
+
+ +
+ + + diff --git a/manifest.webmanifest b/manifest.webmanifest new file mode 100644 index 0000000..fed0181 --- /dev/null +++ b/manifest.webmanifest @@ -0,0 +1,10 @@ +{ + "name": "Daybreak Mail", + "short_name": "Daybreak", + "description": "A thoughtful mail client with a calmer kind of inbox.", + "start_url": "./", + "display": "standalone", + "background_color": "#f4f5f1", + "theme_color": "#f4f5f1", + "icons": [{"src":"icon.svg","sizes":"any","type":"image/svg+xml","purpose":"any maskable"}] +} diff --git a/service-worker.js b/service-worker.js new file mode 100644 index 0000000..b900927 --- /dev/null +++ b/service-worker.js @@ -0,0 +1,5 @@ +const CACHE='daybreak-mail-v1'; +const FILES=['./','./index.html','./styles.css','./app.js','./manifest.webmanifest','./icon.svg']; +self.addEventListener('install',event=>event.waitUntil(caches.open(CACHE).then(cache=>cache.addAll(FILES)))); +self.addEventListener('activate',event=>event.waitUntil(caches.keys().then(keys=>Promise.all(keys.filter(k=>k!==CACHE).map(k=>caches.delete(k)))))); +self.addEventListener('fetch',event=>{if(event.request.method!=='GET')return;event.respondWith(caches.match(event.request).then(cached=>cached||fetch(event.request).then(response=>{if(new URL(event.request.url).origin===location.origin){const copy=response.clone();caches.open(CACHE).then(cache=>cache.put(event.request,copy))}return response}).catch(()=>caches.match('./index.html'))))}); diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..7485e52 --- /dev/null +++ b/styles.css @@ -0,0 +1,11 @@ +: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} +.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)} +/* Wasteland: warm paper, weathered ink and rust. */ +body.wasteland{--bg:#eee8db;--panel:#faf6ed;--line:#e6dccb;--text:#373129;--muted:#998a76;--subtle:#f3ede1;--accent:#a75d3d;--accent-soft:#f5e8dc;--shadow:0 2px 10px #44351d0c}body.wasteland .rail{background:#e7dece;border-color:#dfd4c2}body.wasteland .brand-mark{background:#ad6847}body.wasteland .rail-button.active{background:#f1dfcd;color:#a15a39}body.wasteland .rail-button:hover{background:#eee2d2;color:#9a5739}body.wasteland .sidebar,body.wasteland .topbar{background:#faf6ed;border-color:#e6dccb}body.wasteland .account-card{background:#f4eee2;border-color:#ece2d2}body.wasteland .account-avatar{background:#ead8bf;color:#9b633e}body.wasteland .folder.active{background:#f3e6d7;color:#995c3d}body.wasteland .folder.active .nav-glyph{color:#a76645}body.wasteland .count{color:#9e6947}body.wasteland .list-pane,body.wasteland .reader-pane,body.wasteland .compose-modal{background:#faf6ed;border-color:#e6dccb}body.wasteland .compose-button,body.wasteland .send-button,body.wasteland .reply-button.primary{background:#a76645;border-color:#a76645}body.wasteland .compose-button:hover{background:#905538}body.wasteland .message.selected{background:#f5ede0;box-shadow:inset 2px 0 #ad704c}body.wasteland .reader-empty .empty-icon{background:#f3e8d8;color:#a8734c}body.wasteland .reader-button,body.wasteland .reply-button{background:#faf6ed} +@media(max-width:1040px){.sidebar{width:205px;padding-inline:13px}.mail-layout{grid-template-columns:minmax(310px,47%) minmax(320px,1fr);padding:13px;gap:10px}.reader-pane{padding:0 17px 20px}.topbar{padding:0 16px}.message{gap:7px;padding-inline:9px}.list-heading{padding-inline:14px}} +@media(max-width:800px){.sidebar{width:174px;padding-inline:10px}.mail-layout{grid-template-columns:minmax(290px,1fr) minmax(290px,1fr);padding:9px;gap:8px}.reader-pane{padding-inline:13px}.list-heading h2{font-size:17px}.search-wrap{width:170px}} +.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}