/* Joshi 31 Oct 19:48: every menu item and every conversation is a box with a border (the open one stays filled). */
body .rail nav a, body.pt.dash .rail nav a, body .railshell .vtabs2 a { border: 1px solid rgb(246 243 239 / .18) }
body .rail nav a[aria-current="page"], body.pt.dash .rail nav a[aria-current="page"], body .railshell .vtabs2 a[aria-current="page"] { border-color: transparent }
body .convlist button, body.pt.dash .convlist button, body .conv, body.pt.dash .conv { border: 1px solid var(--line, #C2B8AD) }
body .convlist button[aria-pressed="true"], body.pt.dash .convlist button[aria-pressed="true"] { border-color: #163038 }
body .convlist, body .convs { gap: 8px }

/* Typing box with the ➤ send button inside, on the right */
.composer { position: relative }
.composer textarea.in { width: 100%; box-sizing: border-box; padding-right: 60px; resize: vertical }
body .sendbtn, body.pt.dash .sendbtn { position: absolute; right: 10px; bottom: 12px; width: 40px; height: 40px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: #163038; color: #F6F3EF; font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center }
body .sendbtn:hover { background: #0F232A } body .sendbtn:disabled { opacity: .5; cursor: default }
.composer-hint { font-size: 12px; color: var(--muted, #424D50); margin: 6px 0 0 }
@media (pointer: coarse) { .composer-hint { display: none } }

/* Editing your own message */
body .bubble .medit, body.pt.dash .bubble .medit { display: block; margin: 4px 0 0 auto; padding: 0; border: 0; background: none; color: var(--muted, #424D50); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer }
.bubble .meditbox { display: grid; gap: 6px; margin-top: 6px; min-width: min(420px, 70vw) } .bubble .meditbox textarea { width: 100%; box-sizing: border-box }
.bubble .merr { color: #A33B1E; font-size: 12.5px; margin: 0 }
.bubble .orig { font-size: 12px; color: var(--muted, #424D50); border-top: 1px dashed var(--line, #C2B8AD); padding-top: 4px; margin-top: 6px }

/* Joshi 31 Oct 19:55: menu column = logo · spacetime.education ↗ (new tab) · name + role · menu · Log out in the middle of the space left */
.sitelink { display: block; text-align: center; color: #C7C0B9; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; margin-top: -8px }
.sitelink:hover { color: #F6F4EF }
body .rail .me { padding: 0 6px }
.rail .me span, .railme span { display: block }
@media (min-width: 901px) {
  body .rail .foot { margin-top: 0; flex: 1 1 auto; display: grid; place-items: center; min-height: 64px }
  body .rail .foot .railbtn { justify-self: center }
  .inportal .railshell .railfoot { margin-top: 0; flex: 1 1 auto; display: grid; place-items: center; min-height: 64px }
  .inportal .railfoot .vlogout { width: auto; padding: 8px 18px; text-align: center }
  .inportal .railshell .railme { padding: 0 6px; margin: 0 }
}
@media (max-width: 900px) { .sitelink { display: none } }
