body,
html {
  font-family: "Montserrat", sans-serif;
  padding: 0px;
  margin: 0px;
}

:root {
  --gg-navy: #222A59;
  --gg-primary: #3068D9;
  --gg-green: #9DBF21;
  --gg-yellow: #F2B705;
  --gg-red: #F24B4B;
  --gg-bg: #f4f7fb;
  --gg-surface: #ffffff;
  --gg-surface-soft: #f8faff;
  --gg-border: #dbe3f3;
  --gg-muted: #5f6882;
  --gg-shadow: rgba(34, 42, 89, 0.16);
  --gg-font-family: "Montserrat", sans-serif;
}

body,
button,
input,
optgroup,
select,
textarea,
md-card,
md-dialog,
.md-button,
.md-toolbar-tools {
  font-family: var(--gg-font-family);
}

body * {
  font-family: var(--gg-font-family);
}

#root-view {
  background: var(--gg-bg);
}

.home-screen.md-padding {
  background:
    linear-gradient(rgba(244, 247, 251, 0.88), rgba(244, 247, 251, 0.96)),
    url("../img/bg_city.svg") center bottom / 900px auto repeat-x;
  min-height: 100vh;
  padding: 28px 16px;
}

.home-language-switch {
  box-sizing: border-box;
  margin-bottom: 14px;
  max-width: 1120px;
  width: 100%;
}

.home-language-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #3068D9;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  text-decoration: none;
}

.home-language-switch span {
  background: #c7d2ec;
  height: 14px;
  margin: 0 10px;
  width: 1px;
}

#welcome-box {
  /* max-width: 1120px; */
  max-width: 1200px;
  width: 100%;
}

.home-card {
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(34, 42, 89, 0.18);
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(420px, 0.95fr);
  margin: 0;
  min-height: 680px;
  overflow: hidden;
}

.home-visual-panel {
  background: #3068D9;
  height: 100%;
  min-height: 680px;
  overflow: hidden;
  position: relative;
}

.home-cover-image {
  filter: saturate(1.08) contrast(1.02);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.home-visual-panel::after {
  background:
    linear-gradient(180deg, rgba(34, 42, 89, 0.88) 0%, rgba(34, 42, 89, 0.58) 34%, rgba(34, 42, 89, 0.1) 100%),
    linear-gradient(135deg, rgba(48, 104, 217, 0.68), rgba(242, 183, 5, 0.22));
  content: "";
  inset: 0;
  position: absolute;
}

.home-visual-overlay {
  box-sizing: border-box;
  color: #fff;
  left: 0;
  padding: 34px;
  position: absolute;
  right: 0;
  top: 20px;
  z-index: 1;
}

.home-brand {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 18px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.home-course-context {
  max-width: 520px;
}

.home-course-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.home-course-label {
  background: rgba(242, 183, 5, 0.14);
  border: 1px solid rgba(242, 183, 5, 0.42);
  border-radius: 999px;
  color: #F2B705;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 0;
  padding: 7px 12px;
  text-transform: uppercase;
}

.home-course-certification-label {
  background: rgba(157, 191, 33, 0.16);
  border-color: rgba(157, 191, 33, 0.46);
  color: #9DBF21;
}

.home-course-title {
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
}

.home-form-panel {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.home-form-logo-header {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 30px 46px 0;
  width: 100%;
}

.home-game-logo {
  display: block;
  filter: drop-shadow(0 12px 24px rgba(34, 42, 89, 0.12));
  height: auto;
  max-height: 168px;
  max-width: min(580px, 94%);
  object-fit: contain;
  width: auto;
}

.home-form-panel md-card-content {
  padding: 24px 46px 18px;
}

.home-form-panel md-card-actions {
  padding: 0 46px 42px;
}

.home-form-heading {
  margin-bottom: 24px;
}

.home-form-kicker {
  color: #F2B705;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.home-form-heading h2 {
  color: #222A59;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.home-fields {
  display: grid;
  gap: 12px;
}

.home-field {
  background: #fff;
  border: 1px solid #dbe3f3;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  box-sizing: border-box;
  margin: 0;
  min-height: 52px;
  overflow: hidden;
  padding: 0 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

md-input-container.home-field {
  align-items: center;
  display: flex;
  height: 52px;
  position: relative;
}

.home-field input {
  color: #222A59;
  font-size: 16px;
  height: 36px;
  line-height: 36px;
}

.home-field.md-input-focused {
  background: #fff;
  border-color: #3068D9;
  box-shadow: 0 0 0 3px rgba(48, 104, 217, 0.12);
}

.home-field.md-input-invalid {
  border-color: #dbe3f3;
}

.home-field.md-input-invalid.md-input-focused {
  border-color: #3068D9;
}

.home-field input::placeholder {
  color: #5f6882;
  font-weight: 600;
  opacity: 1;
}

.student-code-panel {
  background: #f8faff;
  border: 1px solid #dbe3f3;
  border-radius: 8px;
  margin-top: 16px;
  padding: 16px;
}

.student-type-group md-radio-button {
  margin: 8px 0;
}

.home-section-title {
  color: #222A59;
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
}

.avatar-section {
  margin-top: 22px;
}

.avatar-grid md-radio-group {
  display: grid;
  gap: 12px;
}

.avatar-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.avatar-choice {
  background: #fff;
  border: 1px solid #dbe3f3;
  border-radius: 8px;
  box-sizing: border-box;
  height: 76px;
  margin: 0;
  max-width: none;
  overflow: hidden;
  padding: 8px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.avatar-choice:hover {
  border-color: #3068D9;
  box-shadow: 0 10px 26px rgba(34, 42, 89, 0.12);
  transform: translateY(-1px);
}

.avatar-choice.md-checked {
  border-color: #3068D9;
  box-shadow: 0 0 0 3px rgba(48, 104, 217, 0.14), 0 14px 28px rgba(34, 42, 89, 0.12);
}

.avatar-choice.md-checked::after {
  background: #3068D9;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(48, 104, 217, 0.18);
  content: "";
  height: 12px;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 12px;
}

.avatar-choice .md-label {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-left: 0;
  width: 100%;
}

.avatar-choice .md-container {
  display: none;
}

#welcome-box .avatar-choice img {
  height: 54px;
  max-width: 54px;
  min-width: 54px;
  width: 54px;
}

.contact-consent {
  background: #f8faff;
  border: 1px solid #dbe3f3;
  border-radius: 8px;
  margin: 18px 0 8px;
  padding: 12px 14px 12px 38px;
}

.contact-consent .md-container {
  left: 12px;
}

.contact-consent .md-label {
  color: #4f5873;
  font-size: 13px;
  line-height: 1.35;
  margin-left: 0;
  white-space: normal;
}

#btn-start-game {
  background: #3068D9;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(48, 104, 217, 0.28);
  color: #fff;
  font-weight: 800;
  height: 52px;
  margin: 0;
  min-width: 190px;
}

#btn-start-game:hover {
  background: #222A59;
}

.home-contact {
  color: #5f6882;
  font-size: 14px;
  margin: 18px 0 0;
}

.home-contact a {
  color: #3068D9;
  font-weight: 700;
  text-decoration: none;
}

.home-field .md-input {
  border-color: transparent !important;
  border-bottom-width: 0;
  margin: 0;
  padding-bottom: 0;
}

.home-field.md-input-focused .md-input,
.home-field.md-input-invalid .md-input,
.home-field.md-input-invalid.md-input-focused .md-input {
  border-color: transparent !important;
}

.home-field .md-errors-spacer {
  display: none;
  min-height: 0;
}

@media (max-width: 960px) {
  .home-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-visual-panel {
    height: 250px;
    min-height: 250px;
  }

  .home-form-logo-header {
    padding: 28px 28px 0;
  }

  .home-game-logo {
    max-height: 140px;
    max-width: min(490px, 94%);
  }

  .home-form-panel md-card-content {
    padding: 22px 28px 16px;
  }

  .home-form-panel md-card-actions {
    padding: 0 28px 32px;
  }

  .home-course-title {
    font-size: 32px;
  }
}

@media (max-width: 560px) {
  .home-screen.md-padding {
    padding: 12px;
  }

  .home-form-logo-header {
    padding: 22px 18px 0;
  }

  .home-game-logo {
    max-height: 112px;
    max-width: min(390px, 94%);
  }

  .home-language-switch {
    padding: 0 2px;
  }

  .home-card {
    border-radius: 8px;
  }

  .home-visual-panel {
    height: 210px;
    min-height: 210px;
  }

  .home-visual-overlay {
    padding: 24px;
    top: 10px;
  }

  .home-course-title {
    font-size: 28px;
  }

  .home-form-heading h2 {
    font-size: 30px;
  }

  .home-form-panel md-card-content {
    padding: 18px 18px 12px;
  }

  .home-form-panel md-card-actions {
    padding: 0 18px 28px;
  }

  .avatar-row {
    gap: 8px;
  }

  .avatar-choice {
    height: 68px;
    padding: 6px;
  }

  #welcome-box .avatar-choice img {
    height: 46px;
    max-width: 46px;
    min-width: 46px;
    width: 46px;
  }

  #btn-start-game {
    min-width: 100%;
  }
}

.avatar {
  width: 19%;
  max-width: 64px;
  min-width: 40px;
  border-radius: 50%;
}

.option-correct {
  color: #9DBF21 !important;
}

.option-wrong {
  color: #F24B4B !important;
}

#categories-header {
  width: 100%;
  padding: 25px 25px;
  background-color: #3068D9;
  color: white;
  position: fixed;
  z-index: 1;
  left: 0px;
  top: 0px;
  height: 87px;
}

#categories-header svg {
  fill: #fff;
}

#categories-content md-grid-tile-footer {
  background: rgba(34, 42, 89, 0.5);
}

#categories-header .avatar {
  margin-left: 10px;
  margin-right: 25px;
}

.categories-user-context {
  min-width: 0;
  padding-right: 16px;
}

.categories-username {
  font-size: 24px;
  line-height: 1.15;
}

.categories-course-title {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.25;
  max-width: 640px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#categories-content {
  position: relative;
}

md-grid-list {
  top: 5.6em;
}

.gdrive-link {
  width: 180px;
  padding-top: 10px;
}

#categories-content .box {
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
}

.category-attended figure {
  background: url("../img/icons/ic_done_black_24px_green.svg") no-repeat;
  background-position: 10% 10%;
}

img.attended {
  position: relative;
  top: 10px;
}

.box-content .box-content-left {
  padding: 14px 16px;
  border-radius: 50%;
  background-color: #f4f7fb;
  text-align: center;
}

.box-content .box-content-right {
  padding-left: 20px;
}

#categories-content .box:hover {
  background-color: #dbe6ff;
}

#categories-content .category-footer {
  height: 50px;
  background-color: #222A59;
  color: #fff;
  padding: 7px;
}

#questions-header {
  padding: 15px 15px;
}

#questions-header i {
  cursor: pointer;
}

#questions-content {
  max-width: 528px;
  width: 100%;
}

#questions-content md-card-content {
  padding: 20px 0px;
}

.multiple-choice-options {
  padding: 0 20px;
}

.option-multiple-choice {
  margin: 6px 0;
  min-height: 44px;
  line-height: 1.25;
  white-space: normal;
  text-align: left;
  text-transform: none;
}

.option-multiple-choice .md-ripple-container {
  border-radius: 2px;
}

#questions-footer {
  position: absolute;
  left: 0px;
  bottom: 0px;
  height: 80px;
  width: 100%;
}

@media (min-width: 513px) {
  #questions-content .md-title {
    font-size: 1.3em;
  }

  #questions-content md-card-header {
    background: #3068D9;
    padding: 60px 25px;
    color: #fff;
  }

  #score-content md-card-header .md-fab {
    position: absolute;
    margin: 111px 410px;
  }

  #score-content md-card {
    margin-top: 50px;
    width: 512px;
  }

  #questions-footer .status {
    height: 80px;
    width: 512px;
    margin: 0px auto;
    background: #fff;
    bottom: 0px;
  }
}

@media (max-width: 512px) {
  #questions-content .md-title {
    font-size: 1.1em;
  }

  #questions-content md-card-header {
    background: #3068D9;
    padding: 25px 25px;
    color: #fff;
  }

  #score-content md-card-header .md-fab {
    position: absolute;
    margin: 115px -50px;
  }

  #score-content md-card {
    margin-top: 0px;
    width: 100%;
  }

  #questions-footer .status {
    height: 80px;
    width: 100%;
    margin: 0px;
    background: #fff;
  }
}

#questions-footer .status .status-progress {
  height: 5px;
}

.status .status-info {
  padding: 0px 10px;
}

.status-content {
  width: 100%;
}

#questions-footer .status .status-content img {
  margin-right: 15px;
}

#questions-footer .status .avatar {
  width: 48px;
  height: 48px;
}

#questions-footer .status .category-title {
  /*width: 296px;*/
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#winner-point-box {
  padding: 0px 30px;
  background-color: #fff;
  font-size: 1.8em;
  display: none;
}

#score-content md-card-header {
  background: #9DBF21;
  padding: 60px 25px;
  color: #222A59;
}

#score-content md-card-content {
  min-height: 400px;
}

.icon-correct svg {
  fill: #9DBF21;
}
.icon-wrong svg {
  fill: #F24B4B;
}

.passed h3 {
  color: #9DBF21;
}
.disapproved h3 {
  color: #F24B4B;
}

.button-gray {
  background-color: #f4f7fb !important;
}
.button-gray md-icon {
  color: #5f6882;
}

.svg-color-default svg {
  fill: #3068D9;
}

.modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: #dbe3f3;
  color: white;
  z-index: 2;
  visibility: hidden;
  /*opacity: 0;*/
  pointer-events: none;
  transition: 200ms ease, z-index 3s;
  -webkit-transition: 200ms ease, z-index 3s;
  -moz-transition: 200ms ease, z-index 3s;
  -o-transition: 200ms ease, z-index 3s;
  -ms-transition: 200ms ease, z-index 3s;
  overflow: auto;
}

.md-card-image {
  max-height: 150px;
}

#loading {
  /* color: #3068D9; */
  color: #3068D9;
  text-align: center;
  margin-top: 230px;
}

.health {
  width: 16px;
  height: 16px;
}

.health.type-0 svg {
  fill: #c7d2ec;
}

.health.type-1 svg {
  fill: #F24B4B;
}

.readme pre {
  width: 80%;
  word-wrap: break-word;
}

.error {
  color: #F24B4B;
}

.btn-try-certificate {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.btn-try-certificate.certificate-granted .md-button {
  background-color: #dbe3f3;
  color: #222A59;
  box-shadow: none;
}

.certificate-form {
  width: 100%;
  max-width: 600px;
}

.gridList md-grid-list {
  margin: 8px;
}
#box-0 {
  background: #fff7d8;
}
#box-1 {
  background: #e6f2bd;
}
#box-2 {
  background: #fff7d8;
}
#box-3 {
  background: #dbe6ff;
}
#box-4 {
  background: #dbe3f3;
}
#box-5 {
  background: #F2B705;
}
#box-6 {
  background: #9DBF21;
}
#box-7 {
  background: #f8faff;
}
#box-8 {
  background: #3068D9;
}
#box-9 {
  background: #dbe3f3;
}
#box-10 {
  background: #ffdada;
}
#box-11 {
  background: #3068D9;
}
#box-12 {
  background: #9DBF21;
}
#box-13 {
  background: #F2B705;
}
.gridList md-grid-tile {
  cursor: pointer;
  transition: all 400ms ease-out 50ms;
}

button.md-fab.answer-key {
  background-color: #3068D9;
}

button.md-fab.answer-key > md-icon > svg {
  fill: #fff;
}

button.answer-key.md-fab:hover {
  background-color: #3068D9;
}

.gridList md-grid-tile:hover {
  opacity: 0.75;
  /*-webkit-transform: scale(1.5);
     -moz-transform: scale(1.5);
      -ms-transform: scale(1.5);
       -o-transform: scale(1.5);
          transform: scale(1.5);*/
}

.text-align-right {
  text-align: right;
}
.text-align-center {
  text-align: center;
}

/* Modern game flow: categories, question round and score */
.categories-screen,
.round-screen {
  background:
    linear-gradient(rgba(244, 247, 251, 0.9), rgba(244, 247, 251, 0.96)),
    url("../img/bg_city.svg") center bottom / 900px auto repeat-x;
  box-sizing: border-box;
  min-height: 100vh;
}

.categories-screen {
  padding: 24px 0 120px;
}

.categories-shell,
.round-shell {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1120px;
  width: calc(100% - 32px);
}

#categories-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(34, 42, 89, 0.13);
  color: #222A59;
  display: flex;
  height: auto;
  justify-content: space-between;
  left: auto;
  padding: 16px 18px;
  position: sticky;
  top: 16px;
  z-index: 5;
}

#categories-header svg {
  fill: #3068D9;
}

.categories-header-main,
.categories-actions {
  align-items: center;
  display: flex;
  min-width: 0;
}

.categories-header-main {
  gap: 14px;
}

.categories-actions {
  gap: 12px;
  justify-content: flex-end;
}

.categories-back,
.round-back {
  background: #eef3ff;
  border: 1px solid #dbe6ff;
  margin: 0;
}

.categories-avatar,
.round-avatar {
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(34, 42, 89, 0.16);
  height: 58px;
  max-width: 58px;
  min-width: 58px;
  width: 58px;
}

.categories-user-context {
  min-width: 0;
  padding-right: 12px;
}

.categories-kicker,
.round-kicker,
.status-label,
.score-kicker,
.category-card-label,
.round-question-number {
  color: #F2B705;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.categories-course-title {
  color: #222A59;
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 680px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.categories-username {
  color: #5f6882;
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 3px;
}

.categories-materials.md-button {
  align-items: center;
  border: 1px solid #dbe3f3;
  border-radius: 8px;
  color: #3068D9;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  height: 42px;
  line-height: 42px;
  margin: 0;
  padding: 0 14px;
}

.categories-score {
  align-items: baseline;
  background: #3068D9;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(48, 104, 217, 0.22);
  color: #fff;
  display: flex;
  gap: 5px;
  min-width: 84px;
  padding: 9px 14px;
  box-sizing: border-box;
}

.categories-score strong {
  font-size: 26px;
  line-height: 1;
}

.categories-score span {
  font-size: 13px;
  font-weight: 800;
}

#categories-content {
  padding-top: 22px;
  position: relative;
}

.categories-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.category-card {
  -webkit-appearance: none;
  appearance: none;
  background: #fff !important;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(34, 42, 89, 0.1);
  box-sizing: border-box;
  color: #222A59;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  justify-content: space-between;
  min-height: 230px;
  overflow: hidden;
  padding: 22px;
  position: relative;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card::before {
  background: linear-gradient(90deg, #3068D9, #9DBF21, #F2B705);
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.category-card:hover,
.category-card:focus {
  border-color: #3068D9;
  box-shadow: 0 20px 48px rgba(34, 42, 89, 0.16);
  outline: none;
  transform: translateY(-3px);
}

.category-card-icon {
  align-items: center;
  align-self: flex-end;
  background-color: #f8faff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 58%;
  border: 1px solid #dbe3f3;
  border-radius: 50%;
  display: flex;
  height: 96px;
  width: 96px;
}

.category-card-body {
  display: block;
  margin-top: 24px;
}

.category-card-body strong {
  color: #222A59;
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.category-card-status {
  align-items: center;
  background: #f5f9e8;
  border: 1px solid #e6f2bd;
  border-radius: 999px;
  color: #9DBF21;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  line-height: 1;
  margin-top: 18px;
  padding: 8px 11px;
  width: fit-content;
}

.category-card-status md-icon {
  height: 16px;
  min-height: 16px;
  min-width: 16px;
  width: 16px;
}

.category-card-status svg {
  fill: #9DBF21;
}

.category-attended {
  border-color: #dbeaa0;
  box-shadow: 0 16px 40px rgba(157, 191, 33, 0.13);
}

.category-card[disabled] {
  cursor: default;
  opacity: 0.72;
}

.category-card[disabled]:hover,
.category-card[disabled]:focus {
  border-color: #dbeaa0;
  box-shadow: 0 16px 40px rgba(157, 191, 33, 0.13);
  transform: none;
}

.btn-try-certificate {
  bottom: 20px;
  position: fixed;
  right: 20px;
  z-index: 6;
}

.btn-try-certificate .md-button {
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(242, 183, 5, 0.26);
  font-weight: 800;
  min-height: 46px;
  padding: 0 18px;
}

.btn-try-certificate.certificate-granted .md-button {
  background-color: #dbe3f3;
  color: #4f5873;
  box-shadow: none;
}

.welcome-tutorial-dialog {
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(34, 42, 89, 0.3);
  max-height: calc(100vh - 32px);
  max-width: 640px;
  overflow: hidden;
  width: calc(100vw - 32px);
}

.welcome-tutorial-accent {
  background: linear-gradient(90deg, #3068D9, #9DBF21, #F2B705);
  height: 7px;
  width: 100%;
}

.welcome-tutorial-content {
  color: #222A59;
  padding: 26px 28px 10px;
}

.welcome-tutorial-header {
  border-bottom: 1px solid #dbe3f3;
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.welcome-tutorial-header span,
.welcome-tutorial-step {
  color: #F2B705;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.welcome-tutorial-header h2 {
  color: #222A59;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.16;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.welcome-tutorial-page h3 {
  color: #222A59;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 8px 0 14px;
}

.welcome-tutorial-page p {
  color: #4f5873;
  font-size: 15px;
  line-height: 1.58;
  margin: 0 0 12px;
}

.welcome-tutorial-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.welcome-tutorial-cards article {
  background: #f8faff;
  border: 1px solid #dbe3f3;
  border-radius: 8px;
  padding: 15px;
}

.welcome-tutorial-cards strong {
  color: #3068D9;
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.welcome-tutorial-cards p {
  font-size: 14px;
  margin: 0;
}

.welcome-tutorial-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin: 20px 0 4px;
}

.welcome-tutorial-dots span {
  background: #c7d2ec;
  border-radius: 999px;
  height: 8px;
  transition: background-color 0.2s ease, width 0.2s ease;
  width: 8px;
}

.welcome-tutorial-dots span.active {
  background: #3068D9;
  width: 24px;
}

.welcome-tutorial-actions {
  border-top: 1px solid #dbe3f3;
  padding: 14px 20px 18px;
}

.welcome-tutorial-actions .md-button {
  border-radius: 8px;
  font-weight: 800;
  margin: 0;
}

.welcome-tutorial-skip {
  color: #5f6882;
}

.welcome-tutorial-next.md-button {
  background-color: #3068D9;
  box-shadow: 0 12px 26px rgba(48, 104, 217, 0.22);
  color: #fff;
  min-width: 116px;
}

@media (max-width: 640px) {
  .welcome-tutorial-content {
    padding: 22px 20px 8px;
  }

  .welcome-tutorial-header h2 {
    font-size: 22px;
  }

  .welcome-tutorial-page h3 {
    font-size: 20px;
  }

  .welcome-tutorial-cards {
    grid-template-columns: 1fr;
  }

  .welcome-tutorial-actions {
    padding: 12px 16px 16px;
  }
}

.round-screen {
  padding: 24px 0 128px;
}

#questions-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(34, 42, 89, 0.13);
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  position: sticky;
  top: 16px;
  z-index: 5;
}

.round-topbar-main {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.round-context {
  min-width: 0;
}

.round-category-title {
  color: #222A59;
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 680px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.md-fab.answer-key,
button.answer-key.md-fab:hover {
  background-color: #3068D9;
  box-shadow: 0 12px 26px rgba(48, 104, 217, 0.28);
}

#round-view {
  margin-top: 38px;
}

.round-question-shell {
  min-height: calc(100vh - 280px);
}

#questions-content {
  max-width: 760px;
  width: 100%;
}

#questions-content md-card.round-question-card {
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(34, 42, 89, 0.16);
  margin: 0;
  overflow: hidden;
}

#questions-content md-card-header {
  background:
    linear-gradient(135deg, rgba(34, 42, 89, 0.96), rgba(48, 104, 217, 0.9)),
    url("../img/bg_city.svg") center bottom / 520px auto repeat-x;
  color: #fff;
  padding: 44px 38px;
}

#questions-content .round-question-number {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
}

#questions-content .round-question-title {
  color: #fff;
  display: block;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#questions-content md-card-content {
  padding: 28px;
}

.binary-options {
  gap: 16px;
  margin: 0;
}

.option-correct,
.option-wrong,
.option-multiple-choice {
  border-radius: 8px;
  box-shadow: none;
  font-weight: 800;
  margin: 0;
  min-height: 50px;
  text-transform: none;
}

.option-correct {
  background: #f5f9e8 !important;
  border: 1px solid #dbeaa0;
  color: #9DBF21 !important;
}

.option-wrong {
  background: #fff7d8 !important;
  border: 1px solid #F2B705;
  color: #222A59 !important;
}

.option-correct:hover,
.option-wrong:hover,
.option-multiple-choice:hover {
  box-shadow: 0 12px 26px rgba(34, 42, 89, 0.12);
}

.multiple-choice-options {
  display: grid;
  gap: 10px;
  padding: 0;
}

.option-multiple-choice {
  background: #f8faff !important;
  border: 1px solid #dbe3f3;
  color: #222A59 !important;
  line-height: 1.3;
  padding: 10px 16px;
  text-align: left;
  white-space: normal;
}

.option-multiple-choice:hover {
  background: #eef3ff !important;
  border-color: #3068D9;
}

#winner-point-box {
  background: #3068D9;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(48, 104, 217, 0.28);
  color: #fff;
  display: none;
  font-size: 1.8em;
  margin-bottom: 18px;
  padding: 0 30px;
}

#questions-footer {
  bottom: 16px;
  height: auto;
  left: 0;
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: 6;
}

#questions-footer .round-status-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(34, 42, 89, 0.18);
  height: auto;
  margin: 0 auto;
  max-width: 760px;
  overflow: hidden;
  pointer-events: auto;
  width: calc(100% - 32px);
}

#questions-footer .status .status-progress {
  background: linear-gradient(90deg, #3068D9, #9DBF21, #F2B705);
  height: 5px;
}

#questions-footer .status-info {
  padding: 12px 16px;
}

#questions-footer .status-avatar {
  height: 46px;
  margin-right: 14px;
  max-width: 46px;
  min-width: 46px;
  width: 46px;
}

.status-context {
  min-width: 0;
}

#questions-footer .status .category-title {
  color: #222A59;
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-progress-text {
  color: #5f6882;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.status-metric {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 92px;
}

.status-score {
  color: #3068D9;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.status-health {
  align-items: center;
  display: flex;
  gap: 2px;
}

.health {
  height: 16px;
  width: 16px;
}

#score-content.round-score-shell {
  min-height: calc(100vh - 180px);
  padding: 34px 0 0;
}

#score-content md-card.round-score-card {
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(34, 42, 89, 0.16);
  margin: 0;
  max-width: 760px;
  overflow: hidden;
  width: 100%;
}

#score-content md-card-header {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(34, 42, 89, 0.96), rgba(48, 104, 217, 0.9)),
    url("../img/bg_city.svg") center bottom / 520px auto repeat-x;
  color: #fff;
  min-height: 0;
  padding: 38px;
  position: relative;
}

#score-content .score-kicker {
  color: rgba(255, 255, 255, 0.82);
}

#score-content md-card-header .md-title {
  color: #fff;
  display: block;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 4px;
}

#score-content .score-resume h3,
#score-content .score-resume h4 {
  color: #fff;
  margin: 10px 0 0;
}

.score-share-link {
  appearance: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(204, 251, 241, 0.44);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 10px;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
}

.score-share-link:hover,
.score-share-link:focus {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.score-share-link[disabled] {
  cursor: default;
  opacity: 0.7;
}

.score-share-feedback {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 8px;
}

#score-content .score-next-button {
  background: #fff !important;
  box-shadow: 0 12px 26px rgba(34, 42, 89, 0.2);
  margin: 0 0 0 18px;
  position: static;
}

#score-content md-card-header .score-next-button.md-fab {
  margin: 0 0 0 18px;
  position: static;
}

#score-content md-card-content {
  min-height: 0;
  padding: 28px 34px 34px;
}

.score-message {
  background: #f8faff;
  border: 1px solid #dbe3f3;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 16px 18px;
}

.score-pending-message {
  color: #222A59;
}

.score-answers-list {
  padding: 0;
}

.score-answer-item {
  border: 1px solid #dbe3f3;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px;
}

.score-answer-item .md-list-item-text p {
  color: #222A59;
  line-height: 1.35;
}

@media (max-width: 780px) {
  .categories-screen,
  .round-screen {
    padding-top: 12px;
  }

  #categories-header,
  #questions-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    top: 8px;
  }

  .categories-actions {
    justify-content: space-between;
    width: 100%;
  }

  .categories-course-title,
  .round-category-title {
    max-width: none;
    white-space: normal;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .category-card {
    min-height: 200px;
  }

  #round-view {
    margin-top: 22px;
  }

  #questions-content md-card-header,
  #score-content md-card-header {
    padding: 30px 24px;
  }

  #questions-content .round-question-title {
    font-size: 21px;
  }

  .binary-options {
    flex-direction: column;
  }

  .binary-options .md-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .categories-shell,
  .round-shell {
    width: calc(100% - 24px);
  }

  .categories-avatar,
  .round-avatar {
    height: 50px;
    max-width: 50px;
    min-width: 50px;
    width: 50px;
  }

  .categories-course-title {
    font-size: 19px;
  }

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

  .categories-materials.md-button,
  .categories-score {
    justify-content: center;
    width: 100%;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 180px;
  }

  .category-card-icon {
    height: 78px;
    width: 78px;
  }

  .btn-try-certificate {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .btn-try-certificate .md-button {
    margin: 0;
    width: 100%;
  }

  #questions-content md-card-content,
  #score-content md-card-content {
    padding: 22px 18px;
  }

  #questions-footer .round-status-card {
    width: calc(100% - 24px);
  }

  #questions-footer .status-info {
    padding: 10px 12px;
  }

  #questions-footer .status-avatar {
    display: none;
  }

  .status-metric {
    min-width: 74px;
  }

  .status-score {
    font-size: 25px;
  }

  #score-content md-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  #score-content .score-next-button {
    margin: 20px 0 0;
  }

  #score-content md-card-header .score-next-button.md-fab {
    margin: 20px 0 0;
  }
}

/* Modern certificate flow */
.certificate-screen {
  background:
    linear-gradient(rgba(244, 247, 251, 0.9), rgba(244, 247, 251, 0.96)),
    url("../img/bg_city.svg") center bottom / 900px auto repeat-x;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 28px 16px;
}

.certificate-card {
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(34, 42, 89, 0.18);
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(440px, 1fr);
  margin: 0 auto;
  max-width: 1120px;
  min-height: 690px;
  overflow: hidden;
  width: 100%;
}

.certificate-visual-panel {
  background:
    linear-gradient(135deg, rgba(34, 42, 89, 0.97), rgba(48, 104, 217, 0.88)),
    url("../img/bg_city.svg") center bottom / 640px auto repeat-x;
  color: #fff;
  min-height: 690px;
  overflow: hidden;
  position: relative;
}

.certificate-visual-panel::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(34, 42, 89, 0.02), rgba(34, 42, 89, 0.42));
  content: "";
  inset: 0;
  position: absolute;
}

.certificate-visual-overlay {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  padding: 34px;
  position: relative;
  z-index: 1;
}

.certificate-back {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  left: 24px;
  margin: 0;
  position: absolute;
  top: 24px;
}

.certificate-back svg {
  fill: #fff;
}

.certificate-brand {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 18px;
  padding: 8px 12px;
  text-transform: uppercase;
  width: fit-content;
}

.certificate-context {
  max-width: 520px;
}

.certificate-kicker,
.certificate-form-kicker {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.certificate-kicker {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
}

.certificate-context h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
}

.certificate-context p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.5;
  margin: 16px 0 0;
}

.certificate-form-panel {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.certificate-form-panel md-card-content {
  padding: 42px 46px 18px;
}

.certificate-form-panel md-card-actions {
  padding: 0 46px 42px;
}

.certificate-heading {
  margin-bottom: 22px;
}

.certificate-form-kicker {
  color: #F2B705;
  margin-bottom: 6px;
}

.certificate-heading h2 {
  color: #222A59;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
  margin: 0;
}

.certificate-form {
  max-width: none;
  width: 100%;
}

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

.certificate-field {
  background: #fff;
  border: 1px solid #dbe3f3;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  box-sizing: border-box;
  margin: 0 0 12px;
  min-height: 52px;
  overflow: hidden;
  padding: 0 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

md-input-container.certificate-field {
  align-items: center;
  display: flex;
  height: 52px;
  position: relative;
}

.certificate-field input {
  color: #222A59;
  font-size: 16px;
  height: 36px;
  line-height: 36px;
}

.certificate-field.md-input-focused {
  background: #fff;
  border-color: #3068D9;
  box-shadow: 0 0 0 3px rgba(48, 104, 217, 0.12);
}

.certificate-field.md-input-invalid {
  border-color: #dbe3f3;
}

.certificate-field.md-input-invalid.md-input-focused {
  border-color: #3068D9;
}

.certificate-field input::placeholder {
  color: #5f6882;
  font-weight: 600;
  opacity: 1;
}

.certificate-field .md-input,
.certificate-field.md-input-focused .md-input,
.certificate-field.md-input-invalid .md-input,
.certificate-field.md-input-invalid.md-input-focused .md-input {
  background-image: none !important;
  border-color: transparent !important;
  border-bottom-width: 0;
  margin: 0;
  padding-bottom: 0;
}

.certificate-field .md-input[disabled] {
  background-image: none !important;
  border-bottom-color: transparent !important;
  border-bottom-width: 0;
  color: #9aa4bd;
  cursor: default;
}

.certificate-select-field select.md-input {
  color: #222A59;
  cursor: pointer;
  font-weight: 700;
  height: 36px;
  line-height: 36px;
  width: 100%;
}

.certificate-select-field select.md-input:invalid {
  color: #5f6882;
  font-weight: 600;
}

.certificate-field .md-errors-spacer {
  display: none;
  min-height: 0;
}

.certificate-field-error {
  color: #F24B4B;
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 0;
}

.certificate-checkbox {
  background: #f8faff;
  border: 1px solid #dbe3f3;
  border-radius: 8px;
  margin: 4px 0 14px;
  padding: 12px 14px 12px 38px;
}

.certificate-checkbox .md-container {
  left: 12px;
}

.certificate-checkbox .md-label {
  color: #4f5873;
  font-size: 14px;
  line-height: 1.35;
  margin-left: 0;
  white-space: normal;
}

.certificate-email-note {
  background: #eef3ff;
  border: 1px solid #dbe6ff;
  border-radius: 8px;
  color: #4f5873;
  font-size: 14px;
  line-height: 1.4;
  margin: 4px 0 14px;
  padding: 13px 14px;
}

.certificate-email-note span,
.certificate-email-note strong {
  display: block;
}

.certificate-email-note strong {
  color: #3068D9;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.certificate-error {
  background: #fff0f0;
  border: 1px solid #ffdada;
  border-radius: 8px;
  color: #F24B4B;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 12px 14px;
}

.certificate-submit {
  background: #3068D9 !important;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(48, 104, 217, 0.28);
  color: #fff !important;
  font-weight: 800;
  height: 52px;
  margin: 0;
  min-width: 180px;
}

.certificate-submit:hover {
  background: #222A59 !important;
}

.certificate-message-screen {
  align-items: center;
  display: flex;
  justify-content: center;
}

.certificate-message-card {
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(34, 42, 89, 0.16);
  box-sizing: border-box;
  margin: 0;
  max-width: 620px;
  padding: 42px;
  text-align: center;
  width: 100%;
}

.certificate-message-icon {
  align-items: center;
  background: #fff7d8;
  border: 1px solid #f7dc82;
  border-radius: 50%;
  display: inline-flex;
  height: 72px;
  justify-content: center;
  margin-bottom: 22px;
  width: 72px;
}

.certificate-message-icon svg {
  fill: #F2B705;
}

.certificate-message-icon-success {
  background: #f5f9e8;
  border-color: #e6f2bd;
}

.certificate-message-icon-success svg {
  fill: #9DBF21;
}

.certificate-message-card h1 {
  color: #222A59;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  margin: 8px 0 12px;
}

.certificate-message-card p {
  color: #4f5873;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 460px;
}

.certificate-message-course {
  background: #f8faff;
  border: 1px solid #dbe3f3;
  border-radius: 8px;
  color: #222A59;
  font-weight: 800;
  margin: 0 auto 22px;
  max-width: 460px;
  overflow-wrap: anywhere;
  padding: 12px 14px;
}

.certificate-message-action {
  background: #3068D9 !important;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(48, 104, 217, 0.24);
  color: #fff !important;
  font-weight: 800;
  min-height: 48px;
  padding: 0 18px;
}

@media (max-width: 960px) {
  .certificate-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .certificate-visual-panel {
    min-height: 270px;
  }

  .certificate-form-panel md-card-content {
    padding: 34px 28px 16px;
  }

  .certificate-form-panel md-card-actions {
    padding: 0 28px 32px;
  }
}

@media (max-width: 560px) {
  .certificate-screen {
    padding: 12px;
  }

  .certificate-card,
  .certificate-message-card {
    border-radius: 8px;
  }

  .certificate-visual-panel {
    min-height: 240px;
  }

  .certificate-visual-overlay {
    padding: 24px;
  }

  .certificate-context h1 {
    font-size: 25px;
  }

  .certificate-context p {
    font-size: 14px;
  }

  .certificate-heading h2 {
    font-size: 23px;
  }

  .certificate-form-panel md-card-content {
    padding: 28px 18px 12px;
  }

  .certificate-form-panel md-card-actions {
    padding: 0 18px 28px;
  }

  .certificate-field-grid {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .certificate-submit,
  .certificate-message-action {
    margin: 0;
    width: 100%;
  }

  .certificate-message-card {
    padding: 32px 22px;
  }

  .certificate-message-card h1 {
    font-size: 30px;
  }
}

/* Certificate issue layout variation */
.certificate-entry-screen {
  padding-bottom: 44px;
}

.certificate-workspace {
  margin: 0 auto;
  max-width: 1120px;
  width: 100%;
}

.certificate-hero {
  background:
    linear-gradient(135deg, rgba(34, 42, 89, 0.97), rgba(48, 104, 217, 0.9)),
    url("../img/bg_city.svg") center bottom / 760px auto repeat-x;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(34, 42, 89, 0.16);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 280px;
  overflow: hidden;
  padding: 34px;
  position: relative;
}

.certificate-hero::after {
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.16), transparent 25%),
    linear-gradient(180deg, rgba(34, 42, 89, 0.02), rgba(34, 42, 89, 0.35));
  content: "";
  inset: 0;
  position: absolute;
}

.certificate-hero .certificate-back {
  left: 24px;
  position: absolute;
  top: 24px;
  z-index: 2;
}

.certificate-hero-content {
  align-self: flex-end;
  max-width: 650px;
  min-width: 0;
  padding-top: 54px;
  position: relative;
  z-index: 1;
}

.certificate-hero .certificate-brand {
  margin-bottom: 18px;
}

.certificate-hero h1 {
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  overflow-wrap: anywhere;
}

.certificate-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.5;
  margin: 14px 0 0;
  max-width: 560px;
}

.certificate-hero-meta {
  align-self: flex-end;
  display: grid;
  gap: 10px;
  min-width: 230px;
  position: relative;
  z-index: 1;
}

.certificate-hero-meta span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: #fff;
  display: block;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  padding: 12px 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.certificate-issue-card {
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(34, 42, 89, 0.14);
  margin: -16px auto 0;
  overflow: hidden;
  position: relative;
  width: calc(100% - 48px);
  z-index: 2;
}

.certificate-issue-heading {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid #dbe3f3;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  padding: 28px 32px 24px;
}

.certificate-issue-heading h2 {
  color: #222A59;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
}

.certificate-issue-layout {
  background: #fff;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.certificate-summary-panel {
  background: #f8faff;
  border-right: 1px solid #dbe3f3;
  box-sizing: border-box;
  padding: 30px 28px;
}

.certificate-summary-icon {
  align-items: center;
  background: #eef3ff;
  border: 1px solid #dbe6ff;
  border-radius: 50%;
  display: flex;
  height: 62px;
  justify-content: center;
  margin-bottom: 20px;
  width: 62px;
}

.certificate-summary-icon svg {
  fill: #3068D9;
}

.certificate-summary-kicker {
  color: #F2B705;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.certificate-summary-panel > strong {
  color: #222A59;
  display: block;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 8px;
}

.certificate-summary-panel > p {
  color: #4f5873;
  font-size: 14px;
  line-height: 1.45;
  margin: 12px 0 20px;
  overflow-wrap: anywhere;
}

.certificate-summary-panel .certificate-email-note {
  background: #fff;
  margin: 0;
}

.certificate-form-area {
  box-sizing: border-box;
  padding: 30px 32px 32px;
}

.certificate-form-section {
  border-bottom: 1px solid #dbe3f3;
  margin-bottom: 22px;
  padding-bottom: 10px;
}

.certificate-form-section:last-of-type {
  margin-bottom: 16px;
}

.certificate-form-section h3 {
  color: #222A59;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 16px;
}

.certificate-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

@media (max-width: 900px) {
  .certificate-hero {
    flex-direction: column;
    min-height: 300px;
  }

  .certificate-hero-meta {
    align-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certificate-issue-layout {
    grid-template-columns: 1fr;
  }

  .certificate-summary-panel {
    border-bottom: 1px solid #dbe3f3;
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .certificate-hero {
    min-height: 310px;
    padding: 24px;
  }

  .certificate-hero h1 {
    font-size: 27px;
  }

  .certificate-hero-meta {
    grid-template-columns: 1fr;
  }

  .certificate-issue-card {
    /* margin-top: -24px; */
    margin-top: 0;
    width: 100%;
  }

  .certificate-issue-heading,
  .certificate-form-area,
  .certificate-summary-panel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .certificate-issue-heading h2 {
    font-size: 23px;
  }
}
