@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  scroll-behavior: auto;
}
body {
  margin: 0;
  background: #fafbf9;
  color: #192323;
  font:
    14px/1.6 Manrope,
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #d9dfde;
  border-radius: 8px;
  background: #fff;
  color: #192323;
  padding: 10px 17px;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.35;
}
button:hover,
.button:hover {
  background: #f0f7f3;
  border-color: #a7bdb3;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: #64ddb0;
  border-color: #64ddb0;
  color: #123128;
}
.primary:hover {
  background: #51cca0;
}
.danger {
  color: #a62033;
}
.plain,
.link {
  border: 0;
  background: transparent;
}
.link {
  padding: 6px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 500;
}
.link:hover {
  text-decoration: underline;
}
.muted,
small,
.hint {
  color: #64716e;
}
small {
  font-size: 12px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -1px;
  font-weight: 750;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
p {
  margin-bottom: 16px;
}
.mint,
.ok {
  color: #147856;
}
.bad {
  color: #ad2940;
}
hr {
  border: 0;
  border-top: 1px solid #e3e8e5;
  margin: 20px 0;
}
input,
select,
textarea {
  border: 1px solid #d7dfdc;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  padding: 12px;
  width: 100%;
  min-width: 0;
}
input[type="range"] {
  padding: 0;
  accent-color: #258965;
  min-width: 80px;
}
input[type="checkbox"] {
  width: auto;
}
textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.7;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
}
label small {
  font-weight: 400;
}
input::placeholder,
textarea::placeholder {
  color: #7b8882;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #248765;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wrap {
  flex-wrap: wrap;
}
.push {
  margin-left: auto;
}
.header {
  background: #fafbf9f5;
  border-bottom: 1px solid #e0e6e2;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1600px;
  margin: auto;
  padding: 0 36px;
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: block;
  width: 220px;
  height: 60px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.header nav {
  display: flex;
  align-self: stretch;
  gap: 26px;
}
.nav {
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 3px solid transparent;
  font-weight: 500;
}
.nav.active {
  border-color: #64ddb0;
  font-weight: 750;
}
.avatar {
  border-radius: 100px;
  background: #eff2f0;
  width: 43px;
  height: 43px;
  padding: 0;
}
.workspace {
  max-width: 1600px;
  padding: 26px 36px 0;
  margin: auto;
}
.breadcrumb {
  font-size: 12px;
  color: #62716a;
  display: flex;
  gap: 20px;
  margin: 0 0 34px;
}
.editor-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  min-height: calc(100dvh - 240px);
}
.library {
  border-right: 1px solid #e0e6e2;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.library h2 {
  margin: 0;
  font-size: 18px;
}
.library .row {
  justify-content: space-between;
}
.library button {
  padding: 8px 11px;
  font-size: 12px;
}
.text-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 55vh;
  overflow: auto;
}
.text-item {
  border: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
  min-height: 78px;
  width: 100%;
  padding: 15px !important;
}
.text-item.active {
  background: #e0f5eb;
}
.text-item strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.text-item small {
  font-weight: 400;
}
.library-foot {
  margin-top: auto;
  border-top: 1px solid #e2e7e4;
  padding-top: 20px;
  font-size: 12px;
  color: #517265;
}
.document-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.document-head h1 {
  margin: 0;
}
.title-area {
  flex: 1;
  min-width: 0;
}
.title-input {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.7px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.title-area #save-status {
  font-size: 12px;
  display: block;
  margin-top: 6px;
}
.editor-panel {
  border: 1px solid #dfe5e1;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #e1e6e3;
}
.editor-toolbar button {
  font-size: 13px;
}
.editor-panel textarea {
  border: 0;
  border-radius: 0;
  padding: 32px;
  font-size: 20px;
  min-height: 390px;
  height: calc(100dvh - 360px);
  max-height: 1200px;
  outline-offset: -4px;
}
.editor-stats {
  display: flex;
  gap: 22px;
  border-top: 1px solid #e1e6e3;
  padding: 12px 24px;
  font-size: 12px;
  color: #64716e;
}
.hint {
  font-size: 12px;
  margin-top: 17px;
}
.footer {
  max-width: 1600px;
  margin: 28px auto 0;
  padding: 20px 36px;
  border-top: 1px solid #e2e7e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #64716e;
}
.footer nav {
  display: flex;
  gap: 15px;
}
.notice {
  background: #fff3d7;
  border: 1px solid #ebd293;
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.panel {
  background: white;
  border: 1px solid #e0e6e2;
  padding: 30px;
  border-radius: 10px;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.auth {
  max-width: 510px;
  padding: 60px 24px;
  margin: 0 auto;
}
.auth h1 {
  font-size: 36px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #2b7a59;
}
.setup {
  max-width: 1160px;
  margin: 0 auto;
  padding: 35px 26px;
}
.setup-intro {
  text-align: center;
  margin: 10px 0 28px;
}
.setup-intro h1 {
  font-size: 42px;
  margin-bottom: 12px;
}
.setup-intro p {
  color: #64716e;
  font-size: 17px;
}
.steps {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 0;
  margin: 0 auto 34px;
  max-width: 800px;
  gap: 15px;
}
.steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #69756e;
}
.steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #edf0ee;
  border-radius: 50%;
  font-weight: 500;
}
.steps .active {
  font-weight: 750;
  color: #192323;
}
.steps .active b {
  background: #64ddb0;
}
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr);
  gap: 24px;
}
.setup-help {
  background: #f6f8f5;
  align-self: start;
}
.setup-help h3 {
  margin: 25px 0 7px;
}
.setup-help p {
  color: #64716e;
  font-size: 13px;
}
.check-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #e5e9e6;
}
.check-row strong {
  white-space: nowrap;
  font-size: 12px;
}
#unlock-form {
  margin-top: 22px;
}
.success-mark {
  font-size: 50px;
  color: #26845f;
}
.reader-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
  position: sticky;
  top: var(--header-height, 86px);
  z-index: 15;
  padding: 12px 0;
  background: #fafbf9;
}
.reader-toolbar button {
  font-size: 13px;
}
.inline-control {
  flex-direction: row;
  align-items: center;
  font-size: 12px;
  gap: 8px;
}
.inline-control select {
  width: auto;
  padding: 10px;
}
.segments {
  display: flex;
  gap: 2px;
  border: 1px solid #e0e5e2;
  border-radius: 8px;
  padding: 3px;
  background: #f1f4f1;
}
.segments button {
  border: 0;
  background: transparent;
  min-height: 36px;
  padding: 8px 18px;
  font-size: 13px;
}
.segments button[aria-pressed="true"] {
  background: #192323;
  color: white;
}
.studio {
  overflow: hidden;
  border-radius: 12px;
  background: #192323;
  color: white;
  --read-size: 48px;
  --read-line-height: 1.65;
  --text-width: 82%;
  --camera-height: 42vh;
}
.reading-panel {
  position: relative;
}
.scroll-area {
  height: 56vh;
  min-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #60746b #192323;
}
.scroll-area:focus-visible {
  outline-offset: -4px;
}
#reading-text {
  width: var(--text-width);
  margin: auto;
  padding: 12vh 0 30vh;
  font-size: var(--read-size);
  line-height: var(--read-line-height);
  font-weight: 500;
  overflow-wrap: anywhere;
}
#reading-text p {
  margin: 0 0 1em;
}
#reading-text .spoken {
  color: #97a6a0;
}
#reading-text .current {
  color: #85efc7;
  background: #244035;
  border-radius: 5px;
}
#reading-text span {
  cursor: pointer;
}
.reading-status {
  font-size: 12px;
  padding: 17px 23px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #d1e2d9;
  border-top: 1px solid #34463d;
}
#voice-status {
  max-width: 80%;
}
.reader-settings {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 0;
  font-size: 12px;
}
.reader-settings label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.reader-settings input {
  max-width: 130px;
}
.reader-settings select {
  width: auto;
}
.reader-settings button {
  font-size: 12px;
}
#camera-panel {
  position: relative;
  height: var(--camera-height);
  min-height: 170px;
  background: #101a16;
}
#camera-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.camera-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}
.camera-actions button {
  font-size: 12px;
  background: #ffffffeb;
}
.record-clock {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ac2835;
  color: white;
  border-radius: 5px;
  padding: 6px 12px;
}
.camera-mode .scroll-area {
  height: 30vh;
  min-height: 180px;
}
.camera-mode #reading-text {
  padding-top: 35px;
  font-size: min(var(--read-size), 38px);
}
.recording {
  background: #b5283c !important;
  color: white !important;
  border-color: #b5283c !important;
}
.focus-mode .header,
.focus-mode .footer,
.focus-mode .document-head {
  display: none;
}
.focus-mode .workspace {
  max-width: none;
  padding-top: 0;
}
.focus-mode .reader-toolbar {
  top: 0;
}
.focus-mode .scroll-area {
  height: calc(100dvh - 200px);
}
.focus-mode .camera-mode .scroll-area {
  height: calc(100dvh - var(--camera-height) - 210px);
}
dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: 90dvh;
  border: 1px solid #dce4dd;
  border-radius: 12px;
  padding: 28px;
  color: #192323;
  background: #fff;
  box-shadow: 0 20px 90px #10211833;
  overflow: auto;
}
dialog::backdrop {
  background: #10201b66;
  backdrop-filter: blur(2px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}
.dialog-head h2 {
  font-size: 27px;
  margin: 0;
}
.dialog-head button {
  border: 0;
  font-size: 24px;
  padding: 0;
  min-width: 40px;
}
.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}
.dropzone {
  border: 1px dashed #b8c9be;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  background: #fafcfa;
}
.dropzone.drag {
  background: #dff7e9;
}
.upload-icon {
  font-size: 32px;
}
.tip {
  background: #e6f7ee;
  border-radius: 8px;
  padding: 18px;
  margin: 18px 0;
}
.tip p {
  font-size: 13px;
  margin: 7px 0 0;
}
#import-preview textarea {
  min-height: 220px;
}
#import-preview label {
  margin: 16px 0;
}
#paste-text {
  margin-top: 20px;
}
#import-status {
  font-size: 13px;
}
.take {
  border: 1px solid #dde4df;
  border-radius: 8px;
  padding: 18px;
  margin: 18px 0;
}
.take video,
.take audio {
  width: 100%;
  max-height: 45vh;
  margin: 12px 0;
}
.take .row {
  flex-wrap: wrap;
}
#info-content {
  white-space: pre-line;
}
#info-content button {
  display: block;
  margin-top: 20px;
}
#account-dialog textarea {
  min-height: 120px;
}
@media (min-width: 1600px) {
  .editor-panel textarea {
    height: 550px;
  }
}
@media (max-width: 1100px) {
  .editor-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }
  .library .row {
    align-items: flex-start;
    flex-direction: column;
  }
  .document-head {
    align-items: flex-start;
  }
  .document-head .primary {
    font-size: 12px;
    max-width: 200px;
  }
  .title-input {
    font-size: 23px;
  }
  .reader-toolbar {
    justify-content: flex-start;
  }
  .setup-grid {
    grid-template-columns: minmax(0, 1.6fr) 1fr;
  }
  .reader-toolbar button,
  .reader-toolbar select {
    font-size: 12px;
    padding: 8px 10px;
  }
  .header-inner {
    padding: 0 24px;
  }
  .workspace {
    padding: 24px;
  }
}
@media (max-width: 700px) {
  .header-inner {
    min-height: 68px;
    padding: 0 16px;
    gap: 12px;
  }
  .brand {
    width: 180px;
    height: 49px;
  }

  .header nav {
    gap: 4px;
  }
  .nav {
    padding: 10px;
    font-size: 12px;
  }
  .header .muted {
    font-size: 11px;
  }
  .avatar {
    min-width: 36px;
    width: 36px;
    min-height: 36px;
    height: 36px;
  }
  .workspace {
    padding: 16px 14px 0;
  }
  .breadcrumb {
    margin-bottom: 18px;
    gap: 10px;
  }
  .editor-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .library {
    border: 0;
    padding: 0;
    gap: 12px;
  }
  .library .row {
    flex-direction: row;
    align-items: center;
  }
  .text-list {
    flex-direction: row;
    max-height: none;
    overflow: auto;
    max-width: 100%;
    gap: 8px;
  }
  .text-item {
    min-width: 180px;
    max-width: 230px;
    min-height: 65px;
    padding: 10px !important;
  }
  .text-item strong {
    font-size: 12px;
  }
  .text-item small {
    font-size: 10px;
  }
  .library-foot {
    display: none;
  }
  .document-head {
    flex-wrap: wrap;
    margin-bottom: 16px;
    gap: 14px;
  }
  .title-area {
    flex-basis: 100%;
  }
  .document-head .primary {
    max-width: none;
    min-height: 44px;
    width: 100%;
  }
  .title-input {
    font-size: 25px;
  }
  .editor-toolbar {
    padding: 8px 10px;
    font-size: 12px;
  }
  .editor-toolbar .row {
    gap: 0;
  }
  .editor-toolbar button {
    padding: 8px;
    font-size: 12px;
  }
  .editor-panel textarea {
    font-size: 18px;
    padding: 20px;
    min-height: 300px;
    height: 42vh;
  }
  .editor-stats {
    font-size: 10px;
    padding: 12px;
    gap: 14px;
  }
  .footer {
    padding: 16px;
    margin-top: 20px;
    flex-direction: column;
    gap: 5px;
  }
  .footer nav {
    gap: 12px;
  }
  .reader-toolbar {
    top: var(--header-height, 68px);
    gap: 6px;
    padding: 8px 0;
  }
  .reader-toolbar #start {
    margin-left: auto;
    min-width: 95px;
  }
  .reader-toolbar button {
    min-height: 42px;
  }
  .reader-toolbar .inline-control {
    font-size: 11px;
  }
  .reader-toolbar select {
    padding: 9px 4px;
  }
  .studio {
    --read-size: 30px;
    --text-width: 88%;
    --camera-height: 36vh;
  }
  .reading-status {
    padding: 12px;
    font-size: 10px;
    align-items: center;
  }
  .reading-status #position {
    white-space: nowrap;
  }
  .reader-settings {
    gap: 12px;
  }
  .reader-settings label {
    font-size: 11px;
    gap: 6px;
  }
  .reader-settings input {
    max-width: 90px;
  }
  .reader-settings #camera-size-label {
    display: flex;
  }
  .camera-actions {
    bottom: 8px;
    right: 8px;
  }
  .camera-actions button {
    padding: 8px;
    font-size: 10px;
  }
  .setup {
    padding: 25px 16px;
  }
  .setup-intro h1 {
    font-size: 31px;
  }
  .setup-intro p {
    font-size: 14px;
  }
  .steps {
    gap: 4px;
    margin-bottom: 25px;
  }
  .steps li {
    font-size: 10px;
    gap: 8px;
  }
  .steps b {
    width: 29px;
    height: 29px;
  }
  .setup-grid {
    display: flex;
    flex-direction: column;
  }
  .panel {
    padding: 22px;
  }
  .setup-help {
    width: 100%;
  }
  .check-row {
    font-size: 12px;
    gap: 8px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .setup-grid h2 {
    font-size: 23px;
  }
  dialog {
    padding: 20px;
    width: calc(100vw - 20px);
    max-height: 94dvh;
  }
  .dialog-head h2 {
    font-size: 23px;
  }
  .dialog-actions button {
    font-size: 12px;
  }
  .focus-mode .workspace {
    padding: 0 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    scroll-behavior: auto !important;
  }
}
@media (max-width: 700px), (pointer: coarse) {
  .focus-mode #reader-language-label,
  .focus-mode #scroll-mode-label,
  :fullscreen #reader-language-label,
  :fullscreen #scroll-mode-label {
    display: none;
  }
}
/* Mobile reader: five line boxes with room to keep the current word on row two. */
@media (max-width: 700px) {
  .studio {
    --mobile-read-size: min(var(--read-size), 64px);
    --mobile-line-height: calc(var(--mobile-read-size) * var(--read-line-height));
  }
  .studio.camera-mode {
    --mobile-read-size: min(var(--read-size), 32px);
  }
  .scroll-area,
  .camera-mode .scroll-area,
  .focus-mode .scroll-area,
  .focus-mode .camera-mode .scroll-area {
    height: calc(var(--mobile-line-height) * 5);
    min-height: 0;
  }
  .studio #reading-text {
    font-size: var(--mobile-read-size);
    padding: 0 0 calc(var(--mobile-line-height) * 4);
  }
  .studio #reading-text p {
    margin-bottom: 0;
  }
  .studio #reading-text p:empty {
    display: none;
  }
  /* Vertical mirroring moves the end padding to the opposite visual edge. */
  .studio[data-reader-mirror="vertical"] #reading-text,
  .studio[data-reader-mirror="both"] #reading-text {
    padding-top: calc(var(--mobile-line-height) * 4);
    padding-bottom: 0;
  }
}
@media (max-width: 700px) {
  #reader-view .document-head {
    gap: 10px;
    margin-bottom: 8px;
  }
  #reader-view .document-head h1 {
    font-size: 23px;
    max-width: 100%;
  }
  #reader-view .document-head .segments {
    margin-left: auto;
  }
  .studio {
    --camera-height: 28vh;
  }
  .reader-toolbar {
    column-gap: 5px;
  }
  .reader-toolbar button {
    padding: 8px;
    font-size: 11px;
  }
  .reader-toolbar .inline-control {
    gap: 4px;
  }
  .reader-toolbar #start {
    min-width: 0;
  }
  .reader-settings {
    padding-top: 14px;
  }
}
:fullscreen {
  background: #fafbf9;
  padding: 12px;
  overflow: auto;
}
:fullscreen .reader-toolbar {
  top: 0;
}
/* 0.9.1: visible saving, cross-device refresh and direct access to clips. */
.save-button {
  background: #e0f5eb;
  border-color: #b8dfcc;
  color: #154e38;
  min-width: 100px;
}
.refresh-texts {
  justify-content: flex-start;
  background: transparent;
  font-size: 12px;
}
.library-status {
  font-size: 11px;
  color: #64716e;
  min-height: 18px;
  margin-top: -12px;
}
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  background: #e0f5eb;
  color: #24533b;
  font-size: 11px;
  font-weight: 750;
  border-radius: 20px;
}
.copyright a {
  color: inherit;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.auth-footer {
  justify-content: center;
  text-align: center;
}
@media (max-width: 700px) {
  .header-inner:has(#nav-takes) {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    padding-top: 10px;
  }
  .header-inner:has(#nav-takes) .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .header-inner:has(#nav-takes) #account {
    grid-column: 2;
    grid-row: 1;
  }
  .header-inner:has(#nav-takes) nav {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: space-between;
    gap: 0;
    min-width: 0;
  }
  .header-inner:has(#nav-takes) .nav {
    font-size: 11px;
    padding: 9px 6px;
    gap: 5px;
  }
  .count-badge {
    min-width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .library .refresh-texts {
    align-self: flex-start;
    padding: 8px 12px;
  }
  .library-status:empty {
    display: none;
  }
  .editor-toolbar {
    flex-wrap: wrap;
    gap: 4px;
  }
  .editor-toolbar .editor-actions {
    margin-left: auto;
    gap: 2px;
  }
  .editor-toolbar .save-button {
    min-width: 86px;
  }
  .footer .copyright {
    text-align: center;
    font-size: 11px;
  }
}

.editor-stats {
  align-items: center;
  flex-wrap: wrap;
}
.text-language {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.text-language select {
  width: auto;
  padding: 4px 24px 4px 7px;
  font-size: 12px;
  min-height: 32px;
}
@media (max-width: 700px) {
  .text-language select {
    font-size: 11px;
  }
}

/* Optional mail setup and a quiet public sign-in description. */
.smtp-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.form-stack .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
}
.checkbox-label input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.auth-product {
  color: #64716e;
  font-size: 13px;
  margin-top: 24px;
}
.auth-product a {
  color: #24533b;
  text-underline-offset: 3px;
}
/* Keep mobile browser chrome, focus zoom and scroll anchoring from moving the layout. */
.scroll-area {
  overflow-x: hidden;
  overflow-anchor: none;
}
@media (pointer: coarse), (max-width: 700px) {
  select,
  input:not([type="range"]):not([type="checkbox"]):not(.title-input),
  textarea {
    font-size: max(16px, 1em);
  }
  .text-language select,
  .reader-toolbar select,
  .reader-settings select {
    font-size: 16px;
  }
}
@supports (height: 1svh) {
  @media (max-width: 700px) {
    .workspace {
      min-height: calc(100svh - 240px);
    }
    .editor-panel textarea {
      height: 42svh;
    }
    .studio {
      --camera-height: 28svh;
    }
  }
}

.totp-secret {
  display: block;
  overflow-wrap: anywhere;
  letter-spacing: 2px;
  font-size: 17px;
  user-select: all;
  padding: 12px 0;
}
#twofactor-codes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
  font-size: 15px;
  line-height: 1.8;
}
#twofactor-dialog p {
  overflow-wrap: anywhere;
}
.account-security p {
  color: #64716e;
}

.totp-qr {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}
.totp-qr:empty {
  display: none;
}
.totp-qr svg {
  display: block;
  width: 288px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 0;
}
#twofactor-manual {
  margin-top: 16px;
}
#twofactor-manual summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
