/* Readability overrides: loaded after the theme. */
.stage {
  width: min(600px, calc(100% - 28px));
}

.topline,
.topline > span:nth-child(3) {
  font-size: 13px;
}

.topline > a {
  font-size: 12px;
}

.intro h1 {
  font-size: 24px;
}

.intro p {
  font-size: 15px;
  line-height: 1.6;
}

.task-row > span {
  font-size: 18px;
  line-height: 1.4;
}

.task-row small {
  color: #c3c9d4;
  font-size: 14px;
  line-height: 1.55;
}

.task-row small.has-did {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: #35df79;
  font-size: 11px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, filter 160ms ease;
}

.task-row small.has-did:hover {
  color: #65f29b;
  filter: brightness(1.12);
}

.task-row small.has-did:active {
  filter: brightness(.9);
}

.task-row > span {
  min-width: 0;
}

.task-row > b {
  font-size: 11px;
}

.task-row.done > b {
  font-size: 11px;
}

.task-row.done > b::after {
  display: none;
}

.task-row mark {
  padding: 2px 6px;
  border: 1px solid rgba(0, 180, 216, .35);
  border-radius: 4px;
  background: rgba(0, 180, 216, .12);
  color: #55dcf3;
  font: 700 .82em/1 "Space Mono", monospace;
}

.intro-task small {
  margin-top: 7px;
}

.intro-task input {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 6px;
  outline: none;
  background: rgba(5, 10, 25, .72);
  color: #dce2eb;
  font: 13px/1.2 "Space Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intro-task input[hidden] {
  display: none;
}

.intro-task input:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, .11);
}

.intro-task .sent-proof {
  display: block;
  padding: 7px 0 3px;
  color: #35df79;
  font: 700 12px/1.35 "Space Mono", monospace;
  text-decoration: none;
}

.intro-task .sent-proof[hidden] {
  display: none;
}

.intro-task .sent-proof:hover {
  color: #65f29b;
  text-decoration: underline;
}

.contribution-task .sent-proof {
  display: block;
  padding: 7px 0 3px;
  color: #35df79;
  font: 700 12px/1.35 "Space Mono", monospace;
  text-decoration: none;
}

.contribution-task .sent-proof[hidden] {
  display: none;
}

.contribution-task .sent-proof:hover {
  color: #65f29b;
  text-decoration: underline;
}

.intro-task .live-toggle,
.room-task .live-toggle,
.contribution-task .live-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-top: 7px;
  color: #9ba8ba;
  font: 700 10px/1.2 "Space Mono", monospace;
  cursor: pointer;
}

.intro-task .live-toggle input,
.room-task .live-toggle input,
.contribution-task .live-toggle input {
  width: auto;
  margin: 0;
  accent-color: #00b4d8;
}

.task-row .room-note {
  margin: 4px 0 0;
  color: #9ba8ba;
  font: 12px/1.5 "Space Mono", monospace;
}

.task-row .room-note code {
  color: #62ddf2;
  font: inherit;
  font-weight: 700;
}

.checklist .row-actions button,
.contribution-task .copy-template {
  font-size: 11px;
}

.contribution-task textarea,
.profile-task input {
  font-size: 13px;
}

.terminal-messages {
  font-size: 12px;
}

.profile-task small a {
  color: #35df79;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  text-decoration: none;
}

.profile-task small a:hover {
  color: #65f29b;
  text-decoration: underline;
}

.profile-task input {
  display: block;
  width: min(230px, 100%);
  height: 34px;
  margin-top: 7px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 6px;
  outline: none;
  background: rgba(5, 10, 25, .72);
  color: #dce2eb;
  font: 12px/1.2 "Space Mono", monospace;
}

.profile-fields {
  display: flex;
  gap: 6px;
}

.profile-fields[hidden] {
  display: none;
}

.profile-fields input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}

.profile-task input:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, .11);
}

.profile-task input[hidden],
.profile-task a[hidden] {
  display: none;
}

.contribution-task textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-top: 7px;
  padding: 8px 10px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 6px;
  outline: none;
  background: rgba(5, 10, 25, .72);
  color: #dce2eb;
  font: 11px/1.45 "Space Mono", monospace;
}

.contribution-task small {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.contribution-task small > span {
  display: inline;
}

.contribution-task .copy-template {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  min-width: max-content;
  height: 19px;
  min-height: 19px;
  max-height: 19px;
  margin-top: 0;
  padding: 0 5px;
  border: 1px solid rgba(0, 180, 216, .3);
  border-radius: 5px;
  background: rgba(0, 180, 216, .08);
  color: #55dcf3;
  font: 700 8px/1 "Space Mono", monospace;
  white-space: nowrap;
  cursor: pointer;
}

.contribution-task .copy-template i {
  font: normal 10px/1 sans-serif;
}

.contribution-task .copy-template:hover:not(:disabled) {
  border-color: rgba(0, 180, 216, .6);
  background: rgba(0, 180, 216, .16);
  color: #8ceafa;
}

.contribution-task .copy-template:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.contribution-task textarea:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, .11);
}

.contribution-actions {
  flex-wrap: wrap;
}

.room-terminal {
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid rgba(0, 180, 216, .25);
  border-radius: 7px;
  background: #050a14;
  box-shadow: inset 0 0 24px rgba(0, 180, 216, .04);
}

.room-terminal[hidden] {
  display: none;
}

.room-fields {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.3fr);
  gap: 6px;
  margin-top: 7px;
}

.room-fields input {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 6px;
  outline: none;
  background: rgba(5, 10, 25, .72);
  color: #dce2eb;
  font: 13px/1.2 "Space Mono", monospace;
}

.room-fields input:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, .11);
}

.room-task .sent-proof {
  display: block;
  padding-top: 7px;
  color: #35df79;
  font: 700 12px/1.35 "Space Mono", monospace;
  text-decoration: none;
}

.room-task .sent-proof[hidden] {
  display: none;
}

#ownRoomChat[hidden],
#vietnameseRoomChat[hidden] {
  display: none;
}

.chat-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}

#ownRoomComposer[hidden] {
  display: none;
}

.chat-row {
  display: grid;
  grid-template-columns: minmax(140px, 280px) 56px;
  align-items: center;
  justify-content: start;
  gap: 6px;
}

.human-chat-row {
  grid-template-columns: 110px minmax(140px, 280px) 56px;
}

.chat-box input {
  min-width: 0;
  width: 100%;
  height: 32px;
  min-height: 32px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 6px;
  outline: none;
  background: rgba(5, 10, 25, .72);
  color: #dce2eb;
  font: 13px/1.2 "Space Mono", monospace;
}

.chat-box input:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, .11);
}

.chat-box button {
  display: inline-flex!important;
  align-items: center;
  justify-content: center;
  width: 56px!important;
  min-width: 56px!important;
  height: 32px!important;
  min-height: 32px!important;
  max-height: 32px;
  box-sizing: border-box;
  padding: 0 10px;
  grid-template-columns: none;
  gap: 0;
  text-align: center;
  border: 1px solid rgba(0, 180, 216, .45);
  border-radius: 6px;
  background: rgba(0, 180, 216, .15);
  color: #62ddf2;
  font: 700 10px/1 "Space Mono", monospace;
  cursor: pointer;
}

.room-task > span {
  min-width: 0;
}

.room-task .status.show {
  width: 100%;
}

@media (max-width: 520px) {
  .room-fields {
    grid-template-columns: 1fr;
  }

  .chat-row {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .human-chat-row {
    grid-template-columns: 90px minmax(0, 1fr) 56px;
  }

  .chat-box button {
    width: 56px!important;
  }
}

.contribution-task textarea[hidden] {
  display: none;
}

.terminal-messages .own-message {
  border-left: 3px solid #35df79;
  background: rgba(53, 223, 121, .12);
}

.terminal-messages .own-message > b,
.terminal-messages .own-message > span {
  color: #65f29b;
  font-weight: 700;
}

.terminal-messages .own-message > p {
  color: #f1fff6;
  font-weight: 700;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 25px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(0, 180, 216, .17);
  color: #748096;
  font: 9px/1 "Space Mono", monospace;
}

.terminal-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35df79;
  box-shadow: 0 0 8px rgba(53, 223, 121, .65);
}

.terminal-bar b {
  margin-left: auto;
  color: #35df79;
  font-size: 8px;
}

.terminal-messages {
  height: 105px;
  overflow: auto;
  scrollbar-color: rgba(0, 180, 216, .45) transparent;
  scrollbar-width: thin;
}

.terminal-messages > div {
  display: grid;
  grid-template-columns: 42px 130px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  min-height: 21px;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, .08);
  font: 9px/1.4 "Space Mono", monospace;
}

.terminal-messages b {
  color: #00b4d8;
}

.terminal-messages span {
  overflow: hidden;
  color: #778399;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-messages p {
  margin: 0;
  color: #c8d0dc;
  white-space: normal;
  overflow-wrap: anywhere;
}

.checklist .row-actions button {
  min-width: 92px;
  height: 38px;
  min-height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.checklist .task-row.done .row-actions button,
.checklist .task-row.done .row-actions button:disabled {
  border-color: #35df79;
  background: #35df79;
  color: #07130c;
  opacity: 1;
  filter: none;
  box-shadow: 0 5px 16px rgba(53, 223, 121, .18);
}

.checklist .task-row.done .row-actions button:hover:not(:disabled) {
  border-color: #65f29b;
  background: #65f29b;
  color: #07130c;
  box-shadow: 0 7px 20px rgba(53, 223, 121, .25);
}

.modal-kicker {
  font-size: 11px;
}

.modal-card code[hidden] {
  display: none;
}

.modal-card h2 {
  font-size: 26px;
}

.modal-card p {
  font-size: 16px;
}

.modal-input {
  font-size: 15px;
}

.modal-actions button {
  font-size: 13px;
}

.modal.modal-error .modal-card {
  border-color: rgba(255, 92, 92, .72);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 92, 92, .18);
}

.modal.modal-error .modal-kicker {
  color: #ff7b7b;
}

.modal.modal-error .modal-card h2 {
  color: #fff;
  font-size: 28px;
}

.modal.modal-error .modal-card p {
  color: #f5f7fa;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.modal.modal-error .modal-actions #modalConfirm {
  border-color: #ff6868;
  background: #ff6868;
  color: #170707;
}

@media (max-width: 430px) {
  .stage {
    width: calc(100% - 14px);
  }

  .task-row > span {
    font-size: 15px;
  }

  .task-row small {
    font-size: 12px;
  }

  .task-row small.has-did {
    font-size: 10px;
  }

  .checklist .row-actions button {
    min-width: 84px;
    height: 35px;
    min-height: 35px;
    padding: 0 12px;
    font-size: 11px;
  }
}
