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 .topButtonBox {
    gap: 4px;
    padding: 4px;
    box-sizing: border-box;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  body.gp-modern-v1 .topButtonBox > .top-bar-standard {
    flex: 0 0 auto;
    margin-left: 0;
    padding: 3px 5px;
    font-size: 10px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  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;
  }
}

/* Stadium Night: full-site dark theme. Remove gp-theme-dark from body to roll back. */
body.gp-modern-v1.gp-theme-dark {
  --gp-bg-page: #0b0f12;
  --gp-bg-shell: #05090b;
  --gp-bg-shell-elevated: rgba(12, 20, 23, 0.96);
  --gp-bg-surface: #151b1e;
  --gp-bg-surface-raised: #1b2327;
  --gp-bg-surface-muted: #101619;
  --gp-bg-surface-strong: #222c30;
  --gp-text-primary: #f1f5f3;
  --gp-text-secondary: #b3c0bc;
  --gp-text-muted: #83938e;
  --gp-text-on-dark: #f7fbf9;
  --gp-accent: #39d0ad;
  --gp-accent-hover: #58e1be;
  --gp-accent-blue: #6ea8ff;
  --gp-accent-warm: #ffb454;
  --gp-brand: #ff4655;
  --gp-success: #4ade80;
  --gp-warning: #fbbf24;
  --gp-danger: #fb7185;
  --gp-border: rgba(183, 211, 203, 0.16);
  --gp-border-strong: rgba(57, 208, 173, 0.58);
  --gp-focus: #76e8d0;
  --gp-shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.34);
  --gp-shadow-md: 0 18px 44px rgba(0, 0, 0, 0.48);

  color-scheme: dark;
  background: var(--gp-bg-page);
  color: var(--gp-text-primary);
}

body.gp-modern-v1.gp-theme-dark,
body.gp-modern-v1.gp-theme-dark .bar,
body.gp-modern-v1.gp-theme-dark .parent-container,
body.gp-modern-v1.gp-theme-dark .sub-container,
body.gp-modern-v1.gp-theme-dark .contest-tab,
body.gp-modern-v1.gp-theme-dark .gwt-TabPanelBottom {
  scrollbar-color: #44555a #0c1114;
}

body.gp-modern-v1.gp-theme-dark .bar {
  background-color: var(--gp-bg-page);
  background-image:
    linear-gradient(180deg, rgba(5, 9, 11, 0.82), rgba(8, 14, 16, 0.93)),
    url("bg-image.png");
  color: var(--gp-text-primary);
}

body.gp-modern-v1.gp-theme-dark .mainBox,
body.gp-modern-v1.gp-theme-dark .topLogoBox,
body.gp-modern-v1.gp-theme-dark .top-menu {
  background: rgba(5, 9, 11, 0.94);
  color: var(--gp-text-primary);
}

body.gp-modern-v1.gp-theme-dark .topLogoBox {
  border-bottom: 1px solid rgba(255, 70, 85, 0.2);
}

body.gp-modern-v1.gp-theme-dark .topButtonBox {
  background: var(--gp-bg-shell-elevated);
  border-color: var(--gp-border-strong);
  box-shadow: var(--gp-shadow-sm);
}

body.gp-modern-v1.gp-theme-dark .parent-container {
  background: rgba(11, 15, 18, 0.98);
  color: var(--gp-text-primary);
}

body.gp-modern-v1.gp-theme-dark .sub-container,
body.gp-modern-v1.gp-theme-dark .contest-tab,
body.gp-modern-v1.gp-theme-dark .gwt-TabPanelBottom,
body.gp-modern-v1.gp-theme-dark .tabPanel .gwt-TabPanelBottom,
body.gp-modern-v1.gp-theme-dark .tab-panel-2 .gwt-TabPanelBottom {
  background: var(--gp-bg-page);
  color: var(--gp-text-primary);
  border-color: var(--gp-border);
}

body.gp-modern-v1.gp-theme-dark a {
  color: #8cbcff;
}

body.gp-modern-v1.gp-theme-dark a:hover {
  color: #b5d4ff;
}

/* Navigation keeps the GWT TabPanel hierarchy while reducing its visual weight. */
body.gp-modern-v1.gp-theme-dark .tabPanel .gwt-TabBar,
body.gp-modern-v1.gp-theme-dark .tab-panel-2 .gwt-TabBar {
  background: #0d1316;
  border-color: var(--gp-border);
  color: var(--gp-text-secondary);
}

body.gp-modern-v1.gp-theme-dark .tabPanel .gwt-TabBarItem,
body.gp-modern-v1.gp-theme-dark .tab-panel-2 .gwt-TabBarItem {
  color: var(--gp-text-secondary);
  background: #151c20;
  border-color: transparent;
  box-shadow: none;
}

body.gp-modern-v1.gp-theme-dark .tabPanel .gwt-TabBarItem:hover,
body.gp-modern-v1.gp-theme-dark .tab-panel-2 .gwt-TabBarItem:hover {
  color: var(--gp-text-primary);
  background: #202a2e;
  border-color: rgba(110, 168, 255, 0.28);
}

body.gp-modern-v1.gp-theme-dark .tabPanel .gwt-TabBarItem-selected,
body.gp-modern-v1.gp-theme-dark .tab-panel-2 .gwt-TabBarItem-selected {
  color: #06100d;
  background: var(--gp-accent);
  border-color: var(--gp-accent);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

/* Shared controls and form fields. */
body.gp-modern-v1.gp-theme-dark .standard-button,
body.gp-modern-v1.gp-theme-dark .popup-standard,
body.gp-modern-v1.gp-theme-dark .top-bar-standard,
body.gp-modern-v1.gp-theme-dark .table-button,
body.gp-modern-v1.gp-theme-dark .msg-button,
body.gp-modern-v1.gp-theme-dark .search-button,
body.gp-modern-v1.gp-theme-dark .post-button,
body.gp-modern-v1.gp-theme-dark .option-button {
  color: var(--gp-text-primary);
  background: #202a2e;
  border: 1px solid rgba(179, 210, 201, 0.34);
  border-radius: var(--gp-radius-sm);
  box-shadow: none;
  text-shadow: none;
}

body.gp-modern-v1.gp-theme-dark .standard-button:hover,
body.gp-modern-v1.gp-theme-dark .popup-standard:hover,
body.gp-modern-v1.gp-theme-dark .top-bar-standard:hover,
body.gp-modern-v1.gp-theme-dark .table-button:hover,
body.gp-modern-v1.gp-theme-dark .msg-button:hover,
body.gp-modern-v1.gp-theme-dark .search-button:hover,
body.gp-modern-v1.gp-theme-dark .post-button:hover,
body.gp-modern-v1.gp-theme-dark .option-button:hover {
  color: #07110e;
  background: var(--gp-accent-hover);
  border-color: var(--gp-accent-hover);
  box-shadow: 0 0 0 3px rgba(57, 208, 173, 0.14);
}

body.gp-modern-v1.gp-theme-dark .standard-button:disabled,
body.gp-modern-v1.gp-theme-dark .popup-standard:disabled,
body.gp-modern-v1.gp-theme-dark .top-bar-standard:disabled,
body.gp-modern-v1.gp-theme-dark button:disabled {
  color: #697873;
  background: #151b1e;
  border-color: rgba(155, 180, 173, 0.15);
  box-shadow: none;
  opacity: 1;
}

body.gp-modern-v1.gp-theme-dark .black-dpl,
body.gp-modern-v1.gp-theme-dark .listbox-style,
body.gp-modern-v1.gp-theme-dark input[type="text"],
body.gp-modern-v1.gp-theme-dark input[type="password"],
body.gp-modern-v1.gp-theme-dark input[type="email"],
body.gp-modern-v1.gp-theme-dark input[type="tel"],
body.gp-modern-v1.gp-theme-dark input[type="number"],
body.gp-modern-v1.gp-theme-dark input[type="date"],
body.gp-modern-v1.gp-theme-dark input[type="time"],
body.gp-modern-v1.gp-theme-dark textarea,
body.gp-modern-v1.gp-theme-dark select {
  color: var(--gp-text-primary) !important;
  background-color: #11181b !important;
  border: 1px solid rgba(170, 202, 193, 0.34) !important;
  border-radius: var(--gp-radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.gp-modern-v1.gp-theme-dark input::placeholder,
body.gp-modern-v1.gp-theme-dark textarea::placeholder {
  color: #788984;
  opacity: 1;
}

body.gp-modern-v1.gp-theme-dark input:focus,
body.gp-modern-v1.gp-theme-dark textarea:focus,
body.gp-modern-v1.gp-theme-dark select:focus {
  outline: 3px solid rgba(118, 232, 208, 0.58);
  outline-offset: 1px;
  border-color: var(--gp-accent) !important;
}

body.gp-modern-v1.gp-theme-dark input:disabled,
body.gp-modern-v1.gp-theme-dark textarea:disabled,
body.gp-modern-v1.gp-theme-dark select:disabled,
body.gp-modern-v1.gp-theme-dark .customDisabledStyle {
  color: #74837f !important;
  background: #151b1e !important;
  border-color: rgba(155, 180, 173, 0.14) !important;
}

body.gp-modern-v1.gp-theme-dark input[type="checkbox"],
body.gp-modern-v1.gp-theme-dark input[type="radio"] {
  accent-color: var(--gp-accent);
}

body.gp-modern-v1.gp-theme-dark .top-button-box,
body.gp-modern-v1.gp-theme-dark .textarea-container,
body.gp-modern-v1.gp-theme-dark .searchEngineBox {
  color: var(--gp-text-primary);
  background: #0d1417;
  border-color: var(--gp-border);
}

/* Posts, comments, profile content, and general cards. */
body.gp-modern-v1.gp-theme-dark .card-container,
body.gp-modern-v1.gp-theme-dark .thread-card-container,
body.gp-modern-v1.gp-theme-dark .post-reply-status,
body.gp-modern-v1.gp-theme-dark .notification-panel {
  color: var(--gp-text-primary);
  background: var(--gp-bg-surface-raised);
  border: 1px solid var(--gp-border);
  border-radius: 8px;
  box-shadow: var(--gp-shadow-sm);
}

body.gp-modern-v1.gp-theme-dark .card-container:hover {
  border-color: rgba(57, 208, 173, 0.34);
}

body.gp-modern-v1.gp-theme-dark .card-container.selected,
body.gp-modern-v1.gp-theme-dark .card-container.pinned {
  border-color: rgba(255, 180, 84, 0.54);
}

body.gp-modern-v1.gp-theme-dark .post-table,
body.gp-modern-v1.gp-theme-dark .post-table tr,
body.gp-modern-v1.gp-theme-dark .post-table td,
body.gp-modern-v1.gp-theme-dark .thread-table,
body.gp-modern-v1.gp-theme-dark .thread-table tr,
body.gp-modern-v1.gp-theme-dark .thread-table td {
  color: var(--gp-text-primary);
  background: transparent !important;
  border-color: var(--gp-border) !important;
}

body.gp-modern-v1.gp-theme-dark .comment-container,
body.gp-modern-v1.gp-theme-dark .post-user-status,
body.gp-modern-v1.gp-theme-dark .post-game,
body.gp-modern-v1.gp-theme-dark .post-team-logo,
body.gp-modern-v1.gp-theme-dark .post-level-stage {
  color: var(--gp-text-primary);
}

body.gp-modern-v1.gp-theme-dark .post-time,
body.gp-modern-v1.gp-theme-dark .muted-text,
body.gp-modern-v1.gp-theme-dark .muted-txt {
  color: var(--gp-text-muted) !important;
}

body.gp-modern-v1.gp-theme-dark .card-container b[style*="color: black"],
body.gp-modern-v1.gp-theme-dark .card-container b[style*="color:black"] {
  color: var(--gp-text-primary) !important;
}

body.gp-modern-v1.gp-theme-dark .action-panel {
  border-color: var(--gp-border);
}

body.gp-modern-v1.gp-theme-dark .profile-ui {
  color: var(--gp-text-primary);
  background: var(--gp-bg-surface-muted);
}

body.gp-modern-v1.gp-theme-dark .profile-popup {
  color: var(--gp-text-primary);
  background: #151d20;
  border: 1px solid var(--gp-border-strong);
  box-shadow: var(--gp-shadow-md);
}

/* Shared data tables retain status color meaning on dark surfaces. */
body.gp-modern-v1.gp-theme-dark .cellTable,
body.gp-modern-v1.gp-theme-dark .cellTableHeader {
  color: var(--gp-text-primary);
  background: var(--gp-bg-surface-muted) !important;
}

body.gp-modern-v1.gp-theme-dark .cellTable th,
body.gp-modern-v1.gp-theme-dark .cellTableHeader th,
body.gp-modern-v1.gp-theme-dark .com-google-gwt-user-cellview-client-CellTable-Style-cellTableHeader {
  color: #d8e4e0 !important;
  background: #10171a !important;
  border-bottom: 1px solid var(--gp-border) !important;
  text-shadow: none;
}

body.gp-modern-v1.gp-theme-dark .cellTable td,
body.gp-modern-v1.gp-theme-dark .first-row,
body.gp-modern-v1.gp-theme-dark .second-row {
  color: var(--gp-text-primary);
  background: var(--gp-bg-surface) !important;
  border-color: var(--gp-border) !important;
}

body.gp-modern-v1.gp-theme-dark .cellTable tr:nth-child(even) td,
body.gp-modern-v1.gp-theme-dark .second-row {
  background: #11181b !important;
}

body.gp-modern-v1.gp-theme-dark .com-google-gwt-user-cellview-client-CellTable-Style-cellTableSelectedRowCell,
body.gp-modern-v1.gp-theme-dark .cellTableSelectedRow td {
  color: var(--gp-text-primary) !important;
  background: #203a38 !important;
  border-color: var(--gp-accent) !important;
}

body.gp-modern-v1.gp-theme-dark .highlighted-row,
body.gp-modern-v1.gp-theme-dark .highlighted-row td {
  color: #fff4df !important;
  background: #4a3318 !important;
}

body.gp-modern-v1.gp-theme-dark .active-cell {
  background: #17603f !important;
}

body.gp-modern-v1.gp-theme-dark .upcoming-cell {
  color: #1c1306 !important;
  background: #e9a23b !important;
}

body.gp-modern-v1.gp-theme-dark .completed-cell {
  color: #dce5e2 !important;
  background: #465156 !important;
}

body.gp-modern-v1.gp-theme-dark .pending-credit-cell {
  color: #fff1fb !important;
  background: #8d356f !important;
}

/* Quiz pilot uses raised dark cards and clear answer separation. */
body.gp-modern-v1.gp-theme-dark .quiz-toolbar {
  background: #0a1114;
  border-color: rgba(57, 208, 173, 0.3);
  box-shadow: var(--gp-shadow-sm);
}

body.gp-modern-v1.gp-theme-dark .quiz-toolbar .quiz-toolbar-button {
  color: var(--gp-text-primary);
  background: #1a2529;
  border-color: rgba(176, 209, 200, 0.32);
}

body.gp-modern-v1.gp-theme-dark .quiz-toolbar .quiz-toolbar-button:hover {
  color: #07110e;
  background: var(--gp-accent-hover);
  border-color: var(--gp-accent-hover);
}

body.gp-modern-v1.gp-theme-dark .quiz-question-scroll {
  background: rgba(11, 15, 18, 0.97);
}

body.gp-modern-v1.gp-theme-dark .quiz-question-card {
  color: var(--gp-text-primary);
  background: var(--gp-bg-surface-raised);
  border-color: var(--gp-border);
  box-shadow: var(--gp-shadow-sm);
}

body.gp-modern-v1.gp-theme-dark .quiz-question-card:hover {
  border-color: rgba(57, 208, 173, 0.52);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}

body.gp-modern-v1.gp-theme-dark .quiz-question-meta {
  color: #c4d5d0;
  background: #10191c;
  border-color: rgba(57, 208, 173, 0.2);
}

body.gp-modern-v1.gp-theme-dark .quiz-question-heading {
  color: var(--gp-text-primary);
}

body.gp-modern-v1.gp-theme-dark .quiz-question-number {
  color: var(--gp-accent-warm);
}

body.gp-modern-v1.gp-theme-dark .quiz-answer-option {
  color: #e1e9e6;
  background: #11181b;
  border-color: rgba(178, 207, 199, 0.13);
}

body.gp-modern-v1.gp-theme-dark .quiz-answer-option:hover {
  background: #172225;
  border-color: rgba(110, 168, 255, 0.42);
}

body.gp-modern-v1.gp-theme-dark .quiz-answer-key {
  color: #08110e;
  background: var(--gp-accent);
}

body.gp-modern-v1.gp-theme-dark .quiz-options-popup,
body.gp-modern-v1.gp-theme-dark .quiz-options-popup button {
  color: var(--gp-text-primary);
  background: #151d20;
  border-color: var(--gp-border);
}

body.gp-modern-v1.gp-theme-dark .quiz-options-popup button:hover {
  color: #07110e;
  background: var(--gp-accent-hover);
}

/* Polls. */
body.gp-modern-v1.gp-theme-dark .poll-table-body {
  color: var(--gp-text-primary);
  background: var(--gp-bg-page);
}

body.gp-modern-v1.gp-theme-dark .poll-card-container {
  color: var(--gp-text-primary);
  background: var(--gp-bg-surface-raised);
  border-color: var(--gp-border);
  box-shadow: var(--gp-shadow-sm);
}

body.gp-modern-v1.gp-theme-dark .poll-question-panel {
  color: var(--gp-text-primary);
  background: #10181b;
  border-bottom: 1px solid var(--gp-border);
}

body.gp-modern-v1.gp-theme-dark .poll-ans-panel {
  color: var(--gp-text-primary);
  background: #11181b;
  border: 1px solid var(--gp-border);
}

body.gp-modern-v1.gp-theme-dark .poll-ans-panel:hover {
  background: #1c282b;
  box-shadow: 0 0 0 3px rgba(57, 208, 173, 0.12);
  transform: none;
}

body.gp-modern-v1.gp-theme-dark .poll-ans-panel.selected {
  border-color: var(--gp-accent-warm);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.12);
}

body.gp-modern-v1.gp-theme-dark .progress-bar {
  background: rgba(57, 208, 173, 0.32);
}

body.gp-modern-v1.gp-theme-dark .ans-label {
  color: var(--gp-text-primary);
}

body.gp-modern-v1.gp-theme-dark .pollpopup {
  color: var(--gp-text-primary);
  background: var(--gp-bg-surface-raised);
  border: 1px solid var(--gp-border-strong);
  box-shadow: var(--gp-shadow-md);
}

/* Store keeps its energetic identity without becoming a separate green-only theme. */
body.gp-modern-v1.gp-theme-dark .store-scroll,
body.gp-modern-v1.gp-theme-dark .offers,
body.gp-modern-v1.gp-theme-dark .offer.containerx,
body.gp-modern-v1.gp-theme-dark .offer-details {
  color: var(--gp-text-primary);
  background: var(--gp-bg-page);
}

body.gp-modern-v1.gp-theme-dark .offer-thumbnail,
body.gp-modern-v1.gp-theme-dark .offer-thumbnail .add-to-cart .cart-content {
  color: var(--gp-text-primary);
  background: var(--gp-bg-surface-raised);
  border-color: var(--gp-border);
  border-radius: 8px;
  box-shadow: var(--gp-shadow-sm);
}

body.gp-modern-v1.gp-theme-dark .offer-thumbnail:hover {
  border-color: rgba(57, 208, 173, 0.46);
}

body.gp-modern-v1.gp-theme-dark .offer-thumbnail .category {
  color: #201403;
  background: var(--gp-accent-warm);
  background-image: none;
  border-color: rgba(255, 229, 193, 0.56);
}

body.gp-modern-v1.gp-theme-dark .offer-thumbnail .subtitle,
body.gp-modern-v1.gp-theme-dark .offer-thumbnail .short-description,
body.gp-modern-v1.gp-theme-dark .offer-count-down {
  color: var(--gp-text-secondary);
}

body.gp-modern-v1.gp-theme-dark .neon-sign,
body.gp-modern-v1.gp-theme-dark .neon-btn {
  --neon-color: var(--gp-accent);
  background: #11181b;
  border-color: var(--gp-accent);
  border-radius: var(--gp-radius-sm);
}

/* Dialogs and transient surfaces. */
body.gp-modern-v1.gp-theme-dark .gwt-PopupPanelGlass {
  background: #020405 !important;
  opacity: 0.76 !important;
}

body.gp-modern-v1.gp-theme-dark .myDialogBox,
body.gp-modern-v1.gp-theme-dark .myDialogBox-post,
body.gp-modern-v1.gp-theme-dark .myDialogBox-profile-search,
body.gp-modern-v1.gp-theme-dark .gp-dialog,
body.gp-modern-v1.gp-theme-dark .credit-dialog {
  color: var(--gp-text-primary);
  background: #11181b;
  border-color: var(--gp-border-strong);
  box-shadow: var(--gp-shadow-md);
}

body.gp-modern-v1.gp-theme-dark .vPanel,
body.gp-modern-v1.gp-theme-dark .post-vPanel,
body.gp-modern-v1.gp-theme-dark .gp-dialog-surface,
body.gp-modern-v1.gp-theme-dark .quiz-form-dialog-content,
body.gp-modern-v1.gp-theme-dark .quiz-answer-dialog-content,
body.gp-modern-v1.gp-theme-dark .quiz-editor-dialog-content,
body.gp-modern-v1.gp-theme-dark #login-box.auth-dialog,
body.gp-modern-v1.gp-theme-dark .signup-dlg,
body.gp-modern-v1.gp-theme-dark .sign-up {
  color: var(--gp-text-primary);
  background: #121a1d;
}

body.gp-modern-v1.gp-theme-dark .gwt-DialogBox .Caption {
  color: var(--gp-text-primary);
  background: #1d292d;
  border-bottom: 1px solid var(--gp-border);
}

body.gp-modern-v1.gp-theme-dark .warningLabel,
body.gp-modern-v1.gp-theme-dark .charCount {
  color: var(--gp-accent-warm);
}

body.gp-modern-v1.gp-theme-dark .quiz-status-popup-content,
body.gp-modern-v1.gp-theme-dark .quiz-countdown-label {
  color: #fff2d8;
  background: #17130d;
  border-color: rgba(255, 180, 84, 0.48);
}

body.gp-modern-v1.gp-theme-dark .quiz-status-message {
  color: var(--gp-accent-warm);
}

@media (max-width: 768px) {
  body.gp-modern-v1.gp-theme-dark .card-container,
  body.gp-modern-v1.gp-theme-dark .poll-card-container,
  body.gp-modern-v1.gp-theme-dark .quiz-question-card {
    box-shadow: none;
  }

  body.gp-modern-v1.gp-theme-dark .tabPanel .gwt-TabBar,
  body.gp-modern-v1.gp-theme-dark .tab-panel-2 .gwt-TabBar {
    scrollbar-color: #43545a #0d1316;
  }
}
