
  /* Keep DTOJ's loader lifecycle and container positioning intact. */
  .page-loader > .loader,
  #nprogress .spinner > .spinner-icon {
    box-sizing: border-box;
    padding: 0;
    border: 2px solid rgba(71, 119, 218, .14);
    border-top-color: #4777da;
    border-right-color: rgba(71, 119, 218, .48);
    border-radius: 50%;
    background: none;
    box-shadow: none;
    animation: dtoj-loading-turn .9s linear infinite;
  }

  .page-loader > .loader {
    position: relative;
    inset: auto;
    width: 36px;
    height: 36px;
    margin: 0;
    font-size: 0;
    line-height: 0;
    text-indent: 0;
  }

  #nprogress .spinner > .spinner-icon {
    width: 16px;
    height: 16px;
    border-width: 1.75px;
    animation-duration: .8s;
  }

  @keyframes dtoj-loading-turn {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .page-loader > .loader,
    #nprogress .spinner > .spinner-icon {
      animation: none;
    }
  }


  /* Only restyle the native bottom-left toaster; keep its lifecycle and controls. */
  @media screen {
    .bp5-toast-container.bp5-toast-container-bottom.bp5-toast-container-left {
      padding: 0 max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast {
      --dtoj-toast-accent: #356aca;
      --dtoj-toast-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23edf3ff'/%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23356aca' stroke-width='1.6'/%3E%3Cpath d='M12 11v5' stroke='%23356aca' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='8' r='1' fill='%23356aca'/%3E%3C/svg%3E");
      box-sizing: border-box;
      width: min(420px, 100%);
      min-width: min(300px, 100%);
      max-width: min(420px, 100%);
      margin: 12px 0 0;
      border: 1px solid #e2e8f0;
      border-left: 3px solid var(--dtoj-toast-accent);
      border-radius: 12px;
      background: #fff;
      color: #283548;
      box-shadow: 0 4px 12px rgba(31, 49, 77, .05), 0 12px 32px rgba(31, 49, 77, .10);
      font-size: 14px;
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast.bp5-intent-success {
      --dtoj-toast-accent: #21805b;
      --dtoj-toast-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23eaf6ef'/%3E%3Cpath d='m7 12 3.2 3.2L17 8.5' fill='none' stroke='%2321805b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast.bp5-intent-warning {
      --dtoj-toast-accent: #a16a12;
      --dtoj-toast-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23fff5df'/%3E%3Cpath d='M12 7v6' stroke='%23a16a12' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.5' r='1' fill='%23a16a12'/%3E%3C/svg%3E");
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast.bp5-intent-danger {
      --dtoj-toast-accent: #c14950;
      --dtoj-toast-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23fff0f0'/%3E%3Cpath d='m8.5 8.5 7 7m0-7-7 7' stroke='%23c14950' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast:not(:has(> .bp5-icon))::before {
      content: "";
      flex: 0 0 24px;
      width: 24px;
      height: 24px;
      margin: 13px 0 13px 13px;
      background: var(--dtoj-toast-icon) center / 24px 24px no-repeat;
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast > .bp5-icon {
      flex: 0 0 auto;
      margin: 17px 0 17px 15px;
      color: var(--dtoj-toast-accent) !important;
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast .bp5-toast-message {
      min-width: 0;
      padding: 14px 10px;
      line-height: 1.6;
      overflow-wrap: anywhere;
      word-break: normal;
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast .bp5-toast-message a {
      color: var(--dtoj-toast-accent);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast .bp5-button-group {
      gap: 4px;
      padding: 9px 8px 9px 0;
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast .bp5-button-group .bp5-button {
      min-width: 32px;
      min-height: 32px;
      padding: 0 8px;
      border: 0;
      border-radius: 7px;
      background: transparent !important;
      color: #738095 !important;
      box-shadow: none;
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast .bp5-button-group .bp5-button:hover {
      background: #f0f3f8 !important;
      color: #34445e !important;
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast .bp5-button-group .bp5-button:active {
      background: #e6ecf4 !important;
      color: #26344a !important;
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast .bp5-button-group .bp5-button:focus {
      outline: 2px solid #4777da;
      outline-offset: 2px;
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast .bp5-button-group .bp5-button .bp5-icon {
      color: inherit !important;
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast.bp5-toast-enter-active,
    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast.bp5-toast-appear-active {
      transition-timing-function: cubic-bezier(.2, .75, .25, 1);
    }

    .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast.bp5-toast-exit-active {
      filter: blur(1px);
    }

    @media (max-width: 600px) {
      .bp5-toast-container.bp5-toast-container-bottom.bp5-toast-container-left {
        padding: 0 max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
      }

      .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast .bp5-button-group {
        padding: 3px 4px 3px 0;
      }

      .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast .bp5-button-group .bp5-button {
        min-width: 44px;
        min-height: 44px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .bp5-toast-container-bottom.bp5-toast-container-left .bp5-toast {
        transform: none !important;
        filter: none !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
      }
    }
  }

  /* dtoj-legacy-notification-20261024: native message notifications. */
  @media screen {
    body > .notification {
      --dtoj-legacy-toast-accent: #356aca;
      box-sizing: border-box;
      max-width: min(420px, calc(100vw - 40px));
      padding: 14px 16px;
      border: 1px solid #e2e8f0;
      border-left: 3px solid var(--dtoj-legacy-toast-accent);
      border-radius: 12px;
      background: #fff;
      color: #283548;
      box-shadow: 0 4px 12px rgba(31, 49, 77, .05), 0 12px 32px rgba(31, 49, 77, .10);
      font-size: 14px;
      line-height: 1.6;
      overflow-wrap: anywhere;
    }
    body > .notification.success { --dtoj-legacy-toast-accent: #21805b; }
    body > .notification.warn { --dtoj-legacy-toast-accent: #a16a12; }
    body > .notification.error { --dtoj-legacy-toast-accent: #c14950; }
    body > .notification::before { color: var(--dtoj-legacy-toast-accent); }
    body > .notification:is(.success, .info, .warn, .error) { border-left: 3px solid var(--dtoj-legacy-toast-accent); }
    body > .notification:is(.success, .info, .warn, .error)::before { color: var(--dtoj-legacy-toast-accent); }
    body > .notification p { margin: 0; line-height: 1.6; }
    body > .notification > p { display: inline; }
    body > .notification .notification-content { float: none; margin: 0; }
    body > .notification .notification-content h2 { margin: 0 0 4px; color: #283548; font-size: 14px; line-height: 1.6; }
    body > .notification .notification-content p { margin: 0; font-size: 13px; }
    body > .notification > img.avatar { float: left; width: 36px; height: 36px; margin: 0 10px 0 0; border-radius: 9px; }
    body > .notification:has(> img.avatar) .notification-content { margin-left: 46px; }
    body > .notification a { color: var(--dtoj-legacy-toast-accent); text-decoration: underline; text-underline-offset: 2px; }
    @media (max-width: 600px) {
      body > .notification {
        left: max(12px, env(safe-area-inset-left));
        bottom: max(12px, env(safe-area-inset-bottom));
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
      }
    }
  }


@media screen {
  :root { --dtoj-native-transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease; }
/* Theme tokens inherit through portals without taking over page layout. */
:root { --dtoj-native-border:#dbe3ee; --dtoj-native-surface:#fff; --dtoj-native-text:#40516b; --dtoj-native-hover-border:#b6c8e6; --dtoj-native-hover:#f4f7fc; --dtoj-native-active-text:#335c9d; }
.theme--dark { --dtoj-native-border:#354454; --dtoj-native-surface:#253443; --dtoj-native-text:#dbe5f0; --dtoj-native-hover-border:#55749a; --dtoj-native-hover:#2a3e51; --dtoj-native-active-text:#c3d7ff; }
/* Native controls only. Keep authored shells, editors, pickers and native sizes. */
.button:not(.codicon):not(:where(.inverse, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  font-weight: 500;
  box-shadow: none;
  transition: var(--dtoj-native-transition, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease);
}
.button:not(.codicon):not(:where(.inverse, .rounded, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  border-radius: 8px;
}
/* Semantic variants keep their own colors, including custom danger class names. */
.button:not(.codicon):not(.primary):not(:where(.inverse, .red, .danger, .warning, .success, .error, .alert, [class*="danger"], [name="operation"][value="delete"], .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  border-color: var(--dtoj-native-border, #dbe3ee);
  background-color: var(--dtoj-native-surface, #fff);
  color: var(--dtoj-native-text, #40516b);
}
.button:not(.codicon):not(.primary):not(.disabled):not(:where([disabled], [aria-disabled="true"], .inverse, .red, .danger, .warning, .success, .error, .alert, [class*="danger"], [name="operation"][value="delete"], .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)):hover {
  border-color: var(--dtoj-native-hover-border, #b6c8e6);
  background-color: var(--dtoj-native-hover, #f4f7fc);
  color: var(--dtoj-native-active-text, #335c9d);
  box-shadow: 0 2px 7px rgba(42, 73, 122, .08);
}
.button:not(.codicon).primary:not(:where(.inverse, .red, .danger, .warning, .success, .error, .alert, [class*="danger"], [name="operation"][value="delete"], .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  border-color: #3e6fd0;
  background-color: #3e6fd0;
  color: #fff;
}
.button:not(.codicon).primary:not(.disabled):not(:where([disabled], [aria-disabled="true"], .inverse, .red, .danger, .warning, .success, .error, .alert, [class*="danger"], [name="operation"][value="delete"], .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)):hover {
  border-color: #315fbd;
  background-color: #315fbd;
  color: #fff;
  box-shadow: 0 3px 9px rgba(48, 91, 180, .18);
}
.button:not(.codicon):not(.disabled):not(:where([disabled], [aria-disabled="true"], .inverse, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)):focus-visible {
  outline: 2px solid #4777da;
  outline-offset: 3px;
}
.button:not(.codicon):is(:disabled, [disabled], .disabled, [aria-disabled="true"]):not(:where(.inverse, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  cursor: default;
  opacity: .5;
  box-shadow: none;
  transition: none;
}

/* Native theme hover checks only .disabled; also honor real disabled attributes. */
.button:not(.codicon):not(.primary):is(:disabled, [disabled], .disabled, [aria-disabled="true"]):is(:hover, :focus, :active):not(:where(.inverse, .red, .danger, .warning, .success, .error, .alert, [class*="danger"], [name="operation"][value="delete"], .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  border-color: var(--dtoj-native-border, #dbe3ee);
  background-color: var(--dtoj-native-surface, #fff);
  color: var(--dtoj-native-text, #40516b);
  box-shadow: none;
}
.button:not(.codicon).primary:is(:disabled, [disabled], .disabled, [aria-disabled="true"]):is(:hover, :focus, :active):not(:where(.inverse, .red, .danger, .warning, .success, .error, .alert, [class*="danger"], [name="operation"][value="delete"], .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  border-color: #3e6fd0;
  background-color: #3e6fd0;
  color: #fff;
  box-shadow: none;
}

/* Only actual native fields; material labels and editor .textbox hosts are kept. */
input.textbox:not(:where([type="hidden"], .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)),
textarea.textbox:not(:where(.monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)),
select.select:not(:where(.monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  border-color: var(--dtoj-native-border, #dbe3ee);
  border-radius: 8px;
  transition: var(--dtoj-native-transition, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease);
}
input.textbox:not(:where([type="hidden"], [readonly], :disabled, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)):focus,
textarea.textbox:not(:where([readonly], :disabled, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)):focus,
select.select:not(:where(:disabled, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)):focus {
  border-color: #3e6fd0;
  outline: 2px solid rgba(71, 119, 218, .18);
  outline-offset: 1px;
  box-shadow: none;
}

/* Preserve the existing checkbox checkmark and image-radio appearance. */
:where(label.checkbox, label.radiobox:not(.with-image)) > input:where([type="checkbox"], [type="radio"]):not(:where(.inverse *, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  accent-color: #4777da;
}
:where(label.checkbox, label.radiobox:not(.with-image)) > input:where([type="checkbox"], [type="radio"]):not(:where(:disabled, .inverse *, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)):focus-visible {
  outline: 2px solid #4777da;
  outline-offset: 3px;
}

/* Native tabs have selected and tab--active states. Immersive tabs are separate. */
.section__tab-container:not(.immersive) .section__tab-header-item:not(:where(.monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  border-radius: 7px 7px 0 0;
  transition: var(--dtoj-native-transition, border-color 160ms ease, background-color 160ms ease, color 160ms ease);
}
.section__tab-container:not(.immersive) .section__tab-header-item:not(:where([aria-disabled="true"], .disabled, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)):hover {
  border-color: #9cb7eb;
  background-color: var(--dtoj-native-hover, #f4f7fc);
}
.section__tab-container:not(.immersive) .section__tab-header-item:is(.selected, .tab--active):not(:where(.monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  border-color: #3e6fd0;
  color: var(--dtoj-native-active-text, #335c9d);
}
.section__tab-container:not(.immersive) .section__tab-header-item:not(:where([aria-disabled="true"], .disabled, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)):focus-visible {
  outline: 2px solid #4777da;
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dtoj-native-transition: none; }
}

/* Keep the native checkmark pseudo-element; change only the checked colors. */
label.checkbox > input[type="checkbox"]:checked:not(:where(.inverse, .inverse *, .monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)) {
  background-color: #3e6fd0;
  border-color: #3e6fd0;
}

/* Native overlays retain their original positioning and open/close lifecycle. */
.dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) {
  background: rgba(20, 38, 56, .38);
}
.dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__content {
  box-sizing: border-box;
  min-width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  border: 1px solid #dce5ed;
  border-radius: 16px;
  background: #fff;
  color: #263b4d;
  box-shadow: 0 24px 72px rgba(22, 43, 61, .2), 0 4px 16px rgba(22, 43, 61, .06);
}
/* Natural-height dialogs must not resolve the legacy body percentage against
   the new action row. Explicit fixed-height dialogs retain their own sizing. */
.dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__content:not([style*="height"]) > .dialog__body {
  height: auto !important;
}
/* Picker lists keep the established clipping and scrolling contract. */
.dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__content:not(:has(.autocomplete-container)):not(:has(.autocomplete-list)) {
  overflow-y: auto;
}
.dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__body h1 {
  color: #263b4d;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__action {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}
.dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__action > .button {
  margin: 0;
  min-height: 40px;
}
.theme--dark .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) {
  background: rgba(4, 11, 19, .62);
}
.theme--dark .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__content {
  border-color: #354454;
  background: #1d2935;
  color: #e3ebf2;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .38), 0 4px 16px rgba(0, 0, 0, .18);
}
.theme--dark .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__body h1 {
  color: #e3ebf2;
}

.dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .menu {
  padding: 6px;
  border: 1px solid #e1e8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(26, 46, 65, .12), 0 2px 8px rgba(26, 46, 65, .05);
}
.dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .menu__link {
  border-radius: 7px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: var(--dtoj-native-transition, background-color .14s ease, color .14s ease, border-color .14s ease);
}
.dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .menu__link:focus-visible {
  outline: 2px solid #4783b4;
  outline-offset: -2px;
}
.theme--dark .dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .menu {
  border-color: #354454;
  background: #1d2935;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .15);
}
.theme--dark .dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .menu__link:focus-visible {
  outline-color: #85b5dc;
}
@media (hover: hover) {
  .dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .menu__link:not(.disabled):not(.active):not(.highlight):not(:disabled):not([aria-disabled="true"]):hover {
    border-left-color: #4783b4;
    background: #edf4fa;
    color: #285b83;
  }
  .theme--dark .dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .menu__link:not(.disabled):not(.active):not(.highlight):not(:disabled):not([aria-disabled="true"]):hover {
    border-left-color: #85b5dc;
    background: #2a3e51;
    color: #d5e8f8;
  }
}

.tooltip .drop-content {
  border-radius: 8px;
  background: #333;
  color: #fff;
  line-height: 1.5;
  overflow-wrap: anywhere;
  box-shadow: 0 6px 20px rgba(12, 24, 38, .18);
}

/* Selection state and keyboard focus remain distinct; geometry stays native. */
.autocomplete-list:not(:where(.dtoj-user-select-dialog *, .dtoj-user-picker *)) {
  border: 1px solid #dbe5ed;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(26, 46, 65, .12);
}
.autocomplete-list:not(:where(.dtoj-user-select-dialog *, .dtoj-user-picker *)) li[data-focus="true"] {
  background: #edf4fa;
  color: #285b83;
}
.theme--dark .autocomplete-list:not(:where(.dtoj-user-select-dialog *, .dtoj-user-picker *)) {
  border-color: #354454;
  background: #1d2935;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.theme--dark .autocomplete-list:not(:where(.dtoj-user-select-dialog *, .dtoj-user-picker *)) li[data-focus="true"] {
  background: #2a3e51;
  color: #d5e8f8;
}

@media (max-width: 600px) {
  .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__content {
    padding: 24px 20px;
  }
  .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__action {
    float: none;
    width: 100%;
  }
  .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__action > .button {
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
  }
}

/* Active menu state stays distinct from hover in both themes. */
.dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .menu__link.active,
.theme--dark .dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .menu__link.active {
  background: #3e6fd0;
  color: #fff;
  border-left-color: #3e6fd0;
}

  @media (prefers-reduced-motion: reduce) {
.button:not(.codicon):not(:where(.monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)),
input.textbox:not(:where(.monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)),
textarea.textbox:not(:where(.monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)),
select.select:not(:where(.monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)),
label.checkbox > input[type="checkbox"]:not(:where(.monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)),
.section__tab-container:not(.immersive) .section__tab-header-item:not(:where(.monaco-editor *, .monaco-diff-editor *, .monaco-workbench *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad__toolbar *, .scratchpad__toolbar__item *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-page *, .course-shell *, #paste-ui *, .crm-admin *, #contest-manage-page *)),
.dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))),
.dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .drop-content,
.dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .menu__link,
.tooltip,
.tooltip .drop-content,
.dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog),
.dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__content { transition-duration: .01ms !important; transition-delay: 0s !important; }
.dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog) .dialog__content,
.dropdown:not(.nav__dropdown):not(:where(:has(#menu-nav-more, .menu_more))) .drop-content,
.tooltip .drop-content { transform: none !important; }
  }
  }


/* The floating launcher is retired. This also covers a cached earlier app. */
.omnibar-toggle, .omnibar { display: none !important; }
@media screen {
:root {
  --dtoj-workspace-ink: #24374b;
  --dtoj-workspace-muted: #728197;
  --dtoj-workspace-line: #e3eaf1;
  --dtoj-workspace-accent: #3568c0;
  --dtoj-workspace-tint: #f3f7fd;
}
html[data-dtoj-surface] #panel > .main {
  padding-top: 28px;
  padding-bottom: 48px;
  color: var(--dtoj-workspace-ink);
}
html[data-dtoj-surface] #panel > .main > .row {
  max-width: 1180px;
}
/* Keep authored app shells and all editor internals under their own layout. */
html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section,
html[data-dtoj-surface] .main > .row > .columns > form > .section {
  margin-bottom: 24px;
  border: 1px solid var(--dtoj-workspace-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(29, 53, 78, .035);
}
html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section > .section__header,
html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section > form > .section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px;
  border-bottom: 1px solid #edf1f5;
  background: transparent;
}
html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section > .section__header:first-child,
html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section > form > .section__header:first-child {
  border-radius: 16px 16px 0 0;
}
html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section :is(.section__header > .section__title) {
  margin: 0;
  color: var(--dtoj-workspace-ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section > .section__body:not(.no-padding),
html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section > form > .section__body:not(.no-padding) {
  padding: 24px 26px;
}
/* Field labels and help form a consistent reading rhythm across native macros. */
html[data-dtoj-surface] .form__item {
  min-width: 0;
  margin-bottom: 22px;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) .form__item > label {
  display: block;
  margin: 0;
  color: #42556c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) .form__item > label > :is(.textbox-container, .textarea-container, .select-container, .checkbox-container, .radiobox-container) {
  margin-top: 8px;
}
html[data-dtoj-surface] .form__item > :is(.textbox-container, .textarea-container, .select-container) {
  margin-top: 8px;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) .form__item .help-text {
  margin: 8px 0 0;
  color: var(--dtoj-workspace-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  white-space: normal;
  overflow-wrap: anywhere;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) :is(input.textbox, textarea.textbox, select.select, .domain-group input[type="text"][data-gid]):not(:where([type="hidden"], .monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  margin-bottom: 0;
  padding: 10px 13px;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  background-color: #fbfcfe;
  color: #2d4056;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  box-shadow: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) textarea.textbox:not(:where(.monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)) {
  min-height: 136px;
  resize: vertical;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) select.select:not(:where(.monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)) {
  padding-right: 34px;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) :is(input.textbox, textarea.textbox, select.select, .domain-group input[type="text"][data-gid]):not(:where([type="hidden"], :disabled, [readonly], .monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)):hover {
  border-color: #b7c9df;
  background-color: #fff;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) :is(input.textbox, textarea.textbox, select.select, .domain-group input[type="text"][data-gid]):not(:where([type="hidden"], :disabled, [readonly], .monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)):focus {
  border-color: #7198d6;
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(53, 104, 192, .1);
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) :is(input.textbox, textarea.textbox, select.select, .domain-group input[type="text"][data-gid]):is(:disabled, [readonly]):not(:where(.monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)) {
  background-color: #f2f5f8;
  color: #738196;
  box-shadow: none;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) :is(input.textbox, textarea.textbox)[aria-invalid="true"]:not(:where(.monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .autocomplete-container *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)) {
  border-color: #c66363;
  background-color: #fffafb;
}
/* Keep booleanKeys.* genuinely hidden: their native display-hidden class wins. */
html[data-dtoj-surface] :is(.checkbox-container, .radiobox-container):not(.display-hidden) > label:not(.with-image) {
  color: #4d6075;
  font-weight: 400;
  line-height: 1.8;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) label.checkbox > input[type="checkbox"]:not(.display-hidden),
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) label.radiobox:not(.with-image) > input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-color: #c9d6e4;
  accent-color: var(--dtoj-workspace-accent);
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) label.checkbox > input[type="checkbox"]:checked {
  border-color: var(--dtoj-workspace-accent);
  background-color: var(--dtoj-workspace-accent);
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) .button:not(:where(.codicon, .monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *, .dtoj-user-select-dialog *, .dtoj-user-picker *, .autocomplete-container *)) {
  box-sizing: border-box;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-shadow: none;
  box-shadow: none;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) .button.primary:not(:where(.danger, .red, .warning, .success, .error, .alert, .inverse, [class*="danger"], [name="operation"][value="delete"], [disabled], .disabled, [aria-disabled="true"], .monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)) {
  border-color: var(--dtoj-workspace-accent);
  background: var(--dtoj-workspace-accent);
  color: #fff;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) .button.primary:not(:where(.danger, .red, .warning, .success, .error, .alert, .inverse, [class*="danger"], [name="operation"][value="delete"], [disabled], .disabled, [aria-disabled="true"], .monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)):hover {
  border-color: #2858a6;
  background: #2858a6;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) .button:not(.primary):not(:where(.danger, .red, .warning, .success, .error, .alert, .inverse, [class*="danger"], [name="operation"][value="delete"], .monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)) {
  border-color: #dce4ed;
  background: #fff;
  color: #4d6075;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) .button:is(.danger, .red, .alert, [class*="danger"], [name="operation"][value="delete"]):not(:where(.monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)) {
  border-color: #b64a4a;
  background: #b64a4a;
  color: #fff;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) .button.hollow:is(.danger, .red, .alert, [class*="danger"], [name="operation"][value="delete"]):not(:where(.monaco-editor *, .monaco-workbench *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .scratchpad *, .bp5-portal *, .bp5-dialog *, .dtoj-auth-shell *, .dtoj-auth-modal *)) {
  border-color: #e7c8c8;
  background: #fffafa;
  color: #a63e3e;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) .button:focus-visible {
  outline: 2px solid #7198d6;
  outline-offset: 3px;
}
:is(html[data-dtoj-surface], .dialog.withBg:not(.dtoj-auth-modal):not(.dtoj-user-select-dialog)) .button:is(:disabled, [disabled], .disabled, [aria-disabled="true"]) {
  opacity: .5;
  cursor: default;
  box-shadow: none;
}
html[data-dtoj-surface] .dtoj-settings-form .textarea-container > textarea.textbox:not([data-markdown]):not([data-yaml]) {
  height: 136px;
}
/* Settings are a single, comfortably sized column; date/time grids elsewhere stay. */
html[data-dtoj-surface] .dtoj-settings-form > .section__body > .row > .form__item {
  float: none;
  width: 100%;
  max-width: 780px;
}
html[data-dtoj-surface] .dtoj-settings-form > .section__body > .row:last-child > .form__item {
  margin-bottom: 0;
}
html[data-dtoj-surface] .dtoj-settings-form > .section__header:not(:first-child) {
  border-top: 1px solid #edf1f5;
}
html[data-dtoj-surface] .dtoj-settings-form > .section__body:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #edf1f5;
  border-radius: 0 0 16px 16px;
  background: #fafcfe;
}
html[data-dtoj-surface] .dtoj-settings-form > .section__body:last-child > .button {
  margin: 0;
}
html[data-dtoj-surface] .dtoj-config-card .form__item {
  width: 100%;
}
/* Native admin tables stay tables, with an internal scroll region on phones. */
html[data-dtoj-surface] :is(.dtoj-admin-main, .main > .row > .columns) > .section > .section__body.no-padding:has(.data-table),
html[data-dtoj-surface] :is(.dtoj-admin-main, .main > .row > .columns) > .section > form > .section__body.no-padding:has(.data-table) {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
html[data-dtoj-surface] :is(.dtoj-admin-main, .main > .row > .columns) > .section .data-table {
  margin: 0;
  border-collapse: collapse;
}
html[data-dtoj-surface] :is(.dtoj-admin-main, .main > .row > .columns) > .section .data-table th {
  padding: 13px 18px;
  border-bottom: 1px solid var(--dtoj-workspace-line);
  background: #f6f8fb;
  color: #718197;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-transform: none;
}
html[data-dtoj-surface] :is(.dtoj-admin-main, .main > .row > .columns) > .section .data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #edf1f5;
  background: transparent;
  color: #42566d;
  font-size: 13px;
  line-height: 1.7;
}
html[data-dtoj-surface] :is(.dtoj-admin-main, .main > .row > .columns) > .section .data-table tbody tr:last-child td {
  border-bottom: 0;
}
html[data-dtoj-surface] :is(.dtoj-admin-main, .main > .row > .columns) > .section .data-table tbody tr:hover td {
  background-color: #fafcfe;
}
html[data-dtoj-surface] :is(.dtoj-admin-main, .main > .row > .columns) > .section .section__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
html[data-dtoj-surface] .section.side:not(:where(.course-shell *, .dtoj-page *)) {
  border: 1px solid var(--dtoj-workspace-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}
html[data-dtoj-surface] .section.side:not(:where(.course-shell *, .dtoj-page *)) .section__header {
  padding: 18px 20px;
  border-bottom: 1px solid #edf1f5;
}
html[data-dtoj-surface] .section.side:not(:where(.course-shell *, .dtoj-page *)) .section__body {
  padding: 18px 20px;
  color: #6c7f94;
  font-size: 13px;
  line-height: 1.8;
}
html[data-dtoj-surface] .section.side:not(:where(.course-shell *, .dtoj-page *)) .menu {
  padding: 8px;
}
html[data-dtoj-surface] .section.side:not(:where(.course-shell *, .dtoj-page *)) .menu__link {
  min-height: 40px;
  border-radius: 8px;
  color: #50657b;
  line-height: 1.65;
  white-space: normal;
}
html[data-dtoj-surface] .section.side:not(:where(.course-shell *, .dtoj-page *)) .menu__link.active {
  background: #eef4fd;
  color: #3568c0;
}
html[data-dtoj-surface] .section__body > blockquote.note {
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid #dce8f6;
  border-left: 3px solid #85a9d8;
  border-radius: 10px;
  background: #f6f9fd;
  color: #5d738b;
  font-size: 13px;
  line-height: 1.8;
}
@media (max-width: 767px) {
  html[data-dtoj-surface] #panel > .main { padding-top: 18px; padding-bottom: 30px; }
  html[data-dtoj-surface] #panel > .main > .row { padding-right: 8px; padding-left: 8px; }
  html[data-dtoj-surface] .form__item { margin-bottom: 20px; }
  html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section > .section__header,
  html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section > form > .section__header { padding: 18px; }
  html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section > .section__body:not(.no-padding),
  html[data-dtoj-surface] :is(.main > .row > .columns, .dtoj-admin-main, .dtoj-account-content) > .section > form > .section__body:not(.no-padding) { padding: 20px 18px; }
  html[data-dtoj-surface] .section__header { flex-wrap: wrap; gap: 12px; }
  html[data-dtoj-surface] .section__tools { max-width: 100%; }
  html[data-dtoj-surface] :is(.dtoj-admin-main, .main > .row > .columns) > .section .data-table { min-width: 580px; }
  html[data-dtoj-surface] .dtoj-settings-form > .section__body:last-child > .button { width: 100%; }
}
/* The basic layout has fixed desktop and mobile navigation without an in-flow spacer. */
html[data-dtoj-surface][data-layout="basic"] #panel > .main { padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html[data-dtoj-surface] :is(input.textbox, textarea.textbox, select.select, .button) { transition: none; }
}
}


@media screen {
/* These extension admin pages still render plain native HTML controls. */
html[data-dtoj-surface="module-admin"] :is(.main > .row > .columns) > .section > .section__body:has(.data-table) {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
html[data-dtoj-surface="module-admin"] .section__body form .columns { min-width: 0; }
html[data-dtoj-surface="module-admin"] .section__body form .columns > label {
  display: block;
  margin-bottom: 20px;
  color: #42556c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}
html[data-dtoj-surface="module-admin"] .section__body :is(input:not(:where([type="hidden"], [type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"])), textarea, select):not(:where(.monaco-editor *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .autocomplete-container *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .bp5-portal *)) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 13px;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  background-color: #fbfcfe;
  color: #2d4056;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  box-shadow: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
html[data-dtoj-surface="module-admin"] .section__body :is(input:not([type="hidden"]), textarea, select):not(:where(:disabled, [readonly], [type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], .monaco-editor *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *, .autocomplete-container *, .dtoj-user-picker *, .dtoj-user-select-dialog *, .bp5-portal *)):focus {
  border-color: #7198d6;
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(53, 104, 192, .1);
}
html[data-dtoj-surface="module-admin"] .section__body textarea:not(:where(.monaco-editor *, .monaco-diff-editor *, .md-editor *, .CodeMirror *, .cm-editor *)) { min-height: 140px; resize: vertical; }
html[data-dtoj-surface="module-admin"] .section__body input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  background: #edf3fc;
  color: #3568c0;
  font: inherit;
  font-size: 12px;
}
html[data-dtoj-surface="module-admin"] .section__body input:is([type="checkbox"], [type="radio"]) { width: 18px; height: 18px; accent-color: #3568c0; }
html[data-dtoj-surface="module-admin"] .section__body input[type="hidden"] { display: none; }
html[data-dtoj-surface="module-admin"] .section__header > .section__title { min-width: 0; white-space: normal; text-overflow: clip; }
html[data-dtoj-surface="module-admin"] .section__header > .section__tools { position: static; float: none; margin: 0; max-width: 100%; transform: none; }
html[data-dtoj-surface="module-admin"] .button.success { border-color: #2c8a67; background: #2c8a67; color: #fff; }
html[data-dtoj-surface="module-admin"] .section__body :is(input[type="text"]:disabled, input[type="number"]:disabled, textarea:disabled, select:disabled, input[readonly], textarea[readonly]) { background: #f2f5f8; color: #738196; }
.nothing-placeholder {
  padding: 40px 24px;
  color: #728197;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.nothing-placeholder .nothing-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border: 1px solid #e4ebf5;
  border-radius: 14px;
  background: #f3f7fd;
  color: #7897c1;
}
.nothing-placeholder .nothing-icon::before {
  content: "";
  width: 23px;
  height: 26px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 2h9l5 5v16H5zM14 2v6h5M8 13h8M8 17h6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.nothing-placeholder.compact { padding: 24px 18px; }
.nothing-placeholder.compact .nothing-icon { width: 40px; height: 40px; border-radius: 11px; }
@media (max-width: 767px) {
  html[data-dtoj-surface="module-admin"] .section__header > .section__title { flex-basis: 100%; }
  html.page--blackbox_admin_appeals .section__body div:has(> form[action="/blackbox/admin/appeals"]) { flex-wrap: wrap; }
  html.page--blackbox_admin_appeals .section__body form[action="/blackbox/admin/appeals"] {
    flex: 1 1 100% !important;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }
  html.page--blackbox_admin_appeals .section__body form[action="/blackbox/admin/appeals"] > div { flex: 1 1 100% !important; min-width: 0; }
  html.page--blackbox_admin_appeals .section__body form[action="/blackbox/admin/appeals"] > input[type="text"] { width: 100% !important; }
  html.page--blackbox_admin_appeals .section__body form[action="/blackbox/admin/appeals"] > button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-dtoj-surface="module-admin"] .section__body :is(input,textarea,select) { transition: none; }
}
}


html body { --dtoj-pager-line:#d6dce0; --dtoj-pager-muted:#65717c; --dtoj-pager-link:#1f526f; }
html.theme--dark body { --dtoj-pager-line:#485661; --dtoj-pager-muted:#abb8c1; --dtoj-pager-link:#9fcbe0; }
/* Contest list pagination: independent controls, original URLs and page calculation. */
html body .pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; margin: 0; padding: 0; border: 0; list-style: none;
}
html body .pager:empty { display: none; }
html body .pager li { display: block; margin: 0; padding: 0; }
html body .pager[class] .pager__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 36px; padding: 7px 10px;
  border: 1px solid var(--dtoj-pager-line); border-radius: 8px;
  color: var(--dtoj-pager-muted); background: transparent;
  font-size: 13px; font-weight: 500; line-height: 20px; font-variant-numeric: tabular-nums;
  text-decoration: none; transition: background-color .15s ease, border-color .15s ease;
}
html body .pager[class] .pager__item.link:hover {
  color: var(--dtoj-pager-link); border-color: var(--dtoj-pager-link); background: var(--dtoj-pager-soft, #f1f5f9);
  text-decoration: none;
}
html body .pager[class] .pager__item.current {
  color: #fff !important; border-color: var(--dtoj-pager-link) !important;
  background: var(--dtoj-pager-link); font-weight: 650;
}
html body .pager[class] .pager__item.ellipsis {
  min-width: 24px; padding-inline: 2px; border-color: transparent; background: transparent;
}
html.theme--dark body .pager[class] .pager__item.current { color: #162638 !important; }
html.theme--dark body .pager[class] .pager__item.link:hover { background: rgba(159,203,224,.08); }
@media (max-width: 700px) {
  html body .pager { gap: 5px; }
  html body .pager[class] .pager__item { min-width: 34px; min-height: 36px; padding: 7px 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html body .pager[class] .pager__item { transition: none; } }

html #problems-page .pager { flex-wrap:wrap !important; justify-content:center; }
html #problems-page .pager .pager__item { display:inline-flex; }
html body .pager[class] .pager__item:focus-visible { outline:2px solid var(--dtoj-pager-link); outline-offset:3px; }
html body .course-pager--top { flex-wrap:wrap; }
html body .course-pager--top .pager { max-width:100%; }
html body :is(.records-pagination, .course-manage-pager) { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; }
html body #records-page .records-pagination a, html body .course-manage-pager a {
  display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:7px 12px;
  border:1px solid var(--dtoj-pager-line); border-radius:8px; color:var(--dtoj-pager-link);
  background:var(--dtoj-pager-soft, #f1f5f9); font-size:13px; line-height:20px; text-decoration:none;
}
html body #records-page .records-pagination a:hover, html body .course-manage-pager a:hover { border-color:var(--dtoj-pager-link); color:var(--dtoj-pager-link); }
html body :is(.records-pagination, .course-manage-pager) a:focus-visible { outline:2px solid var(--dtoj-pager-link); outline-offset:3px; }

/* Per-page accents; pagination calculation and URLs are unchanged. */
html body { --dtoj-pager-link:#475569; --dtoj-pager-soft:#f1f5f9; }
html #problems-page { --dtoj-pager-link:#247fba; --dtoj-pager-soft:#edf7fd; --dtoj-pager-line:#d6e7f2; }
html body .course-library { --dtoj-pager-link:var(--course-accent, #6848c8); --dtoj-pager-soft:var(--course-accent-soft, #f1edfc); --dtoj-pager-line:var(--course-line, #e2e6ee); }
html.page--training_main body { --dtoj-pager-link:#6848c8; --dtoj-pager-soft:#f1edfc; }
html.page--rank body, html.page--ranking body { --dtoj-pager-link:#475569; --dtoj-pager-soft:#f1f5f9; --dtoj-pager-line:#e0e5eb; }
html #records-page { --dtoj-pager-link:#347cad; --dtoj-pager-soft:#edf5fd; --dtoj-pager-line:#d9e7f1; }
html body .course-manage-pager { --dtoj-pager-link:#6848c8; --dtoj-pager-soft:#f1edfc; }
html body .contest-board .pg-wrap { --contest-link:#2563eb; --dtoj-pager-link:#2563eb; --dtoj-pager-soft:#eff6ff; }
html.theme--dark body { --dtoj-pager-link:#b7c6d9; --dtoj-pager-soft:#273449; }
html.theme--dark #problems-page { --dtoj-pager-link:#8bc8ef; --dtoj-pager-line:#3b5065; --dtoj-pager-soft:#23384b; }
html.theme--dark.page--training_main body, html.theme--dark body .course-manage-pager { --dtoj-pager-link:#b09af6; --dtoj-pager-soft:#2b2446; }
html.theme--dark #records-page { --dtoj-pager-link:#9ec7e5; --dtoj-pager-line:#3b5065; --dtoj-pager-soft:#23384b; }
html.theme--dark body .contest-board .pg-wrap { --contest-link:#93b4ff; --dtoj-pager-link:#93b4ff; }
/* Remove native top/bottom rails and pagination wrapper separators. */
html body .pager.pager-top, html body .pager.pager-bottom { border:0; }
html body .contest-board .pg-wrap, html body #records-page .records-pagination, html body .course-manage-pager { border:0; }
/* Only the problem bank keeps pagination at the bottom. */
html #problems-page .pager.pager-top { display:none !important; }
