body.gp-modern-v1 {
  --gp-bg-page: #eef3f7;
  --gp-bg-shell: #06151f;
  --gp-bg-shell-elevated: rgba(4, 23, 30, 0.88);
  --gp-bg-surface: #ffffff;
  --gp-bg-surface-muted: #f5f8fb;
  --gp-text-primary: #172326;
  --gp-text-secondary: #4d6268;
  --gp-text-on-dark: #f5fbff;
  --gp-accent: #1e6fff;
  --gp-accent-hover: #ff7a1a;
  --gp-success: #16a34a;
  --gp-warning: #f59e0b;
  --gp-danger: #dc2626;
  --gp-border: rgba(25, 64, 72, 0.16);
  --gp-border-strong: rgba(63, 204, 226, 0.42);
  --gp-focus: #4fd8ff;
  --gp-radius-sm: 6px;
  --gp-radius-md: 10px;
  --gp-radius-lg: 16px;
  --gp-shadow-sm: 0 2px 8px rgba(5, 18, 25, 0.14);
  --gp-shadow-md: 0 12px 34px rgba(5, 18, 25, 0.22);
  --gp-space-1: 4px;
  --gp-space-2: 8px;
  --gp-space-3: 12px;
  --gp-space-4: 16px;
  --gp-space-5: 24px;
  --gp-space-6: 32px;
  --gp-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  background: var(--gp-bg-page);
  color: var(--gp-text-primary);
  font-family: var(--gp-font-body);
  line-height: 1.45;
}

body.gp-modern-v1 .bar {
  background-color: var(--gp-bg-shell);
  background-image:
    radial-gradient(circle at 18% 10%, rgba(30, 111, 255, 0.18), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(255, 122, 26, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(2, 16, 24, 0.92), rgba(5, 32, 35, 0.82)),
    url("bg-image.png");
  color: var(--gp-text-on-dark);
}

body.gp-modern-v1 .top-menu {
  background: rgba(3, 18, 25, 0.72);
  border-bottom: 1px solid rgba(79, 216, 255, 0.18);
  box-shadow: var(--gp-shadow-sm);
}

body.gp-modern-v1 .topLogoBox,
body.gp-modern-v1 .logo-char {
  color: var(--gp-text-on-dark);
}

body.gp-modern-v1 .logo-char {
  gap: var(--gp-space-2);
}

body.gp-modern-v1 .topButtonBox {
  max-width: 1120px;
  background: var(--gp-bg-shell-elevated);
  border: 1px solid rgba(79, 216, 255, 0.24);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  animation: none;
}

body.gp-modern-v1 .parent-container {
  color: var(--gp-text-primary);
  background: linear-gradient(180deg, rgba(238, 243, 247, 0.96), rgba(226, 235, 241, 0.92));
}

body.gp-modern-v1 .sub-container,
body.gp-modern-v1 .contest-tab {
  background: rgba(255, 255, 255, 0.94);
  color: var(--gp-text-primary);
  border-top: 1px solid var(--gp-border);
}

body.gp-modern-v1 .quiz-scroll {
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 250px);
  height: calc(100dvh - 250px);
  box-sizing: border-box;
  padding-bottom: var(--gp-space-4);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.gp-modern-v1 .standard-button,
body.gp-modern-v1 .popup-standard,
body.gp-modern-v1 .top-bar-standard {
  min-height: 30px;
  color: var(--gp-text-on-dark);
  background: linear-gradient(180deg, rgba(12, 56, 73, 0.96), rgba(6, 35, 49, 0.96));
  border: 1px solid rgba(230, 246, 255, 0.72);
  border-radius: var(--gp-radius-sm);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  font-family: var(--gp-font-body);
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

body.gp-modern-v1 .standard-button:hover,
body.gp-modern-v1 .popup-standard:hover,
body.gp-modern-v1 .top-bar-standard:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #f97316, #df5b13);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 122, 26, 0.18), var(--gp-shadow-sm);
}

body.gp-modern-v1 .standard-button:disabled,
body.gp-modern-v1 .top-bar-standard:disabled {
  color: rgba(229, 236, 242, 0.62);
  background: rgba(47, 62, 70, 0.55);
  border-color: rgba(229, 236, 242, 0.32);
  box-shadow: none;
}

body.gp-modern-v1 .black-dpl,
body.gp-modern-v1 .listbox-style {
  color: var(--gp-text-on-dark);
  background: rgba(1, 11, 18, 0.94);
  border: 1px solid rgba(230, 246, 255, 0.78);
  border-radius: var(--gp-radius-sm);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.10) inset;
  font-family: var(--gp-font-body);
  line-height: 1.3;
}

body.gp-modern-v1 .black-dpl:hover,
body.gp-modern-v1 .listbox-style:hover {
  background: rgba(7, 39, 52, 0.96);
  border-color: var(--gp-border-strong);
}

body.gp-modern-v1 .tabPanel .gwt-TabBar,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBar {
  background: rgba(238, 243, 247, 0.82);
  border-bottom: 1px solid var(--gp-border);
  color: var(--gp-text-secondary);
  white-space: nowrap;
}

body.gp-modern-v1 .tabPanel .gwt-TabBarItem,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem {
  color: var(--gp-text-secondary);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  border-radius: var(--gp-radius-sm) var(--gp-radius-sm) 0 0;
  font-family: var(--gp-font-body);
  font-weight: 700;
  padding: 7px 12px;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem {
  padding: 6px 10px;
  font-size: 12px;
}

body.gp-modern-v1 .tabPanel .gwt-TabBarItem:hover,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem:hover {
  color: var(--gp-text-primary);
  background: #ffffff;
  border-color: rgba(30, 111, 255, 0.28);
}

body.gp-modern-v1 .tabPanel .gwt-TabBarItem-selected,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem-selected {
  color: #ffffff;
  background: linear-gradient(180deg, #1e6fff, #1352c7);
  border-color: rgba(30, 111, 255, 0.58);
  box-shadow: 0 6px 16px rgba(30, 111, 255, 0.22);
}

body.gp-modern-v1 .tabPanel .gwt-TabPanelBottom,
body.gp-modern-v1 .tab-panel-2 .gwt-TabPanelBottom {
  background: var(--gp-bg-surface);
  border-color: var(--gp-border);
}

body.gp-modern-v1 .standard-button:focus,
body.gp-modern-v1 .popup-standard:focus,
body.gp-modern-v1 .top-bar-standard:focus,
body.gp-modern-v1 .black-dpl:focus,
body.gp-modern-v1 .listbox-style:focus,
body.gp-modern-v1 .tabPanel .gwt-TabBarItem:focus,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem:focus,
body.gp-modern-v1 .standard-button:focus-visible,
body.gp-modern-v1 .popup-standard:focus-visible,
body.gp-modern-v1 .top-bar-standard:focus-visible,
body.gp-modern-v1 .black-dpl:focus-visible,
body.gp-modern-v1 .listbox-style:focus-visible,
body.gp-modern-v1 .tabPanel .gwt-TabBarItem:focus-visible,
body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem:focus-visible {
  outline: 3px solid var(--gp-focus);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  body.gp-modern-v1 {
    font-size: 14px;
  }

  body.gp-modern-v1 .tabPanel,
  body.gp-modern-v1 .tab-panel-2 {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }

  body.gp-modern-v1 .tabPanel .gwt-TabBar,
  body.gp-modern-v1 .tab-panel-2 .gwt-TabBar {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  body.gp-modern-v1 .tabPanel .gwt-TabBar > tbody,
  body.gp-modern-v1 .tab-panel-2 .gwt-TabBar > tbody {
    display: table;
    width: max-content;
    min-width: 100%;
  }

  body.gp-modern-v1 .topButtonBox {
    max-width: calc(100% - 16px);
    margin-top: var(--gp-space-1);
  }

  body.gp-modern-v1 .top-bar-standard,
  body.gp-modern-v1 .standard-button,
  body.gp-modern-v1 .popup-standard {
    min-height: 28px;
    padding: 4px 8px;
  }

  body.gp-modern-v1 .black-dpl,
  body.gp-modern-v1 .listbox-style {
    max-width: calc(100vw - 24px);
    font-size: 12px;
  }

  body.gp-modern-v1 .tabPanel .gwt-TabBarItem,
  body.gp-modern-v1 .tab-panel-2 .gwt-TabBarItem {
    padding: 6px 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  body.gp-modern-v1 {
    font-size: 13px;
  }

  body.gp-modern-v1 .topLogoBox .logo-char img {
    max-height: 24px;
    width: auto;
  }

  body.gp-modern-v1 .top-bar-standard,
  body.gp-modern-v1 .standard-button,
  body.gp-modern-v1 .popup-standard {
    min-width: 0;
    font-size: 11px;
  }
}

/* Iteration 1B: scoped Quiz pilot and dialog surfaces. */
body.gp-modern-v1 .quiz-ui {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: transparent !important;
}

body.gp-modern-v1 .quiz-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gp-space-2);
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 9px var(--gp-space-3);
  box-sizing: border-box;
  color: var(--gp-text-on-dark);
  background: rgba(3, 21, 29, 0.96);
  border-bottom: 1px solid rgba(79, 216, 255, 0.28);
  box-shadow: 0 6px 18px rgba(2, 13, 18, 0.16);
}

body.gp-modern-v1 .quiz-toolbar .quiz-contest-select {
  flex: 1 1 300px;
  width: auto;
  min-width: min(260px, 100%);
  max-width: 520px;
  min-height: 36px;
  margin: 0;
  padding: 6px 34px 6px 10px;
  box-sizing: border-box;
  font-size: 13px !important;
}

body.gp-modern-v1 .quiz-toolbar .quiz-toolbar-button {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 36px;
  margin: 0 !important;
  padding: 6px 12px;
  color: var(--gp-text-on-dark);
  background: rgba(11, 49, 63, 0.96);
  border: 1px solid rgba(215, 242, 249, 0.72);
  border-radius: var(--gp-radius-sm);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  font-family: var(--gp-font-body);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

body.gp-modern-v1 .quiz-toolbar .quiz-toolbar-button:hover {
  color: #ffffff;
  background: #1559c9;
  border-color: #8fdff1;
  box-shadow: var(--gp-shadow-sm);
}

body.gp-modern-v1 .quiz-toolbar .quiz-toolbar-button:disabled {
  color: rgba(229, 236, 242, 0.56);
  background: rgba(47, 62, 70, 0.48);
  border-color: rgba(229, 236, 242, 0.26);
  box-shadow: none;
  cursor: default;
}

body.gp-modern-v1 .quiz-toolbar .quiz-toolbar-more {
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
}

body.gp-modern-v1 .quiz-toolbar .quiz-team-label {
  margin-left: auto;
  color: #77e9ff;
  font-size: 13px !important;
  font-weight: 700;
}

body.gp-modern-v1 .quiz-status-region {
  position: relative;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

body.gp-modern-v1 .quiz-question-scroll {
  padding: var(--gp-space-3) 0 var(--gp-space-5);
  background: linear-gradient(180deg, rgba(235, 242, 247, 0.98), rgba(224, 234, 241, 0.96));
}

body.gp-modern-v1 table.quiz-question-table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0 var(--gp-space-3);
  background: transparent !important;
  table-layout: fixed;
}

body.gp-modern-v1 .quiz-question-table tr,
body.gp-modern-v1 .quiz-question-table td,
body.gp-modern-v1 .quiz-question-table .com-google-gwt-user-cellview-client-CellTable-Style-cellTableCell {
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
}

body.gp-modern-v1 .quiz-question-table td,
body.gp-modern-v1 .quiz-question-table .com-google-gwt-user-cellview-client-CellTable-Style-cellTableCell {
  padding: 0 var(--gp-space-3) !important;
  overflow: visible;
}

body.gp-modern-v1 .quiz-question-card {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--gp-space-4);
  box-sizing: border-box;
  color: var(--gp-text-primary);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(31, 112, 127, 0.18);
  border-radius: 8px;
  box-shadow: var(--gp-shadow-sm);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

body.gp-modern-v1 .quiz-question-card:hover {
  border-color: rgba(30, 111, 255, 0.38);
  box-shadow: 0 8px 22px rgba(5, 18, 25, 0.16);
}

body.gp-modern-v1 .quiz-question-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gp-space-2);
  min-height: 28px;
  margin-bottom: var(--gp-space-2);
  padding: 4px 9px;
  box-sizing: border-box;
  color: #29444b;
  background: #edf6f8;
  border: 1px solid rgba(38, 130, 147, 0.16);
  border-radius: var(--gp-radius-sm);
  font-size: 12px !important;
  font-weight: 700;
}

body.gp-modern-v1 .quiz-question-meta p {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  font-size: 12px !important;
}

body.gp-modern-v1 .quiz-question-heading {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 0 0 var(--gp-space-3);
  color: #101b1f;
  font-family: var(--gp-font-body);
  font-size: 18px !important;
  font-weight: 750;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

body.gp-modern-v1 .quiz-question-number {
  flex: 0 0 auto;
  color: #1459c7;
  font-weight: 800;
}

body.gp-modern-v1 .quiz-question-text {
  min-width: 0;
}

body.gp-modern-v1 .quiz-sport-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  object-fit: contain;
}

body.gp-modern-v1 .quiz-question-attachments:empty,
body.gp-modern-v1 .quiz-question-attachments > div:empty {
  display: none;
}

body.gp-modern-v1 .quiz-question-attachments img,
body.gp-modern-v1 .quiz-question-attachments iframe,
body.gp-modern-v1 .quiz-question-attachments video {
  max-width: 100%;
  height: auto;
  border-radius: var(--gp-radius-sm);
}

body.gp-modern-v1 .quiz-answer-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin-top: var(--gp-space-3);
}

body.gp-modern-v1 .quiz-answer-option {
  display: flex;
  align-items: flex-start;
  gap: var(--gp-space-2);
  min-height: 38px;
  padding: 8px 10px;
  box-sizing: border-box;
  color: #23383e;
  background: #f5f8fb;
  border: 1px solid rgba(27, 79, 90, 0.12);
  border-radius: var(--gp-radius-sm);
  font-size: 14px !important;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

body.gp-modern-v1 .quiz-answer-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  color: #ffffff;
  background: #1e6fff;
  border-radius: 50%;
  font-size: 12px !important;
  font-weight: 800;
}

body.gp-modern-v1 .quiz-answer-text {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
}

body.gp-modern-v1 .quiz-answer-marker {
  display: inline-flex;
  align-items: center;
  flex: 0 0 18px;
  min-height: 22px;
}

body.gp-modern-v1 .quiz-answer-check {
  width: 14px;
  height: 14px;
}

body.gp-modern-v1 .quiz-status-popup,
body.gp-modern-v1 .quiz-countdown-popup {
  margin-left: var(--gp-space-2);
  padding: 0;
  color: var(--gp-text-on-dark);
  background: transparent;
  border: 0;
  border-radius: var(--gp-radius-sm);
  box-shadow: var(--gp-shadow-md);
  font-weight: 800;
}

body.gp-modern-v1 .quiz-status-popup-content,
body.gp-modern-v1 .quiz-countdown-label {
  display: block;
  max-width: min(680px, calc(100vw - 24px));
  padding: 8px 12px;
  box-sizing: border-box;
  color: #fff4dc;
  background: rgba(4, 22, 29, 0.97);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--gp-radius-sm);
  font-size: 14px !important;
  line-height: 1.35;
}

body.gp-modern-v1 .quiz-status-message {
  color: #ffd17a;
  font-size: 14px !important;
  font-weight: 800;
}

body.gp-modern-v1 .quiz-options-popup {
  min-width: 180px;
  padding: var(--gp-space-1);
  background: #ffffff;
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-sm);
  box-shadow: var(--gp-shadow-md);
}

body.gp-modern-v1 .quiz-options-popup button {
  width: 100%;
  min-height: 34px;
  margin: 2px 0;
  padding: 5px 10px;
  color: var(--gp-text-primary);
  background: #f5f8fb;
  border: 1px solid transparent;
  border-radius: var(--gp-radius-sm);
  font-size: 12px !important;
  font-weight: 700;
  text-align: left;
}

body.gp-modern-v1 .quiz-options-popup button:hover {
  color: #ffffff;
  background: #1559c9;
}

body.gp-modern-v1 .gwt-PopupPanelGlass {
  background: #06151f !important;
  opacity: 0.62 !important;
}

body.gp-modern-v1 .myDialogBox,
body.gp-modern-v1 .myDialogBox-post,
body.gp-modern-v1 .gp-dialog {
  box-sizing: border-box;
  background: #07252d;
  border: 1px solid rgba(137, 226, 242, 0.66);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(2, 12, 18, 0.4);
}

body.gp-modern-v1 .gp-dialog,
body.gp-modern-v1 .quiz-answer-dialog,
body.gp-modern-v1 .quiz-form-dialog,
body.gp-modern-v1 .quiz-editor-dialog {
  overflow: hidden;
}

body.gp-modern-v1 .gp-dialog-surface,
body.gp-modern-v1 .quiz-form-dialog-content,
body.gp-modern-v1 .quiz-answer-dialog-content,
body.gp-modern-v1 .quiz-editor-dialog-content {
  width: min(560px, calc(100vw - 32px));
  max-width: 100%;
  max-height: min(76vh, 720px);
  max-height: min(76dvh, 720px);
  padding: var(--gp-space-4);
  box-sizing: border-box;
  color: var(--gp-text-on-dark);
  background: linear-gradient(180deg, #073c38, #052a30);
  overflow: auto;
}

body.gp-modern-v1 .gp-message-dialog-surface,
body.gp-modern-v1 .gp-confirmation-dialog-surface {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: min(320px, calc(100vw - 32px));
  min-height: 150px;
  gap: var(--gp-space-4);
  text-align: center;
}

body.gp-modern-v1 .gp-dialog-message {
  max-width: 520px;
  color: var(--gp-text-on-dark);
  font-size: 14px !important;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.gp-modern-v1 .gp-dialog-actions,
body.gp-modern-v1 .quiz-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--gp-space-2);
  width: 100%;
  margin-top: var(--gp-space-3);
}

body.gp-modern-v1 .quiz-dialog-question {
  width: 100%;
  color: #ffffff;
  font-size: 17px !important;
  font-weight: 750;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}

body.gp-modern-v1 .quiz-answer-radio {
  display: flex;
  align-items: flex-start;
  gap: var(--gp-space-2);
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  box-sizing: border-box;
  color: #f3fbff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(182, 230, 239, 0.18);
  border-radius: var(--gp-radius-sm);
  font-size: 14px !important;
  line-height: 1.4;
}

body.gp-modern-v1 .quiz-answer-radio:hover {
  background: rgba(30, 111, 255, 0.2);
  border-color: rgba(109, 196, 242, 0.64);
}

body.gp-modern-v1 .quiz-answer-radio input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--gp-accent);
}

body.gp-modern-v1 .quiz-answer-radio label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.gp-modern-v1 .quiz-show-answer-button {
  display: block;
  margin: 0 auto;
}

body.gp-modern-v1 .quiz-typed-answer,
body.gp-modern-v1 .quiz-form-input,
body.gp-modern-v1 .quiz-dialog-menu,
body.gp-modern-v1 .auth-input,
body.gp-modern-v1 .auth-signup-dialog input,
body.gp-modern-v1 .auth-signup-dialog select,
body.gp-modern-v1 .auth-signup-dialog textarea {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 7px 9px;
  box-sizing: border-box;
  color: #132328;
  background: #ffffff;
  border: 1px solid rgba(142, 200, 212, 0.8);
  border-radius: var(--gp-radius-sm);
  font-family: var(--gp-font-body);
  font-size: 14px !important;
}

body.gp-modern-v1 .quiz-typed-answer:focus,
body.gp-modern-v1 .quiz-form-input:focus,
body.gp-modern-v1 .quiz-dialog-menu:focus,
body.gp-modern-v1 .auth-input:focus,
body.gp-modern-v1 .auth-signup-dialog input:focus,
body.gp-modern-v1 .auth-signup-dialog select:focus,
body.gp-modern-v1 .auth-signup-dialog textarea:focus {
  outline: 3px solid var(--gp-focus);
  outline-offset: 1px;
  border-color: #1673d8;
}

body.gp-modern-v1 .quiz-form-field {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  align-items: center;
  gap: var(--gp-space-2);
  width: 100%;
  margin-bottom: var(--gp-space-3);
}

body.gp-modern-v1 .quiz-form-label {
  color: #f4fbff;
  font-size: 13px !important;
  font-weight: 700;
}

body.gp-modern-v1 .quiz-editor-dialog {
  width: min(720px, calc(100vw - 24px));
  max-width: 720px;
}

body.gp-modern-v1 #login-box.auth-dialog {
  width: min(390px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-height: min(82vh, 620px);
  max-height: min(82dvh, 620px);
  padding: var(--gp-space-5) !important;
  box-sizing: border-box !important;
  color: var(--gp-text-on-dark);
  background: rgba(4, 29, 36, 0.97);
  border: 1px solid rgba(137, 226, 242, 0.58);
  border-radius: 8px;
  box-shadow: var(--gp-shadow-md);
  overflow: auto;
}

body.gp-modern-v1 .auth-field {
  display: grid;
  gap: var(--gp-space-1);
  width: 100%;
  margin-bottom: var(--gp-space-3);
}

body.gp-modern-v1 .auth-label {
  color: #edfaff;
  font-size: 13px !important;
  font-weight: 700;
}

body.gp-modern-v1 .auth-action {
  width: 100%;
  min-height: 40px;
  margin: 4px 0;
}

body.gp-modern-v1 .auth-action-primary {
  background: #1e6fff;
  border-color: #91dff0;
}

body.gp-modern-v1 .auth-action-secondary {
  background: rgba(255, 255, 255, 0.08);
}

body.gp-modern-v1 .auth-forgot-password {
  display: block;
  margin: var(--gp-space-3) auto 0;
  color: #9fe9ff;
  background: transparent;
  border: 0;
  font-size: 12px !important;
  text-decoration: underline;
}

body.gp-modern-v1 .auth-signup-dialog {
  width: min(560px, calc(100vw - 24px));
  max-width: 560px;
  max-height: 88vh;
  max-height: 88dvh;
  overflow: auto;
}

body.gp-modern-v1 .auth-signup-dialog label {
  color: #f2fbff !important;
  font-weight: 700;
}

@media (max-width: 768px) {
  body.gp-modern-v1 .quiz-toolbar {
    min-height: 48px;
    padding: 7px var(--gp-space-2);
  }

  body.gp-modern-v1 .quiz-toolbar .quiz-contest-select {
    flex-basis: 100%;
    max-width: none;
  }

  body.gp-modern-v1 .quiz-question-scroll {
    padding-top: var(--gp-space-2);
  }

  body.gp-modern-v1 .quiz-question-table td,
  body.gp-modern-v1 .quiz-question-table .com-google-gwt-user-cellview-client-CellTable-Style-cellTableCell {
    padding: 0 var(--gp-space-2) !important;
  }

  body.gp-modern-v1 .quiz-question-card {
    padding: var(--gp-space-3);
  }

  body.gp-modern-v1 .quiz-question-heading {
    font-size: 16px !important;
  }

  body.gp-modern-v1 .quiz-answer-option {
    min-height: 42px;
    font-size: 13px !important;
  }

  body.gp-modern-v1 .myDialogBox,
  body.gp-modern-v1 .myDialogBox-post,
  body.gp-modern-v1 .gp-dialog {
    max-width: calc(100vw - 16px) !important;
  }

  body.gp-modern-v1 .gp-dialog-surface,
  body.gp-modern-v1 .quiz-form-dialog-content,
  body.gp-modern-v1 .quiz-answer-dialog-content,
  body.gp-modern-v1 .quiz-editor-dialog-content {
    width: calc(100vw - 18px);
    max-height: 82vh;
    max-height: 82dvh;
    padding: var(--gp-space-3);
  }
}

@media (max-width: 480px) {
  body.gp-modern-v1 .quiz-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, auto));
    justify-content: start;
  }

  body.gp-modern-v1 .quiz-toolbar .quiz-contest-select {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  body.gp-modern-v1 .quiz-toolbar .quiz-toolbar-button {
    min-width: 0;
    min-height: 34px;
    padding: 5px 9px;
    font-size: 11px !important;
  }

  body.gp-modern-v1 .quiz-toolbar .quiz-toolbar-more {
    width: 34px;
  }

  body.gp-modern-v1 .quiz-toolbar .quiz-team-label {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  body.gp-modern-v1 .quiz-question-card {
    padding: 10px;
  }

  body.gp-modern-v1 .quiz-question-meta,
  body.gp-modern-v1 .quiz-question-meta p {
    font-size: 11px !important;
  }

  body.gp-modern-v1 .quiz-question-heading {
    font-size: 15px !important;
  }

  body.gp-modern-v1 .quiz-answer-option {
    padding: 8px;
  }

  body.gp-modern-v1 .quiz-status-popup-content,
  body.gp-modern-v1 .quiz-countdown-label {
    max-width: calc(100vw - 12px);
    padding: 7px 9px;
    font-size: 12px !important;
  }

  body.gp-modern-v1 .quiz-form-field {
    grid-template-columns: 1fr;
  }

  body.gp-modern-v1 #login-box.auth-dialog {
    width: calc(100vw - 20px) !important;
    padding: var(--gp-space-4) !important;
  }
}
