/* [next]/internal/font/google/geist_a71539c9.module.css [app-client] (css) */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/53b9e256198e5412-s.390ncx5urfkfu.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7178b3e590c64307-s.21jp631_3pja2.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Fallback;
  src: local(Arial);
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0.0%;
  size-adjust: 104.76%;
}

.geist_a71539c9-module__T19VSG__className {
  font-family: Geist, Geist Fallback;
  font-style: normal;
}

.geist_a71539c9-module__T19VSG__variable {
  --font-geist-sans: "Geist", "Geist Fallback";
}

/* [next]/internal/font/google/geist_mono_8d43a2aa.module.css [app-client] (css) */
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/5ce348bf30bf5439-s.31988l_ccedte.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2") format("woff2");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/797e433ab948586e-s.p.0r6juujl39pe6.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Mono Fallback;
  src: local(Arial);
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0.0%;
  size-adjust: 134.59%;
}

.geist_mono_8d43a2aa-module__8Li5zG__className {
  font-family: Geist Mono, Geist Mono Fallback;
  font-style: normal;
}

.geist_mono_8d43a2aa-module__8Li5zG__variable {
  --font-geist-mono: "Geist Mono", "Geist Mono Fallback";
}

/* [project]/src/app/globals.css [app-client] (css) */
* {
  box-sizing: border-box;
}

body {
  color: #111;
  background: #fff;
  margin: 0;
  padding: 15px 30px 30px;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

button, textarea, input {
  font: inherit;
}

button {
  cursor: pointer;
  background: #fff;
  border: 1px solid #999;
  padding: 6px 10px;
}

button:not(:disabled):hover {
  background: #eee;
}

button:disabled {
  cursor: default;
}

.page {
  width: 700px;
  max-width: 100%;
  margin: 0 auto;
}

.paywall-page {
  place-items: center;
  min-height: calc(100vh - 60px);
  display: grid;
}

.paywall-overlay {
  z-index: 100;
  background: #0000006b;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.paywall-card {
  background: #fff;
  border: 1px solid #999;
  border-radius: 12px;
  width: min(520px, 100%);
  padding: 30px;
  position: relative;
  box-shadow: 0 16px 48px #0003;
}

.paywall-close {
  border: 0;
  padding: 0 7px;
  font-size: 24px;
  position: absolute;
  top: 10px;
  right: 12px;
}

.paywall-eyebrow {
  color: #555;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.paywall-card h1 {
  margin: 0;
  font-size: 28px;
}

.paywall-description {
  color: #555;
  margin: 12px 0 22px;
  line-height: 1.5;
}

.paywall-features {
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
}

.paywall-features li {
  border-left: 4px solid #b3b6f5;
  padding-left: 18px;
}

.paywall-features strong, .paywall-features span {
  display: block;
}

.paywall-features span {
  color: #555;
  margin-top: 3px;
  line-height: 1.4;
}

.paywall-action {
  opacity: .65;
  width: 100%;
  padding: 10px 14px;
  font-weight: 700;
}

.input-controls {
  gap: 8px;
  margin: 0;
  display: flex;
}

.text-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  display: flex;
}

.workspace-mode-switch {
  flex: none;
  display: flex;
}

.workspace-mode-switch button {
  padding: 3px 9px;
  font-size: 12px;
}

.workspace-mode-switch button + button {
  border-left: 0;
}

.workspace-mode-switch .active {
  background: #ddd;
  font-weight: 700;
}

.analysis-mode-controls {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 8px 0 10px;
  display: flex;
}

.analysis-mode-switch, .word-level-switch {
  display: flex;
}

.analysis-mode-switch button, .word-level-switch button {
  padding: 4px 10px;
  font-size: 12px;
}

.analysis-mode-switch button + button, .word-level-switch button + button {
  border-left: 0;
}

.analysis-mode-switch .active, .word-level-switch .active {
  background: #ddd;
  font-weight: 700;
}

.text-view {
  border: none;
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.source-text, .highlight-layer, .selection-hit-layer {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 4;
  border: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 12px;
  font: 15px / 1.45 Arial, sans-serif;
  position: absolute;
  inset: 0;
}

.source-text {
  z-index: 2;
  -webkit-user-select: text;
  user-select: text;
  resize: none;
  color: #0000;
  caret-color: #111;
  background: none;
  outline: none;
  overflow: hidden scroll;
}

.source-text::selection {
  background: #0078d740;
}

.highlight-layer {
  z-index: 1;
  pointer-events: none;
  color: #111;
  background: #fff;
  overflow: hidden scroll;
}

.selection-hit-layer {
  z-index: 1;
  pointer-events: none;
  color: #0000;
  opacity: 0;
  background: none;
  overflow: hidden scroll;
}

.highlight-layer mark {
  color: inherit;
  pointer-events: none;
  background: #b3b6f5;
  padding: 0;
}

.highlight-layer .source-word-mark {
  background: #dedede;
}

.highlight-layer .source-user-mark {
  background: #cfe8d5;
}

.highlight-layer .source-user-overlap {
  color: #2f7d4a;
}

.found-mark {
  color: inherit;
  background: #b3b6f5;
  padding: 0;
}

.secondary-found-mark {
  background: #dedede;
}

.user-found-mark {
  background: #cfe8d5;
}

.orientation-switch {
  margin-top: 20px;
  display: flex;
}

.orientation-button + .orientation-button {
  border-left: 0;
}

.orientation-button.active {
  background: #ddd;
  font-weight: bold;
}

.global-controls {
  border-bottom: 1px solid #aaa;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
  padding-bottom: 15px;
  display: flex;
}

.global-controls label {
  cursor: pointer;
  align-items: center;
  gap: 7px;
  display: flex;
}

.export-buttons, .actions {
  gap: 6px;
  display: flex;
}

.export-dropdown {
  position: relative;
}

.export-dropdown-trigger {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 132px;
  display: inline-flex;
}

.export-dropdown-menu {
  z-index: 20;
  background: #fff;
  border: 1px solid #999;
  min-width: 132px;
  padding: 3px;
  display: grid;
  position: absolute;
  top: calc(100% + 3px);
  right: 0;
  box-shadow: 0 4px 12px #0000001f;
}

.export-dropdown-menu button {
  text-align: left;
  background: none;
  border: 0;
  padding: 6px 8px;
}

.export-dropdown-menu button:hover {
  background: #eee;
}

input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  margin: 0;
}

.status {
  color: #555;
  min-height: 20px;
  margin-bottom: 10px;
}

.row {
  align-items: flex-start;
  gap: 8px;
  display: flex;
}

.row-content {
  flex: 1;
}

.small-button {
  padding: 2px 6px;
  font-size: 12px;
}

.delete-button {
  color: #8a1111;
}

.sentence-block, .item-block {
  border: 1px solid #999;
  margin-bottom: 22px;
}

.sentence-header, .item-main-header {
  background: #eee;
  padding: 10px;
}

.item-main-header {
  font-weight: bold;
}

.sentence-items, .item-sentence-groups {
  padding: 0 10px 10px 28px;
}

.sentence-item {
  margin-top: 12px;
}

.item-header {
  font-weight: bold;
}

.meanings, .item-meaning-list {
  margin-top: 7px;
  margin-left: 25px;
}

.item-sentence-group {
  border: 1px solid #bbb;
  margin-top: 10px;
  padding: 10px;
}

.item-sentence-row {
  border-top: 1px solid #ddd;
  margin-top: 10px;
  padding-top: 8px;
}

.sentence-text, .meaning-text {
  line-height: 1.4;
}

.pair-translation + .pair-meaning {
  margin-top: 2px;
}

.sentence-text {
  font-style: italic;
  font-weight: 400;
}

.source-tooltip {
  z-index: 20;
  color: #111;
  pointer-events: auto;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 6px;
  width: min(300px, 100vw - 24px);
  max-height: min(170px, 100vh - 24px);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.3;
  position: fixed;
  overflow-y: auto;
  box-shadow: 0 6px 22px #0000002e;
}

.source-tooltip-entry + .source-tooltip-entry {
  border-top: 1px solid #ddd;
  margin-top: 7px;
  padding-top: 7px;
}

.source-tooltip-headword {
  font-size: 13px;
  font-weight: 700;
}

.source-tooltip-title-row {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  display: flex;
}

.source-tooltip-meta {
  color: #666;
  margin-top: 1px;
  font-size: 11px;
}

.source-tooltip-pos {
  text-align: right;
  flex-shrink: 0;
  margin-top: 0;
}

.source-tooltip-meanings {
  margin: 4px 0 0;
  padding-left: 17px;
}

.source-tooltip-meanings li + li {
  margin-top: 2px;
}

.user-selection-popover {
  z-index: 40;
  color: #111;
  background: #fff;
  border: 1px solid #999;
  border-radius: 8px;
  width: min(330px, 100vw - 24px);
  max-height: min(360px, 100vh - 24px);
  padding: 11px;
  font-size: 13px;
  line-height: 1.3;
  position: fixed;
  overflow: auto;
  box-shadow: 0 8px 28px #0003;
}

.popover-close {
  border: 0;
  padding: 0 5px;
  font-size: 18px;
  line-height: 1.2;
  position: absolute;
  top: 4px;
  right: 5px;
}

.popover-selection {
  margin: 0 24px 9px 0;
  font-weight: 700;
}

.popover-empty, .translation-groups {
  flex-direction: column;
  gap: 7px;
  display: flex;
}

.popover-empty button {
  align-self: flex-start;
}

.popover-error {
  color: #b00020;
}

.popover-hint {
  color: #666;
  margin-top: 4px;
  font-size: 11px;
}

.translation-group {
  border-top: 1px solid #ddd;
  padding-top: 6px;
}

.translation-headword {
  margin-bottom: 4px;
  font-weight: 700;
}

.translation-headword span, .user-item-headword span {
  color: #666;
  font-weight: 400;
}

.translation-option {
  cursor: pointer;
  align-items: flex-start;
  gap: 5px;
  margin: 3px 0;
  display: flex;
}

.user-items {
  margin-top: 20px;
}

.user-items h2, .tree-title {
  margin: 0 0 12px;
  font-size: 16px;
}

.tree-title {
  margin-top: 20px;
}

.results-title-row {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 12px;
  display: flex;
}

.results-title-row .tree-title {
  margin: 0;
}

.known-modal {
  background: #fff;
  border: 1px solid #999;
  border-radius: 10px;
  width: min(460px, 100%);
  padding: 24px;
  box-shadow: 0 16px 48px #0003;
}

.known-modal h2 {
  margin: 0 0 10px;
}

.known-modal p {
  margin: 0 0 18px;
  line-height: 1.45;
}

.known-modal-option {
  align-items: center;
  gap: 8px;
  display: flex;
}

.known-modal-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  display: flex;
}

.known-toast {
  z-index: 80;
  background: #fff;
  border: 1px solid #888;
  border-radius: 8px;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 16px;
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 24px;
  box-shadow: 0 8px 28px #0000002e;
}

.known-toast button {
  padding: 3px 7px;
  font-weight: 700;
}

.user-item-pos {
  color: #666;
  font-size: 11px;
  font-weight: 400;
}

.user-item-sentence {
  color: #555;
  border-top: 1px solid #ddd;
  margin-top: 10px;
  padding-top: 8px;
  font-style: italic;
}

.word-item-sentence {
  margin-left: 35px;
}

.word-item-meta {
  color: #666;
  font-size: 11px;
  font-weight: 400;
}

.app-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  margin-bottom: 18px;
  display: flex;
}

.brand-link {
  flex: none;
  align-items: center;
  display: inline-flex;
}

.brand-logo {
  object-fit: contain;
  width: auto;
  height: 52px;
  display: block;
}

.header-actions {
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  display: flex;
}

.main-navigation {
  align-items: center;
  gap: 18px;
  display: flex;
}

.language-switch {
  background: none;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 22px;
  padding: 2px 4px;
  line-height: 1;
  display: inline-flex;
}

.flag-icon {
  vertical-align: middle;
  border: 1px solid #aaa;
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.flag-ru {
  background: linear-gradient(#fff 0 33.333%, #1c57a7 33.333% 66.666%, #d52b1e 66.666% 100%);
}

.flag-us {
  background: repeating-linear-gradient(#b22234 0 .92px, #fff .92px 1.84px);
}

.flag-us:before {
  content: "";
  background: #3c3b6e;
  width: 8px;
  height: 6.5px;
  position: absolute;
  inset: 0 auto auto 0;
}

.main-navigation a, .trace-list a {
  color: #111;
  text-decoration: none;
}

.main-navigation a:hover, .trace-list a:hover {
  text-decoration: underline;
}

.trace-message {
  width: 100%;
  padding: 20px 0;
}

.trace-error {
  color: #b00020;
}

.trace-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trace-list-item {
  border-bottom: 1px solid #ddd;
  align-items: center;
  gap: 12px;
  display: flex;
}

.trace-list-item a {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  display: block;
}

.trace-delete-button {
  color: #b42318;
  background: #fff;
  border-color: #e1aaa5;
  border-radius: 7px;
  flex: none;
  padding: 5px 9px;
  font-size: 12px;
}

.trace-delete-button:not(:disabled):hover {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
}

.trace-delete-button:disabled {
  opacity: .55;
}

.trace-list-meta {
  color: #666;
  margin-top: 4px;
  font-size: 13px;
}

.profile-section {
  border-top: 1px solid #ccc;
  margin-top: 24px;
  padding-top: 18px;
}

.profile-section h2 {
  margin: 0 0 16px;
  font-size: 19px;
}

.profile-form {
  grid-template-columns: 1fr;
  gap: 8px;
  width: min(100%, 320px);
  margin-top: 14px;
  display: grid;
}

.profile-form label {
  gap: 5px;
  display: grid;
}

.profile-email {
  align-content: start;
  gap: 5px;
  display: grid;
}

.profile-form input {
  border: 1px solid #999;
  width: 100%;
  padding: 5px 7px;
}

.profile-error, .profile-success {
  margin-top: 10px;
}

.profile-form-actions {
  gap: 8px;
  margin-top: 4px;
  display: flex;
}

.change-password-button {
  margin-top: 14px;
  display: block;
}

.profile-plan-content {
  justify-items: start;
  gap: 8px;
  max-width: 520px;
  display: grid;
}

.profile-plan-description {
  color: #666;
  margin-top: 3px;
  font-size: 12px;
}

.profile-error {
  color: #a00018;
}

.profile-success {
  color: #2f7d4a;
}

.known-trace-group + .known-trace-group {
  margin-top: 20px;
}

.known-trace-group h3 {
  margin: 0;
  font-size: 16px;
}

.known-trace-group h3 a {
  color: inherit;
}

.known-trace-date, .known-item-list time {
  color: #666;
  font-size: 12px;
}

.known-trace-date {
  margin-top: 3px;
}

.known-item-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.known-item-list li {
  border-bottom: 1px solid #e2e2e2;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  display: flex;
}

@media (max-width: 600px) {
  .brand-logo {
    height: 42px;
  }

  .main-navigation {
    gap: 12px;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .text-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

:root {
  --ink: #17172d;
  --muted: #707187;
  --line: #e2e3ef;
  --line-strong: #d4d5e6;
  --surface: #fff;
  --surface-soft: #fafaff;
  --accent: #5d50d8;
  --accent-dark: #493ec2;
  --accent-soft: #f1efff;
  --highlight: #d8d3ff;
  --shadow: 0 12px 34px #342d7814;
}

body {
  color: var(--ink);
  background: radial-gradient(circle at 75% 0, #eceaff73, #0000 30%), #fdfdff;
  padding: 0 32px 48px;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 14px;
}

button, input, textarea {
  font-family: inherit;
}

button {
  border: 1px solid var(--line-strong);
  min-height: 34px;
  color: var(--ink);
  background: var(--surface);
  border-radius: 9px;
  padding: 7px 13px;
  transition: border-color .14s, background .14s, color .14s, box-shadow .14s, transform .14s;
}

button:not(:disabled):hover {
  background: #f8f7ff;
  border-color: #b9b5ee;
}

button:not(:disabled):active {
  transform: translateY(1px);
}

button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #5d50d833;
}

.primary-button {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(135deg, #6759e6, #5548d0);
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: inline-flex;
  box-shadow: 0 6px 16px #5548d02e;
}

.primary-button:not(:disabled):hover {
  border-color: var(--accent-dark);
  color: #fff;
  background: linear-gradient(135deg, #5c4edb, #493ec2);
}

.primary-button:disabled {
  color: #fff;
  opacity: .72;
  background: #aaa5df;
  border-color: #c9c7e7;
}

.app-header {
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 102px;
  margin-bottom: 30px;
  display: grid;
  position: relative;
}

.app-header:after {
  content: "";
  background: var(--line);
  width: 100vw;
  height: 1px;
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
}

.main-navigation {
  align-self: stretch;
  gap: 38px;
}

.main-navigation a {
  color: var(--ink);
  white-space: nowrap;
  align-items: center;
  padding: 0 4px;
  font-size: 15px;
  display: inline-flex;
  position: relative;
}

.main-navigation a:hover {
  color: var(--accent);
  text-decoration: none;
}

.main-navigation a.active {
  color: var(--accent);
  font-weight: 600;
}

.main-navigation a.active:after {
  content: "";
  background: var(--accent);
  border-radius: 2px;
  height: 2px;
  position: absolute;
  bottom: 21px;
  left: 0;
  right: 0;
}

.language-dropdown {
  justify-self: end;
  position: relative;
}

.language-dropdown-trigger {
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-width: 50px;
  padding: 6px 9px;
  display: inline-flex;
}

.dropdown-caret {
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.language-dropdown-menu {
  z-index: 70;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 142px;
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 5px;
  display: grid;
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
}

.language-dropdown-menu button {
  text-align: left;
  border: 0;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  display: flex;
}

.language-dropdown-menu button.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.flag-icon {
  border-color: #c7c8d3;
  border-radius: 1px;
  width: 20px;
  height: 13px;
}

.text-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 0 18px;
  display: flex;
}

.input-controls, .analysis-mode-controls {
  gap: 9px;
}

.analysis-mode-controls {
  flex-wrap: nowrap;
  margin: 0;
  display: flex;
}

.analysis-mode-switch, .word-level-switch, .orientation-switch, .workspace-mode-switch {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}

.analysis-mode-switch button, .word-level-switch button, .orientation-switch button, .workspace-mode-switch button {
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 13px;
}

.analysis-mode-switch button + button, .word-level-switch button + button, .orientation-button + .orientation-button, .workspace-mode-switch button + button {
  border-left: 1px solid var(--line);
}

.analysis-mode-switch .active, .word-level-switch .active, .orientation-button.active, .workspace-mode-switch .active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.text-view {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 12px;
  height: 455px;
  box-shadow: 0 5px 20px #211e540a;
}

.source-text, .highlight-layer, .selection-hit-layer {
  border-radius: 12px;
  padding: 28px 30px;
  font: 16px / 1.75 Inter, Segoe UI, Arial, sans-serif;
}

.highlight-layer mark, .found-mark {
  background: var(--highlight);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 5px;
  padding: 2px 4px;
}

.highlight-layer .source-word-mark, .secondary-found-mark {
  background: #ececf3;
}

.highlight-layer .source-user-mark, .user-found-mark {
  background: #dff2e5;
}

.source-text, .highlight-layer, .selection-hit-layer {
  scrollbar-color: #9797a1 #ededf2;
  scrollbar-width: thin;
}

.text-view-footer {
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 9px;
  display: flex;
}

.compact-save-button {
  min-height: 32px;
  padding: 5px 13px;
}

.orientation-switch {
  width: fit-content;
  margin-top: 18px;
}

.global-controls {
  border-color: var(--line);
  margin: 24px 0;
  padding: 0 0 18px;
}

.global-controls label {
  color: #55566c;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.export-buttons {
  align-items: center;
  gap: 10px;
}

.export-dropdown-trigger {
  min-width: 150px;
}

.export-dropdown-menu {
  border-color: var(--line);
  min-width: 150px;
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 5px;
  overflow: hidden;
}

.export-action {
  min-width: 165px;
}

.user-items h2, .tree-title {
  color: var(--ink);
  letter-spacing: -.02em;
  font-size: 22px;
}

.results-title-row button {
  color: var(--accent);
  border-color: #cecafa;
}

.sentence-block, .item-block {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px #211e5408;
}

.sentence-header, .item-main-header {
  background: var(--surface-soft);
  align-items: center;
  min-height: 64px;
  padding: 16px 22px;
}

.sentence-item {
  margin-top: 0;
  padding: 12px 0;
  position: relative;
}

.sentence-item + .sentence-item {
  border-top: 1px solid #eeeef5;
}

.item-header {
  align-items: center;
  font-size: 15px;
}

.meaning-row {
  align-items: flex-start;
  margin: 8px 0;
}

.item-sentence-group {
  border: 0;
  margin: 0;
  padding: 12px 0;
}

.item-sentence-group + .item-sentence-group {
  border-top: 1px solid var(--line);
}

.item-sentence-row {
  border-color: var(--line);
}

.user-tree .user-item {
  padding: 0;
}

.user-item-sentence {
  border-color: var(--line);
}

.word-item-meta, .user-item-pos {
  color: var(--muted);
  font-size: 11px;
}

.collapsible-tree-card > summary {
  cursor: pointer;
  list-style: none;
}

.collapsible-tree-card > summary::-webkit-details-marker {
  display: none;
}

.tree-chevron {
  border-bottom: 1.5px solid #74768a;
  border-right: 1.5px solid #74768a;
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0 4px;
  transition: transform .15s;
  display: inline-block;
  transform: rotate(45deg);
}

.collapsible-tree-card:not([open]) .tree-chevron {
  transform: rotate(-45deg);
}

.tree-collapse-button {
  background: none;
  border: 0;
  min-width: 30px;
  min-height: 30px;
  padding: 7px;
}

.tree-collapse-button .tree-chevron {
  transform: rotate(225deg);
}

.sentence-block.collapsed > :not(:first-child), .item-block.collapsed > :not(:first-child) {
  display: none;
}

.sentence-block.collapsed .tree-collapse-button .tree-chevron, .item-block.collapsed .tree-collapse-button .tree-chevron {
  transform: rotate(45deg);
}

.source-tooltip, .user-selection-popover {
  border-color: var(--line-strong);
  background: #fffffffa;
  border-radius: 10px;
  box-shadow: 0 14px 38px #211e5429;
}

.source-tooltip {
  padding: 11px 13px;
}

.user-selection-popover {
  padding: 15px;
}

.popover-close {
  border-radius: 6px;
  min-height: 24px;
}

.translation-group {
  border-color: var(--line);
}

.known-modal, .paywall-card {
  border-color: var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 24px 70px #1c184e38;
}

.paywall-overlay {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #16142b7a;
}

.paywall-page {
  min-height: auto;
  display: block;
}

.paywall-page > .paywall-card {
  margin: 48px auto 0;
}

.paywall-card {
  width: min(600px, 100%);
  padding: 34px;
}

.paywall-eyebrow {
  color: var(--accent);
}

.paywall-features li {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-left: 3px solid #968cf1;
  border-radius: 9px;
  padding: 14px 16px;
}

.paywall-action {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.profile-section {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  margin-top: 18px;
  padding: 22px 24px;
  box-shadow: 0 4px 18px #211e5408;
}

.profile-section h2 {
  font-size: 17px;
}

.profile-plan-content {
  gap: 10px;
}

.profile-form input {
  border-color: var(--line-strong);
  border-radius: 8px;
  min-height: 36px;
}

.trace-list {
  gap: 10px;
  display: grid;
}

.trace-list-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 4px 16px #211e5408;
}

.trace-list-item a {
  padding: 16px 18px;
}

.trace-list-item:hover {
  border-color: #c9c5f2;
}

.trace-list-meta, .known-trace-date, .known-item-list time {
  color: var(--muted);
}

.known-trace-group {
  padding: 14px 0;
}

.known-trace-group + .known-trace-group {
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.known-item-list li {
  border-color: var(--line);
}

@media (max-width: 860px) {
  body {
    padding: 0 18px 36px;
  }

  .app-header {
    grid-template-columns: 1fr auto;
    min-height: 88px;
  }

  .main-navigation {
    grid-area: 2 / 1 / auto / -1;
    justify-content: center;
    min-height: 42px;
  }

  .main-navigation a.active:after {
    bottom: 3px;
  }

  .brand-logo {
    height: 56px;
  }

  .text-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .analysis-mode-controls {
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  body {
    padding-inline: 12px;
  }

  .app-header {
    gap: 12px;
  }

  .main-navigation {
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }

  .input-controls, .analysis-mode-controls, .global-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .input-controls button {
    flex: 1;
  }

  .analysis-mode-switch, .word-level-switch, .orientation-switch, .workspace-mode-switch {
    width: 100%;
  }

  .analysis-mode-switch button, .word-level-switch button, .orientation-switch button, .workspace-mode-switch button {
    flex: 1;
  }

  .text-view {
    height: 390px;
  }

  .source-text, .highlight-layer, .selection-hit-layer {
    padding: 20px 18px;
    font-size: 15px;
  }

  .global-controls {
    gap: 14px;
  }

  .export-buttons {
    width: 100%;
  }

  .export-dropdown, .export-dropdown-trigger, .export-action {
    flex: 1;
    width: 100%;
  }

  .sentence-items, .item-sentence-groups, .tree-card-body {
    padding-left: 22px;
  }

  .profile-section {
    padding: 18px;
  }
}

body {
  background: #fff;
}

.page {
  width: 700px;
  max-width: 100%;
}

.app-header {
  min-height: 86px;
  margin-bottom: 18px;
}

.main-navigation {
  align-items: stretch;
}

.main-navigation a {
  align-self: stretch;
}

.main-navigation a.active:after {
  bottom: 0;
}

.language-dropdown-trigger {
  align-items: center;
}

.language-dropdown-trigger .dropdown-caret {
  align-self: center;
  align-items: center;
  line-height: 1;
  display: inline-flex;
  transform: none;
}

.text-toolbar {
  gap: 14px;
  margin-bottom: 12px;
}

.text-view {
  height: 375px;
  box-shadow: none;
  background: #fafaff;
}

.source-text, .highlight-layer, .selection-hit-layer {
  padding: 18px 20px;
  font: 15px / 1.55 Inter, Segoe UI, Arial, sans-serif;
}

.highlight-layer {
  background: #fafaff;
}

.highlight-layer mark, .found-mark {
  border-radius: 3px;
  padding: 0;
}

.text-view-footer {
  min-height: 34px;
  margin-top: 5px;
}

.orientation-switch {
  margin-top: 10px;
}

.global-controls {
  margin: 14px 0;
  padding-bottom: 12px;
}

.user-items h2, .tree-title {
  font-size: 19px;
}

.sentence-block, .item-block {
  box-shadow: none;
  border-radius: 8px;
  margin-bottom: 10px;
}

.sentence-item {
  padding: 7px 0;
}

.item-header {
  font-size: 14px;
}

.meanings, .item-meaning-list {
  margin: 5px 0 0 27px;
}

.meaning-row {
  margin: 4px 0;
}

.item-sentence-group {
  padding: 7px 0;
}

input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.tree-collapse-button {
  min-width: 24px;
  min-height: 24px;
  padding: 5px;
}

.sentence-item .actions, .item-sentence-row .actions {
  align-self: center;
}

.sentence-item .actions .small-button, .item-sentence-row .actions .small-button, .item-main-header .actions .small-button {
  min-height: 30px;
  color: var(--accent);
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
}

.sentence-item .actions .small-button:before, .item-sentence-row .actions .small-button:before, .item-main-header .actions .small-button:before {
  content: "✦";
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 600px) {
  .source-text, .highlight-layer, .selection-hit-layer {
    padding: 16px;
  }
}

.page {
  width: 960px;
}

button {
  min-height: 32px;
  padding-block: 6px;
}

.app-header {
  grid-template-columns: auto 1fr;
  gap: 14px;
  min-height: 43px;
  margin-bottom: 14px;
}

.brand-logo {
  width: auto;
  height: 36px;
  display: block;
}

.brand-link {
  align-self: center;
}

.main-navigation {
  justify-content: flex-end;
  place-self: stretch end;
  gap: 14px;
  margin-right: 35px;
}

.main-navigation a {
  padding-inline: 2px;
  font-size: 13px;
}

.language-dropdown {
  position: absolute;
  top: 2px;
  right: 0;
}

.language-dropdown-trigger {
  border-radius: 5px;
  gap: 2px;
  min-width: 22px;
  min-height: 20px;
  padding: 2px 3px;
}

.language-dropdown-menu {
  top: calc(100% + 4px);
}

.input-controls button, .analysis-mode-switch button, .word-level-switch button, .orientation-switch button, .workspace-mode-switch button {
  min-height: 30px;
  padding: 5px 10px;
}

.source-action {
  justify-content: center;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.button-icon {
  color: #65677a;
  justify-content: center;
  align-items: center;
  width: 15px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
}

.text-view {
  width: 100%;
}

.source-text, .highlight-layer, .selection-hit-layer {
  line-height: 1.78;
}

.text-view-footer {
  justify-content: space-between;
}

.compact-save-button {
  order: 0;
}

.workspace-mode-switch {
  order: 1;
}

.results-title-row {
  margin: 14px 0 8px;
}

.results-controls-row {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  display: flex;
}

.results-controls-row .orientation-switch {
  margin: 0;
}

.mark-known-button {
  text-align: center;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.sentence-header, .item-main-header {
  min-height: 42px;
  padding: 9px 13px;
}

.sentence-items, .item-sentence-groups, .tree-card-body {
  padding: 9px 13px 9px 38px;
}

.sentence-item, .item-sentence-group {
  padding-top: 0;
  padding-bottom: 0;
}

.sentence-item + .sentence-item, .item-sentence-group + .item-sentence-group {
  margin-top: 8px;
  padding-top: 8px;
}

.row > input[type="checkbox"], .sentence-header > input[type="checkbox"], .item-main-header > input[type="checkbox"], summary > input[type="checkbox"] {
  flex: none;
  align-self: center;
  margin: 0;
}

.item-header, .item-sentence-row, .meaning-row {
  align-items: center;
}

@media (max-width: 860px) {
  .app-header {
    grid-template-columns: auto 1fr;
    min-height: 50px;
  }

  .main-navigation {
    grid-area: auto;
    justify-content: flex-end;
    min-height: 0;
    margin-right: 35px;
  }

  .brand-logo {
    height: 36px;
  }
}

.button-icon {
  height: 15px;
}

.app-header {
  min-height: 65px;
}

.brand-logo {
  height: 54px;
}

.main-navigation {
  place-self: end;
  margin-right: 0;
  padding-bottom: 8px;
}

.language-dropdown {
  top: 0;
  right: 0;
}

.language-dropdown-trigger {
  background: none;
  border: 0;
  min-width: auto;
  min-height: auto;
  padding: 2px;
}

.language-dropdown-trigger:not(:disabled):hover {
  background: none;
  border-color: #0000;
}

.language-dropdown-trigger .flag-icon {
  width: 20px;
  height: 13px;
}

.language-dropdown-trigger .dropdown-caret {
  font-size: 13px;
}

.language-dropdown-menu {
  border-radius: 7px;
  min-width: 104px;
  padding: 3px;
  font-size: 11px;
}

.language-dropdown-menu button {
  gap: 6px;
  min-height: 24px;
  padding: 4px 6px;
  font-size: 11px;
}

.language-dropdown-menu .flag-icon {
  width: 15px;
  height: 10px;
}

.text-view-footer {
  justify-content: flex-end;
  gap: 7px;
}

.selected-actions-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  gap: 8px;
  width: fit-content;
  margin: 10px 0 12px;
  padding: 10px 12px;
  display: grid;
}

.selected-actions-row {
  align-items: center;
  gap: 10px;
  display: flex;
}

.selected-actions-row .export-buttons {
  gap: 7px;
}

.export-action {
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.export-icon {
  color: currentColor;
}

.global-controls {
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px;
  padding-bottom: 8px;
}

.global-controls .orientation-switch {
  margin: 0;
}

.user-tree {
  margin-bottom: 10px;
}

.user-tree .sentence-block, .user-tree .item-block {
  border-color: #acd6b7;
}

.user-tree .sentence-header, .user-tree .item-header {
  background: #e9f6ed;
}

.user-tree .sentence-item + .sentence-item, .user-tree .item-sentence-group + .item-sentence-group, .user-tree .user-item-sentence {
  border-color: #cce5d3;
}

@media (max-width: 860px) {
  .app-header {
    min-height: 65px;
  }

  .brand-logo {
    height: 54px;
  }

  .main-navigation {
    margin-right: 0;
    padding-bottom: 8px;
  }
}

@media (max-width: 600px) {
  .selected-actions-panel {
    width: 100%;
  }

  .selected-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.below-text-controls {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 6px;
  display: flex;
}

.below-text-controls .selected-actions-panel {
  margin: 0;
}

.below-text-controls .text-view-footer {
  flex: none;
  min-height: 0;
  margin: 0;
}

.selected-actions-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.global-controls {
  border: 0;
  margin: 0;
  padding: 0;
}

.user-items, .user-tree, #results {
  margin-top: 0;
}

@media (max-width: 600px) {
  .below-text-controls {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .below-text-controls .text-view-footer {
    align-self: flex-end;
  }
}

.below-text-controls .text-view-footer {
  align-items: flex-start;
}

.below-text-controls .compact-save-button {
  margin-top: 38px;
}

.language-dropdown {
  top: 6px;
}

.below-text-controls {
  align-items: start;
  justify-content: initial;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  display: grid;
}

.below-text-controls .workspace-mode-switch {
  grid-area: 1 / 2;
  justify-self: end;
}

.below-text-controls .compact-save-button {
  grid-area: 2 / 2;
  justify-self: end;
  margin: 0;
}

.selected-actions-panel {
  grid-area: 1 / 1;
}

.selected-actions-row {
  gap: 8px;
  width: fit-content;
  display: grid;
}

.selected-actions-row .mark-known-button {
  justify-self: start;
}

.selected-actions-row .export-buttons {
  justify-self: start;
  width: auto;
}

@media (max-width: 600px) {
  .below-text-controls {
    flex-direction: column;
    align-items: stretch;
    display: flex;
  }

  .below-text-controls .text-view-footer {
    align-self: flex-end;
    display: flex;
  }

  .below-text-controls .compact-save-button {
    margin: 0;
  }
}

.global-controls {
  padding-bottom: 8px;
}

.global-controls {
  min-height: 40px;
  margin: 8px 0;
  padding: 0;
}

.global-controls label {
  min-height: 32px;
  line-height: 1;
}

.global-controls label > input[type="checkbox"] {
  align-self: center;
  margin: 0;
}

.below-text-controls {
  margin-top: 12px;
}

.global-controls {
  align-items: flex-end;
}

.global-controls label {
  align-self: flex-end;
  height: auto;
  min-height: 0;
  line-height: normal;
}

.below-text-controls .text-view-footer {
  flex-direction: column;
  grid-area: 1 / 2;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 6px;
  display: flex;
}

.below-text-controls .workspace-mode-switch, .below-text-controls .compact-save-button {
  grid-area: auto;
  justify-self: auto;
}

.below-text-controls .compact-save-button {
  order: 2;
}

.below-text-controls .workspace-mode-switch {
  order: 1;
}

.user-tree .item-main-header {
  background: #e9f6ed;
}

.user-tree .item-sentence-row {
  border-color: #cce5d3;
}

.user-tree .item-header {
  background: none;
}

.ai-check-valid {
  color: #17804a;
}

.ai-check-invalid {
  color: #b42318;
}

.text-counter {
  text-align: right;
  color: #666;
  margin-top: 4px;
  font-size: 12px;
}

.ai-check-comment-link {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: .85rem;
  text-decoration: underline;
}

.ai-check-comment-link.ai-check-valid {
  color: #17804a;
}

.ai-check-comment-link.ai-check-invalid {
  color: #b42318;
}

.ai-check-modal {
  background: #fff;
  border: 1px solid #d9d6f5;
  border-radius: 14px;
  width: min(460px, 100vw - 32px);
  padding: 22px;
  box-shadow: 0 18px 55px #19193733;
}

.ai-check-modal h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.ai-check-modal p {
  margin: 0 0 18px;
  line-height: 1.45;
}

.ai-check-modal button {
  margin-left: auto;
  display: block;
}

.ai-check-comment-control {
  display: inline-block;
  position: relative;
}

.ai-check-tooltip {
  z-index: 20;
  color: #303041;
  text-align: left;
  background: #fff;
  border: 1px solid #d9d6f5;
  border-radius: 10px;
  width: min(330px, 72vw);
  padding: 12px 30px 12px 13px;
  font-size: .82rem;
  line-height: 1.35;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  box-shadow: 0 10px 28px #19193729;
}

.ai-check-tooltip-close {
  color: #777;
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 1.1rem;
  line-height: 1;
  position: absolute;
  top: 5px;
  right: 7px;
}

.counter-row {
  justify-content: space-between;
  align-items: center;
  min-height: 18px;
  margin-top: 4px;
  display: flex;
}

.input-character-counter {
  color: #666;
  font-size: 12px;
}

.below-text-controls .selected-actions-panel {
  width: 100%;
}

.selected-actions-row {
  align-items: center;
  width: 100%;
  display: flex;
}

.selected-actions-row .export-buttons {
  margin-left: 8px;
  display: flex;
}

.below-text-controls .text-view-footer {
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.below-text-controls .compact-save-button, .below-text-controls .workspace-mode-switch {
  transform-origin: 100%;
  transform: scale(.78);
}

.counter-row .admin-counter-controls {
  align-items: center;
  gap: 2px;
  margin-left: auto;
  display: flex;
}

.counter-row .workspace-mode-switch {
  transform: none;
}

.counter-row .compact-save-button {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 12px;
  transform: none;
}

.counter-row .workspace-mode-switch button {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 12px;
}

.counter-row .text-counter {
  margin: 0 0 0 6px;
}

.main-navigation a.active:after {
  display: none;
}

.sentence-block, .item-block {
  overflow: visible;
}

.ai-check-comment-control {
  z-index: 2;
}

.selected-actions-panel {
  grid-column: 1 / -1;
}

.below-text-controls .text-view-footer {
  display: none;
}

.counter-row .admin-counter-controls {
  width: fit-content;
}

.counter-row .workspace-mode-switch {
  transform-origin: 100%;
  width: fit-content;
  transform: scale(.78);
}

main.page {
  width: 960px;
}

.counter-row .compact-save-button {
  transform-origin: 100%;
  transform: scale(.78);
}

.user-text-consent {
  cursor: pointer;
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.user-text-consent input {
  flex: none;
  margin-top: 3px;
}

.user-text-consent strong, .user-text-consent small {
  display: block;
}

.user-text-consent small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}

.dictionary-item-static {
  padding: 16px 18px;
}

.traces-page, .profile-page, .dictionary-page {
  width: 960px;
  max-width: 100%;
}

.traces-page .trace-list, .profile-page .profile-section, .dictionary-page .trace-list {
  box-sizing: border-box;
  width: 100%;
}

.workspace-page {
  width: 960px;
  max-width: 100%;
}

html {
  scrollbar-gutter: stable;
}

.text-toolbar .input-controls {
  align-items: flex-end;
}

.text-import-group {
  gap: 4px;
  display: grid;
}

.text-import-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.text-import-actions {
  gap: 6px;
  display: flex;
}

.youtube-import-button {
  justify-content: center;
  align-items: center;
  min-width: 112px;
  padding-inline: 9px;
  display: inline-flex;
}

.text-import-group {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  gap: 8px;
  width: fit-content;
  margin: 0;
  padding: 10px 12px;
  display: grid;
}

.text-import-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.text-import-actions {
  gap: 7px;
}

.youtube-import-button {
  min-width: 0;
  min-height: 30px;
  padding: 5px 10px;
}

.text-toolbar .input-controls {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  width: 100%;
  display: grid;
}

.text-toolbar .text-import-group {
  width: 100%;
  margin: 0;
}

.text-toolbar .text-import-actions {
  width: 100%;
  display: flex;
}

.youtube-import-button {
  width: 32px;
  min-width: 32px;
  padding: 5px;
}

.youtube-import-button svg {
  width: 20px;
  height: 20px;
}

.text-toolbar .input-controls {
  grid-template-columns: minmax(0, 1fr) auto;
}

.youtube-import-button {
  gap: 5px;
  width: auto;
  min-width: 0;
  padding-inline: 9px;
  font-weight: 400;
}

.youtube-import-button span {
  font-weight: 400;
}

.text-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  display: grid;
}

.text-toolbar .input-controls {
  grid-column: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  width: 100%;
  min-width: 0;
  display: grid;
}

.text-toolbar .text-import-group {
  grid-column: auto;
}

.text-toolbar .analysis-mode-controls {
  grid-column: 2;
  align-self: end;
  margin: 0;
}

@media (max-width: 600px) {
  .text-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .text-toolbar .analysis-mode-controls {
    grid-column: 1;
  }
}

.text-toolbar .youtube-import-button {
  flex: 0 0 128px;
  width: 128px;
  min-width: 128px;
  min-height: 30px;
  padding: 5px 10px;
}

.text-toolbar .youtube-import-button svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.text-toolbar .input-controls {
  grid-template-columns: max-content max-content;
  justify-self: start;
  width: fit-content;
}

.text-toolbar .text-import-group {
  width: fit-content;
}

.text-toolbar .youtube-import-button {
  flex: none;
  width: auto;
  min-width: 0;
  padding-inline: 10px;
}

.selected-actions-panel, .text-toolbar .text-import-group, .below-text-controls .selected-actions-panel {
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.text-toolbar, .text-toolbar .input-controls, .text-toolbar .analysis-mode-controls {
  align-items: end;
}

.text-toolbar .text-import-group, .below-text-controls .selected-actions-panel {
  justify-self: start;
}

.text-toolbar .selected-actions-title, .text-toolbar .selected-actions-row, .below-text-controls .selected-actions-title, .below-text-controls .selected-actions-row {
  margin-left: 0;
}

.youtube-import-control {
  display: inline-flex;
  position: relative;
}

.youtube-coming-soon-tooltip {
  z-index: 30;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  background: #303041;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
}

.youtube-import-control:hover .youtube-coming-soon-tooltip, .youtube-import-control:focus-within .youtube-coming-soon-tooltip {
  opacity: 1;
}

.analysis-mode-controls {
  align-items: end;
}

.analysis-control-group {
  gap: 8px;
  display: grid;
}

.analysis-control-group .selected-actions-title {
  justify-self: start;
}

.analysis-control-group .analysis-mode-switch, .analysis-control-group .word-level-switch {
  align-self: end;
}

.text-toolbar .youtube-import-button:disabled {
  color: #9a9aa5;
  box-shadow: none;
  opacity: .55;
  cursor: not-allowed;
  background: #f3f3f6;
  border-color: #d8d8df;
}

.text-toolbar .youtube-import-button:disabled svg {
  filter: grayscale();
}

.word-level-switch.is-disabled {
  background: #f4f4f6;
  border-color: #dedee5;
}

.word-level-switch.is-disabled button {
  color: #aaaab3;
  opacity: .55;
  cursor: not-allowed;
  background: #f4f4f6;
}

.word-level-switch {
  overflow: visible;
}

.frequency-level-control {
  display: inline-flex;
  position: relative;
}

.frequency-level-control + .frequency-level-control {
  border-left: 1px solid var(--line);
}

.frequency-level-control button {
  height: 100%;
}

.frequency-level-tooltip {
  z-index: 40;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: #303041;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
}

.frequency-level-control:hover .frequency-level-tooltip, .frequency-level-control:focus-within .frequency-level-tooltip {
  visibility: visible;
  opacity: 1;
}

.analysis-button-loader, .text-analysis-loader {
  border: 2px solid;
  border-right-color: #0000;
  border-radius: 50%;
  animation: .7s linear infinite phrasetrace-analysis-spin;
  display: inline-block;
}

.analysis-button-loader {
  width: 14px;
  height: 14px;
}

.text-analysis-loading-overlay {
  z-index: 6;
  pointer-events: all;
  background: #fafaffb8;
  border-radius: 12px;
  place-items: center;
  display: grid;
  position: absolute;
  inset: 0;
}

.text-analysis-loading-content {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffffeb;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  font-size: 13px;
  display: inline-flex;
  box-shadow: 0 6px 18px #211e541a;
}

.text-analysis-loader {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

@keyframes phrasetrace-analysis-spin {
  to {
    transform: rotate(360deg);
  }
}

.frequency-level-control:first-child button {
  border-radius: 9px 0 0 9px;
}

.frequency-level-control:last-child button {
  border-radius: 0 9px 9px 0;
}

.analysis-mode-switch button, .word-level-switch button {
  transition: none;
}

.word-level-switch {
  position: relative;
}

.word-level-switch.is-disabled {
  border-color: var(--line-strong);
  background: var(--surface);
}

.word-level-switch.is-disabled button {
  color: var(--muted);
  opacity: 1;
  background: none;
}

.word-level-switch.is-disabled .active {
  color: var(--accent);
  background: var(--accent-soft);
}

.word-level-switch:after {
  content: "";
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: #f4f4f6ad;
  transition: none;
  position: absolute;
  inset: 0;
}

.word-level-switch.is-disabled:after {
  opacity: 1;
}

.word-level-switch .frequency-level-tooltip {
  z-index: 40;
}

.account-delete-section {
  justify-items: start;
  gap: 12px;
  display: grid;
}

.account-delete-section h2 {
  margin: 0;
}

.account-delete-button, .account-delete-confirm-button {
  color: #b42318;
  background: #fff;
  border-color: #d92d20;
}

.account-delete-button:not(:disabled):hover, .account-delete-confirm-button:not(:disabled):hover {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
}

.account-delete-modal {
  background: #fff;
  border: 1px solid #f1b4ae;
  border-radius: 12px;
  width: min(470px, 100%);
  padding: 24px;
  box-shadow: 0 18px 55px #19193733;
}

.account-delete-modal h2 {
  margin: 0 0 12px;
}

.account-delete-modal p {
  margin: 0 0 18px;
  line-height: 1.5;
}

.account-delete-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  display: flex;
}

.account-delete-confirm-button {
  color: #fff;
  background: #d92d20;
}

.source-tooltip-pos, .word-item-pos, .user-item-pos {
  font-family: Segoe UI, Noto Sans, DejaVu Sans, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.source-tooltip-pronunciation, .word-item-pronunciation {
  letter-spacing: .01em;
  font-variant-ligatures: none;
  font-family: Segoe UI, Noto Sans, DejaVu Sans, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.plans-page {
  width: 960px;
  max-width: 100%;
}

.plans-page .plans-card {
  margin: 0 auto;
}

.plans-card {
  width: min(900px, 100%);
}

.paywall-overlay .plans-card {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.plans-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.plan-column {
  border: 1px solid var(--line, #d9d6f5);
  background: #fff;
  border-radius: 12px;
  flex-direction: column;
  min-width: 0;
  min-height: 460px;
  padding: 22px;
  display: flex;
}

.plan-column.is-current {
  border-color: var(--accent, #777de8);
  box-shadow: 0 0 0 1px var(--accent, #777de8);
}

.plan-column-header h2 {
  margin: 0;
  font-size: 24px;
}

.plan-column-header p {
  min-height: 42px;
  color: var(--muted, #666);
  margin: 8px 0 18px;
  font-size: 13px;
  line-height: 1.45;
}

.plan-comparison-list {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.plan-comparison-list li {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  line-height: 1.35;
  display: grid;
}

.plan-comparison-list li > span {
  color: #268052;
  text-align: center;
  font-weight: 700;
}

.plan-comparison-list .is-unavailable {
  color: #9a9aa5;
}

.plan-comparison-list .is-unavailable > span {
  color: #aaaab3;
}

.plan-column-footer {
  align-items: center;
  min-height: 40px;
  margin-top: auto;
  padding-top: 22px;
  display: flex;
}

.current-plan-label {
  color: var(--accent, #656bdc);
  font-size: 13px;
  font-weight: 700;
}

.plan-change-button {
  border-color: var(--accent, #777de8);
  color: #fff;
  background: var(--accent, #777de8);
  min-width: 112px;
}

.plan-change-button:disabled {
  color: #fff;
  background: var(--accent, #777de8);
  opacity: .6;
}

.plans-message {
  padding: 32px 0;
}

.profile-plans-link {
  color: var(--accent, #656bdc);
  text-underline-offset: 2px;
  font-size: 13px;
  text-decoration: underline;
  display: inline-block;
}

@media (max-width: 700px) {
  .plans-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-column, .plan-column-header p {
    min-height: 0;
  }
}

.plan-price {
  color: var(--ink);
  margin-top: 7px;
  font-size: 18px;
  font-weight: 700;
}

.plans-payment-message {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: 9px;
  margin: 14px 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.profile-upgrade-button {
  width: fit-content;
  color: var(--accent, #656bdc);
  cursor: pointer;
  font: inherit;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  text-decoration: underline;
}

.profile-upgrade-button:hover {
  color: var(--accent-strong, #4f55c8);
}

/* [project]/src/app/source-controls.css [app-client] (css) */
.text-import-group {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  gap: 8px;
  width: fit-content;
  margin: 0;
  padding: 10px 12px;
  display: grid;
}

.text-import-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
}

.text-import-actions {
  gap: 6px;
  display: flex;
}

.youtube-import-button {
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  padding: 5px 10px;
  display: inline-flex;
}

.youtube-import-button svg {
  width: 76px;
  height: 18px;
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__0pt6npy._.css.map*/