* {
  box-sizing: border-box;
}

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html {
  min-height: 100%;
  overflow-x: hidden;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img,
video {
  height: auto;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button:not([aria-label^="Show "]),
a[data-app-link],
a[data-link],
[role="button"] {
  min-height: 44px;
}

input,
select,
textarea {
  max-width: 100%;
  font-size: 16px;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
strong,
small,
a,
button,
td,
th {
  overflow-wrap: anywhere;
}

table {
  width: 100%;
}

.fixed.inset-0 {
  padding-left: max(0px, var(--safe-left));
  padding-right: max(0px, var(--safe-right));
}

:focus-visible {
  outline: 3px solid rgb(224 114 88 / 0.62);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.lingua-search-home {
  display: grid;
  grid-template-rows: auto 1fr;
}

.lingua-search-home__topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 64px;
  padding: max(12px, var(--safe-top)) max(18px, var(--safe-right)) 12px max(18px, var(--safe-left));
}

.lingua-search-home__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  background: #e07258;
  color: #ffffff;
  padding: 0 18px;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(29 41 63 / 0.14);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.lingua-search-home__login:hover {
  background: #bf5b45;
  box-shadow: 0 2px 5px rgb(29 41 63 / 0.18);
}

.lingua-search-home__main {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: clamp(64px, 14vh, 138px) 16px 48px;
}

.lingua-search-home__logo {
  width: clamp(136px, 18vw, 228px);
  max-height: 160px;
  object-fit: contain;
}

.lingua-search-home__form {
  display: grid;
  justify-items: center;
  width: min(100%, 584px);
  margin-top: 26px;
}

.lingua-search-home__searchbox {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid #ded6cc;
  border-radius: 999px;
  background: #fffaf4;
  padding: 0 16px;
  color: #8a9099;
  box-shadow: 0 1px 2px rgb(29 41 63 / 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.lingua-search-home__searchbox:hover,
.lingua-search-home__searchbox:focus-within {
  border-color: transparent;
  background: #ffffff;
  box-shadow: 0 1px 6px rgb(29 41 63 / 0.22);
}

.lingua-search-home__searchbox input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d293f;
  padding: 0 10px;
  font-size: 1rem;
  line-height: 48px;
}

.lingua-search-home__searchbox input::-webkit-search-decoration,
.lingua-search-home__searchbox input::-webkit-search-cancel-button {
  display: none;
}

.lingua-search-home__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.lingua-search-home__actions button,
.lingua-search-home__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #eee8df;
  border-radius: 4px;
  background: #f8f6f2;
  color: #2f353e;
  padding: 0 16px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 1px rgb(29 41 63 / 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.lingua-search-home__actions button:hover,
.lingua-search-home__actions a:hover {
  border-color: #ded6cc;
  color: #1d293f;
  box-shadow: 0 1px 2px rgb(29 41 63 / 0.12);
}

[data-action],
a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgb(224 114 88 / 0.16);
}

.responsive-card-table {
  border-collapse: collapse;
}

[data-modal-body] {
  min-width: 0;
  padding-bottom: max(2rem, calc(var(--safe-bottom) + 2rem));
}

[data-modal-panel] {
  overscroll-behavior: contain;
}

[data-avatar-crop-frame] {
  aspect-ratio: 1 / 1;
}

@media (max-width: 767px) {
  button:not([aria-label^="Show "]),
  a[data-app-link],
  a[data-link],
  [role="button"] {
    min-width: 44px;
  }

  form button:not([aria-label^="Show "]),
  form a[data-app-link],
  form a[data-link] {
    width: 100%;
  }

  .lingua-search-home__form .lingua-search-home__actions button,
  .lingua-search-home__form .lingua-search-home__actions a {
    width: auto;
  }

  .lingua-search-home__main {
    padding-top: clamp(52px, 12vh, 92px);
  }

  .responsive-table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .responsive-card-table,
  .responsive-card-table thead,
  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table th,
  .responsive-card-table td {
    display: block;
    width: 100%;
  }

  .responsive-card-table thead {
    display: none;
  }

  .responsive-card-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .responsive-card-table tr {
    border: 1px solid rgb(229 222 213 / 0.9);
    border-radius: 0.5rem;
    background: rgb(255 255 255 / 0.72);
    padding: 0.875rem;
  }

  .responsive-card-table td {
    border: 0;
    padding: 0.625rem 0;
  }

  .responsive-card-table td:first-child {
    padding-top: 0;
  }

  .responsive-card-table td:last-child {
    padding-bottom: 0;
  }

  .responsive-card-table td:not(:first-child) {
    border-top: 1px solid rgb(229 222 213 / 0.72);
  }

  .responsive-card-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    color: #6f6a62;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .responsive-card-table td:empty {
    display: none;
  }

  .responsive-card-table td.text-right,
  .responsive-card-table .text-right {
    text-align: left;
  }

  .responsive-card-table td .justify-end {
    justify-content: flex-start;
  }

  [data-modal-panel] {
    align-self: end;
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 0.5rem);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  [data-modal-body] {
    padding-bottom: max(5.5rem, calc(var(--safe-bottom) + 5.5rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
