* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #14202b;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1683d8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, p {
  margin: 0;
}

img, video {
  display: block;
}

[hidden] {
  display: none !important;
}

.dim {
  color: #5f6f7c;
}

.small {
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--icon) center/contain no-repeat;
  mask: var(--icon) center/contain no-repeat;
}

.sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #5f6f7c;
  flex: none;
}

.avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef3f7;
  flex: none;
}

.avatar-mini {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.avatar-mini.big {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #c9d4dc;
  border-radius: 999px;
  background: #ffffff;
  color: #14202b;
  font-weight: 700;
  white-space: nowrap;
}
.btn:hover {
  background: #f5f8fa;
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-primary {
  border-color: #1683d8;
  background: #1683d8;
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: #0f6fbc;
  border-color: #0f6fbc;
}
.btn-primary:disabled:hover {
  background: #1683d8;
}

.btn-dark {
  border-color: #14202b;
  background: #14202b;
  color: #fff;
}
.btn-dark:hover {
  background: #2a3a48;
  color: #fff;
}

.btn-wide {
  width: 100%;
  margin-top: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  list-style: none;
  flex: none;
}
.icon-btn:hover {
  background: #eef3f7;
}
.icon-btn.accent {
  color: #1683d8;
}
.icon-btn.accent:hover {
  background: #e6f3fc;
}
.icon-btn.outlined {
  border: 1px solid #c9d4dc;
}
.icon-btn::-webkit-details-marker {
  display: none;
}

.pill {
  padding: 1px 6px;
  border-radius: 4px;
  background: #eef3f7;
  color: #5f6f7c;
  font-size: 12px;
}

.badge {
  position: absolute;
  top: -5px;
  left: 14px;
  min-width: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #1683d8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.badge.static {
  position: static;
  flex: none;
}

.flash {
  padding: 10px 16px;
  background: #e6f3fc;
  border-bottom: 1px solid #e3e9ee;
}

.empty {
  padding: 48px 32px;
  text-align: center;
}
.empty h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.more {
  display: block;
  padding: 16px;
  text-align: center;
}
.more:hover {
  background: #f5f8fa;
  text-decoration: none;
}

.app {
  display: grid;
  grid-template-columns: 250px minmax(0, 600px) 330px;
  justify-content: center;
  min-height: 100vh;
}

.col-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 12px;
}

.nav-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: #14202b;
  font-size: 19px;
  font-weight: 800;
}
.logo img {
  width: 30px;
  height: 30px;
}
.logo:hover {
  text-decoration: none;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  color: #14202b;
  font-size: 18px;
}
.nav-item:hover {
  background: #eef3f7;
  text-decoration: none;
}
.nav-item.on {
  font-weight: 800;
}

.nav-icon {
  position: relative;
  display: inline-flex;
  font-size: 20px;
}

.nav-icon .badge {
  font-size: 11px;
}

.nav-tweet {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  font-size: 16px;
}

.nav-auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 0 12px;
}

.auth-bar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #e3e9ee;
}
.auth-bar img {
  width: 28px;
  height: 28px;
  margin-right: auto;
}

.nav-me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.nav-me .avatar-img {
  width: 38px;
  height: 38px;
}

.nav-me-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.nav-me-text strong, .nav-me-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-main {
  min-width: 0;
  min-height: 100vh;
  border-inline: 1px solid #e3e9ee;
  padding-bottom: 40px;
}

.col-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e3e9ee;
}

.col-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 12px;
}
.col-head h1 {
  font-size: 19px;
  overflow-wrap: anywhere;
}

.tabs {
  display: flex;
}

.tab {
  flex: 1;
  text-align: center;
  color: #5f6f7c;
  font-weight: 500;
}
.tab span {
  display: inline-block;
  padding: 13px 4px;
  border-bottom: 3px solid transparent;
}
.tab:hover {
  background: #f5f8fa;
  text-decoration: none;
}
.tab.on {
  color: #14202b;
  font-weight: 700;
}
.tab.on span {
  border-color: #1683d8;
}

.col-side {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  padding: 8px 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-search, .inline-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef3f7;
  color: #5f6f7c;
  border: 1px solid transparent;
}
.side-search:focus-within, .inline-search:focus-within {
  background: #ffffff;
  border-color: #1683d8;
  color: #1683d8;
}
.side-search input, .inline-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #14202b;
  font: inherit;
}

.inline-search {
  margin: 10px 14px;
}

.side-card {
  padding: 14px 16px;
  border: 1px solid #e3e9ee;
  border-radius: 16px;
}
.side-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.side-card .user-row {
  padding: 8px 0;
  border: 0;
}
.side-card .user-row-bio {
  display: none;
}

.trend {
  display: flex;
  flex-direction: column;
  padding: 7px 0;
  color: #14202b;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.trend:hover {
  text-decoration: none;
}
.trend:hover strong {
  color: #1683d8;
}

.bare {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bare h1 {
  font-size: 26px;
}
.bare .stack {
  padding: 0;
  border: 0;
}
.bare .flash {
  border-radius: 8px;
  border: 0;
}

.logo-big img {
  width: 48px;
  height: 48px;
}

.compose-dialog {
  width: min(600px, 100vw - 24px);
  margin-top: 6vh;
  padding: 8px;
  border: 0;
  border-radius: 16px;
}
.compose-dialog::backdrop {
  background: rgba(20, 32, 43, 0.45);
}
.compose-dialog .composer {
  border: 0;
}

.lightbox {
  max-width: 94vw;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.lightbox::backdrop {
  background: rgba(10, 16, 22, 0.85);
}
.lightbox img {
  max-width: 94vw;
  max-height: 94vh;
  object-fit: contain;
}

.tweet {
  border-bottom: 1px solid #e3e9ee;
  padding: 10px 16px 4px;
}
.tweet[data-href] {
  cursor: pointer;
}
.tweet[data-href]:hover {
  background: #f5f8fa;
}

.tweet-grid {
  display: flex;
  gap: 12px;
}

.tweet-main {
  flex: 1;
  min-width: 0;
}

.rt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px 22px;
  color: #5f6f7c;
  font-size: 13px;
  font-weight: 600;
}

.tweet-head {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.tweet-head .menu {
  margin-left: auto;
}

.name {
  color: #14202b;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handle, .time {
  color: #5f6f7c;
  white-space: nowrap;
}

.handle {
  overflow: hidden;
  text-overflow: ellipsis;
}

.time {
  flex: none;
}

.tweet-body {
  overflow-wrap: anywhere;
}
.tweet-body.big {
  font-size: 20px;
  line-height: 1.35;
  margin: 10px 0;
}

.replying {
  margin-bottom: 2px;
}

.media-grid {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  border: 1px solid #e3e9ee;
  border-radius: 16px;
  overflow: hidden;
}
.media-grid img, .media-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef3f7;
}
.media-grid img {
  cursor: zoom-in;
}
.media-grid.n1 img {
  max-height: 520px;
}
.media-grid.n1 video {
  max-height: 520px;
  object-fit: contain;
  background: #000;
}
.media-grid.n2, .media-grid.n4 {
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16/9;
}
.media-grid.n2 {
  grid-template-rows: minmax(0, 1fr);
}
.media-grid.n4 {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.media-grid.n3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 16/9;
}
.media-grid.n3 > :first-child {
  grid-row: span 2;
}

.quote {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e3e9ee;
  border-radius: 16px;
  font-size: 14px;
}
.quote[data-href] {
  cursor: pointer;
}
.quote[data-href]:hover {
  background: #eef3f7;
}
.quote .media-grid {
  margin-top: 8px;
}
.quote.gone {
  background: #f5f8fa;
}

.compose-quote {
  padding: 0 16px 16px 70px;
}

.actions {
  display: flex;
  justify-content: space-between;
  max-width: 440px;
  margin: 4px 0 0 -8px;
}

.toggle {
  display: contents;
}

.toggle .when-on {
  display: none;
}

.toggle.on .when-on {
  display: inline-flex;
}

.toggle.on .when-off {
  display: none;
}

.when-off, .when-on {
  display: inline-flex;
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f6f7c;
  font-size: 13px;
  cursor: pointer;
}
.act:hover {
  background: #e6f3fc;
  color: #1683d8;
  text-decoration: none;
}
.act.like:hover {
  background: #fce8ef;
  color: #e0245e;
}
.act.retweet:hover {
  background: #e4f6ee;
  color: #14935f;
}

.act-n {
  min-width: 1ch;
}

.toggle.on .like {
  color: #e0245e;
}

.toggle.on .retweet {
  color: #14935f;
}

.toggle.on .bookmark {
  color: #1683d8;
}

.menu {
  position: relative;
}
.menu summary {
  width: 30px;
  height: 30px;
  color: #5f6f7c;
}

.menu-pop {
  position: absolute;
  right: 0;
  z-index: 10;
  min-width: 220px;
  padding: 4px 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(20, 32, 43, 0.22);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  font-weight: 600;
  text-align: left;
}
.menu-item:hover {
  background: #f5f8fa;
}

.focal {
  padding: 12px 16px 2px;
}
.focal .avatar-img {
  margin-right: 7px;
}
.focal .actions {
  max-width: none;
  border-top: 1px solid #e3e9ee;
  margin: 8px 0 0;
  padding: 2px 0;
}

.focal-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.focal-time {
  margin-top: 12px;
  font-size: 14px;
}

.focal-stats {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e3e9ee;
}
.focal-stats strong {
  color: #14202b;
}

.tombstone {
  padding: 14px 16px;
  margin: 8px 16px;
  background: #f5f8fa;
  border-radius: 10px;
}

.composer {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e3e9ee;
}
.composer textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #14202b;
  font: inherit;
  font-size: 19px;
  resize: none;
  overflow: hidden;
}

.composer-main {
  flex: 1;
  min-width: 0;
}

.composer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}
.composer-bar .btn {
  margin-left: 0;
}

.composer-count {
  margin-left: auto;
  color: #5f6f7c;
  font-size: 13px;
}
.composer-count.over {
  color: #c9303e;
  font-weight: 700;
}

.composer-previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 6px;
}
.composer-previews img, .composer-previews video {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
}

.reply-box .composer textarea {
  font-size: 17px;
}

.new-pill {
  display: block;
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #e3e9ee;
}
.new-pill:hover {
  background: #f5f8fa;
  text-decoration: none;
}

.notif {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e3e9ee;
  cursor: pointer;
}
.notif:hover {
  background: #f5f8fa;
}
.notif.unread {
  background: #e6f3fc;
}
.notif.like .notif-icon {
  color: #e0245e;
}
.notif.retweet .notif-icon {
  color: #14935f;
}
.notif .notif-icon {
  color: #1683d8;
  font-size: 20px;
  flex: none;
}

.notif-main {
  min-width: 0;
  flex: 1;
}

.notif-snippet {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.link-card {
  display: block;
  margin-top: 10px;
  border: 1px solid #e3e9ee;
  border-radius: 16px;
  overflow: hidden;
  color: #14202b;
}
.link-card:hover {
  background: #f5f8fa;
  text-decoration: none;
}
.link-card img {
  width: 100%;
  aspect-ratio: 800/418;
  object-fit: cover;
  border-bottom: 1px solid #e3e9ee;
  background: #eef3f7;
}

.link-card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.link-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.poll {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poll-choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poll-choice {
  display: block;
  width: 100%;
  padding: 7px 12px;
  border: 1px solid #1683d8;
  border-radius: 999px;
  background: transparent;
  color: #1683d8;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}
.poll-choice:hover {
  background: #e6f3fc;
  text-decoration: none;
}

.poll-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  overflow: hidden;
}
.poll-row.winner {
  font-weight: 700;
}
.poll-row.winner .poll-bar {
  background: #bfe0f7;
}

.poll-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: #eef3f7;
  border-radius: 6px;
}

.poll-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.poll-pct {
  position: relative;
  flex: none;
}

.poll-panel {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e3e9ee;
  border-radius: 12px;
}
.poll-panel input, .poll-panel select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c9d4dc;
  border-radius: 8px;
  background: #ffffff;
  color: #14202b;
  font: inherit;
}
.poll-panel input:focus, .poll-panel select:focus {
  outline: 2px solid #1683d8;
  outline-offset: -1px;
  border-color: #1683d8;
}

.poll-length {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.poll-length select {
  flex: 1;
}

.composer:has(.poll-check:checked) .poll-panel {
  display: flex;
}

.composer:has(.poll-check:checked) .poll-toggle {
  background: #e6f3fc;
}

.profile-banner {
  aspect-ratio: 3/1;
  background: linear-gradient(120deg, #cfe6f7, #e7f0d9);
}
.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  padding: 0 16px 14px;
  border-bottom: 1px solid #e3e9ee;
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.profile-pfp {
  width: 124px;
  height: 124px;
  margin-top: -62px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  background: #eef3f7;
  cursor: zoom-in;
  flex: none;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
}

.profile-name {
  font-size: 21px;
  overflow-wrap: anywhere;
}

.handle-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.profile-bio {
  margin-top: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
}
.profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow-wrap: anywhere;
}

.profile-counts {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.profile-counts a {
  color: #5f6f7c;
}
.profile-counts strong {
  color: #14202b;
}

.user-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e3e9ee;
}

.user-row-main {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.user-row-main .name {
  display: block;
}

.user-row-bio {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.btn-follow {
  border-color: #14202b;
  background: #14202b;
  color: #fff;
}
.btn-follow:hover {
  background: #2a3a48;
}

.toggle.follow {
  display: block;
  flex: none;
}

.toggle.follow.on .btn-follow {
  background: #ffffff;
  color: #14202b;
  border-color: #c9d4dc;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #e3e9ee;
}
.stack h2 {
  font-size: 18px;
}
.stack label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}
.stack input:not([type=file]), .stack textarea {
  padding: 10px 12px;
  border: 1px solid #c9d4dc;
  border-radius: 8px;
  background: #ffffff;
  color: #14202b;
  font: inherit;
  font-weight: 400;
}
.stack input:not([type=file]):focus, .stack textarea:focus {
  outline: 2px solid #1683d8;
  outline-offset: -1px;
  border-color: #1683d8;
}
.stack input[type=file] {
  font: inherit;
  font-weight: 400;
}
.stack .btn {
  align-self: flex-start;
}
.stack .btn-wide {
  align-self: stretch;
}
.stack .small {
  font-weight: 400;
}

.captcha {
  border-radius: 8px;
  border: 1px solid #e3e9ee;
}

.btn-danger {
  border-color: #c9303e;
  background: #ffffff;
  color: #c9303e;
}
.btn-danger:hover {
  background: #c9303e;
  color: #fff;
}

.convo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e3e9ee;
  color: #14202b;
}
.convo:hover {
  background: #f5f8fa;
  text-decoration: none;
}
.convo.unread {
  background: #e6f3fc;
}

.convo-main {
  flex: 1;
  min-width: 0;
}

.convo-last {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  min-height: calc(100vh - 165px);
}

.bubble {
  align-self: flex-start;
  max-width: 75%;
}
.bubble .bubble-text {
  padding: 8px 14px;
  border-radius: 18px 18px 18px 4px;
  background: #eef3f7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.bubble .bubble-time {
  margin-top: 2px;
}
.bubble.mine {
  align-self: flex-end;
  text-align: right;
}
.bubble.mine .bubble-text {
  border-radius: 18px 18px 4px 18px;
  background: #1683d8;
  color: #fff;
  text-align: left;
}

.dm-form {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border-top: 1px solid #e3e9ee;
}
.dm-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #eef3f7;
  color: #14202b;
  font: inherit;
}
.dm-form input:focus {
  outline: 2px solid #1683d8;
}

.dm-closed {
  padding: 16px;
  text-align: center;
}

.checkers-new {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3e9ee;
}

.checkers-challenge {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 220px;
}
.checkers-challenge input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #c9d4dc;
  border-radius: 999px;
  font: inherit;
  color: #14202b;
  background: #ffffff;
}

.checkers-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e3e9ee;
  color: #14202b;
}
.checkers-row:hover {
  background: #f5f8fa;
  text-decoration: none;
}
.checkers-row.waiting {
  background: #e6f3fc;
}

.checkers-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.checkers-status {
  margin: 0;
  text-align: center;
}

.board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(100%, 520px);
  aspect-ratio: 1;
  border: 2px solid #5b7f99;
  border-radius: 6px;
  overflow: hidden;
}
.board input[type=hidden] {
  display: none;
}

.sq {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: #f3f7fa;
  border: 0;
  padding: 0;
}
.sq.dark {
  background: #8fb2cc;
}
.sq.movable {
  cursor: pointer;
}
.sq.movable:hover {
  background: #7ba3c0;
}
.sq.selected {
  background: #5f93b8;
}
.sq.target {
  cursor: pointer;
  background: #5f93b8;
}
.sq.target::after {
  content: "";
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}
.sq.target:hover {
  background: #4d84ab;
}

.piece {
  position: relative;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  box-shadow: 0 2px 3px rgba(20, 32, 43, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.22);
}
.piece.red {
  background: #c9303e;
}
.piece.black {
  background: #14202b;
}
.piece.king::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #f2c94c;
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 76px minmax(0, 600px) 330px;
  }
  .col-nav {
    padding: 8px;
    align-items: center;
  }
  .nav-inner {
    align-items: center;
  }
  .nav-label {
    display: none;
  }
  .nav-auth {
    display: none;
  }
  .auth-bar {
    display: flex;
  }
  .nav-item {
    padding: 12px;
  }
  .nav-tweet {
    width: 48px;
    height: 48px;
    padding: 0;
  }
  .nav-me .icon-btn, .nav-me .avatar-img {
    display: none;
  }
  .nav-me {
    display: block;
    padding: 0;
  }
  .nav-me .icon-btn {
    display: inline-flex;
  }
}
@media (max-width: 1000px) {
  .app {
    grid-template-columns: 76px minmax(0, 600px);
  }
  .col-side {
    display: none;
  }
}
@media (max-width: 600px) {
  .app {
    display: block;
    padding-bottom: 56px;
  }
  .col-main {
    border: 0;
  }
  .col-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    height: 56px;
    padding: 0;
    background: #ffffff;
    border-top: 1px solid #e3e9ee;
  }
  .nav-inner {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    height: 100%;
  }
  .logo, .nav-me, .nav-item[title=Bookmarks], .nav-item[title=Settings] {
    display: none;
  }
  .nav-tweet {
    position: fixed;
    right: 16px;
    bottom: 72px;
    width: 54px;
    height: 54px;
    margin: 0;
    box-shadow: 0 2px 10px rgba(20, 32, 43, 0.3);
  }
  .tweet, .notif, .composer {
    padding-inline: 12px;
  }
  .compose-quote {
    padding-left: 12px;
  }
  .profile-pfp {
    width: 88px;
    height: 88px;
    margin-top: -44px;
  }
  .dm-form {
    bottom: 56px;
  }
}
