/* SD17 - laid out in design px (800 wide). The stage is as tall as the screen; the list takes the slack. */
@font-face{ font-family:"Roboto"; src:url("fonts/roboto-400.woff2") format("woff2"); font-weight:400; font-display:block; }
@font-face{ font-family:"Roboto"; src:url("fonts/roboto-500.woff2") format("woff2"); font-weight:500; font-display:block; }

#stage{ display:flex; flex-direction:column; background:#1a1b20; font-family:"Roboto",sans-serif; color:#fff; }
.top{ position:relative; width:800px; height:108px; flex:none; overflow:hidden; background:#000; }
.top img{ position:absolute; left:0; bottom:0; width:800px; height:108px; }

/* iPhone / iPad: Apple's real status bar replaces our fake one (only the sheet's top edge and grab
   handle stay), and Apple's home bar replaces our fake Android nav buttons. Android is unchanged. */
html.ios .top{ height:calc(var(--safe-top, 0px) + 24px); }
html.ios .top img{ clip-path:inset(84px 0 0 0); }          /* keep only the sheet edge + handle */
html.ios .kb > img{ clip-path:inset(0 0 77px 0); }          /* drop the fake Android nav buttons */
html.ios .kb{ height:calc(427px + max(var(--safe-bottom, 0px), 12px)); overflow:hidden; background:#1a1b20; }

.list{ flex:1 1 auto; min-height:0; position:relative; display:flex; flex-direction:column; }
.list > .row:first-child{ margin-top:auto; }   /* on taller screens the comments sit at the bottom, by the message box */
.row{ flex:none; }
.row{ display:flex; align-items:center; min-height:112.8px; padding:0 30px 0 40.7px; }
.row .av{ width:84px; height:84px; flex:none; margin-right:14.3px; }
.txt{ padding:14px 0; }
.name{ font-weight:500; font-size:19.3px; line-height:24px; letter-spacing:.1px; }
.msg{ font-size:24.65px; line-height:30px; margin-top:1px; white-space:pre-line; overflow-wrap:break-word; max-width:620px; }

.composer{ flex:none; display:flex; align-items:flex-end; border-top:2px solid #2d3035;
  padding:17.8px 46.4px 12px 132.2px; min-height:104px; position:relative; }
.composer .me{ position:absolute; left:40px; bottom:6.4px; width:84px; height:84px; }
.pill{ flex:1; position:relative; min-height:72.2px; border:2.2px solid #67686c; border-radius:36.1px;
  padding:20.1px 84px 17.7px 30px; }
.field{ font-size:24.65px; line-height:30px; min-height:30px; max-height:120px; overflow:hidden; white-space:pre-wrap; overflow-wrap:break-word; }
.ph{ color:#c4c4c4; font-size:24.2px; }
.caret{ display:inline-block; width:2.4px; height:28.5px; margin:0 -2.4px -5.1px 0; background:#5a86f0; vertical-align:baseline; position:relative; left:-.2px; }
.caret.after{ margin:0 0 -5.1px 1px; }
.caret.blink{ animation:blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.send{ position:absolute; right:3.4px; bottom:-4.2px; width:78px; height:74px; }

.kb{ flex:none; position:relative; width:800px; height:504px; }
.kb > img{ position:absolute; left:0; top:0; width:800px; height:504px; }
.key{ position:absolute; border-radius:9px; }
.key.down{ background:rgba(255,255,255,.16); }
.tool{ position:absolute; border-radius:50%; }
.tool.down{ background:rgba(255,255,255,.10); }
.secret{ position:absolute; z-index:5; }
