/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-black: #000;
    --color-white: #fff;
    --spacing: 0.25rem;
    --container-xs: 20rem;
    --container-sm: 24rem;
    --container-md: 28rem;
    --container-lg: 32rem;
    --container-xl: 36rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --text-4xl: 2.25rem;
    --text-4xl--line-height: calc(2.5 / 2.25);
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    --tracking-tight: -0.025em;
    --tracking-wide: 0.025em;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-page: var(--surface-page);
    --color-panel: var(--surface-panel);
    --color-muted: var(--surface-muted);
    --color-subtle: var(--surface-subtle);
    --color-reader: var(--surface-reader);
    --color-main: var(--text-main);
    --color-label: var(--text-label);
    --color-secondary: var(--text-muted);
    --color-line: var(--border-main);
    --color-brand: var(--brand);
    --color-brand-strong: var(--brand-strong);
    --color-hover: var(--brand-hover-surface);
    --color-focus: var(--focus-ring);
    --color-danger: var(--danger);
    --shadow-panel: 0 18px 45px var(--shadow-color);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .collapse {
    visibility: collapse;
  }
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .sticky {
    position: sticky;
  }
  .inset-0 {
    inset: calc(var(--spacing) * 0);
  }
  .inset-x-0 {
    inset-inline: calc(var(--spacing) * 0);
  }
  .top-0 {
    top: calc(var(--spacing) * 0);
  }
  .top-\[86px\] {
    top: 86px;
  }
  .top-\[88px\] {
    top: 88px;
  }
  .top-\[120px\] {
    top: 120px;
  }
  .top-\[calc\(100\%\+6px\)\] {
    top: calc(100% + 6px);
  }
  .right-0 {
    right: calc(var(--spacing) * 0);
  }
  .left-0 {
    left: calc(var(--spacing) * 0);
  }
  .z-10 {
    z-index: 10;
  }
  .z-20 {
    z-index: 20;
  }
  .z-30 {
    z-index: 30;
  }
  .z-\[1\] {
    z-index: 1;
  }
  .z-\[8\] {
    z-index: 8;
  }
  .z-\[9\] {
    z-index: 9;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mx-auto {
    margin-inline: auto;
  }
  .my-1 {
    margin-block: calc(var(--spacing) * 1);
  }
  .my-3 {
    margin-block: calc(var(--spacing) * 3);
  }
  .my-4 {
    margin-block: calc(var(--spacing) * 4);
  }
  .my-5 {
    margin-block: calc(var(--spacing) * 5);
  }
  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-3 {
    margin-top: calc(var(--spacing) * 3);
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .mt-5 {
    margin-top: calc(var(--spacing) * 5);
  }
  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }
  .mt-8 {
    margin-top: calc(var(--spacing) * 8);
  }
  .mr-1 {
    margin-right: calc(var(--spacing) * 1);
  }
  .mr-auto {
    margin-right: auto;
  }
  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-flex {
    display: inline-flex;
  }
  .list-item {
    display: list-item;
  }
  .table {
    display: table;
  }
  .h-2 {
    height: calc(var(--spacing) * 2);
  }
  .h-4 {
    height: calc(var(--spacing) * 4);
  }
  .h-5 {
    height: calc(var(--spacing) * 5);
  }
  .h-9 {
    height: calc(var(--spacing) * 9);
  }
  .h-\[42px\] {
    height: 42px;
  }
  .h-\[52px\] {
    height: 52px;
  }
  .h-\[calc\(100vh-88px\)\] {
    height: calc(100vh - 88px);
  }
  .h-full {
    height: 100%;
  }
  .h-px {
    height: 1px;
  }
  .max-h-\[calc\(100vh-220px\)\] {
    max-height: calc(100vh - 220px);
  }
  .max-h-\[calc\(100vh-260px\)\] {
    max-height: calc(100vh - 260px);
  }
  .max-h-\[min\(420px\,calc\(100vh-24px\)\)\] {
    max-height: min(420px, calc(100vh - 24px));
  }
  .min-h-0 {
    min-height: calc(var(--spacing) * 0);
  }
  .min-h-5 {
    min-height: calc(var(--spacing) * 5);
  }
  .min-h-8 {
    min-height: calc(var(--spacing) * 8);
  }
  .min-h-9 {
    min-height: calc(var(--spacing) * 9);
  }
  .min-h-10 {
    min-height: calc(var(--spacing) * 10);
  }
  .min-h-11 {
    min-height: calc(var(--spacing) * 11);
  }
  .min-h-12 {
    min-height: calc(var(--spacing) * 12);
  }
  .min-h-\[52px\] {
    min-height: 52px;
  }
  .min-h-\[72px\] {
    min-height: 72px;
  }
  .min-h-\[calc\(100vh-180px\)\] {
    min-height: calc(100vh - 180px);
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .w-4 {
    width: calc(var(--spacing) * 4);
  }
  .w-5 {
    width: calc(var(--spacing) * 5);
  }
  .w-9 {
    width: calc(var(--spacing) * 9);
  }
  .w-\[42px\] {
    width: 42px;
  }
  .w-\[52px\] {
    width: 52px;
  }
  .w-\[min\(340px\,100\%\)\] {
    width: min(340px, 100%);
  }
  .w-\[min\(560px\,100\%\)\] {
    width: min(560px, 100%);
  }
  .w-\[min\(1180px\,calc\(100\%-32px\)\)\] {
    width: min(1180px, calc(100% - 32px));
  }
  .w-full {
    width: 100%;
  }
  .max-w-\[min\(340px\,calc\(100vw-24px\)\)\] {
    max-width: min(340px, calc(100vw - 24px));
  }
  .max-w-lg {
    max-width: var(--container-lg);
  }
  .max-w-md {
    max-width: var(--container-md);
  }
  .max-w-sm {
    max-width: var(--container-sm);
  }
  .max-w-xl {
    max-width: var(--container-xl);
  }
  .max-w-xs {
    max-width: var(--container-xs);
  }
  .min-w-0 {
    min-width: calc(var(--spacing) * 0);
  }
  .min-w-60 {
    min-width: calc(var(--spacing) * 60);
  }
  .min-w-\[140px\] {
    min-width: 140px;
  }
  .min-w-\[160px\] {
    min-width: 160px;
  }
  .min-w-\[180px\] {
    min-width: 180px;
  }
  .min-w-\[760px\] {
    min-width: 760px;
  }
  .flex-1 {
    flex: 1;
  }
  .flex-none {
    flex: none;
  }
  .shrink-0 {
    flex-shrink: 0;
  }
  .border-collapse {
    border-collapse: collapse;
  }
  .animate-pulse {
    animation: var(--animate-pulse);
  }
  .resize {
    resize: both;
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid-cols-\[1fr_auto_1fr\] {
    grid-template-columns: 1fr auto 1fr;
  }
  .grid-cols-\[minmax\(180px\,220px\)_minmax\(130px\,160px\)\] {
    grid-template-columns: minmax(180px,220px) minmax(130px,160px);
  }
  .grid-cols-\[minmax\(220px\,260px\)_1fr\] {
    grid-template-columns: minmax(220px,260px) 1fr;
  }
  .grid-cols-\[repeat\(auto-fit\,minmax\(220px\,1fr\)\)\] {
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-nowrap {
    flex-wrap: nowrap;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .place-items-center {
    place-items: center;
  }
  .items-baseline {
    align-items: baseline;
  }
  .items-center {
    align-items: center;
  }
  .items-end {
    align-items: flex-end;
  }
  .items-start {
    align-items: flex-start;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .gap-1 {
    gap: calc(var(--spacing) * 1);
  }
  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-2\.5 {
    gap: calc(var(--spacing) * 2.5);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-3\.5 {
    gap: calc(var(--spacing) * 3.5);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .justify-self-end {
    justify-self: flex-end;
  }
  .overflow-auto {
    overflow: auto;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .overflow-x-auto {
    overflow-x: auto;
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-md {
    border-radius: var(--radius-md);
  }
  .rounded-l-lg {
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
  }
  .rounded-r-lg {
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-t {
    border-top-style: var(--tw-border-style);
    border-top-width: 1px;
  }
  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .border-l-0 {
    border-left-style: var(--tw-border-style);
    border-left-width: 0px;
  }
  .border-line {
    border-color: var(--color-line);
  }
  .bg-black\/40 {
    background-color: color-mix(in srgb, #000 40%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-black) 40%, transparent);
    }
  }
  .bg-brand {
    background-color: var(--color-brand);
  }
  .bg-line {
    background-color: var(--color-line);
  }
  .bg-muted {
    background-color: var(--color-muted);
  }
  .bg-page {
    background-color: var(--color-page);
  }
  .bg-page\/95 {
    background-color: var(--color-page);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-page) 95%, transparent);
    }
  }
  .bg-panel {
    background-color: var(--color-panel);
  }
  .bg-reader {
    background-color: var(--color-reader);
  }
  .bg-subtle {
    background-color: var(--color-subtle);
  }
  .bg-white {
    background-color: var(--color-white);
  }
  .fill-current {
    fill: currentcolor;
  }
  .fill-none {
    fill: none;
  }
  .stroke-current {
    stroke: currentcolor;
  }
  .stroke-\[1\.8\] {
    stroke-width: 1.8;
  }
  .stroke-\[2\] {
    stroke-width: 2;
  }
  .p-1 {
    padding: calc(var(--spacing) * 1);
  }
  .p-3 {
    padding: calc(var(--spacing) * 3);
  }
  .p-3\.5 {
    padding: calc(var(--spacing) * 3.5);
  }
  .p-4 {
    padding: calc(var(--spacing) * 4);
  }
  .p-5 {
    padding: calc(var(--spacing) * 5);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .px-2 {
    padding-inline: calc(var(--spacing) * 2);
  }
  .px-2\.5 {
    padding-inline: calc(var(--spacing) * 2.5);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .px-5 {
    padding-inline: calc(var(--spacing) * 5);
  }
  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .py-2\.5 {
    padding-block: calc(var(--spacing) * 2.5);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .py-8 {
    padding-block: calc(var(--spacing) * 8);
  }
  .pt-24 {
    padding-top: calc(var(--spacing) * 24);
  }
  .pb-8 {
    padding-bottom: calc(var(--spacing) * 8);
  }
  .text-center {
    text-align: center;
  }
  .text-left {
    text-align: left;
  }
  .align-middle {
    vertical-align: middle;
  }
  .align-top {
    vertical-align: top;
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--tw-leading, var(--text-3xl--line-height));
  }
  .text-4xl {
    font-size: var(--text-4xl);
    line-height: var(--tw-leading, var(--text-4xl--line-height));
  }
  .text-base {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .text-\[11px\] {
    font-size: 11px;
  }
  .leading-\[1\.9\] {
    --tw-leading: 1.9;
    line-height: 1.9;
  }
  .leading-none {
    --tw-leading: 1;
    line-height: 1;
  }
  .font-black {
    --tw-font-weight: var(--font-weight-black);
    font-weight: var(--font-weight-black);
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .tracking-tight {
    --tw-tracking: var(--tracking-tight);
    letter-spacing: var(--tracking-tight);
  }
  .tracking-wide {
    --tw-tracking: var(--tracking-wide);
    letter-spacing: var(--tracking-wide);
  }
  .break-words {
    overflow-wrap: break-word;
  }
  .whitespace-nowrap {
    white-space: nowrap;
  }
  .text-\[\#4285F4\] {
    color: #4285F4;
  }
  .text-brand {
    color: var(--color-brand);
  }
  .text-danger {
    color: var(--color-danger);
  }
  .text-label {
    color: var(--color-label);
  }
  .text-main {
    color: var(--color-main);
  }
  .text-secondary {
    color: var(--color-secondary);
  }
  .text-white {
    color: var(--color-white);
  }
  .uppercase {
    text-transform: uppercase;
  }
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .accent-brand {
    accent-color: var(--color-brand);
  }
  .shadow-panel {
    --tw-shadow: 0 18px 45px var(--tw-shadow-color, var(--shadow-color));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-sm {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .backdrop-blur {
    --tw-backdrop-blur: blur(8px);
    -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
    backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  }
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .duration-500 {
    --tw-duration: 500ms;
    transition-duration: 500ms;
  }
  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }
  .file\:mr-3 {
    &::file-selector-button {
      margin-right: calc(var(--spacing) * 3);
    }
  }
  .file\:rounded-md {
    &::file-selector-button {
      border-radius: var(--radius-md);
    }
  }
  .file\:border-0 {
    &::file-selector-button {
      border-style: var(--tw-border-style);
      border-width: 0px;
    }
  }
  .file\:bg-muted {
    &::file-selector-button {
      background-color: var(--color-muted);
    }
  }
  .file\:px-3 {
    &::file-selector-button {
      padding-inline: calc(var(--spacing) * 3);
    }
  }
  .file\:py-1\.5 {
    &::file-selector-button {
      padding-block: calc(var(--spacing) * 1.5);
    }
  }
  .file\:text-sm {
    &::file-selector-button {
      font-size: var(--text-sm);
      line-height: var(--tw-leading, var(--text-sm--line-height));
    }
  }
  .file\:font-semibold {
    &::file-selector-button {
      --tw-font-weight: var(--font-weight-semibold);
      font-weight: var(--font-weight-semibold);
    }
  }
  .file\:text-label {
    &::file-selector-button {
      color: var(--color-label);
    }
  }
  .hover\:border-brand {
    &:hover {
      @media (hover: hover) {
        border-color: var(--color-brand);
      }
    }
  }
  .hover\:bg-brand-strong {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-brand-strong);
      }
    }
  }
  .hover\:bg-hover {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-hover);
      }
    }
  }
  .hover\:text-brand {
    &:hover {
      @media (hover: hover) {
        color: var(--color-brand);
      }
    }
  }
  .hover\:text-brand-strong {
    &:hover {
      @media (hover: hover) {
        color: var(--color-brand-strong);
      }
    }
  }
  .focus\:border-brand {
    &:focus {
      border-color: var(--color-brand);
    }
  }
  .focus\:ring-2 {
    &:focus {
      --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
      box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }
  }
  .focus\:ring-focus {
    &:focus {
      --tw-ring-color: var(--color-focus);
    }
  }
  .disabled\:cursor-not-allowed {
    &:disabled {
      cursor: not-allowed;
    }
  }
  .disabled\:opacity-40 {
    &:disabled {
      opacity: 40%;
    }
  }
  .disabled\:opacity-50 {
    &:disabled {
      opacity: 50%;
    }
  }
  .max-md\:static {
    @media (width < 48rem) {
      position: static;
    }
  }
  .max-md\:top-3 {
    @media (width < 48rem) {
      top: calc(var(--spacing) * 3);
    }
  }
  .max-md\:grid {
    @media (width < 48rem) {
      display: grid;
    }
  }
  .max-md\:w-\[calc\(100\%-20px\)\] {
    @media (width < 48rem) {
      width: calc(100% - 20px);
    }
  }
  .max-md\:w-full {
    @media (width < 48rem) {
      width: 100%;
    }
  }
  .max-md\:grid-cols-1 {
    @media (width < 48rem) {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
  }
  .max-md\:flex-col {
    @media (width < 48rem) {
      flex-direction: column;
    }
  }
  .max-md\:items-stretch {
    @media (width < 48rem) {
      align-items: stretch;
    }
  }
  .max-md\:justify-self-start {
    @media (width < 48rem) {
      justify-self: flex-start;
    }
  }
  .max-md\:pt-5 {
    @media (width < 48rem) {
      padding-top: calc(var(--spacing) * 5);
    }
  }
  .max-md\:text-3xl {
    @media (width < 48rem) {
      font-size: var(--text-3xl);
      line-height: var(--tw-leading, var(--text-3xl--line-height));
    }
  }
  .max-sm\:grid-cols-1 {
    @media (width < 40rem) {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
  }
  .sm\:w-44 {
    @media (width >= 40rem) {
      width: calc(var(--spacing) * 44);
    }
  }
  .sm\:flex-col {
    @media (width >= 40rem) {
      flex-direction: column;
    }
  }
  .sm\:flex-row {
    @media (width >= 40rem) {
      flex-direction: row;
    }
  }
  .sm\:items-start {
    @media (width >= 40rem) {
      align-items: flex-start;
    }
  }
  .sm\:text-left {
    @media (width >= 40rem) {
      text-align: left;
    }
  }
}
:root {
  color-scheme: light;
  --surface-page: #f6f7f4;
  --surface-panel: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-subtle: #f8fafc;
  --surface-reader: #fffefb;
  --text-main: #172026;
  --text-label: #334155;
  --text-muted: #64748b;
  --border-main: #dbe2df;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-hover-surface: #f0fdfa;
  --focus-ring: #ccfbf1;
  --shadow-color: rgba(23, 32, 38, 0.08);
  --shadow-panel: 0 18px 45px var(--shadow-color);
  --known: var(--brand);
  --learning: #3b82f6;
  --learning-strong: #1d4ed8;
  --unknown: #d9a441;
  --unknown-strong: #8a5a07;
  --reader-token-unknown-rgb: 217 164 65;
  --reader-token-learning-rgb: 59 130 246;
  --reader-token-selected: rgba(15, 118, 110, 0.16);
  --danger: #b91c1c;
  --danger-border: rgba(185, 28, 28, 0.28);
  --danger-border-hover: rgba(185, 28, 28, 0.58);
  --danger-hover-surface: #fef2f2;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --surface-page: #101417;
  --surface-panel: #171d21;
  --surface-muted: #222a2f;
  --surface-subtle: #20282c;
  --surface-reader: #111719;
  --text-main: #eef4f2;
  --text-label: #d8e1de;
  --text-muted: #c2cfcb;
  --border-main: #33413d;
  --brand: #2dd4bf;
  --brand-strong: #14b8a6;
  --brand-hover-surface: rgba(45, 212, 191, 0.12);
  --focus-ring: rgba(45, 212, 191, 0.24);
  --shadow-color: rgba(0, 0, 0, 0.28);
  --known: #2dd4bf;
  --learning: #60a5fa;
  --learning-strong: #93c5fd;
  --unknown: #f0b94b;
  --unknown-strong: #f8cf73;
  --reader-token-unknown-rgb: 240 185 75;
  --reader-token-learning-rgb: 96 165 250;
  --reader-token-selected: rgba(45, 212, 191, 0.18);
  --danger: #f87171;
  --danger-border: rgba(248, 113, 113, 0.3);
  --danger-border-hover: rgba(248, 113, 113, 0.58);
  --danger-hover-surface: rgba(248, 113, 113, 0.12);
}
* {
  box-sizing: border-box;
}
[hidden], .tab-view[hidden] {
  display: none !important;
}
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.is-reader-active {
  height: 100vh;
  overflow: hidden;
}
button, input, select {
  max-width: 100%;
  min-width: 0;
  font: inherit;
}
label {
  min-width: 0;
}
input[type="file"] {
  overflow: hidden;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
.danger-button {
  border-color: var(--danger-border);
  background: var(--surface-panel);
  color: var(--danger);
}
.danger-button:hover {
  border-color: var(--danger-border-hover);
  background: var(--danger-hover-surface);
}
.auth-mode-button.is-active, .tab-button.is-active, .locale-button.is-active, .display-mode-button.is-active, .reader-sidebar-tab-button.is-active, .theme-button.is-active, .settings-menu-button.is-active, .upload-target-button.is-active {
  background: var(--surface-panel);
  color: var(--text-main);
  box-shadow: 0 1px 2px var(--shadow-color), inset 0 0 0 1px var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 1px 2px var(--shadow-color), inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
  }
}
.upload-target-button:hover {
  background: var(--surface-panel);
  color: var(--text-main);
}
.upload-target-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.upload-modal:not([hidden]) {
  display: flex;
}
@media (max-width: 760px) {
  .auth-panel, .upload-panel, .material-import-panel {
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 18px;
  }
}
.study-language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--border-main);
  border-radius: 6px;
  background: var(--surface-panel);
  overflow: hidden;
  cursor: pointer;
}
.study-language-button svg {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  display: block;
}
.study-language-button:hover {
  border-color: var(--brand);
}
.study-language-button.is-active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand);
}
.study-language-add-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.study-language-dropdown[hidden] {
  display: none;
}
.study-language-dropdown-item:hover {
  background: var(--brand-hover-surface);
  color: var(--text-main);
}
.study-language-dropdown-item[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.study-language-dropdown-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  border: 1px solid var(--border-main);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.study-language-dropdown-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
.tab-button:hover, .locale-button:hover, .display-mode-button:hover, .reader-sidebar-tab-button:hover, .theme-button:hover, .settings-menu-button:hover {
  background: var(--surface-panel);
  color: var(--text-main);
}
.tabs {
  min-width: 0;
}
.tabs .tab-button {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.account-dropdown[hidden] {
  display: none;
}
.welcome-language-grid {
  display: grid;
  gap: 10px;
}
.welcome-language-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border: 1px solid var(--border-main);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 10px 28px var(--shadow-color);
}
.welcome-language-button:hover, .welcome-language-button:focus-visible {
  border-color: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--brand) 36%, transparent);
  }
  background: var(--brand-hover-surface);
  outline: 0;
}
.welcome-language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  overflow: hidden;
  border: 1px solid var(--border-main);
  border-radius: 5px;
}
.welcome-language-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
.menu-icon-burger {
  display: none;
}
@media (min-width: 761px) {
  .account-menu {
    display: contents;
  }
  .account-nav-item, .account-menu-divider {
    display: none;
  }
  .account-dropdown {
    position: static;
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .account-menu-item {
    min-height: 52px;
    border: 1px solid var(--border-main);
    background: var(--surface-panel);
    padding: 0 16px;
    text-align: center;
  }
  .menu-bar.is-guest .menu-actions {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 760px) {
  .account-menu {
    justify-self: end;
  }
  .account-dropdown {
    width: min(220px, calc(100vw - 20px));
  }
  .account-menu-item {
    min-height: 42px;
  }
  .reader-sidebar-tabs {
    position: sticky;
    top: 0;
    z-index: 9;
  }
  .reader-layout.is-reader-read-panel {
    grid-template-columns: 1fr;
  }
  .reader-layout.is-reader-read-panel .reader-panel {
    border-radius: 8px;
  }
  .reader-layout.is-reader-side-panel {
    grid-template-columns: 1fr;
  }
  .reader-layout.is-reader-side-panel .reader-sidebar {
    max-height: none;
    border: 1px solid var(--border-main);
    border-radius: 8px;
  }
  .reader-layout.is-reader-side-panel .reader-sidebar-head, .reader-layout.is-reader-side-panel .reader-resize-handle, .reader-layout.is-reader-side-panel .reader-sidebar-open {
    display: none;
  }
  .reader-layout.is-reader-side-panel .material-list {
    max-height: none;
  }
}
@media (max-width: 760px) {
  .shell {
    width: 100%;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
  }
  .menu-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -12px -10px 12px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 10px;
    border-bottom: 1px solid var(--border-main);
  }
  .menu-left, .menu-actions {
    width: 100%;
  }
  .menu-brand {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 1.55rem;
    line-height: 1;
    text-align: center;
  }
  .tabs {
    display: none;
  }
  .menu-icon-gear {
    display: none;
  }
  .menu-icon-burger {
    display: block;
  }
  .menu-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, auto) auto;
    align-items: center;
    gap: 8px;
  }
  .menu-bar.is-guest .menu-actions {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .menu-bar.is-guest .locale-select-wrap {
    width: min(15rem, 100%);
  }
  .study-language-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
    justify-self: stretch;
    overflow: visible;
  }
  #studyLanguageButtons {
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .study-language-add-wrap {
    z-index: 2;
    flex: none;
  }
  .known-total-badge small {
    display: none;
  }
  .locale-select-wrap {
    min-width: 7.5rem;
  }
  #localeSelect {
    width: 100%;
    min-height: 44px;
    padding-inline: 10px 28px;
  }
  #settingsButton, #logoutButton, #loginButton {
    min-height: 44px;
  }
  #settingsButton {
    width: 44px;
    height: 44px;
  }
  #logoutButton, #loginButton {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.app-sidebar {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateX(0);
  opacity: 1;
  transition: transform 220ms ease, opacity 180ms ease;
}
.app-sidebar-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}
.app-sidebar-layout.is-sidebar-collapsed .app-sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.local-tabbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border-main));
  }
  border-radius: 999px;
  background: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--brand) 5%, var(--surface-panel));
  }
}
.local-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 800;
}
.local-tab:hover, .local-tab.is-active {
  border-color: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--brand) 32%, transparent);
  }
  background: var(--surface-panel);
  color: var(--brand);
  box-shadow: 0 8px 22px var(--shadow-color);
}
.dashboard-documents-panel {
  min-height: 360px;
}
.dashboard-documents-pane {
  max-height: min(62vh, 720px);
  overflow: auto;
}
.dashboard-document-search {
  margin: 0;
}
.dashboard-document-status:empty {
  display: none;
}
.chart-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  border: 1px solid var(--border-main);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 14px;
}
.chart-card strong, .chart-card span {
  display: block;
}
.chart-card strong {
  margin-bottom: 6px;
  color: var(--text-main);
  overflow-wrap: anywhere;
}
.chart-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.pie {
  position: relative;
  width: 74px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: conic-gradient( var(--known) 0 var(--knownPercent), var(--learning) var(--knownPercent) var(--learningPercent), var(--unknown) var(--learningPercent) 100% );
}
.pie::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: inherit;
  background: var(--surface-panel);
}
.selected-stats span {
  color: var(--text-main);
  font-weight: 800;
}
.selected-stats strong {
  color: var(--brand);
}
@media (max-width: 760px) {
  .local-tabbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 10px;
  }
  .local-tab {
    border-radius: 8px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
  .metrics article, .collection-panel, .dashboard-documents-panel, .browser-panel, .settings-panel, .practice-panel {
    padding: 16px;
  }
  .dashboard-documents-pane {
    max-height: none;
  }
  .chart-card {
    grid-template-columns: 56px 1fr;
    min-height: 92px;
    padding: 12px;
  }
  .pie {
    width: 56px;
  }
  .pie::after {
    inset: 12px;
  }
}
@media (max-width: 420px) {
  .metrics {
    grid-template-columns: 1fr !important;
  }
}
.collection-button.is-active {
  background: var(--surface-panel);
  color: var(--text-main);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.collection-button.is-drop-target {
  border-color: var(--brand);
  background: var(--brand-hover-surface);
  box-shadow: inset 0 0 0 2px var(--brand);
}
.collections-workspace {
  transition: grid-template-columns 220ms ease;
}
.collections-workspace.is-sidebar-collapsed {
  grid-template-columns: max(0px, calc(42px + 14px - (100vw - min(1180px, 100vw - 32px)) / 2)) minmax(0, 1fr);
  column-gap: 0;
}
.collections-sidebar-open {
  top: var(--collectionsSidebarOpenTop, 120px);
}
.word-drag-cell {
  width: 28px;
  cursor: grab;
  color: var(--text-muted);
  user-select: none;
}
.word-drag-cell:active {
  cursor: grabbing;
}
.word-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  color: var(--text-muted);
}
.word-row {
  cursor: default;
}
.word-row:hover .word-drag-handle {
  color: var(--text-label);
}
.word-row.is-selected {
  background: var(--brand-hover-surface);
}
.word-row.is-selected td {
  background: inherit;
}
.word-row.is-dragging {
  opacity: 0.5;
}
.table-wrap.is-scrollable {
  max-height: clamp(240px, calc(100vh - 490px), 680px);
  overflow: auto;
}
@media (min-width: 761px) {
  .table-wrap table {
    font-size: 0.9rem;
  }
  .table-wrap .word-row > td {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .table-wrap .word-row .word-cell {
    gap: 2px;
  }
  .table-wrap .word-cell-main {
    font-size: 0.95rem;
  }
  .table-wrap .word-cell-phonetic {
    font-size: 0.78rem;
  }
  .table-wrap .status-toggle {
    padding: 2px;
  }
  .table-wrap .status-segment {
    min-height: 28px;
  }
}
tbody td {
  border-bottom: 1px solid var(--border-main);
  padding: 12px;
  text-align: left;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.status-cell {
  width: 220px;
}
.delete-slot {
  width: 110px;
}
.delete-toggle {
  display: inline-flex;
  min-height: 34px;
  min-width: 84px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-main);
  border-radius: 999px;
  background: var(--surface-panel);
  font-size: 0.875rem;
  font-weight: 700;
}
.known-toggle {
  display: inline-flex;
  min-height: 34px;
  min-width: 84px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-main);
  border-radius: 999px;
  background: var(--surface-panel);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 700;
}
.known-toggle[data-known="true"] {
  border-color: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--brand) 28%, transparent);
  }
  background: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
  }
  color: var(--brand);
}
.known-toggle[data-known="false"] {
  border-color: var(--unknown);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--unknown) 32%, transparent);
  }
  background: var(--unknown);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--unknown) 12%, transparent);
  }
  color: var(--unknown-strong);
}
.status-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 210px);
  overflow: hidden;
  border: 1px solid var(--border-main);
  border-radius: 999px;
  background: var(--surface-muted);
  padding: 3px;
}
.reader-word-info .status-toggle {
  width: 100%;
}
.status-segment {
  min-height: 32px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-segment[data-status="unknown"][data-active="true"] {
  border-color: var(--unknown);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--unknown) 42%, transparent);
  }
  background: var(--unknown);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--unknown) 18%, transparent);
  }
  color: var(--unknown-strong);
}
.status-segment[data-status="learning"][data-active="true"] {
  border-color: var(--learning);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--learning) 42%, transparent);
  }
  background: var(--learning);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--learning) 16%, transparent);
  }
  color: var(--learning-strong);
}
.status-segment[data-status="known"][data-active="true"] {
  border-color: var(--known);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--known) 38%, transparent);
  }
  background: var(--known);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--known) 14%, transparent);
  }
  color: var(--known);
}
.status-segment:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}
.status-segment:hover {
  background: var(--surface-panel);
  color: var(--text-main);
}
.status-segment[data-active="true"]:hover {
  color: inherit;
}
.empty {
  color: var(--text-muted);
}
.word-cell {
  display: grid;
  gap: 4px;
}
.word-cell-main {
  font-weight: 600;
  color: var(--text-main);
}
.word-cell-phonetic {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.word-cell-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.word-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-main);
  border-radius: 999px;
  background: var(--surface-muted);
  padding: 1px 8px;
  color: var(--text-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.translation-override-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.translation-override-display.is-compact {
  width: 100%;
  justify-content: space-between;
}
.translation-override-text {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-label);
}
.translation-override-text.is-overridden {
  color: var(--text-main);
  font-weight: 700;
}
.translation-override-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
}
.translation-override-form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(100%, 360px);
}
.translation-override-form.is-compact {
  width: 100%;
}
.translation-override-input {
  min-width: 0;
  flex: 1 1 150px;
  border: 1px solid var(--border-main);
  border-radius: 8px;
  background: var(--surface-panel);
  color: var(--text-main);
  padding: 7px 9px;
  font-size: 0.88rem;
  line-height: 1.25;
}
.translation-override-input:focus {
  outline: none;
  border-color: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  }
  box-shadow: 0 0 0 3px var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
  }
}
.translation-override-save {
  flex: 0 0 auto;
  width: max-content;
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
}
.translation-override-cancel, .translation-override-edit, .translation-override-clear {
  flex: 0 0 auto;
}
.collections-mobile-select-wrap {
  display: none;
}
@media (min-width: 761px) {
  .desktop-display-mode {
    display: flex;
  }
}
@media (max-width: 760px) {
  .desktop-display-mode {
    display: none;
  }
  .collections-mobile-select-wrap {
    display: grid;
  }
  .collections-list {
    display: none;
  }
  .collections-sidebar {
    position: static;
  }
  .collections-workspace.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  .collections-workspace.is-sidebar-collapsed .collections-sidebar {
    max-height: 0;
    margin: 0;
    padding-block: 0;
    border-width: 0;
    overflow: hidden;
  }
  .collections-sidebar-open {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: auto;
    width: 48px;
    border-left: 1px solid var(--border-main);
    border-radius: 999px;
  }
  .word-table-toolbar {
    display: none;
  }
  .word-row {
    display: block;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--border-main);
    border-radius: 10px;
    background: var(--surface-panel);
    box-shadow: 0 8px 22px var(--shadow-color);
  }
  .word-row .word-drag-cell, .word-row .word-action-cell, .disambiguation-row {
    display: none !important;
  }
  .word-row td {
    display: block;
    width: 100%;
    border-bottom: 0;
    padding: 0 14px;
  }
  .word-row td::before {
    display: none;
  }
  .word-row td:nth-child(2) {
    padding-top: 14px;
    padding-bottom: 2px;
  }
  .word-row td:nth-child(3) {
    padding-top: 0;
    padding-bottom: 12px;
    background: transparent;
    color: var(--text-label);
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .word-row .status-cell {
    padding: 0 14px 14px;
  }
  .word-cell {
    gap: 2px;
  }
  .word-cell-main {
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
  }
  .word-cell-phonetic {
    font-size: 0.85rem;
  }
  .word-cell-badges {
    display: none;
  }
  .status-toggle {
    width: 100%;
    border-radius: 10px;
  }
  .status-segment {
    min-height: 38px;
  }
}
@media (min-width: 761px) {
  .collections-list {
    display: grid;
  }
}
@media (max-width: 760px) {
  .table-wrap {
    overflow: visible;
    border: 0;
  }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap td {
    display: block;
    width: 100%;
  }
  .table-wrap table {
    min-width: 0;
  }
  .table-wrap thead {
    display: none;
  }
}
@media (max-width: 420px) {
  .status-segment {
    font-size: 0.72rem;
  }
}
.reader-layout {
  grid-template-columns: minmax(240px, min(var(--readerSidebarWidth), 340px)) minmax(0, 1fr);
  width: var(--readerViewportWidth, 100vw);
  margin-left: calc(-1 * var(--readerViewportOffset, 0px));
  --readerSidebarWidth: 300px;
  --readerInfoWidth: 300px;
  --readerPanelWidth: 100%;
  --readerPanelHeight: auto;
  transition: grid-template-columns 220ms ease;
}
.reader-layout.is-sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}
.reader-sidebar {
  width: 100%;
  max-width: 340px;
  height: calc(100vh - 88px);
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateX(0);
  opacity: 1;
  transition: transform 220ms ease, opacity 180ms ease, box-shadow 220ms ease;
}
.reader-setting-row {
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.reader-setting-row:hover {
  border-color: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--brand) 24%, transparent);
  }
  background: var(--surface-subtle);
}
.reader-checkbox {
  appearance: none;
  display: grid;
  flex: 0 0 24px;
  place-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid var(--border-main);
  border-radius: 6px;
  background: var(--surface-panel);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.reader-checkbox::before {
  content: "";
  width: 7px;
  height: 12px;
  margin-top: -2px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg) scale(0);
  transition: transform 120ms ease;
}
.reader-checkbox:checked {
  border-color: var(--brand);
  background: var(--brand);
}
.reader-checkbox:checked::before {
  transform: rotate(45deg) scale(1);
}
.reader-checkbox:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.reader-setting-text {
  min-width: 0;
  line-height: 1.35;
}
.mobile-reader-tabs {
  display: none;
}
.reader-sidebar-open {
  top: var(--readerSidebarOpenTop, calc(88px + 0.875rem));
}
@media (min-width: 761px) {
  .desktop-reader-tabs {
    display: grid;
  }
  .reader-panel {
    border-left: 0;
  }
  .reader-layout.is-sidebar-collapsed .reader-panel {
    border-left: 1px solid var(--border-main);
  }
}
@media (max-width: 760px) {
  .mobile-reader-tabs {
    display: grid;
  }
  .desktop-reader-tabs {
    display: none;
  }
}
.reader-layout.is-sidebar-collapsed .reader-sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.reader-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: var(--readerPanelMinWidth, 360px);
  min-height: var(--readerPanelMinHeight, 520px);
  width: clamp(var(--readerPanelMinWidth, 360px), var(--readerPanelWidth, 100%), 100%);
  height: clamp(var(--readerPanelMinHeight, 520px), var(--readerPanelHeight, 620px), var(--readerPanelMaxHeight, calc(100vh - 104px)));
  max-width: 100%;
  max-height: var(--readerPanelMaxHeight, calc(100vh - 104px));
  margin-left: var(--readerPanelOffset, 0px);
}
.reader-page-actions {
  grid-template-columns: 1fr;
}
.reader-focus-toggle {
  display: none;
}
.reader-focus-command, .reader-focus-exit {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
  width: 66px;
  height: 30px;
  min-height: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid var(--border-main);
  border-left: 1px solid var(--border-main);
  border-radius: 0 0 0 10px;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}
.is-reader-active .reader-toolbar {
  padding-right: 76px;
}
.is-reader-active .reader-focus-command {
  display: inline-flex;
}
.reader-focus-exit {
  display: none;
}
.is-reader-focus .reader-focus-command {
  display: none;
}
.is-reader-focus .reader-focus-exit:not([hidden]) {
  display: inline-flex;
}
.reader-pagination-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: 100%;
  grid-column: 1;
}
.reader-pagination-controls > button {
  min-width: 0;
}
.reader-pagination-controls #readerPrevPage {
  justify-self: start;
}
.reader-pagination-controls #readerPageStatus {
  justify-self: center;
}
.reader-pagination-controls #readerNextPage {
  justify-self: end;
}
.is-reader-focus .menu-bar, .is-reader-focus #verifyBanner, .is-reader-focus .reader-sidebar, .is-reader-focus .reader-sidebar-open, .is-reader-focus .reader-toolbar {
  display: none;
  pointer-events: none;
}
.is-reader-focus .shell {
  width: 100vw;
  max-width: none;
  padding-top: 0;
  padding-bottom: 0;
}
.is-reader-focus .reader-layout {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 11;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  width: 100vw;
  margin-left: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
.is-reader-focus .reader-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-top: 44px;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  max-height: 100vh;
  max-height: 100dvh;
  max-height: 100svh;
  min-height: 0;
  margin-left: 0 !important;
  overflow: hidden;
  border-radius: 0;
}
.is-reader-focus .reader-page-actions {
  min-height: 0;
}
.is-reader-focus .reader-text {
  height: auto;
  min-height: 0;
  overflow: auto;
}
.is-reader-focus .reader-panel-resize {
  top: 0;
  right: 0;
  bottom: 0;
  width: 12px;
  height: auto;
  cursor: col-resize;
}
.is-reader-focus .reader-panel-resize:hover::before {
  top: 12px;
  right: 5px;
  bottom: 12px;
  width: 2px;
  height: auto;
  border-right: 0;
  border-bottom: 0;
  border-radius: 999px;
  background: var(--brand);
}
.reader-progress {
  height: 3px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}
.reader-progress.is-hidden {
  visibility: hidden;
}
.reader-progress-bar {
  height: 100%;
  width: var(--readerProgress, 0%);
  border-radius: inherit;
  background: var(--brand);
  transition: width 200ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .reader-progress-bar {
    transition: none;
  }
}
.reader-text {
  min-height: 0;
  font-size: var(--readerFontSize, 22px);
  transform-origin: center;
  will-change: transform, opacity;
}
.reader-text.is-page-flip-next {
  animation: reader-page-flip-next 100ms ease-out;
}
.reader-text.is-page-flip-prev {
  animation: reader-page-flip-prev 100ms ease-out;
}
@keyframes reader-page-flip-next {
  0% {
    opacity: 0.45;
    transform: translateX(26px) rotateY(-5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
}
@keyframes reader-page-flip-prev {
  0% {
    opacity: 0.45;
    transform: translateX(-26px) rotateY(5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reader-text.is-page-flip-next, .reader-text.is-page-flip-prev {
    animation: none;
  }
}
.reader-token {
  min-height: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  padding: 1px 2px;
  font-weight: 500;
  font-size: inherit;
  line-height: inherit;
}
.reader-block {
  margin: 0;
}
.reader-paragraph {
  margin: 0.6em 0;
}
.reader-heading {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}
.reader-heading-1 {
  margin: 1.4em 0 0.6em;
  font-size: 1.9em;
  font-weight: 800;
}
.reader-heading-2 {
  margin: 1.2em 0 0.5em;
  font-size: 1.55em;
}
.reader-heading-3 {
  margin: 1em 0 0.45em;
  font-size: 1.3em;
}
.reader-heading-4 {
  margin: 0.9em 0 0.4em;
  font-size: 1.15em;
}
.reader-heading-5 {
  margin: 0.85em 0 0.35em;
  font-size: 1.05em;
}
.reader-heading-6 {
  margin: 0.8em 0 0.35em;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.reader-blockquote {
  margin: 0.8em 0;
  padding: 0.1em 0 0.1em 1em;
  border-left: 3px solid var(--border-main);
  color: var(--text-label);
  font-style: italic;
}
.reader-list {
  margin: 0.6em 0;
  padding-left: 1.5em;
  list-style: disc;
}
.reader-list-item {
  margin: 0.25em 0;
  display: list-item;
}
.reader-token[data-status="unknown"] {
  background: rgb(var(--reader-token-unknown-rgb) / var(--readerHighlightOpacity, 0.2));
  box-shadow: 0 0 10px rgb(var(--reader-token-unknown-rgb) / var(--readerHighlightOpacity, 0.2));
}
.reader-token[data-status="learning"] {
  background: rgb(var(--reader-token-learning-rgb) / var(--readerHighlightOpacity, 0.2));
  box-shadow: 0 0 10px rgb(var(--reader-token-learning-rgb) / var(--readerHighlightOpacity, 0.2));
}
.reader-token:hover, .reader-token.is-selected {
  background: var(--reader-token-selected);
}
.is-reader-convenience-active {
  user-select: none;
}
.reader-convenience-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  --readerMenuX: 50vw;
  --readerMenuY: 50vh;
  --readerMenuRadius: 82px;
}
.reader-convenience-scrim {
  position: absolute;
  inset: 0;
  background: var(--surface-page);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--surface-page) 28%, transparent);
  }
  backdrop-filter: blur(1px);
}
.reader-convenience-center, .reader-convenience-option {
  position: absolute;
  left: var(--readerMenuX);
  top: var(--readerMenuY);
  transform: translate(-50%, -50%);
}
.reader-convenience-center {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 2px solid var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border: 2px solid color-mix(in srgb, var(--brand) 30%, transparent);
  }
  border-radius: 999px;
  background: radial-gradient(circle, var(--surface-panel) 0 48%, var(--brand) 49% 100%);
  @supports (color: color-mix(in lab, red, red)) {
    background: radial-gradient(circle, var(--surface-panel) 0 48%, color-mix(in srgb, var(--brand) 12%, var(--surface-panel)) 49% 100%);
  }
  box-shadow: 0 18px 45px var(--shadow-color);
  color: var(--text-label);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}
.reader-convenience-center span {
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-convenience-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 98px;
  min-height: 42px;
  padding: 0 13px;
  border: 2px solid var(--border-main);
  border-radius: 999px;
  background: var(--surface-panel);
  box-shadow: 0 14px 32px var(--shadow-color);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%) translate(calc(var(--optionX) * var(--readerMenuRadius)), calc(var(--optionY) * var(--readerMenuRadius)));
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background-color 120ms ease;
}
.reader-convenience-option.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--brand) 9%, var(--surface-panel));
  }
  box-shadow: 0 0 0 5px var(--focus-ring), 0 18px 38px var(--shadow-color);
  transform: translate(-50%, -50%) translate(calc(var(--optionX) * var(--readerMenuRadius)), calc(var(--optionY) * var(--readerMenuRadius))) scale(1.05);
}
.reader-convenience-unknown {
  border-color: var(--unknown);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--unknown) 40%, var(--border-main));
  }
}
.reader-convenience-learning {
  border-color: var(--learning);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--learning) 40%, var(--border-main));
  }
}
.reader-convenience-known {
  border-color: var(--known);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--known) 40%, var(--border-main));
  }
}
.reader-convenience-practice {
  border-color: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--brand) 36%, var(--border-main));
  }
}
.reader-convenience-checkbox {
  display: grid;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid var(--border-main);
  border-radius: 5px;
  background: var(--surface-panel);
}
.reader-convenience-checkbox::before {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg) scale(0);
}
.reader-convenience-checkbox.is-checked {
  border-color: var(--brand);
  background: var(--brand);
}
.reader-convenience-checkbox.is-checked::before {
  transform: rotate(45deg) scale(1);
}
.reader-word-info {
  top: var(--readerInfoTop, 84px);
  left: var(--readerInfoLeft, 12px);
}
.reader-word-info:not([hidden]) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(500px, calc(100vh - 24px));
}
.reader-word-info:not([hidden]) > :not(.disambiguation-panel) {
  flex-shrink: 0;
}
.reader-word-info-head {
  display: grid;
  grid-template-columns: 1fr auto 30px;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.reader-word-info strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  line-height: 1.25;
}
.reader-word-info-head .disambiguation-button {
  justify-self: end;
}
.reader-word-info-close {
  grid-column: 3;
  display: inline-grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
}
.reader-word-info-close:hover, .reader-word-info-close:focus-visible {
  border-color: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--brand) 22%, transparent);
  }
  background: var(--brand-hover-surface);
  color: var(--brand);
}
.reader-word-info dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 10px;
  margin: 10px 0;
}
.reader-word-info dt {
  color: var(--text-muted);
  font-weight: 700;
}
.reader-word-info dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.reader-practice-toggle {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-main);
  border-radius: 10px;
  background: var(--surface-subtle);
  color: var(--text-label);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.reader-practice-toggle:hover {
  border-color: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--brand) 24%, transparent);
  }
  background: var(--surface-muted);
}
.reader-practice-toggle.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.reader-practice-toggle.is-disabled:hover {
  border-color: var(--border-main);
  background: var(--surface-subtle);
}
.reader-practice-toggle .reader-checkbox {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
}
.reader-practice-toggle .reader-checkbox::before {
  width: 6px;
  height: 10px;
  margin-top: -2px;
}
.reader-practice-toggle span {
  min-width: 0;
  white-space: nowrap;
}
.disambiguation-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 32px;
  line-height: 1;
}
.disambiguation-button-icon {
  display: inline-block;
  line-height: 1;
  transition: transform 140ms ease;
}
.disambiguation-button[aria-expanded="true"] .disambiguation-button-icon {
  transform: rotate(180deg);
}
.disambiguation-panel {
  margin: 10px 0;
  flex: 0 1 auto;
  height: 95px;
  min-height: 95px;
  max-height: 195px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border-main);
  border-radius: 10px;
  background: var(--color-panel);
  resize: vertical;
}
.disambiguation-panel thead th {
  line-height: 14px;
}
.disambiguation-panel tbody td {
  line-height: 16px;
}
.disambiguation-panel tr:last-child td {
  border-bottom: 0;
}
.disambiguation-panel table, .disambiguation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.disambiguation-panel th, .disambiguation-panel td, .disambiguation-table th, .disambiguation-table td {
  border-bottom: 1px solid var(--border-main);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}
.disambiguation-panel th, .disambiguation-table th {
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.disambiguation-panel thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.disambiguation-row td {
  background: var(--surface-muted);
}
.disambiguation-panel tr.is-original-translation, .disambiguation-table tr.is-original-translation {
  outline: 1px solid var(--known);
  @supports (color: color-mix(in lab, red, red)) {
    outline: 1px solid color-mix(in srgb, var(--known) 62%, transparent);
  }
  outline-offset: -1px;
}
.disambiguation-panel tr.is-original-translation td, .disambiguation-table tr.is-original-translation td {
  background: var(--known);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--known) 8%, var(--surface-panel));
  }
  border-top: 1px solid var(--known);
  @supports (color: color-mix(in lab, red, red)) {
    border-top: 1px solid color-mix(in srgb, var(--known) 62%, transparent);
  }
  border-bottom: 1px solid var(--known);
  @supports (color: color-mix(in lab, red, red)) {
    border-bottom: 1px solid color-mix(in srgb, var(--known) 62%, transparent);
  }
}
.disambiguation-panel tr.is-original-translation td:first-child, .disambiguation-table tr.is-original-translation td:first-child {
  border-left: 1px solid var(--known);
  @supports (color: color-mix(in lab, red, red)) {
    border-left: 1px solid color-mix(in srgb, var(--known) 62%, transparent);
  }
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.disambiguation-panel tr.is-original-translation td:last-child, .disambiguation-table tr.is-original-translation td:last-child {
  border-right: 1px solid var(--known);
  @supports (color: color-mix(in lab, red, red)) {
    border-right: 1px solid color-mix(in srgb, var(--known) 62%, transparent);
  }
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.reader-resize-handle, .reader-word-info-resize, .reader-panel-resize {
  position: absolute;
  width: 10px;
  cursor: col-resize;
}
.reader-resize-handle, .reader-word-info-resize {
  top: 0;
  right: -5px;
  bottom: 0;
}
.reader-panel-resize {
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
}
.reader-resize-handle:hover::before, .reader-word-info-resize:hover::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 4px;
  bottom: 12px;
  width: 2px;
  border-radius: 999px;
  background: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--brand) 35%, transparent);
  }
}
.reader-panel-resize:hover::before {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-right: 2px solid color-mix(in srgb, var(--brand) 45%, transparent);
  }
  border-bottom: 2px solid var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-bottom: 2px solid color-mix(in srgb, var(--brand) 45%, transparent);
  }
}
.is-resizing-reader, .is-resizing-reader * {
  cursor: col-resize !important;
  user-select: none;
}
@media (max-width: 760px) {
  .reader-layout {
    grid-template-columns: minmax(160px, min(var(--readerSidebarWidth), 240px)) minmax(0, 1fr);
  }
  .reader-layout.is-sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
  }
  .reader-sidebar {
    top: 0;
    max-width: 240px;
    height: 100vh;
    border-radius: 0 8px 8px 0;
  }
  .reader-word-info {
    top: var(--readerInfoTop, 12px);
    left: var(--readerInfoLeft, 12px);
    right: auto;
    bottom: auto;
    width: max-content;
    max-width: calc(100vw - 24px);
    max-height: min(340px, calc(100vh - 24px));
  }
}
@media (max-width: 760px) {
  .reader-layout {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }
  .reader-layout.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  .reader-sidebar {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 44dvh;
    border-right: 1px solid var(--border-main);
    border-radius: 8px 8px 0 0;
  }
  .reader-layout.is-sidebar-collapsed .reader-sidebar {
    max-height: 0;
    padding-block: 0;
    border-width: 0;
  }
  .reader-word-info {
    position: fixed;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px;
    width: auto;
    max-width: none;
    max-height: min(70dvh, 520px);
    border-radius: 12px;
  }
}
@media (max-width: 760px) {
  .reader-layout {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }
  .reader-sidebar {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 44dvh;
    border-right: 1px solid var(--border-main);
    border-radius: 8px 8px 0 0;
  }
  .reader-layout.is-sidebar-collapsed .reader-sidebar {
    max-height: 0;
    padding-block: 0;
    border-width: 0;
  }
  .reader-sidebar-open {
    top: auto;
    right: 10px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: auto;
    width: 48px;
    border-left: 1px solid var(--border-main);
    border-radius: 999px;
  }
  .reader-resize-handle, .reader-panel-resize {
    display: none;
  }
  .reader-panel {
    width: 100%;
    min-width: 0;
    min-height: calc(100dvh - 210px);
    height: auto;
    max-height: none;
    margin-left: 0 !important;
    border-radius: 0 0 8px 8px;
    padding: 14px;
  }
  .reader-layout.is-reader-read-panel {
    height: calc(100dvh - 190px);
    overflow: hidden;
  }
  .reader-layout.is-reader-read-panel .reader-panel {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }
  .reader-layout.is-reader-read-panel .reader-text {
    min-height: 0;
    overflow: auto;
  }
  .reader-layout.is-reader-read-panel .reader-page-actions {
    margin-top: 0.75rem;
  }
  .is-reader-focus .reader-layout {
    align-items: stretch;
    justify-content: stretch;
    height: 100dvh;
    height: 100svh;
    min-height: 100dvh;
    min-height: 100svh;
    width: 100vw;
    overflow: hidden;
  }
  .is-reader-focus .reader-panel {
    grid-template-rows: auto minmax(0, 1fr);
    width: 100vw;
    min-width: 0;
    height: 100dvh;
    height: 100svh;
    min-height: 0;
    max-height: 100dvh;
    max-height: 100svh;
    overflow: hidden;
    border-radius: 0;
    padding-top: 50px;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
  .is-reader-focus .reader-text {
    min-height: 0;
    overflow: auto;
  }
  .is-reader-focus .reader-page-actions {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 14px;
    z-index: 12;
    margin-top: 0;
  }
  .reader-controls {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 140px) !important;
    width: 100%;
  }
  .reader-controls label {
    min-width: 0;
  }
  .reader-text {
    min-height: 52dvh;
    padding: 16px;
    line-height: 1.8;
  }
  .reader-pagination-controls {
    grid-column: 1;
  }
  .reader-focus-command, .reader-focus-exit {
    width: 76px;
    height: 36px;
    margin: 0;
    border-radius: 0 0 0 12px;
    font-size: 0.9rem;
  }
  .is-reader-active .reader-toolbar {
    padding-right: 0;
  }
  .is-reader-active .reader-toolbar > div:first-child {
    padding-right: 84px;
  }
  .reader-pagination-controls {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.625rem;
  }
  .reader-word-info {
    position: fixed;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px;
    max-width: none;
    min-width: 0;
    width: auto;
    max-height: min(70dvh, 520px);
    border-radius: 12px;
  }
  .is-reader-focus .reader-word-info {
    bottom: calc(86px + env(safe-area-inset-bottom));
    max-height: min(58dvh, calc(100svh - 112px - env(safe-area-inset-bottom)));
  }
}
@media (max-width: 420px) {
  .reader-text {
    padding: 14px;
  }
}
.practice-content {
  max-width: 920px;
  margin: 0 auto;
}
.practice-layout {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
}
.practice-sidebar {
  position: sticky;
  top: 88px;
}
.practice-sidebar-button {
  text-align: left;
}
.practice-sidebar-button[aria-current="page"] {
  background: var(--surface-panel);
  color: var(--brand);
  box-shadow: 0 1px 2px var(--shadow-color), inset 0 0 0 1px var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 1px 2px var(--shadow-color), inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
  }
}
.practice-session {
  max-width: 720px;
  margin: 0 auto;
}
.practice-card-wrap {
  perspective: 1200px;
  min-width: 0;
}
.practice-card-stage {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
}
.practice-card-side-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 64px;
  justify-self: center;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}
.practice-card {
  position: relative;
  min-height: min(420px, 56vh);
  transform-style: preserve-3d;
  transition: transform 220ms ease;
  cursor: pointer;
  outline: none;
}
.practice-card:focus-visible {
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.practice-card.is-flipped {
  transform: rotateY(180deg);
}
.practice-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  align-content: center;
  min-width: 0;
  padding: clamp(24px, 7vw, 56px);
  border: 1px solid var(--border-main);
  border-radius: 14px;
  background: var(--surface-panel);
  box-shadow: var(--shadow-panel);
  backface-visibility: hidden;
  text-align: center;
}
.practice-card-front {
  background: linear-gradient(135deg, var(--brand), transparent 46%), var(--surface-panel);
  @supports (color: color-mix(in lab, red, red)) {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 46%), var(--surface-panel);
  }
}
.practice-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--known), transparent 48%), var(--surface-panel);
  @supports (color: color-mix(in lab, red, red)) {
    background: linear-gradient(135deg, color-mix(in srgb, var(--known) 12%, transparent), transparent 48%), var(--surface-panel);
  }
}
.practice-card-word, .practice-card-translation {
  max-width: 100%;
  max-height: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
  color: var(--text-main);
  font-size: var(--practice-card-text-size, clamp(2.25rem, 4.5rem, 4.5rem));
  font-weight: 900;
  line-height: 1.12;
}
.practice-card-translation {
  overflow: hidden;
}
.practice-card-hint, .practice-card-phonetic {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
}
.practice-answer-button.is-unknown {
  border-color: var(--unknown);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--unknown) 36%, var(--border-main));
  }
  background: var(--unknown);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--unknown) 12%, var(--surface-panel));
  }
  color: var(--unknown-strong);
}
.practice-answer-button.is-known {
  border-color: var(--known);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--known) 36%, var(--border-main));
  }
  background: var(--known);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--known) 12%, var(--surface-panel));
  }
  color: var(--known-strong);
}
.practice-answer-button:not(:disabled):hover {
  filter: brightness(0.98);
}
@media (max-width: 760px) {
  .practice-content {
    max-width: none;
  }
  .practice-layout {
    grid-template-columns: 1fr;
  }
  .practice-sidebar {
    position: static;
  }
  .practice-sidebar-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .practice-sidebar-button {
    text-align: center;
  }
  .practice-card {
    min-height: min(420px, 58dvh);
  }
  .practice-card-stage {
    grid-template-columns: 1fr 1fr;
  }
  .practice-card-wrap {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .practice-card-side-button {
    grid-row: 2;
    width: 56px;
    height: 48px;
  }
  .practice-card-side-button-prev {
    grid-column: 1;
  }
  .practice-card-side-button-next {
    grid-column: 2;
  }
  .practice-card-face {
    padding: 22px;
  }
  .practice-answer {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 761px) {
  .settings-display-mode {
    display: none;
  }
}
.delete-account-section {
  border-color: var(--danger-border);
  background: var(--surface-panel);
  overflow: hidden;
}
.delete-account-toggle {
  color: var(--danger);
}
.delete-account-panel {
  border-color: var(--danger-border);
  background: var(--danger-hover-surface);
}
.delete-account-section h3 {
  color: var(--danger);
}
.delete-account-button {
  border: 1px solid var(--danger);
  background: var(--danger);
  color: #ffffff;
}
.delete-account-button:hover:not(:disabled) {
  border-color: var(--danger-border-hover);
  filter: brightness(0.96);
}
.delete-account-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
@media (max-width: 760px) {
  .settings-layout {
    gap: 12px;
  }
  .settings-menu {
    overflow-x: auto;
  }
  .settings-menu-button {
    min-width: 120px;
  }
  .delete-account-section {
    padding: 14px;
  }
  .delete-account-button {
    width: 100%;
  }
}
@media (max-width: 760px) {
  body {
    overflow-x: hidden;
    touch-action: pan-x pan-y;
  }
  input, select, textarea {
    font-size: 16px;
  }
  body.is-reader-active {
    height: auto;
    overflow: auto;
  }
  body.is-reader-focus {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
  }
  .section-head, .collection-actions, .word-table-toolbar, .word-pagination, .reader-toolbar, .practice-session-head, .practice-answer, .practice-notice-actions {
    width: 100%;
  }
  .section-head, .reader-toolbar, .practice-session-head {
    align-items: stretch;
  }
  .collection-actions, .word-pagination, .practice-answer, .practice-notice-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .word-pagination {
    gap: 8px;
  }
}
.material-row {
  min-width: 0;
}
.material-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid var(--border-main);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 9px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.material-row.is-active .material-card, .material-card:hover, .material-card:focus-within {
  border-color: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--brand) 34%, transparent);
  }
  background: var(--brand-hover-surface);
}
.material-row.is-active .material-card {
  box-shadow: inset 3px 0 0 var(--brand);
}
.material-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.material-title-button {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 800;
}
.material-title-button:hover {
  color: var(--brand);
}
.material-title-button:disabled {
  cursor: not-allowed;
  color: var(--text-muted);
}
.material-title-form {
  min-width: 0;
}
.material-title-input {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent);
  }
  border-radius: 6px;
  background: var(--surface-panel);
  padding: 4px 8px;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 800;
  outline: none;
}
.material-title-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.material-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-main small {
  color: var(--text-muted);
  font-weight: 600;
}
.material-progress {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}
.material-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}
.material-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transition: width 500ms ease;
}
.material-progress small {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--text-muted);
}
.material-actions {
  display: flex;
  gap: 4px;
}
.material-icon-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface-panel);
  color: var(--text-muted);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.material-rename-button {
  color: var(--text-secondary);
}
.material-rename-button:hover {
  border-color: var(--brand);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb, var(--brand) 34%, transparent);
  }
  color: var(--brand);
  background: var(--brand-hover-surface);
}
.material-delete-button {
  color: var(--danger);
}
.material-delete-button:hover {
  background: var(--danger-hover-surface);
  border-color: var(--danger-border-hover);
}
.material-action-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-leading {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-duration {
  syntax: "*";
  inherits: false;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-duration: initial;
    }
  }
}
