/* Participant inbox, S1-001. Modelled on the layout, density and behaviour of a web mail client
   in the Fluent 2 light theme. No product name or logo. Icons: Fluent UI System Icons (MIT), via unpkg. */
:root{
  color-scheme:light only;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
  --brand:#0f6cbd; --brand-hover:#115ea3; --brand-press:#0c3b5e; --brand-bg:#ebf3fc; --brand-bg2:#cfe4fa;
  --fg1:#242424; --fg2:#424242; --fg3:#616161; --fg4:#707070;
  --bg1:#ffffff; --bg2:#fafafa; --bg3:#f5f5f5; --bg4:#f0f0f0; --bg5:#ebebeb;
  --stroke:#e0e0e0; --stroke2:#d1d1d1; --stroke3:#f0f0f0;
  --red:#c50f1f; --shadow4:0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.14);
  --shadow8:0 0 2px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.14);
  --shadow16:0 0 2px rgba(0,0,0,.12),0 8px 16px rgba(0,0,0,.14);
  --shadow28:0 0 8px rgba(0,0,0,.12),0 14px 28px rgba(0,0,0,.14);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{font-family:var(--font);font-size:13px;color:var(--fg1);background:var(--bg3);overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
input,textarea{font:inherit;color:inherit}
.fi{display:inline-block;width:20px;height:20px;flex:none;background:currentColor;-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
.owa{display:flex;flex-direction:column;height:100vh}

/* header */
.hdr{height:48px;flex:none;display:grid;grid-template-columns:1fr minmax(320px,640px) 1fr;align-items:center;background:var(--brand);color:#fff;padding:0 8px 0 0}
.hdr-l{display:flex;align-items:center;height:100%}
.hbtn{width:48px;height:48px;display:grid;place-items:center;color:#fff}
.hbtn:hover{background:var(--brand-hover)}
.appname{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;padding-left:4px;letter-spacing:.01em}
.hdr-c{display:flex;justify-content:center}
.search{display:flex;align-items:center;gap:8px;width:100%;height:32px;padding:0 10px;border-radius:4px;background:#d6e6f5;color:var(--brand);cursor:text;transition:background .1s}
.search:hover{background:#e2eef9}
.search:focus-within{background:#fff}
.search input{flex:1;min-width:0;border:0;outline:0;background:none;color:var(--fg1);font-size:13px}
.search input::placeholder{color:var(--fg3)}
.hdr-r{display:flex;align-items:center;justify-content:flex-end;height:100%}
.hdr-r .hbtn{width:40px}
.me{height:48px;padding:0 8px;display:grid;place-items:center}
.me:hover{background:var(--brand-hover)}

/* avatar */
.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none;color:#fff;font-size:11px;font-weight:600;letter-spacing:.02em;background:#8a8886}
.avatar.sm{width:32px;height:32px;font-size:11px;box-shadow:0 0 0 1px rgba(255,255,255,.6)}
.avatar.lg{width:40px;height:40px;font-size:14px}

.body{flex:1;min-height:0;display:flex}
/* app rail */
.rail{width:48px;flex:none;display:flex;flex-direction:column;align-items:center;padding-top:6px;gap:2px;background:var(--bg3)}
.rb{width:40px;height:40px;border-radius:4px;display:grid;place-items:center;color:var(--fg3);position:relative}
.rb .fi{width:24px;height:24px}
.rb:hover{background:var(--bg5);color:var(--fg2)}
.rb.on{color:var(--brand)}
.rb.on::before{content:"";position:absolute;left:-4px;top:10px;bottom:10px;width:3px;border-radius:2px;background:var(--brand)}

.work{flex:1;min-width:0;display:flex;flex-direction:column;padding:0 8px 8px 0}
/* ribbon */
.ribbon{flex:none}
.tabs{display:flex;align-items:center;height:40px;gap:2px}
.nav-toggle{width:36px;height:32px;display:grid;place-items:center;border-radius:4px;color:var(--fg2);margin-right:4px}
.nav-toggle:hover{background:var(--bg5)}
.tab{height:32px;padding:0 10px;border-radius:4px;color:var(--fg2);font-size:13px;position:relative}
.tab:hover{background:var(--bg5)}
.tab.on{color:var(--fg1);font-weight:600}
.tab.on::after{content:"";position:absolute;left:10px;right:10px;bottom:2px;height:3px;border-radius:2px;background:var(--brand)}
.cmds{display:flex;align-items:center;gap:2px;height:44px;padding:0 8px;margin-bottom:8px;background:var(--bg1);border-radius:8px;box-shadow:var(--shadow4);overflow:hidden;white-space:nowrap}
.cmd{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 8px;border-radius:4px;color:var(--fg1);font-size:13px}
.cmd .fi{color:var(--fg2)}
.cmd:hover{background:var(--bg3)}
.cmd:hover .fi{color:var(--brand)}
.cmd:active{background:var(--bg5)}
.cmd.icon-only{padding:0 6px}
.split{display:flex;margin-right:2px}
.cmd.primary{background:var(--brand);color:#fff;border-radius:4px 0 0 4px;padding:0 12px 0 10px;font-weight:600}
.cmd.primary .fi{color:#fff}
.cmd.primary:hover{background:var(--brand-hover)}
.cmd.primary:hover .fi{color:#fff}
.cmd.primary.caret{border-radius:0 4px 4px 0;padding:0 6px;margin-left:1px}
.cmd.primary.caret .fi{width:16px;height:16px}
.vsep{width:1px;height:20px;background:var(--stroke);margin:0 6px}

/* panes */
.panes{flex:1;min-height:0;display:flex;gap:8px}
.folders{width:236px;flex:none;overflow:auto;padding:4px 4px 16px 0}
.fgroup{margin-bottom:6px}
.fhead{display:flex;align-items:center;gap:6px;height:36px;padding:0 8px;font-weight:600;font-size:13px;border-radius:4px;cursor:pointer;color:var(--fg1)}
.fhead .fi{width:16px;height:16px;color:var(--fg3)}
.fhead:hover{background:var(--bg5)}
.folder{display:flex;align-items:center;gap:10px;height:34px;padding:0 10px 0 30px;border-radius:4px;cursor:pointer;color:var(--fg1);position:relative}
.folder .fi{color:var(--fg2)}
.folder:hover{background:var(--bg5)}
.folder.on{background:var(--bg1);box-shadow:var(--shadow4);font-weight:600}
.folder.on .fi{color:var(--brand)}
.folder .cnt{margin-left:auto;font-size:12px;font-weight:600;color:var(--brand)}
.folder.on .cnt{color:var(--brand)}
.folder .cnt.muted{color:var(--fg3);font-weight:400}
.folder.unread .name{font-weight:600}
.flink{display:block;padding:6px 10px 6px 30px;color:var(--brand);font-size:12px;cursor:pointer}
.flink:hover{text-decoration:underline}

/* message list */
.list{width:380px;flex:none;display:flex;flex-direction:column;background:var(--bg1);border-radius:8px;box-shadow:var(--shadow4);overflow:hidden}
.list-head{flex:none;padding:12px 12px 0 16px;border-bottom:1px solid var(--stroke3)}
.lh-title{display:flex;align-items:center;gap:6px;font-size:18.5px;font-weight:600;height:28px}
.lh-title .star{width:16px;height:16px;color:var(--fg3)}
.lh-row{display:flex;align-items:flex-end;justify-content:space-between;height:40px}
.pivots{display:flex;gap:4px}
.pivot{height:36px;padding:0 8px;color:var(--fg2);position:relative;font-size:13px}
.pivot:hover{color:var(--fg1)}
.pivot.on{color:var(--fg1);font-weight:600}
.pivot.on::after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:3px;border-radius:2px;background:var(--brand)}
.lh-icon{width:32px;height:32px;margin-bottom:4px;border-radius:4px;display:grid;place-items:center;color:var(--fg2)}
.lh-icon:hover{background:var(--bg3)}
.rows{flex:1;overflow:auto}
.grp{display:flex;align-items:center;gap:6px;height:32px;padding:0 16px;font-size:12px;font-weight:600;color:var(--fg1);position:sticky;top:0;background:var(--bg1);z-index:1}
.grp .fi{width:16px;height:16px;color:var(--fg3)}
.row{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:12px;padding:10px 12px 10px 16px;border-bottom:1px solid var(--stroke3);cursor:pointer;position:relative;background:var(--bg1)}
.row:hover{background:var(--bg3)}
.row.sel{background:var(--brand-bg2)}
.row.sel:hover{background:#c3dcf6}
.row.unread::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--brand)}
.row .avatar{margin-top:2px}
.r1,.r2,.r3{display:flex;align-items:center;gap:8px;min-width:0}
.r1{height:20px}
.r1 .from{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:var(--fg1)}
.row.unread .from{font-weight:600}
.r1 .state{display:flex;gap:4px;color:var(--fg3)}
.r1 .state .fi{width:16px;height:16px}
.r1 .state .flagged{color:var(--red)}
.hov{display:none;gap:2px;margin-right:-4px}
.row:hover .hov{display:flex}
.row:hover .state{display:none}
.hov button{width:28px;height:24px;border-radius:4px;display:grid;place-items:center;color:var(--fg2)}
.hov button .fi{width:18px;height:18px}
.hov button:hover{background:var(--bg5);color:var(--brand)}
.hov button.on{color:var(--red)}
.r2{height:20px;font-size:13px}
.r2 .subj{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--fg1)}
.row.unread .r2 .subj{color:var(--brand);font-weight:600}
.r2 .time{font-size:11px;color:var(--fg3);white-space:nowrap}
.row.unread .r2 .time{color:var(--brand);font-weight:600}
.r3{height:20px;font-size:12px;color:var(--fg3)}
.r3 span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row.arrive{animation:arrive .5s ease-out}
@keyframes arrive{from{background:var(--brand-bg2);transform:translateY(-8px);opacity:0}to{transform:none;opacity:1}}
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:100%;min-height:240px;color:var(--fg3);text-align:center;padding:24px}
.empty .fi{width:48px;height:48px;color:var(--stroke2)}
.empty b{color:var(--fg1);font-weight:600;font-size:15px}

/* reading pane */
.reading{flex:1;min-width:0;overflow:auto;border-radius:8px;background:var(--bg2);box-shadow:var(--shadow4)}
.rp{padding:16px 20px 32px}
.rp-subj{display:flex;align-items:center;gap:10px;margin:2px 0 14px}
.rp-subj h1{flex:1;min-width:0;margin:0;font-size:18.5px;font-weight:600;line-height:28px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-subj .tools{display:flex;gap:2px}
.ibtn{width:32px;height:32px;border-radius:4px;display:grid;place-items:center;color:var(--fg2)}
.ibtn:hover{background:var(--bg5);color:var(--brand)}
.msg{background:var(--bg1);border-radius:8px;box-shadow:var(--shadow4);margin-bottom:12px}
.mh{display:flex;gap:12px;padding:16px 16px 0}
.mh .who{flex:1;min-width:0}
.mh .name{font-weight:600;font-size:13px;line-height:20px}
.mh .name span{font-weight:400;color:var(--fg3);font-size:12px}
.mh .to{font-size:12px;color:var(--fg3);line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh .to b{font-weight:400;color:var(--fg2)}
.mh .side{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.mh .acts{display:flex;gap:0}
.mh .date{font-size:11px;color:var(--fg3);white-space:nowrap}
.mb{padding:16px 16px 12px 60px;font-size:13.5px;line-height:1.5;color:var(--fg1);white-space:pre-wrap;word-wrap:break-word}
.mf{display:flex;gap:8px;padding:4px 16px 16px 60px}
.pbtn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:4px;background:var(--bg1);box-shadow:inset 0 0 0 1px var(--stroke2);font-size:13px;color:var(--fg1)}
.pbtn .fi{color:var(--fg2)}
.pbtn:hover{background:var(--bg3)}
.pbtn:hover .fi{color:var(--brand)}
.msg.collapsed .mb,.msg.collapsed .mf{display:none}
.msg.collapsed .mh{padding-bottom:14px;cursor:pointer}
.msg.collapsed .mh .to{color:var(--fg3)}
.rp-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--fg3)}
.rp-empty .fi{width:64px;height:64px;color:var(--stroke)}
.rp-empty b{color:var(--fg2);font-weight:600;font-size:15px}

/* compose */
.compose{background:var(--bg1);border-radius:8px;box-shadow:var(--shadow8);margin-bottom:12px;overflow:hidden}
.cbar{display:flex;align-items:center;gap:8px;padding:12px 16px 8px}
.send{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 14px;border-radius:4px;background:var(--brand);color:#fff;font-weight:600}
.send .fi{width:18px;height:18px}
.send:hover{background:var(--brand-hover)}
.discard{height:32px;padding:0 12px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--stroke2)}
.discard:hover{background:var(--bg3)}
.cbar .fmt{margin-left:auto;display:flex;gap:2px}
.cbar .fmt .ibtn{width:30px;height:30px}
.cbar .fmt .fi{width:18px;height:18px}
.cfield{display:flex;align-items:center;gap:8px;min-height:38px;margin:0 16px;border-bottom:1px solid var(--stroke)}
.cfield label{width:52px;flex:none;height:26px;display:grid;place-items:center;border-radius:4px;box-shadow:inset 0 0 0 1px var(--stroke2);font-size:12px;color:var(--fg2)}
.cfield.subj label{box-shadow:none;place-items:center start;padding-left:2px}
.cfield input{flex:1;min-width:0;border:0;outline:0;height:36px;font-size:13px;background:none}
.chip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 8px 0 3px;border-radius:13px;background:var(--bg4);font-size:12px;white-space:nowrap}
.chip .avatar{width:20px;height:20px;font-size:8.5px}
.chips{display:flex;flex-wrap:wrap;gap:4px;flex:1;padding:5px 0}
.cbody{display:block;width:100%;min-height:150px;padding:14px 16px;border:0;outline:0;resize:vertical;font-size:13.5px;line-height:1.5}
.cwarn{display:none;margin:0 16px 10px;padding:8px 10px;border-radius:4px;background:#fdf3f4;color:var(--red);font-size:12px}
.cwarn.show{display:flex;align-items:center;gap:6px}
.quoted{margin:0 16px 16px;padding-top:12px;border-top:1px solid var(--stroke);font-size:12.5px;color:var(--fg2);white-space:pre-wrap;line-height:1.45}
.quoted .qh{margin-bottom:10px;color:var(--fg2)}
.quoted .qh b{font-weight:600}

/* toasts */
.toasts{position:fixed;right:16px;top:60px;z-index:20;display:flex;flex-direction:column;gap:8px;width:360px}
.toast{display:grid;grid-template-columns:32px minmax(0,1fr) 24px;column-gap:12px;padding:12px 12px 12px 14px;border-radius:8px;background:var(--bg1);box-shadow:var(--shadow28);cursor:pointer;animation:tin .28s cubic-bezier(.2,.8,.2,1)}
.toast:hover{background:var(--bg2)}
.toast.out{animation:tout .22s ease-in forwards}
.toast .t1{font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.toast .t2{font-size:12px;color:var(--fg1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.toast .t3{font-size:12px;color:var(--fg3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.toast .x{width:24px;height:24px;border-radius:4px;display:grid;place-items:center;color:var(--fg3)}
.toast .x:hover{background:var(--bg5)}
.toast .x .fi{width:16px;height:16px}
@keyframes tin{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@keyframes tout{to{opacity:0;transform:translateX(24px)}}

/* "not part of the simulation" nudge */
.nudge{animation:nudge .36s cubic-bezier(.36,.07,.19,.97)}
@keyframes nudge{0%,100%{transform:none}20%{transform:translateX(-3px)}40%{transform:translateX(3px)}60%{transform:translateX(-2px)}80%{transform:translateX(1px)}}
#nudgeTip{position:fixed;z-index:30;padding:5px 9px;border-radius:4px;background:#fff;color:var(--fg2);font-size:11px;box-shadow:var(--shadow16);pointer-events:none;opacity:0;transform:translateY(-2px);transition:opacity .15s,transform .15s;white-space:nowrap}
#nudgeTip.show{opacity:1;transform:none}
