:root{
  color-scheme:light;--ink:#0b1631;--soft:#4c5575;--paper:#fcfaff;--ground:#f2effc;
  --edge:#d8d3f0;--blue:#203fda;--accent:#1b37c9;--active:#2644db;--pale:#e6e6ff;
  --bar:#efedff;--wall:#99aeff;--sweep:#4061ea;--line:var(--edge);
  font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink)
}
:root[data-theme=dark]{
  color-scheme:dark;--ink:#f6f4ff;--soft:#c0bed9;--paper:#22243f;--ground:#1a1c34;
  --edge:#434461;--blue:#374fce;--accent:#b1c1ff;--active:#394ed6;--pale:#363957;
  --bar:#292c4b;--wall:#242b58;--sweep:#354598
}
*{box-sizing:border-box}
body.fw-home,body.fw-mail{margin:0;min-height:100dvh;color:var(--ink);background:
 radial-gradient(ellipse 86vw 100vh at -40vw -75vh,transparent 96%,var(--sweep) 96.3% 105%,transparent 105.3%),
 radial-gradient(ellipse 86vw 105vh at 145vw 167vh,transparent 96%,var(--sweep) 96.3% 109%,transparent 109.3%),
 radial-gradient(ellipse at 62% 18%,#b5bcfa66,transparent 66%),var(--wall);background-attachment:fixed}
.fw-home,.fw-mail{display:grid;align-content:safe center;justify-items:center;padding:clamp(16px,5vh,70px) 0}
button,input,textarea,select{font:inherit}
a{color:var(--accent);text-underline-offset:.2em}
:where(button,summary,a):focus-visible{outline:3px solid #26a2ff;outline-offset:3px}
button,summary{cursor:pointer}
.shell{border:1px solid #ffffffa3;border-radius:clamp(18px,2vw,32px);overflow:hidden;background:var(--paper);box-shadow:0 15px 40px -10px #263a8b78}
.overview{width:min(1232px,80vw)}
.fwbar{display:flex;justify-content:flex-start;align-items:center;gap:clamp(18px,3.3vw,54px);height:clamp(57px,4.5vw,72px);padding:0 4%;background:var(--bar);border-bottom:1px solid var(--edge);color:var(--ink)}
.fw-brand{display:inline-flex;align-items:center;flex:none}
.fw-brand img{width:clamp(107px,10vw,155px);height:28px;object-fit:fill}
.fwbar .topnav{display:flex;align-items:center;justify-content:flex-start;gap:clamp(4px,1vw,20px)}
.topnav a{padding:7px clamp(9px,1.3vw,22px);border-radius:99px;text-decoration:none;color:var(--ink);font-weight:550;white-space:nowrap}
.topnav a:hover{background:var(--pale)}
.topnav a[aria-current]{color:white;background:var(--active)}
.fwbar .bar-actions,.profile{margin-left:auto}
.profile{position:relative}
.profile summary{display:grid;list-style:none;place-items:center;width:38px;height:38px;border-radius:50%;background:#111c37}
.profile summary::-webkit-details-marker{display:none}
.profile summary img{width:31px;filter:invert(1)}
.profile>div{position:absolute;z-index:3;right:0;top:46px;width:max-content;border-radius:15px;padding:8px;border:1px solid var(--edge);background:var(--paper);box-shadow:0 8px 25px #14142a33}
.profile>div>*{display:block;background:none;border:0;color:var(--ink);text-decoration:none;padding:8px 12px}
.overview main{background:var(--paper);overflow:visible}
.hero{position:relative;aspect-ratio:1230/365;background:#b1bdff url("/assets/fw-overview.webp") center/100% 100% no-repeat;color:#0b1631}
.hero>div{position:absolute;left:4.7%;top:18%;width:34%}
.hero h1,.widgets h2{line-height:1;margin:0}
.hero h1 img{width:94%;height:auto}
.hero p,.widgets p{margin:.3em 0 0;font-size:clamp(17px,1.85vw,29px);letter-spacing:-.035em}
.widgets{display:grid;grid-template-columns:1fr 1fr;padding:2.6% 0;background:linear-gradient(140deg,#b99ce00e,transparent 70%),var(--paper)}
.widgets>section{min-width:0;padding:0 9%}
.widgets>section+section{border-left:1px solid var(--edge)}
.widgets h2 img{height:clamp(30px,3.1vw,49px);width:auto;max-width:100%;object-fit:contain}
.widgets h2 a{display:inline-flex}
.widgets p{font-size:clamp(16px,1.45vw,23px);color:var(--soft)}
.recent{margin-top:11px;font-size:clamp(14px,1.2vw,19px);color:var(--soft)}
.recent a,.service{display:flex;align-items:center;gap:14px;padding:9px 0;text-decoration:none;color:var(--ink)}
.recent a+a,.service{border-bottom:1px solid var(--edge)}
.recent a:first-child:not(:only-child){border-bottom:1px solid var(--edge)}
.recent a:last-child{border-bottom:0}
.recent strong,.recent span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent strong{flex:0 1 35%}.recent span{flex:1}.recent time,.recent b{color:var(--soft);font-size:.85em;white-space:nowrap}
.service{font-size:clamp(18px,1.5vw,24px);margin-top:8px;font-weight:550}
.arrow{margin-left:auto;font-size:1.5em;font-weight:400}
.tg-icon{width:2em;height:2em;border-radius:50%;display:grid;place-items:center;background:#078cc7;color:white;transform:rotate(-32deg)}
.manage{display:inline-block;margin-top:12px;font-size:clamp(16px,1.4vw,22px);font-weight:700;text-decoration:none}
.manage:hover,.recent a:hover,.service:hover{color:var(--accent);text-decoration:underline}
dialog{color:var(--ink);background:var(--paper);border:1px solid var(--edge);border-radius:20px;width:min(490px,93vw);box-shadow:0 20px 70px #12153655}
dialog::backdrop{background:#12142d85}
#connections{padding:26px}
.dialog-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dialog-title h2{margin:0}
#connections img{height:32px;max-width:100%}
#connections button{background:var(--pale);color:var(--ink);border:0;border-radius:50%;height:34px;width:34px;font-size:20px}
#connectedBoxes{overflow-wrap:anywhere;max-height:40vh;overflow:auto}
.workspace{width:min(1650px,94vw);display:flex;flex-direction:column}
.workspace .fwbar{padding:0 clamp(16px,2.7vw,48px)}
.fw-mail .layout{height:clamp(450px,76dvh,900px);min-height:0;grid-template-columns:clamp(150px,15vw,212px) minmax(0,1fr)}
.fw-mail aside{padding:26px 12px;background:var(--ground)}
.sidehead .word-art{width:min(128px,100%);vertical-align:middle}
.fw-mail aside nav button{border-radius:12px;color:var(--ink);gap:12px;padding:12px;font-weight:600}
.fw-mail aside nav button:hover,.fw-mail .threadrow:hover{background:var(--pale)}
.fw-mail aside nav .active,.fw-mail aside nav .active:hover{background:var(--active);color:white}
.fw-mail aside nav .active img{filter:brightness(0) invert(1)}
.fw-mail .mailgrid{grid-template-columns:clamp(255px,27vw,410px) minmax(0,1fr)}
.fw-mail .listhead,.fw-mail .screen{padding:clamp(18px,2vw,32px)}
.fw-mail .list{border-color:var(--edge)}
.fw-mail .reader{background:var(--ground);padding:clamp(18px,2.3vw,40px)}







.fw-mail .list .empty{padding:12px 20px;margin:clamp(18px,6vh,65px) auto}
.setup>img{width:38px;margin-bottom:15px}
.fw-mail button:not(.primary){color:var(--accent)}
.fw-mail .primary,.fw-mail .signin .primary{background:var(--active);color:white;border-radius:12px;text-align:center}
.fw-mail .primary:hover{background:#2334ac}
.fw-mail .threadrow.selected,.fw-mail .threadrow.selected:hover{background:var(--active);color:white}
.fw-mail .threadrow i{background:#dfe2ff;color:#293a82;font-weight:700}
.fw-mail .threadrow.selected i{background:#ffffff30;color:white}
.fw-mail .threadrow:not(.selected){color:var(--ink)}
.fw-mail .signin{overflow:hidden;margin:clamp(25px,6vh,65px) auto;background:var(--ground);padding:0 22px 28px;border:1px solid var(--edge);border-radius:22px;max-width:calc(100% - 28px)}
.signin-art{height:126px;background:#b7bcfc url("/assets/fw-flight.webp") center 44%/cover;margin:0 -22px 16px}
.signin h1{font-style:italic}.fw-mail .signin #authStatus{color:var(--soft)}
.fw-mail .error{padding:14px;background:var(--pale);color:var(--ink)}
.fw-mail select,.fw-mail input,.fw-mail textarea{border-radius:10px;border-color:var(--edge)}
.fw-mail .themebtn{background:var(--pale);border:1px solid var(--edge)}
.fw-mail .screen .toolbar{border-bottom:1px solid var(--edge);padding-bottom:16px}
:root[data-theme=dark] :is(.fw-brand img,.word-art,.setup>img,.themebtn img){filter:brightness(0) invert(1)}
:root[data-theme=dark] .hero{background-color:#a0aeea}
:root[data-theme=dark] #formStatus{color:#ffbcb1}
@media(max-width:1000px){.overview{width:92vw}.fwbar{gap:18px}.workspace{width:96vw}.fw-mail .layout{grid-template-columns:146px minmax(0,1fr)}.fw-mail .mailgrid{grid-template-columns:minmax(230px,41%) minmax(0,1fr)}.workspace #mode{display:none}}
@media(max-width:700px){
 .fw-home,.fw-mail{padding:14px 0;align-content:start}.workspace,.overview{width:calc(100% - 20px)}
 .fwbar{height:auto;min-height:80px;display:grid;grid-template-columns:1fr auto;gap:5px 8px;padding:10px 14px 6px!important}
 .fw-brand img{width:104px;height:21px}.fwbar .topnav{grid-column:1/-1;grid-row:2;justify-content:flex-start;gap:4px}
 .topnav a{padding:7px 12px;font-size:14px}.profile,.fwbar .bar-actions{grid-column:2;grid-row:1}.profile summary{width:30px;height:30px}.profile summary img{width:25px}
 .hero{aspect-ratio:1.95;background-size:auto 100%;background-position:72% center}.hero>div{top:13%;left:5%;width:46%;padding:6px;border-radius:10px;background:radial-gradient(ellipse at center,#c2cbff 52%,#bfcbff00 80%)}.hero p{font-size:16px}
 .widgets{grid-template-columns:1fr;padding:0 20px}.widgets>section{padding:19px 0}.widgets>section+section{border:0;border-top:1px solid var(--edge)}.recent a{min-height:41px}.widgets h2 img{height:30px}
 .fw-mail .layout{height:calc(100dvh - 122px);min-height:330px;grid-template: auto minmax(0,1fr)/minmax(0,1fr)}
 .fw-mail aside{padding:4px}.sidehead{display:none}.fw-mail aside nav{display:flex;justify-content:space-around}.fw-mail aside nav button{display:flex;flex-direction:column;gap:4px;padding:7px 5px;font-size:12px}
 .fw-mail .mailgrid{display:block}.fw-mail .list,.fw-mail .reader{height:100%}.fw-mail .open .reader{display:block}.fw-mail .open .list{display:none}.fw-mail .back{display:inline-block}.fw-mail .themebtn{width:29px;height:29px;padding:5px}.bar-actions{gap:5px}
}
@media(max-height:620px) and (min-width:701px){.fw-mail{padding:8px 0}.fw-mail .layout{min-height:280px;height:calc(100dvh - 82px)}}

.quiet-banner{width:min(100%,880px);height:auto;display:block;border-radius:18px}
.fw-mail .reader:has(.quiet-banner){display:grid;place-items:center}
@media(max-width:700px){.fw-mail .reader:has(.quiet-banner){display:none}}

/* Trace the transparent artwork itself so its pale paper and ink silhouette stay legible. */
.quiet-banner {
  filter: drop-shadow(0 1px 1px #54548b99) drop-shadow(0 7px 7px #43477b36);
}
:root[data-theme=dark] .quiet-banner {
  filter: drop-shadow(0 0 1px #e4edff) drop-shadow(0 0 1.5px #cadbff) drop-shadow(0 4px 9px #080d22a6);
}
