@import "buttons.css";

body, html {
  font-family: Montserrat, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#app {
  width: 100vw;
  height: 100vh
}

.app {
  height: 100%;
}


.word {
  cursor: pointer;
}

.word.checked {
  font-weight: bold;
}

/*.word.right.light {*/
/*  color: #07d67b;*/
/*  opacity: 0.6;*/
/*}*/

.word.checked.light {
  color: #ff5252;
  opacity: 1;
}

.word.checked.right.light {
  color: #07d67b;
  opacity: 1;
}


@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat.ttf") format("truetype");
  font-display: swap;
}

:root {
  --blue: #2563d8;
  --green: #22c147;
  --bg: #eeeeee;
  --text: #1f1f1f;
  --muted: #7c7c7c;
  --card: #ffffff;
  --line: #d8d8d8;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

button {
  cursor: pointer;
}

/* ---------- START SCREEN ---------- */

.start-screen {
  min-height: 100vh;
  background:
          radial-gradient(circle at 15% 80%, rgba(255,0,255,.35), transparent 13%),
          radial-gradient(circle at 80% 25%, rgba(255,255,255,.15), transparent 11%),
          linear-gradient(135deg, #6124e8, #155bd4 55%, #5027df);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
}

.start-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('img/start_bg.png');
  background-position: center center;
  background-repeat: no-repeat;
  opacity: .9;
}

.hero-art {
  position: absolute;
  font-size: 72px;
  opacity: .9;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.15));
}

.hero-art.left { left: 90px; top: 120px; }
.hero-art.right { right: 130px; bottom: 110px; }
.hero-art.small1 { left: 210px; bottom: 110px; font-size: 48px; }
.hero-art.small2 { right: 260px; top: 120px; font-size: 52px; }

.start-content {
  position: relative;
  z-index: 2;
}

.start-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 70px;
}

.start-btn {
  border: none;
  background: white;
  color: #333;
  font-size: 18px;
  border-radius: 8px;
  padding: 14px 42px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

/* ---------- LESSON LAYOUT ---------- */

.lesson {
  display: none;
  min-height: 100vh;
  padding: 14px 18px 18px 36px;
  position: relative;
}

.lesson.active {
  display: block;
}

.top-title {
  height: 28px;
  font-size: 14px;
  display: flex;
  align-items: center;
  padding-left: 2px;
}

.work-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  height: calc(100vh - 50px);
}

.left-panel,
.right-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 0;
}

.right-panel {
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
}

.right-header {
  padding: 18px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  background: white;
}

.task-scroll {
  overflow: auto;
  padding: 0 12px 18px;
}

.progress {
  position: fixed;
  left: 6px;
  top: 50px;
  width: 20px;
  display: grid;
  gap: 4px;
  z-index: 20;
}

.progress button {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #7aa7c8;
  background: #fff;
  color: #333;
  font-size: 12px;
  padding: 0;
}

.progress button.skip {
  background: #7aa7c8;
  color: #333;
  border-color: #7aa7c8;
  font-weight: 700;
}

.progress button.done {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 700;
}

/* ---------- INTRO ---------- */

.intro-card {
  max-width: 620px;
  margin: 15vh auto 0;
  font-size: 20px;
  line-height: 1.45;
}

.intro-card h1 {
  font-size: 28px;
  margin-bottom: 28px;
  font-weight: 500;
}

.primary-btn {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 44px;
  font-size: 16px;
  margin-top: 24px;
}

/* ---------- FAKE BROWSER ---------- */

.browser {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
}

.browser-toolbar {
  height: 60px;
  background: #f6f6f6;
  border-bottom: 1px solid #e0e0e0;
  grid-template-columns: 130px 1fr 150px;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 13px;
  color: #555;
}

.browser-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.round-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  display: grid;
  place-items: center;
  color: #555;
}

.address {
  height: 56px;
  background-image: url('img/sidebar.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  /*border: 1px solid #eee;*/
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  color: #777;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 16px;
}

.browser-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-size: 18px;
}

.site-tabs {
  height: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fafafa;
  border-bottom: 1px solid #e4e4e4;
}

.site-tab {
  border: none;
  background: #fff;
  border-right: 1px solid #e7e7e7;
  color: #777;
  font-size: 13px;
  text-align: center;
}

.site-tab.active-blue {
  color: #333;
  border-top: 4px solid var(--blue);
  background: white;
}

.site-tab.active-green {
  color: #333;
  border-top: 4px solid var(--green);
  background: white;
}

.site-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -1px;
}

.site-dot.blue { background: var(--blue); }
.site-dot.green { background: var(--green); }

.browser-content {
  flex: 1;
  overflow: auto;
  background: white;
}

/* ---------- SEARCH ---------- */

.search-page {
  padding: 32px 70px;
}

.yandex-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 46px;
}

.y-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f43b22;
  color: white;
  font-size: 40px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  flex: 0 0 auto;
}

.search-box {
  height: 56px;
  background-image: url('img/search.png');;
  border-radius: 26px;
  width: min(800px, 100%);
  display: flex;
  align-items: center;
  padding: 0 22px 0 65px;
  font-size: 17px;
}

.result {
  margin: 0 0 32px;
  max-width: 820px;
}

.result-title {
  color: #1d2393;
  font-size: 21px;
  margin-bottom: 8px;
  cursor: pointer;
}

.result-title:hover {
  text-decoration: underline;
}

.result-url {
  color: #087b20;
  font-size: 14px;
  margin-bottom: 10px;
}

.result-text {
  font-size: 15px;
  line-height: 1.4;
}

/* ---------- SITE CONTENT ---------- */

.site-banner {
  min-height: 220px;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  background-image: url('img/site1.png');
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.site-banner.green {
  background-image: url('img/site2.png');
}

/*.site-banner::before {*/
/*  content: "✉  🕊  🥁";*/
/*  position: absolute;*/
/*  inset: 0;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: space-around;*/
/*  opacity: .28;*/
/*  font-size: 64px;*/
/*  pointer-events: none;*/
/*}*/

.inner-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  background: white;
  border-bottom: 1px solid #ddd;
  padding-left: 160px;
  display: flex;
  gap: 0;
}

.inner-tabs button {
  border: none;
  background: white;
  color: #999;
  padding: 18px 18px 13px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
}

.inner-tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.article {
  max-width: 760px;
  margin: 46px auto 90px;
  font-size: 17px;
  line-height: 1.55;
}

.article h2 {
  font-size: 26px;
  margin: 0 0 34px;
  font-weight: 500;
}

.article p {
  margin: 0 0 22px;
}

.article a.info {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px dashed var(--blue);
  cursor: pointer;
}

.illustration {
  width: 520px;
  max-width: 100%;
  min-height: 260px;
  margin: 34px auto;
  border-radius: 4px;
  /*background:*/
  /*        linear-gradient(135deg, #e9f4ff, #fff6e7);*/
  display: grid;
  place-items: center;
  color: #333;
  font-size: 90px;
  /*border: 1px solid #eee;*/
}

.illustration img {
  width: 100%;
}

.illustration.paper {
  background: #d9b987;
  color: #5c3e18;
  font-size: 72px;
}

.illustration.greenish {
  background: linear-gradient(135deg, #e8fff0, #e8f6ff);
}

.site-view {
  display: none;
}

.site-view.active {
  display: block;
}

/* ---------- TASKS ---------- */

.task-card,
.notice-card {
  background: white;
  border-radius: 10px;
  padding: 20px 16px;
  margin: 12px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  font-size: 14px;
  line-height: 1.45;
}

.notice-card {
  font-size: 20px;
  font-weight: 500;
}

.notice-card.green {
  background: var(--green);
  color: white;
}

.task-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.options label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
}

textarea,
input[type="text"],
select {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  resize: vertical;
  min-height: 44px;
  background: #fff;
}

select {
  min-height: 40px;
}

.save-btn {
  margin-top: 10px;
  padding: 11px 24px;
  border: 1px solid #555;
  border-radius: 8px;
  background: white;
  color: #333;
  font-size: 15px;
}

.save-btn.saved {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.task-group {
  display: none;
}

.task-group.active {
  display: block;
}

.exit-btn, .check-btn {
  width: 200px;
  margin: auto;
  display: block;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 16px;
}

/* ---------- MODAL ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.overlay.show {
  display: flex;
}

.modal {
  width: min(460px, 92vw);
  background: white;
  border-radius: 24px;
  padding: 44px 38px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
  position: relative;
}

.modal.wide {
  width: min(520px, 92vw);
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 42px;
  margin: 0 auto 28px;
  color: white;
}

.modal-icon.red { background: #ff402f; }
.modal-icon.green { background: var(--green); border-radius: 50%; }

.modal-text {
  font-size: 24px;
  line-height: 1.35;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: none;
  background: transparent;
  font-size: 34px;
  color: #777;
}

.modal-img {
  min-height: 260px;
  display: grid;
  place-items: center;
  font-size: 92px;
}

.modal-img img {
  width: 100%;
}

.modal-body {
  padding: 28px;
}

.modal-body h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 20px;
}

.modal-body p {
  line-height: 1.5;
  font-size: 15px;
}

@media (max-width: 900px) {
  .work-area {
    grid-template-columns: 1fr;
    height: auto;
  }

  .left-panel,
  .right-panel {
    min-height: 70vh;
  }

  .browser-toolbar {
    grid-template-columns: 90px 1fr;
  }

  .browser-actions {
    display: none;
  }

  .inner-tabs {
    padding-left: 10px;
    overflow-x: auto;
  }

  .lesson {
    padding-left: 30px;
  }
}

.task-card li {
  padding: 8px;
  margin-bottom: 6px;
  background: #f1f1f1;
  border-radius: 6px;
  cursor: grab;
  user-select: none;
}

.task-card li.dragging {
  opacity: 0.5;
}

.task-card li.drop-before {
  border-top: 3px solid #4f8cff;
}

.task-card li.drop-after {
  border-bottom: 3px solid #4f8cff;
}

.task-card .variant-wrapper {
  display: flex;
  flex-direction: row;
}

.task-card .variant-wrapper > div {
  width: 98%;
  padding: 1%;

}

.task-card .user-variant-label, .task-card .right-variant-label {
  font-weight: bold;
  display: none;
}

.task-card .right-variant {
  display: none;
}

.work-area.finished .task-card .variant-wrapper > div {
  width: 48%;
  display: flex;
  flex-direction: column;
}

.work-area.finished .task-card .right-variant-label, .work-area.finished .task-card .user-variant-label {
  display: block;
}

.work-area.finished .task-card .right-variant {
  display: flex;
}

.right-variant input:checked {
  accent-color: #087b20;
  color: #087b20;
}

.right-variant label.checked  {
  color: #087b20;
  font-weight: bold;
}

p.right-light, li.right-light {
  color: #087b20;
  font-weight: bold;
}

.work-area.finished .save-btn, .work-area.finished .check-btn {
  display: none !important;
}

.work-area.finished {
  grid-template-columns: minmax(0, 1fr) 0px;
}

.work-area.finished .left-panel, .work-area.finished .notice-card {
  display: none !important;
}

/* ---------- Планшеты и сенсорный ввод (п. 5.3.8 ТЗ) ---------- */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

#app {
  width: 100%;
  max-width: 100%;
}

img {
  max-width: 100%;
}

.task-scroll {
  overscroll-behavior: contain;
}

.mobile-view-switch {
  display: none;
  gap: 8px;
  padding: 8px 12px 10px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
}

.mobile-view-switch button {
  flex: 1 1 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #555;
  font: 600 15px/1 Montserrat, Arial, sans-serif;
}

.mobile-view-switch button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.sort-controls {
  display: none;
  gap: 6px;
  margin-left: 10px;
}

.task-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  touch-action: none;
}

.task-card li > .sort-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #b9c5d8;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.task-card li > .sort-controls button:active {
  background: #eaf0ff;
}

.task-card li.dragging {
  pointer-events: none;
  opacity: .65;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.task-card ul.sort-active {
  user-select: none;
}

@media (pointer: coarse) {
  .sort-controls {
    display: inline-flex;
  }

  .progress {
    top: 8px;
    gap: 2px;
  }

  .progress button {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .site-tab,
  .inner-tabs button {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .options {
    gap: 4px;
  }

  .options label {
    min-height: 44px;
    align-items: center;
    padding: 6px 0;
  }

  .options input[type="radio"],
  .options input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .result-title {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 0;
  }

  a.info,
  .word {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }

  .save-btn,
  .primary-btn,
  .start-btn,
  .check-btn,
  .exit-btn,
  .modal-close,
  .site-section {
    min-height: 44px;
  }

  textarea,
  input[type="text"],
  select {
    font-size: 16px; /* iOS не приближает страницу при фокусе */
    min-height: 48px;
  }
}

@media (max-width: 1279px) {
  .mobile-view-switch {
    display: flex;
  }

  .progress {
    top: 64px;
    left: 6px;
    width: auto;
    grid-template-columns: repeat(2, 44px);
    gap: 3px;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 4px;
  }

  .lesson {
    padding: 0 12px 14px 104px;
  }

  .work-area {
    grid-template-columns: minmax(0, 1fr);
    height: calc(100dvh - 118px);
  }

  .work-area.finished {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  body.smi-view-text .right-panel {
    display: none;
  }

  body.smi-view-tasks .left-panel {
    display: none;
  }

  .left-panel,
  .right-panel {
    min-height: 0;
    height: 100%;
  }

  .browser-toolbar {
    grid-template-columns: 90px 1fr;
  }

  .browser-actions {
    display: none;
  }

  .inner-tabs {
    padding-left: 10px;
    overflow-x: auto;
  }

  .search-page {
    padding: 24px 22px;
  }

  .article {
    margin: 28px 18px 60px;
    font-size: 16px;
  }

  .result {
    max-width: 100%;
  }

  .task-card .variant-wrapper {
    flex-direction: column;
  }

  .task-card .variant-wrapper > div {
    width: 100%;
  }

  .work-area.finished .task-card .variant-wrapper > div {
    width: 100%;
  }

  .start-screen {
    min-height: 100dvh;
    padding: 28px 18px;
  }
}

@media (max-width: 600px) {
  .progress {
    grid-template-columns: 44px;
  }

  .lesson {
    padding: 0 8px 10px 56px;
  }

  .mobile-view-switch {
    padding: 6px 8px 8px;
  }

  .task-card,
  .notice-card {
    padding: 16px 12px;
  }

  .task-card h3 {
    font-size: 19px;
  }

  .task-scroll {
    padding: 0 8px 14px;
  }

  .work-area {
    height: calc(100dvh - 108px);
  }

  .site-banner {
    min-height: 160px;
    font-size: clamp(22px, 7vw, 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Экраны интеграции с серверной частью: анкета, ошибки, отправка, завершение. */

#smiScreen,
.smi-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  color: #fff;
  background:
    radial-gradient(circle at 15% 80%, rgba(255, 0, 255, .35), transparent 13%),
    radial-gradient(circle at 80% 25%, rgba(255, 255, 255, .15), transparent 11%),
    linear-gradient(135deg, #6124e8, #155bd4 55%, #5027df);
  font-family: Montserrat, Arial, sans-serif;
}

#smiScreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('img/start_bg.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: .35;
  pointer-events: none;
}

.smi-card {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  color: #1f1f1f;
  border-radius: 22px;
  padding: 36px 34px 30px;
  box-shadow: 0 26px 70px rgba(15, 10, 50, .32);
  text-align: left;
}

.smi-card--wide {
  width: min(760px, 100%);
}

.smi-brand {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a7a8c;
  margin-bottom: 16px;
}

.smi-card h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 12px;
}

.smi-lead {
  font-size: 15px;
  line-height: 1.55;
  color: #4d4d5c;
  margin: 0 0 22px;
}

.smi-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.smi-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.smi-field label {
  font-size: 14px;
  font-weight: 600;
}

.smi-req {
  color: #d64545;
}

.smi-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd2dd;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: #1f1f1f;
  background: #fff;
}

.smi-field input:focus {
  outline: 2px solid #2563d8;
  outline-offset: -1px;
  border-color: #2563d8;
}

.smi-hint {
  font-size: 12.5px;
  color: #7a7a8c;
}

.smi-form-error {
  min-height: 20px;
  font-size: 13.5px;
  color: #c23b3b;
  line-height: 1.4;
}

.smi-primary,
.smi-secondary {
  min-height: 48px;
  border-radius: 8px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.smi-primary {
  background: #2563d8;
  color: #fff;
}

.smi-primary:hover:not(:disabled) {
  background: #1b4fb5;
}

.smi-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.smi-secondary {
  background: #fff;
  color: #333;
  border-color: #cfd2dd;
}

.smi-secondary:hover {
  border-color: #2563d8;
  color: #2563d8;
}

.smi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.smi-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid rgba(37, 99, 216, .18);
  border-top-color: #2563d8;
  animation: smi-spin .8s linear infinite;
  margin: 6px 0 4px;
}

.smi-screen .smi-spinner {
  border-color: rgba(255, 255, 255, .3);
  border-top-color: #fff;
}

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

.smi-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  background: #c23b3b;
  margin-bottom: 18px;
}

.smi-screen--overlay {
  background: rgba(12, 16, 32, .55);
  z-index: 210;
}

.smi-submitting {
  position: fixed;
  inset: 0;
  z-index: 205;
  display: none;
  place-items: center;
  background: rgba(12, 16, 32, .35);
}

.smi-submitting.show {
  display: grid;
}

.smi-submitting__box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  color: #1f1f1f;
  border-radius: 14px;
  padding: 20px 26px;
  font-size: 15px;
  box-shadow: 0 18px 50px rgba(15, 10, 50, .3);
}

.smi-submitting .smi-spinner {
  width: 26px;
  height: 26px;
  border-width: 3px;
  margin: 0;
  border-color: rgba(37, 99, 216, .18);
  border-top-color: #2563d8;
}

@media (max-width: 560px) {
  .smi-card {
    padding: 26px 20px 22px;
    border-radius: 16px;
  }

  .smi-card h1 {
    font-size: 22px;
  }

  .smi-actions .smi-primary,
  .smi-actions .smi-secondary {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smi-spinner {
    animation-duration: 2s;
  }
}
