:root {
  --content-width: 970px;
  --color-primary: #608DBC;
  --color-success: #679364;
  --color-danger: #A37AAB;
  --color-dark: #38404B;
  --color-text: #333;
  --color-text-light: #666;
}

html {
  height: 100%;
  box-sizing: border-box;
  -webkit-text-size-adjust: none;
  overflow-x: hidden;
}

body {
  background-color: #fdfdfd;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 1.5em;
}

html, input, button {
  font-family: Helvetica, Arial, sans-serif;
}

*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

.page {
  flex: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.page__header {
  margin-bottom: 2em;
  width: 100%;
}

.topbar {
  width: 100%;
  border-bottom: 1px solid #e0e0e0;
  background-color: #fff;
}

.topbar__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1em 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__logo {
  height: 40px;
}

.topbar__logo .logo__image {
  height: 100%;
  width: auto;
}

@media screen and (max-width: 970px) {
  .topbar__inner {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media screen and (max-width: 555px) {
  .topbar__inner {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.page__files {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
}

@media screen and (max-width: 970px) {
  .page {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media screen and (max-width: 555px) {
  .page {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.button {
  position: relative;
  background: none;
  outline: none;
  border: none;
  cursor: pointer;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 0.875em;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  height: 2.5em;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0 0.9em;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  min-width: 11em;
  transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out, opacity 0.2s ease-out;
}

.button:disabled, .button_disabled {
  opacity: 0.4;
  pointer-events: none;
}

.button:hover {
  background-color: #fff;
  color: var(--color-primary);
  transition: color 0.05s ease-in, background-color 0.05s ease-in, border-color 0.05s ease-in;
}

.button_secondary {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
}

.button_secondary:hover {
  color: var(--color-danger);
}

.button_dark {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff;
}

.button_dark:hover {
  color: var(--color-dark);
}

.button_success {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

.button_success:hover {
  color: var(--color-success);
}

.button__icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  margin-right: 0.75em;
  margin-left: -0.1em;
}

.button__counter {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(55%, -35%);
  font-size: 0.85em;
  font-weight: 700;
  width: 24px;
  height: 24px;
  line-height: 20px;
  text-align: center;
  background-color: var(--color-success);
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0px 3px 4px -2px rgba(0, 0, 0, 0.6);
}

.button__counter_dark {
  background-color: var(--color-dark);
}

.language {
  position: relative;
  z-index: 7;
}

.language__button {
  background: none;
  outline: none;
  border: none;
  cursor: pointer;
  font-size: 0.875em;
  height: 2.5em;
  padding: 0 1em;
  color: #333;
  background-color: transparent;
  transition: color 0.2s ease-out, background-color 0.2s ease-out;
  align-items: center;
  justify-content: center;
  display: flex;
  border: 1px solid #333;
  border-radius: 6px;
  font-weight: 600;
}

.language__button:hover {
  background-color: #333;
  color: #fff;
}

.language__text {
  margin-right: 0.5em;
}

.language__icon {
  fill: currentColor;
  transition: transform 0.2s ease-out;
}

.language__overflow {
  position: absolute;
  border: 1px solid #333;
  background-color: #fff;
  border-radius: 0.25em;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1;
  top: 100%;
  margin-top: 0.625em;
  right: 0;
  opacity: 0;
  transform: translateY(-0.3em);
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.language__list {
  padding: 0.3em 0;
  overflow: auto;
  list-style: none;
  max-height: 300px;
}

.language__title {
  display: block;
  text-decoration: none;
  color: #000;
  padding: 0.2em 1.4em;
  white-space: nowrap;
}

.language__title:hover {
  background-color: #f0f0f0;
}

.language__title_selected {
  font-weight: 600;
  color: #333;
}

.language_active .language__button {
  background-color: #333;
  color: #fff;
  transition: color 0.05s ease-in, background-color 0.05s ease-in;
}

.language_active .language__icon {
  transform: rotate(180deg);
}

.language_active .language__overflow {
  opacity: 1;
  transform: translateY(-2px);
  pointer-events: auto;
  transition: opacity 0.05s ease-in, transform 0.05s ease-in;
}

.logo {
  display: inline-block;
}

.logo__image {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  height: 100%;
}

.header {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
}

.header__left {
  position: relative;
  flex: 1;
  min-width: 0;
}

.header__logo {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 1.5em;
}

.logo {
  display: inline-block;
}

.logo__image {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  height: auto;
}

.header__language {
  position: absolute;
  right: 0;
  top: 0;
}

.header__text {
  line-height: 1.4;
  font-size: 1.07em;
  margin-bottom: 5px;
}

.header__text_hidden-sm {
  display: block;
}

@media screen and (max-width: 555px) {
  .header {
    width: auto;
    margin-right: -10px;
    margin-left: -10px;
  }
  .header__language {
    top: 0.5em;
  }
  .header__left {
    padding-top: 0.5em;
  }
  .header__logo {
    width: calc(90% - 4.5em);
    height: auto;
  }
  .header__text {
    text-align: center;
  }
  .header__text_hidden-sm {
    display: none;
  }
}

.page__switch {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}

.site-switch {
  display: flex;
  gap: 3px;
  width: 100%;
}

.site-switch__tab {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #38404B;
  background: #eaeaea;
  border: 1px solid #F2F2F2;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
}

.site-switch__tab:hover {
  background: #f2f2f2;
  color: #38404B;
}

.site-switch__tab_active {
  background: #fff;
  color: #d1580a;
  cursor: default;
  z-index: 1;
  box-shadow: 0px -3px 12px -2px rgba(42, 115, 217, 0.15);
}

.site-switch__tab_active:hover {
  background: #fff;
  color: #d1580a;
}

.site-switch__tab_right {
  margin-left: auto;
}

.site-switch__text {
  display: block;
}

@media screen and (max-width: 555px) {
  .site-switch__tab {
    padding: 6px 14px;
    font-size: 13px;
  }
}

.files {
  position: relative;
  margin-bottom: 3em;
  background-color: #fff;
  width: 100%;
  max-width: var(--content-width);
  border-radius: 0 0 0.75em 0.75em;
  border: 1px solid #F2F2F2;
  box-shadow: 0px 5px 16px -2px rgba(42, 115, 217, 0.2);
  font-size: 1em;
  padding: 1.6em 0;
  user-select: none;
}

.files__buttons {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  padding: 0 1em;
}

.files__buttons:not(:last-child) {
  margin-bottom: 0.7em;
}

.files__buttons:last-child {
  margin-top: 0.7em;
}

.files__input-files {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
}

.files__list-outer {
  position: relative;
  width: 100%;
  height: calc(163px + 20px);
  overflow: hidden;
}

.button_dark {
  background-color: #38404b;
  border-color: #38404b;
}

.button_dark:hover:not(:disabled) {
  background-color: #fff;
  color: #38404b;
}

.files__list {
  position: relative;
  height: calc(163px + 20px);
  padding: 10px 0 10px 3em;
  overflow: auto;
  display: flex;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.files__list::-webkit-scrollbar {
  display: none;
}

.files__list:after {
  content: '';
  display: inline-block;
  height: 100%;
  width: 3em;
  flex-shrink: 0;
}

.files__list-inner {
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
  list-style: none;
  display: flex;
  flex-shrink: 0;
  height: 163px;
}

.files__file {
  width: 163px;
  height: 100%;
  flex-shrink: 0;
}

.files__file:not(:last-child) {
  margin-right: 0.875em;
}

.files__drop-caption {
  position: absolute;
  z-index: 0;
  top: 0.5em;
  bottom: 0.5em;
  left: 3em;
  right: 3em;
}

.files__scroll-button {
  position: absolute;
  z-index: 3;
  top: 0;
  height: 100%;
  width: 2.6em;
  font-size: 1em;
}

.files__scroll-button:after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background-image: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.75), #fff);
}

.files__scroll-button_prev {
  left: -1px;
}

.files__scroll-button_next {
  right: -1px;
}

.files__scroll-button_next:after {
  transform: rotate(180deg);
}

@media screen and (max-width: 970px) {
  .files__list-outer {
    height: calc(150px + 20px);
  }

  .files__list {
    height: calc(150px + 20px);
  }

  .files__list-inner {
    height: 150px;
  }

  .files__file {
    width: 150px;
  }
}

@media screen and (max-width: 555px) {
  .files {
    padding: 1em 0;
  }

  .button {
    font-size: clamp(0.65rem, 2.5vw, 0.875rem);
  }
}

.drop-caption {
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

.drop-caption_hidden {
  transition: opacity 0.05s ease-in;
  opacity: 0;
  pointer-events: none;
}

.drop-caption__border {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  stroke: #b5cef2;
  stroke-dasharray: 10 10;
  stroke-dashoffset: 0;
  stroke-width: 2px;
}

.drop-caption__text {
  font-size: 1em;
  font-weight: 600;
  color: #b5cef2;
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  letter-spacing: 0.02em;
  transform: translateY(-50%);
}

.scroll-button {
  background: none;
  outline: none;
  border: none;
  cursor: pointer;
  color: var(--color-danger);
  transition: color 0.2s ease-out, opacity 0.2s ease-out;
}

.scroll-button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.scroll-button__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  fill: currentColor;
  width: 1.1em;
  height: 2.2em;
  filter: drop-shadow(0 2px 4px #fff);
  transition: transform 0.2s ease-out;
}

.scroll-button__icon_left {
  transform: translate(-50%, -50%) rotate(180deg);
}

.scroll-button:not(:disabled):hover .scroll-button__icon {
  transform: translate(calc(-50% + 3px), -50%);
  transition: transform 0.05s ease-in;
}

.scroll-button:not(:disabled):hover .scroll-button__icon_left {
  transform: translate(calc(-50% - 3px), -50%) rotate(180deg);
}

.file {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  cursor: default;
  opacity: 1;
  transition: transform 0.35s, opacity 0.35s;
}

.file:after {
  content: '';
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.file::before {
  content: '';
  position: absolute;
  top: -0.4em;
  left: -0.4em;
  right: -0.4em;
  bottom: -0.4em;
  border-radius: 0.75em;
  border: 3px solid var(--color-dark);
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transform-origin: center center;
  transition: opacity 0.35s, transform 0.35s;
}

.file_active::before {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.05s ease-in, transform 0.05s ease-in;
}

.file_can-setting {
  cursor: pointer;
}

.file__header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
  padding: 0.25em 0.75em;
}

.file__content {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
    linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  outline: none;
}

.file__content:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
}

.file__image {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  transition: opacity 0.2s ease-out;
}

.file__image_hidden {
  opacity: 0;
}

.file__close {
  position: absolute;
  top: 0.25em;
  right: 0.25em;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1em;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  width: 1.25em;
  height: 1.25em;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: color 0.2s ease-out, background-color 0.2s ease-out, opacity 0.2s ease-out;
}

.file__close:hover {
  color: var(--color-danger);
  filter: none;
}

.file__close:hover::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 2px;
  z-index: -1;
}

.file__close-icon {
  display: inline-block;
  vertical-align: top;
  fill: currentColor;
}

.file__title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.75em;
  font-weight: 600;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

.file__state {
  border: none;
  background: none;
  outline: none;
  position: absolute;
  font-size: 1em;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}

.file__state_visible {
  opacity: 1;
}

.file__state_error.file__state_visible {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  background-color: #999;
}

.file__state-icon {
  margin-bottom: 0.25em;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.file__state-text {
  color: #fff;
  font-size: 0.9375em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.file__state-text_tags {
  font-size: 2em;
  font-weight: 700;
  white-space: nowrap;
}

.file__tags-label {
  font-size: 0.5em;
  opacity: 0.8;
  text-transform: lowercase;
}

.file__download {
  display: none;
  position: absolute;
  z-index: 3;
  bottom: 0.5em;
  left: 0.5em;
  right: 0.5em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background-color: rgba(200, 230, 200, 0.85);
  color: #000;
  text-shadow: 0px 0px 2px #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 10px 8px -8px rgba(0, 0, 0, 0.125);
  cursor: pointer;
  opacity: 0.95;
  transition: background-color 0.2s ease-out;
}

.file__download:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.file__download-icon {
  display: none;
}

.file__download-text {
}

.file_has-download .file__download {
  display: block;
}

.long {
  padding: 1em 0 2em 0;
  line-height: 1.4;
  font-size: 1.07em;
}

.long h1 {
  font-size: 1.4em;
  text-align: left;
  color: var(--color-dark);
  border-bottom: 2px solid #F2F2F2;
}

.long h2 {
  font-size: 1.2em;
  text-align: left;
  color: var(--color-dark);
}

.long p {
  margin: 1em 0 1em 0;
}

.long ul {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 40px;
  font-size: 1.07em;
}

.long li {
  margin: 0.5em 0;
}

.footer {
  width: 100%;
  border-top: 1px solid #e0e0e0;
  background-color: #fff;
}

.footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1em 0;
  text-align: center;
}

@media screen and (max-width: 970px) {
  .footer__inner {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media screen and (max-width: 555px) {
  .footer__inner {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.footer__text {
  width: 100%;
  font-size: 0.9em;
  letter-spacing: 0.04em;
  color: #000;
}

.footer__text + .footer__text {
  margin-top: 1em;
}

.footer__link {
  color: var(--color-primary);
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2em;
}

.error-page__code {
  font-size: 5em;
  font-weight: 700;
  margin-bottom: 0.2em;
}

.error-page__code_404 {
  color: var(--color-primary);
}

.error-page__code_500 {
  color: var(--color-danger);
}

.error-page__text {
  font-size: 1.25em;
  color: #666;
  margin-bottom: 1.5em;
}

.settings {
  display: none;
  width: 100%;
  max-width: 970px;
  margin: 0 auto 40px;
  background: #fff;
  border-radius: 0.75em;
  border: 1px solid #f2f2f2;
  box-shadow: 0 5px 16px -2px rgba(42, 115, 217, 0.2);
  font-size: 16px;
}

.settings_visible {
  display: block;
}

.page__settings {
  margin-top: 0;
}

.settings__header {
  border-bottom: 1px solid #f2f2f2;
  padding: 0.5em 1em;
}

.settings__title {
  position: relative;
  text-align: center;
}

.settings__status {
  text-align: center;
  font-size: 1.125em;
  font-weight: 600;
  color: var(--color-success);
  margin: 0.5em 0 0;
}

.settings__status:empty {
  display: none;
}

.settings__title-text {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.125em;
  line-height: 1.2;
  word-break: break-word;
}

.settings__content {
  padding: 1.5em;
}

.settings__loader-outer {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5em;
  height: 2.5em;
}

.loader {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  color: var(--color-dark);
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.loader_hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.loader i {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 20px 20px;
  animation: loader-spin 1.2s linear infinite;
}

.loader i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 19px;
  width: 2px;
  height: 9px;
  border-radius: 20%;
  background: currentColor;
}

.loader i:nth-child(1) { transform: rotate(0deg); animation-delay: -1.1s; }
.loader i:nth-child(2) { transform: rotate(30deg); animation-delay: -1.0s; }
.loader i:nth-child(3) { transform: rotate(60deg); animation-delay: -0.9s; }
.loader i:nth-child(4) { transform: rotate(90deg); animation-delay: -0.8s; }
.loader i:nth-child(5) { transform: rotate(120deg); animation-delay: -0.7s; }
.loader i:nth-child(6) { transform: rotate(150deg); animation-delay: -0.6s; }
.loader i:nth-child(7) { transform: rotate(180deg); animation-delay: -0.5s; }
.loader i:nth-child(8) { transform: rotate(210deg); animation-delay: -0.4s; }
.loader i:nth-child(9) { transform: rotate(240deg); animation-delay: -0.3s; }
.loader i:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
.loader i:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
.loader i:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

@keyframes loader-spin {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.exif-panel {
  width: 100%;
}

.exif-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 2px solid #f2f2f2;
  gap: 1em;
}

.exif-panel__search {
  position: relative;
  flex: 1 1 auto;
  max-width: 400px;
}

.exif-panel__search-icon {
  position: absolute;
  left: 0.875em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125em;
  height: 1.125em;
  fill: #9ca0a5;
  pointer-events: none;
}

.exif-panel__search-input {
  width: 100%;
  padding: 0.625em 2.25em 0.625em 2.75em;
  border: 2px solid #e3edfa;
  border-radius: 6px;
  font-size: 0.875em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.exif-panel__search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(42, 115, 217, 0.1);
}

.exif-panel__search-clear {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25em;
  cursor: pointer;
  color: #999;
  display: none;
  align-items: center;
  justify-content: center;
}

.exif-panel__search-clear svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.exif-panel__search-clear:hover {
  color: var(--color-danger);
}

.exif-panel__search-input:not(:placeholder-shown) ~ .exif-panel__search-clear {
  display: flex;
}

.exif-panel__remove-btn {
  flex-shrink: 0;
}

.exif-panel__table-container {
  background: #fff;
  position: relative;
}

.exif-panel__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875em;
}

.exif-panel__th {
  text-align: left;
  padding: 1em 1.25em;
  background: #999;
  font-weight: 700;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.exif-panel__th:first-child {
  width: 35%;
}

.exif-panel__td {
  padding: 0.75em 1.25em;
  vertical-align: top;
  border-bottom: 1px solid #f2f2f2;
}

.exif-panel__td_tag {
  font-weight: 600;
  color: var(--color-dark);
  word-break: break-word;
}

.exif-panel__td_value {
  color: #666;
  word-break: break-all;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  font-size: 0.95em;
}

.exif-panel__table tbody tr:hover {
  background-color: #f8f9fa;
}

.exif-panel__no-results {
  text-align: center;
  padding: 3em 2em;
  color: #9ca0a5;
  font-style: italic;
}

.exif-panel__empty {
  text-align: center;
  padding: 4em 2em;
  color: #9ca0a5;
  font-size: 1.125em;
}

.exif-panel__empty p {
  margin: 0;
}

.exif-panel__empty_success {
  color: var(--color-success);
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .exif-panel__header {
    flex-direction: column;
    align-items: stretch;
    gap: 1em;
  }

  .exif-panel__search {
    width: 100%;
    max-width: none;
  }

  .exif-panel__remove-btn {
    width: 100%;
  }
}

@media screen and (max-width: 555px) {
  .settings__content {
    padding: 1em;
  }

  .exif-panel__th {
    padding: 0.75em 0.875em;
    font-size: 0.875em;
  }

  .exif-panel__td {
    padding: 0.625em 0.875em;
    font-size: 0.8125em;
  }
}

@media screen and (max-width: 767.98px) {
  .button,
  .language__button {
    font-size: 0.75em;
  }
}

@media screen and (max-width: 394.98px) {
  .button,
  .language__button {
    font-size: 0.625em;
  }
}

.popup {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: none;
  background-color: rgba(56, 64, 75, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.popup_visible {
  display: flex;
  opacity: 1;
}

.popup__close {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  position: absolute;
  color: #666;
  font-size: 1em;
  height: 1.5em;
  width: 1.5em;
  right: 1em;
  top: 1em;
  transition: color 0.2s ease-out;
}

.popup__close:hover {
  color: var(--color-danger);
}

.popup__close-icon {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.popup__overflow {
  position: relative;
  pointer-events: auto;
  max-width: 700px;
  width: calc(100% - 40px);
  min-height: auto;
  max-height: 80vh;
  margin: auto;
  font-size: 1em;
  background-color: #fff;
  border-radius: 1em;
  box-shadow: 0px 5px 30px -2px rgba(42, 115, 217, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.popup__title {
  position: relative;
  padding: 1em 3em 1em 1.5em;
  font-size: 1.2em;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.popup__content {
  overflow: auto;
  padding: 1em 1.5em;
}

.popup__content p {
  margin: 1em 0;
  font-size: 0.95em;
  line-height: 1.5;
  color: #333;
}

.popup__content h2 {
  font-size: 1.1em;
  margin: 1.5em 0 0.5em;
  color: var(--color-dark);
}

.popup__content a {
  color: var(--color-primary);
}

/* ========== Shimmer Hint Animation ========== */
@keyframes hint-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hint-shimmer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: hint-shimmer 0.6s ease-in-out;
  pointer-events: none;
  clip-path: inset(0 round 6px);
}

/* ========== Article Color Overrides (muted palette) ========== */
.article__highlight {
  background: linear-gradient(135deg, #e8f1f8 0%, #d5e4f0 100%);
  border-left: 4px solid #608DBC;
}

.article__highlight strong {
  color: #4a7099;
}

.article__tip {
  background: linear-gradient(135deg, #e8f2e7 0%, #d8ebd6 100%);
  border-left: 4px solid #679364;
}

.article__tip strong {
  color: #527550;
}

.article__warning {
  background: linear-gradient(135deg, #f8f3e6 0%, #f0e6cc 100%);
  border-left: 4px solid #C9A857;
}

.article__warning strong {
  color: #9a8242;
}

.article__example {
  background: linear-gradient(135deg, #f3eef5 0%, #e8dded 100%);
  border-left: 4px solid #A37AAB;
}

.article__example h4 {
  color: #825e89;
}

.article__table_colored thead {
  background: linear-gradient(135deg, #608DBC 0%, #4a7099 100%);
}

.article__table_colored tbody tr:nth-child(odd) {
  background: #f6f9fb;
}

.article__table_colored tbody tr:hover {
  background: #e8f1f8;
}
